/* ==========================================================================
   COLLABA PRO — main.css
   Токены из BRAND.md §3, размеры и ритм — из reference-styled-components.css.
   ========================================================================== */

/* ------------------------------------------------------------------ токены */
:root {
  --black: #000000;
  --ink: #0a0a0a;
  --paper: #faf9f6;
  --white: #ffffff;
  --acid: #c8ff00;
  --acid-dark: #5f7a00;
  --pink: #ff2e93;
  --pink-dark: #b4135f;
  --steel: #666666;
  --silver: #bdbdbd;
  --line: #2a2a2a;
  --mist: #f4f4f4;
  --hero-grey: #9a9a9a;
  --chip-grey: #8a8a8a;

  --display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --text: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --accent: 'Unbounded', 'Oswald', sans-serif;

  --container: 1200px;
  --pad: 50px;
  --header-h: 80px;
  --marquee-h: 45px;
  --radius-card: 14px;
  --radius-img: 10px;
  --radius-pill: 40px;

  --mark-notch: #ffffff;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Фиксированные цвета: не инвертируются вместе с темой.
     --brand-ink — текст на кислотных плашках (зелёная/розовая),
     --fixed-* — обложки кейсов/новостей и тайлы «Работы у нас». */
  --brand-ink: #000000;
  --fixed-white: #ffffff;
  --fixed-ink: #0a0a0a;
  --fixed-paper: #faf9f6;
  --fixed-silver: #b7b7b7;
}

/* ------------------------------------------------- инвертированная тема
   Меняем значения чёрно-белых токенов — вся вёрстка инвертируется разом.
   Acid Green и Acid Pink остаются прежними. */
html[data-theme='inverted'] {
  --black: #faf9f6;
  --ink: #f2f0ea;
  --paper: #000000;
  --white: #0a0a0a;
  --mist: #121212;
  --line: #d5d2c9;
  --steel: #8a8a8a;
  --silver: #4a4a4a;
  --hero-grey: #7b7b7b;
  --chip-grey: #8a8a8a;
  --mark-notch: #0a0a0a;
}

/* ------------------------------------------------------------------- база */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--text);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.2;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

/* [hidden] должен побеждать любые display в компонентах */
[hidden] { display: none !important; }

img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 20px;
  background: var(--acid);
  color: var(--brand-ink);
  font-family: var(--display);
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.container {
  width: min(var(--container), calc(100vw - 40px));
  margin: 0 auto;
}

/* ------------------------------------------------ появление по скроллу */
/* Класс js ставится инлайн-скриптом в <head>: без JS контент виден сразу. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }


.section { padding: 120px 0; background: var(--black); }
/* Секции главной идут встык — нижний отступ задаёт следующая секция */
.section--results,
.section--bloggers,
.section--cases,
.section--manifest,
.section--team,
.section--careers-about,
.section--careers-join,
.section--vacancies,
.section--careers-gallery,
.section--careers-start { padding-bottom: 0; }
.section__cta { display: flex; justify-content: center; margin-top: 60px; }
/* Шапка выведена из потока (см. .header), поэтому первая секция
   компенсирует её высоту собственным отступом. */
main > .section:first-child { padding-top: calc(120px + var(--header-h)); }

/* --------------------------------------------------------------- знак × */
.mark { display: block; width: 100%; height: 100%; }
.mark__a { fill: var(--acid); }
.mark__b { fill: var(--pink); }
.mark__x { fill: var(--mark-notch); }
.mark--pink .mark__a,
.mark--pink .mark__b { fill: var(--pink); }

/* --------------------------------------------------------------- логотип */
.logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--logo-fg, var(--white));
  white-space: nowrap;
}
.logo__word { display: inline-block; }
.logo__pro { display: inline-block; margin-left: 0.18em; color: var(--acid); }
.logo__mark {
  display: inline-block;
  width: 0.73em;
  height: 0.73em;
  margin-left: 0.28em;
  flex: 0 0 auto;
}
/* Крупное лого в футере: 75px по макету, но ужимается, чтобы не наезжать на колонки */
.logo--xl { font-size: clamp(34px, 3.7vw, 60px); }

/* ---------------------------------------------------------------- кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 10px 28px;
  font-family: var(--text);
  font-weight: 900;
  font-size: 16px;
  line-height: 1.03;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

.btn--black {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}
.btn--black:hover { background: transparent; color: var(--black); }

.btn--outline-white {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  padding: 12px 34px;
}
.btn--outline-white:hover { background: var(--white); color: var(--black); }

.btn--acid-outline {
  background: transparent;
  border: 2px solid var(--acid);
  color: var(--acid);
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.02em;
  padding: 8px 26px;
}
.btn--acid-outline:hover { background: var(--acid); color: var(--brand-ink); }

.btn--acid {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--brand-ink);
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  padding: 12px 30px;
}
.btn--acid:hover { background: var(--white); border-color: var(--white); color: var(--black); }

.btn--wide { width: min(535px, 100%); height: 56px; }
.btn--tall { min-height: 82px; width: min(360px, 100%); text-align: center; }

.btn--pill-outline {
  width: 148px;
  height: 40px;
  padding: 0;
  border-radius: 32px;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--hdr-fg);
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.btn--pill-outline:hover { background: var(--hdr-fg); color: var(--hdr-bg); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--hdr-fg);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--hdr-fg); color: var(--hdr-bg); }
.icon-btn--dark { color: var(--white); }
.icon-btn--dark:hover { background: var(--white); color: var(--black); }
.icon-btn--solid {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}
.icon-btn--solid:hover { background: var(--acid); border-color: var(--acid); color: var(--brand-ink); }

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  transition: background-color 0.3s var(--ease);
}
.social svg { width: 22px; height: 22px; }
.social:hover { background: var(--acid); color: var(--brand-ink); }
.socials { display: flex; gap: 25px; }

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--silver);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  font-size: 16px;
  font-weight: 300;
  color: var(--white);
}
.pill--acid { border-color: var(--acid); color: var(--acid); font-weight: 500; }
.pill--pink { background: var(--pink); border-color: var(--pink); color: var(--brand-ink); font-weight: 500; }
.pill--white { border-color: var(--white); color: var(--white); font-weight: 500; }

/* ---------------------------------------------------------------- header */
.header {
  position: sticky;
  top: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  height: var(--header-h);
  /* Отрицательный отступ снизу убирает шапку из потока: контент
     начинается под ней, как в референсе (прозрачная шапка поверх секции). */
  margin-bottom: calc(-1 * var(--header-h));
  padding: 0 var(--pad);
  background: transparent;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInDown 0.5s var(--ease) forwards;
  --hdr-fg: var(--white);
  --hdr-bg: var(--black);
}
.header[data-theme='light'] { --hdr-fg: var(--black); --hdr-bg: var(--paper); --mark-notch: var(--black); }
.header[data-theme='dark'] { --hdr-fg: var(--white); --hdr-bg: var(--black); --mark-notch: var(--white); }

@keyframes fadeInDown { to { opacity: 1; transform: translateY(0); } }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.header__logo { pointer-events: auto; --logo-fg: var(--hdr-fg); }
.header__actions { display: flex; align-items: center; gap: 15px; }
.header__actions-item { display: flex; pointer-events: auto; }

.burger {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--hdr-fg);
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 0.3s var(--ease);
}
.burger__line {
  display: block;
  height: 2px;
  background: var(--hdr-bg);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}
.burger__line:nth-child(1) { width: 20px; }
.burger__line:nth-child(2) { width: 14px; }
.burger__line:nth-child(3) { width: 17px; }
.burger:hover .burger__line { width: 20px; }

/* ------------------------------------------------------------------ меню */
.menu {
  position: fixed;
  inset: 0;
  z-index: 1002;
  display: flex;
  justify-content: flex-end;
}
.menu[hidden] { display: none; }
.menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}
.menu__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  width: 60%;
  height: 100%;
  padding: 100px var(--pad) 60px;
  background: var(--black);
  overflow-y: auto;
  animation: slideIn 0.5s var(--ease);
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

.menu__top {
  position: absolute;
  top: 0;
  right: var(--pad);
  display: flex;
  align-items: center;
  gap: 15px;
  height: var(--header-h);
}
.menu__body { display: flex; justify-content: space-between; gap: 40px; }
.menu__main { display: flex; flex-direction: column; gap: 40px; }
.menu__item a {
  font-family: var(--display);
  font-weight: 500;
  font-size: 60px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  transition: color 0.3s var(--ease);
}
.menu__item a:hover { color: var(--acid); }

.menu__side { display: flex; flex-direction: column; gap: 50px; }
.menu__services { display: flex; flex-direction: column; gap: 30px; }
.menu__services a {
  font-size: 16px;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.menu__services a:hover { color: var(--acid); }
.menu__contacts { display: flex; flex-direction: column; gap: 11px; font-size: 16px; }
.menu__contacts a { text-decoration: none; }
.menu__contacts a.is-underlined { text-decoration: underline; text-underline-offset: 3px; }
.menu__contacts a:hover { color: var(--acid); }
.is-underlined { text-decoration: underline; text-underline-offset: 3px; }

.menu__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.menu__brief {
  padding: 0;
  border: none;
  background: none;
  color: var(--acid);
  font-family: var(--display);
  font-weight: 500;
  font-size: 60px;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.3s var(--ease);
}
.menu__brief:hover { opacity: 0.8; }

/* ------------------------------------------------------------------- hero */
.hero {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--paper);
  color: var(--black);
  overflow: hidden;
}
.hero__inner {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: calc(30px + var(--header-h)) 20px 60px;
  text-align: center;
}

.hero__toggle-wrap { height: 40px; display: flex; align-items: center; }
/* Настоящий переключатель темы: трек всегда Acid, кружок ездит 0.35s */
.hero__toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 69px;
  height: 32px;
  padding: 0;
  border: 0.59px solid var(--black);
  border-radius: 33px;
  background: var(--acid);
  cursor: pointer;
  animation: toggleOn 500ms ease-out;
}
/* Зона нажатия ровно 44px по высоте — сам тумблер остаётся 69×32 */
.hero__toggle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 44px;
  transform: translate(-50%, -50%);
}
.hero__toggle:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }
.hero__knob {
  position: absolute;
  left: 1px;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--black);
  border-radius: 50%;
  background: var(--white);
  transform: translateX(37px);
  transition: transform 0.35s var(--ease);
}
.hero__toggle[aria-pressed='true'] .hero__knob { transform: translateX(0); }
@keyframes toggleOn {
  0% { width: 0; background: var(--pink); opacity: 0; }
  100% { width: 69px; background: var(--acid); opacity: 1; }
}

.hero__chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  font-weight: 900;
  font-size: 17px;
  line-height: 1.03;
  text-transform: uppercase;
  color: var(--chip-grey);
  animation: fadeIn 2s ease-out;
}
.hero__chip-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 34px;
  border: 1px solid var(--black);
  border-radius: var(--radius-pill);
  color: var(--black);
  font-size: 16px;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.hero__lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  animation: riseIn 2s ease-out;
}
@keyframes riseIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hero__line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-family: var(--display);
  font-weight: 700;
  /* 100px по макету; на узких экранах строка ужимается, чтобы не упираться в края */
  font-size: clamp(42px, 6.25vw, 100px);
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--hero-grey);
}
.hero__word {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s var(--ease);
}
.hero__word:hover { color: var(--black); }

.hero__amp {
  font-size: 1.14em;
  line-height: 0.9;
  transform: translateY(0.06em);
  color: transparent;
  -webkit-text-stroke: 2px var(--black);
}

.hero__orb {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* 103px при базовом кегле 100px — размеры привязаны к строке */
  width: 1.03em;
  height: 1.03em;
  flex: 0 0 auto;
  border: 0.05em solid var(--black);
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper);
}
.hero__orb-ring {
  position: absolute;
  inset: -20%;
  background: conic-gradient(var(--acid), var(--pink), var(--acid));
  animation: spin 12s linear infinite;
}
.hero__orb-mark {
  position: relative;
  z-index: 2;
  width: 0.44em;
  height: 0.44em;
}
.hero__orb-mark .mark__a,
.hero__orb-mark .mark__b { fill: var(--black); }
.hero__orb-mark .mark__x { fill: var(--paper); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__coin {
  display: inline-flex;
  width: 0.7em;
  height: 0.7em;
  flex: 0 0 auto;
  color: var(--black);
}
.hero__coin svg { width: 100%; height: 100%; }

.hero__x {
  display: inline-flex;
  width: 0.8em;
  height: 0.8em;
  flex: 0 0 auto;
}
.hero__x .mark__x { fill: var(--paper); }

.hero__sub {
  max-width: 640px;
  margin-top: 25px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--black);
  animation: riseIn 1s ease-out;
}
.hero__sub b { font-weight: 700; font-style: italic; }

.hero__buttons { display: flex; gap: 12px; margin-top: 25px; }
.hero__btn {
  width: 258px;
  height: 48px;
  padding: 10px 22px;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  animation: widen 0.5s ease-out;
}
@keyframes widen { from { width: 20px; opacity: 0; } to { width: 258px; opacity: 1; } }

/* --------------------------------------------------------- бегущая строка */
.marquee {
  display: flex;
  align-items: center;
  height: var(--marquee-h);
  background: var(--acid);
  color: var(--brand-ink);
  overflow: hidden;
  flex: 0 0 auto;
}
.marquee__track { display: flex; width: max-content; animation: slide 60s linear infinite; }
.marquee__set { display: flex; }
.marquee__set span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Длинные русские слова в дисплейных заголовках не должны вылезать за экран */
.shead__title,
.legal__title,
.article__title,
.careers-join__title,
.ncard__title,
.ccard__title,
.bio__name,
.tcard__name,
.vac__title,
.process__title,
.more__title,
.scard__title,
.e404__text { overflow-wrap: break-word; }

/* ------------------------------------------------------ заголовки секций */
.shead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 60px;
}
.shead__text { display: flex; flex-direction: column; gap: 10px; }
.shead__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 75px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--white);
}
.shead__note { font-size: 18px; font-weight: 300; color: var(--white); }
.shead__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.shead__arrows { display: flex; gap: 12px; }

/* ------------------------------------------------- сетка цифр «ПРО РЕЗУЛЬТАТ» */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  min-height: 220px;
  padding: 30px 28px;
  border-radius: var(--radius-card);
  /* Зелёные карточки-цифры не инвертируются: фон Acid, текст чёрный */
  background: var(--acid);
  color: var(--brand-ink);
}
.stat__big {
  font-family: var(--display);
  font-weight: 700;
  font-size: 75px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  /* Цифра всегда в одну строку — ритм сетки не ломается */
  white-space: nowrap;
}
.stat__text {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.2;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.stat__text strong { font-weight: 700; }

/* ------------------------------------------------------------ слайдеры */
.slider { position: relative; }
.slider .swiper { position: relative; }

.sarrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--white);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.sarrow svg { width: 18px; height: 18px; }
.sarrow:hover { background: var(--white); color: var(--black); }
.sarrow[disabled] { opacity: 0.35; cursor: default; }
.sarrow[disabled]:hover { background: transparent; color: var(--white); }
.sarrow--plain { border-color: transparent; }
.sarrow--plain:hover { background: transparent; color: var(--acid); }

.slider--process,
.slider--cases,
.slider--photos {
  display: flex;
  align-items: center;
  gap: 15px;
}
.slider--process .swiper,
.slider--cases .swiper,
.slider--photos .swiper { flex: 1 1 auto; min-width: 0; }

.slider--cases .sarrow--onimage,
.slider--photos .sarrow--onimage {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.slider--cases .sarrow--prev,
.slider--photos .sarrow--prev { left: 20px; }
.slider--cases .sarrow--next,
.slider--photos .sarrow--next { right: 20px; }

.swiper-pagination { position: relative; bottom: 0; margin-top: 30px; }
.swiper-pagination-bullet { position: relative; width: 10px; height: 10px; background: var(--white); opacity: 1; margin: 0 4px !important; }
/* Точка маленькая, но зона нажатия — во всю высоту 44px и весь шаг между точками */
.swiper-pagination-bullet::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 44px;
  transform: translate(-50%, -50%);
}
.swiper-pagination-bullet-active { background: var(--acid); }

/* процесс */
.process { margin-top: 90px; }
.process__head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 30px; }
.process__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.1;
  text-transform: uppercase;
}
.process__note { font-size: 16px; color: var(--silver); }

.step { display: flex; flex-direction: column; gap: 12px; padding-right: 10px; }
.step__n {
  font-family: var(--display);
  font-weight: 500;
  font-size: 40px;
  line-height: 1;
  color: var(--acid);
}
.step__lead { font-size: 16px; font-weight: 600; }
.step__text { font-size: 16px; font-weight: 300; color: var(--silver); }

/* ------------------------------------------------------------- блогеры */
.bhead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 60px;
}
.bhead__left { display: flex; flex-direction: column; gap: 10px; }
.bhead__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 75px;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.bhead__num .counter__last { color: var(--acid); }
.bhead__note { font-size: 18px; font-weight: 300; }
.bhead__all { width: 175px; }

.bgrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  /* Строки одинаковой высоты: фото, имя и ряд иконок стоят на одном уровне
     во всех карточках, даже если у кого-то бейдж перенёсся под имя. */
  grid-auto-rows: 1fr;
  gap: 50px 25px;
}
.bcard { display: flex; flex-direction: column; gap: 15px; height: 100%; }
.bcard.is-hidden { display: none; }
.bcard__photo {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-img);
  aspect-ratio: 1 / 1;
  background: var(--line);
}
.bcard__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transform-origin: center;
  transition: filter 0.5s var(--ease), transform 0.5s var(--ease);
}
.bcard:hover .bcard__photo img { filter: grayscale(0%); transform: scale(1.1); }

/* Ряд площадок прижат к низу карточки, чтобы иконки выстраивались
   в одну линию даже при двухстрочных именах. */
.bcard__body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 15px; }
/* Бейдж модели — inline после имени; если не влезает, переносится под имя. */
.bcard__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.bcard__plats { margin-top: auto; }
.bcard__name {
  font-family: var(--display);
  font-weight: 500;
  /* 22px при 5 колонках — длинные имена помещаются в одну строку */
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  transition: color 0.3s var(--ease);
}
.bcard__name:hover { color: var(--acid); }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
}
.badge--fix { border: 1px solid var(--white); color: var(--white); }
.badge--rev { background: var(--pink); color: var(--brand-ink); }

.bcard__plats { display: flex; gap: 22px; }
.plat { display: flex; flex-direction: column; gap: 10px; max-width: 70px; }
.plat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--acid);
  color: var(--brand-ink);
}
.plat__icon svg { width: 15px; height: 15px; }
.plat__count {
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* -------------------------------------------------------- обложки кейсов */
.cover {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  border-radius: var(--radius-img);
  background: var(--cover-bg);
  color: var(--cover-fg);
  text-align: center;
}
.cover--acid { --cover-bg: var(--acid); --cover-fg: var(--brand-ink); }
.cover--pink { --cover-bg: var(--pink); --cover-fg: var(--brand-ink); }
.cover--paper { --cover-bg: var(--fixed-paper); --cover-fg: var(--fixed-ink); }
.cover--black { --cover-bg: var(--fixed-ink); --cover-fg: var(--fixed-white); }
/* На цветных обложках знак × монохромный (иначе зелёный брусок
   пропадает на зелёном фоне) — вариант «переплетение» из BRAND §2.1 */
.cover .mark__a,
.cover .mark__b { fill: var(--cover-fg); }
.cover .mark__x { fill: var(--cover-bg); }

.cover--wide { height: 650px; }
.cover--169 { aspect-ratio: 16 / 9; }

.cover__big {
  font-family: var(--accent);
  font-weight: 900;
  font-size: clamp(48px, 9vw, 150px);
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.cover__bigsub {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 4.2vw, 68px);
  line-height: 1;
  text-transform: uppercase;
}
.cover__sub {
  margin-top: 22px;
  font-family: var(--text);
  font-weight: 500;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
}
.cover__ribbon {
  position: absolute;
  left: -10%;
  top: 12px;
  width: 130%;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.35;
  white-space: nowrap;
  overflow: hidden;
}
.cover__corner { position: absolute; width: 56px; height: 56px; opacity: 0.85; }
.cover__corner--tl { left: 28px; top: 52px; }
.cover__corner--br { right: 28px; bottom: 28px; }
.cover--169 .cover__corner { width: 26px; height: 26px; }
.cover--169 .cover__corner--tl { left: 16px; top: 30px; }
.cover--169 .cover__corner--br { right: 16px; bottom: 16px; }
.cover--169 .cover__sub { margin-top: 12px; font-size: 13px; }

.caseslide { position: relative; display: block; text-decoration: none; color: inherit; }
.caseslide__caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 12px 30px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--black);
  font-size: 16px;
  font-weight: 500;
}

/* ------------------------------------------------------------- команда */
/* Три компактные колонки в одну строку (референс home-tile05):
   две карточки основателей + типографический тайл-формула. */
/* Три колонки: две карточки продюсеров + тайл-рамка с фразой. */
.tgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}
.tcard { display: flex; flex-direction: column; gap: 18px; }
.tcard__photo {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* Фото продюсеров квадратные 1:1 — ряд карточек ровный по высоте */
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-img);
  background: var(--line);
}
/* Fallback, если фото ещё не подложили: инициалы под картинкой */
.tcard__photo::before {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 64px;
  color: var(--acid);
  opacity: 0.25;
}
.tcard__photo img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s var(--ease), transform 0.5s var(--ease);
}
.tcard:hover .tcard__photo img { filter: grayscale(0); transform: scale(1.06); }
.tcard__body { display: flex; flex-direction: column; flex: 1 1 auto; gap: 14px; }
/* Имя слева, описание справа — как в референсе */
.tcard__row {
  display: grid;
  grid-template-columns: minmax(0, 130px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.tcard__id { display: flex; flex-direction: column; gap: 8px; }
.tcard__name {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.05;
  text-transform: uppercase;
}
.tcard__role {
  font-family: var(--text);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--acid);
}
.tcard__text {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.35;
  text-align: right;
  color: var(--silver);
}
.tcard__quote {
  margin-top: auto; /* цитаты выравниваются по низу карточек */
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.35;
  color: var(--acid);
}

/* Третья ячейка: рамка ростом с квадратное фото, внутри — фраза бренда */
.ttile {
  display: flex;
  align-items: center;
  aspect-ratio: 1 / 1;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-img);
  background: var(--black);
}
.ttile__text {
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--white);
}
.ttile__acc { color: var(--acid); }


.depts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 30px;
  padding-bottom: 120px;
}
.dept { display: flex; flex-direction: column; gap: 12px; }
.dept__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 25px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--acid);
}
.dept__text { font-size: 16px; font-weight: 300; }

/* --------------------------------------------------------- во что мы верим */
.manifest { border-top: 1px solid var(--line); }
.manifest__row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 30px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.manifest__n {
  font-family: var(--display);
  font-weight: 500;
  font-size: 25px;
  line-height: 1.1;
  color: var(--acid);
}
.manifest__text {
  font-family: var(--display);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--white);
}
.manifest__acc { color: var(--acid); }


/* --------------------------------------------------------- полоса площадок */
.pbar {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 90px;
  padding: 0 var(--pad);
  background: var(--mist);
  color: var(--black);
  overflow: hidden;
}
.pbar__label {
  flex: 0 0 auto;
  font-family: var(--text);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}
.pbar__track { display: flex; flex: 1 1 auto; min-width: 0; }
.pbar__list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 auto;
  gap: 28px;
}
.pbar__item {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--black);
}
.pbar__list--clone { display: none; }

/* ------------------------------------------------------------------ футер */
.footer { background: var(--black); padding: 100px var(--pad) 40px; }
.footer__inner {
  display: grid;
  /* Правая колонка шире остальных: «ОТПРАВИТЬ БРИФ» держим в одну строку. */
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 0.75fr) minmax(0, 0.95fr) minmax(0, 1.3fr);
  gap: 40px;
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
}
.footer__brand { display: flex; flex-direction: column; gap: 60px; }
.footer .logo--xl { --logo-fg: var(--white); }
.footer__meta { display: flex; flex-direction: column; gap: 20px; font-size: 16px; font-weight: 300; }
.footer__legal { font-size: 14px; color: var(--silver); }
.footer__requisites { display: flex; flex-direction: column; gap: 6px; }
.footer__requisites .footer__legal { font-size: 13px; white-space: nowrap; }
.footer__requisites a { color: inherit; text-decoration: none; }
.footer__requisites a:hover { color: var(--white); }
@media (max-width: 1279px) { .footer__requisites .footer__legal { white-space: normal; } }
.footer__policy { text-decoration: none; }
.footer__policy:hover { color: var(--acid); }

.footer__col { display: flex; flex-direction: column; gap: 25px; }
.footer__col-title {
  font-family: var(--display);
  font-weight: 700;
  /* 40px на 1440; ниже — плавно уменьшается вместе с «ОТПРАВИТЬ БРИФ» */
  font-size: clamp(30px, 2.78vw, 40px);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--acid);
}
.footer__list { display: flex; flex-direction: column; gap: 20px; }
.footer__list a { font-size: 16px; font-weight: 300; text-decoration: none; transition: color 0.3s var(--ease); }
.footer__list a:hover { color: var(--acid); }

.footer__cta { display: flex; flex-direction: column; align-items: flex-end; gap: 35px; text-align: right; }
.footer__brief {
  padding: 0;
  border: none;
  background: none;
  color: var(--acid);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 2.78vw, 40px);
  line-height: 1.2;
  text-transform: uppercase;
  /* Одна строка, как в референсе */
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.3s var(--ease);
}
.footer__brief:hover { opacity: 0.8; }
.footer__contacts { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; font-size: 16px; }
.footer__contacts a { text-decoration: none; }
.footer__contacts a.is-underlined { text-decoration: underline; text-underline-offset: 3px; }
.footer__contacts a:hover { color: var(--acid); }

.footer__note {
  max-width: 1340px;
  margin: 48px auto 0;
  font-size: 14px;
  font-weight: 300;
  color: var(--white);
}
.footer__star { color: var(--acid); }

/* --------------------------------------------------------------- модалка */
.modal { position: fixed; inset: 0; z-index: 1003; display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.modal__panel {
  position: relative;
  width: min(735px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 70px 60px;
  background: var(--black);
  border: 1px solid var(--line);
  animation: riseIn 0.35s var(--ease);
}
.modal__close { position: absolute; top: 30px; right: 30px; }
.modal__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 60px;
  line-height: 1;
  text-transform: uppercase;
}
.modal__subtitle { margin-top: 16px; font-size: 22px; font-weight: 300; }
.modal__view--done { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 40px 0; }
.modal__tg { margin-top: 10px; }

.form { display: flex; flex-direction: column; gap: 15px; margin-top: 40px; }
.form__row { display: flex; flex-direction: column; gap: 6px; }
.field {
  width: 100%;
  height: 56px;
  padding: 0 28px;
  border: 1px solid var(--white);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--white);
  font-family: var(--text);
  font-weight: 300;
  font-size: 18px;
}
.field::placeholder { color: var(--silver); }
.field:focus { outline: none; border-color: var(--acid); }
.field--area { height: 96px; padding: 18px 28px; border-radius: 28px; resize: vertical; }
.field--phone { display: flex; align-items: center; gap: 10px; padding: 0 20px 0 24px; }
.field__flag { display: inline-flex; flex: 0 0 auto; border-radius: 2px; overflow: hidden; }
.field__input { flex: 1 1 auto; min-width: 0; height: 100%; border: none; background: transparent; color: var(--white); font: inherit; }
.field__input:focus { outline: none; }
.field.is-invalid { border-color: var(--pink); }
.form__error { font-size: 14px; color: var(--pink); padding-left: 28px; }
.form__status { font-size: 16px; color: var(--acid); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.check { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; font-weight: 300; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1px solid var(--white);
  border-radius: 3px;
  background: transparent;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.check input:checked + .check__box {
  background: var(--acid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 5 5 9-11' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  border-color: var(--acid);
}
.check input:focus-visible + .check__box { outline: 2px solid var(--acid); outline-offset: 2px; }
.check__text a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.form__submit {
  height: 82px;
  margin-top: 15px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--acid-dark);
  color: var(--brand-ink);
  font-family: var(--display);
  font-weight: 500;
  font-size: 30px;
  text-transform: uppercase;
  cursor: not-allowed;
  transition: background-color 0.3s var(--ease);
}
.form__submit:not([disabled]) { background: var(--acid); cursor: pointer; }
.form__submit:not([disabled]):hover { background: var(--white); color: var(--black); }

/* ------------------------------------------------------------ cookie */
.cookie {
  position: fixed;
  left: 50%;
  bottom: 20px;
  /* ниже меню (1002) и модалки (1003), чтобы не перекрывать их на мобайле */
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(640px, calc(100vw - 40px));
  padding: 16px 20px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--black);
  animation: riseIn 0.4s var(--ease);
}
.cookie[hidden] { display: none; }
.cookie__text { flex: 1 1 auto; font-size: 15px; font-weight: 300; }
.cookie__text a { color: var(--acid); }
.cookie__accept {
  flex: 0 0 auto;
  padding: 10px 26px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--black);
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  cursor: pointer;
}
.cookie__accept:hover { background: var(--acid); color: var(--brand-ink); }

/* ------------------------------------------------------------- услуги */
.shead--services { align-items: flex-end; }
/* На странице услуг заголовок и ряд табов должны уместиться в одну строку */
.shead--services .shead__title { font-size: 52px; }
/* Подзаголовок не должен отжимать вкладки на вторую строку */
.shead--services .shead__note { max-width: 500px; }
@media (min-width: 1024px) {
  .shead--services .shead__title { white-space: nowrap; }
}
.tabs { display: flex; flex-wrap: wrap; gap: 30px; padding-bottom: 12px; border-bottom: 1px solid var(--acid); }
.tab {
  padding: 0;
  border: none;
  background: none;
  color: var(--white);
  font-family: var(--text);
  font-weight: 400;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.tab:hover { color: var(--acid); }
.tab.is-active { color: var(--acid); font-weight: 600; }

.sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.scard {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  padding: 20px;
  border: 1px solid #333333;
  border-radius: var(--radius-img);
  transition: border-color 0.3s var(--ease);
}
.scard:hover { border-color: var(--acid); }
.scard__toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #2a2a2a;
  color: var(--acid);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}
.scard__toggle svg { width: 20px; height: 20px; }
.scard__toggle[aria-expanded='true'] { transform: rotate(180deg); background: var(--acid); color: var(--brand-ink); }
.scard__head { display: flex; flex-direction: column; gap: 6px; }
.scard__n { font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1; }
.scard__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 35px;
  line-height: 1.1;
  text-transform: uppercase;
}
.scard__body { margin-top: 16px; font-size: 16px; font-weight: 300; color: var(--silver); }
.scard__body[hidden] { display: none; }

/* ---------------------------------------------- блогеры: поиск и фильтры */
.shead--bloggers { align-items: center; }
.search { position: relative; width: 380px; max-width: 100%; }
.search__input {
  width: 100%;
  height: 40px;
  padding: 0 44px 0 22px;
  border: 1px solid var(--white);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--white);
  font-family: var(--text);
  font-weight: 300;
  font-size: 15px;
}
.search__input::placeholder { color: var(--silver); }
.search__input:focus { outline: none; border-color: var(--acid); }
.search__icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--white); pointer-events: none; }

.filters { margin-bottom: 40px; }
.filters__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0 0 14px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--white);
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  text-transform: uppercase;
  cursor: pointer;
}
.filters__toggle svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.filters__toggle[aria-expanded='true'] svg { transform: rotate(180deg); }
.filters__body { display: flex; flex-direction: column; gap: 22px; padding: 26px 0 0; }
.filters__body[hidden] { display: none; }
.filters__group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; }
.filters__title { width: 170px; flex: 0 0 auto; font-size: 16px; font-weight: 500; color: var(--silver); }
.filters__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 7px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--white);
  font-size: 15px;
  font-weight: 300;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chip:hover { border-color: var(--acid); }
.chip.is-active { background: var(--acid); border-color: var(--acid); color: var(--brand-ink); font-weight: 500; }
.filters__foot { display: flex; align-items: center; gap: 20px; padding-top: 6px; }
.filters__count { font-size: 15px; color: var(--silver); }
.filters__reset {
  padding: 0;
  border: none;
  background: none;
  color: var(--acid);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.bgrid__empty { margin-top: 40px; font-size: 18px; color: var(--silver); }

/* ------------------------------------------------------ страница блогера */
.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 25px;
  text-transform: uppercase;
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--acid); }
.crumbs__sep { display: inline-flex; width: 18px; height: 18px; }

.bio { display: grid; grid-template-columns: 455px minmax(0, 1fr); gap: 60px; align-items: start; }
.bio__photo { overflow: hidden; border-radius: var(--radius-img); aspect-ratio: 1 / 1; background: var(--line); }
.bio__photo img { width: 100%; height: 100%; object-fit: cover; }
.bio__body { display: flex; flex-direction: column; gap: 25px; align-items: flex-start; }
.bio__name {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 60px;
  line-height: 1;
  text-transform: uppercase;
}
.bio__pills { display: flex; flex-wrap: wrap; gap: 10px; }
.bio__text { font-size: 18px; font-weight: 300; line-height: 1.35; }
.bio__plats { display: flex; flex-wrap: wrap; gap: 40px; }
.bplat { display: flex; flex-direction: column; gap: 10px; }
.bplat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--acid);
  color: var(--brand-ink);
}
.bplat__icon svg { width: 22px; height: 22px; }
.bplat__count { font-family: var(--display); font-weight: 500; font-size: 25px; line-height: 1; }
.bplat__label { font-size: 13px; color: var(--silver); }
.bplat__link { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.bplat__link:hover .bplat__count { color: var(--acid); }
.bio__source { font-size: 14px; color: var(--silver); }
.bio__links a { display: inline-flex; gap: 8px; align-items: center; color: var(--acid); }
.bio__links svg { width: 20px; height: 20px; }
.bio__total { font-size: 16px; color: var(--silver); }

/* -------------------------------------------------------------- кейсы */
.cgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px 30px; }
.ccard { display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 120px; }
.ccard__title { margin: 0; font-family: var(--display); font-weight: 500; font-size: 32px; line-height: 1.1; text-transform: uppercase; }
.ccard__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ccard__tags .pill { font-size: 14px; padding: 5px 14px; }
.ccard__task { font-size: 16px; font-weight: 300; }
.ccard__task b { font-weight: 600; }
.ccard__did { display: flex; flex-direction: column; gap: 8px; font-size: 16px; font-weight: 300; color: var(--silver); }
.ccard__did li { position: relative; padding-left: 20px; }
.ccard__did li::before { content: '×'; position: absolute; left: 0; color: var(--acid); }
.ccard__metrics { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 6px; }
.ccard__metrics li { display: flex; flex-direction: column; gap: 4px; }
.ccard__value { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--acid); }
.ccard__label { font-size: 14px; color: var(--silver); }

/* ------------------------------------------------------------- новости */
.ncover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  overflow: hidden;
  aspect-ratio: 38 / 24;
  padding: 26px;
  border-radius: var(--radius-img);
  background: var(--ncover-bg);
  color: var(--ncover-fg);
}
.ncover--paper { --ncover-bg: var(--fixed-paper); --ncover-fg: var(--fixed-ink); }
.ncover--acid { --ncover-bg: var(--acid); --ncover-fg: var(--brand-ink); }
.ncover--pink { --ncover-bg: var(--pink); --ncover-fg: var(--brand-ink); }
.ncover--black { --ncover-bg: var(--fixed-ink); --ncover-fg: var(--fixed-white); }
.ncover .mark__a,
.ncover .mark__b { fill: var(--ncover-fg); }
.ncover .mark__x { fill: var(--ncover-bg); }

.ncover__logo {
  position: absolute;
  left: 26px;
  top: 22px;
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.ncover__logo .mark { width: 10px; height: 10px; margin-left: 4px; }
.ncover__pro { margin-left: 3px; color: var(--acid); }
.ncover--acid .ncover__pro { color: var(--black); }
/* Диагональная лента с паттерном бренда — как на обложках референса */
.ncover__strip {
  position: absolute;
  top: -34%;
  right: 12%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 168%;
  transform: rotate(18deg);
  transform-origin: center;
  background: var(--acid);
  color: var(--black);
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  line-height: 26px;
  text-align: center;
  white-space: nowrap;
  writing-mode: vertical-rl;
  overflow: hidden;
}
.ncover--acid .ncover__strip { background: var(--pink); }
.ncover--pink .ncover__strip { background: var(--acid); }
.ncover__top,
.ncover__bottom {
  position: relative;
  z-index: 2;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
  text-transform: uppercase;
}
.ncover__bottom { align-self: flex-start; padding: 2px 8px; background: var(--pink); color: var(--fixed-white); }
.ncover--pink .ncover__bottom { background: var(--fixed-ink); }

.ngrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 60px 30px; }
.ncard { display: flex; flex-direction: column; gap: 18px; }
.ncard__link { display: block; text-decoration: none; }
.ncard__title { margin: 0; font-family: var(--display); font-weight: 500; font-size: 32px; line-height: 1.1; text-transform: uppercase; }
.ncard__title a { text-decoration: none; transition: color 0.3s var(--ease); }
.ncard__title a:hover { color: var(--acid); }
.ncard__lead { font-size: 18px; font-weight: 300; color: var(--silver); }
.ncard__date { font-size: 14px; color: var(--steel); }

.article { max-width: 760px; margin: 0 auto; }
/* Хлебные крошки статьи выравниваем по колонке текста */
.section--article .crumbs { max-width: 760px; margin-left: auto; margin-right: auto; }
.article__title { margin: 0 0 20px; font-family: var(--display); font-weight: 700; font-size: 52px; line-height: 1.1; text-transform: uppercase; }
.article__lead { font-size: 20px; font-weight: 300; color: var(--silver); margin-bottom: 30px; }
.article .ncover--wide { aspect-ratio: 76 / 32; margin-bottom: 40px; }
.article__body { display: flex; flex-direction: column; gap: 20px; font-size: 18px; font-weight: 300; line-height: 1.5; }
.article__body h2 { margin: 20px 0 0; font-family: var(--display); font-weight: 500; font-size: 32px; line-height: 1.1; text-transform: uppercase; }
.article__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 50px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.article__cta-title { font-family: var(--display); font-weight: 500; font-size: 32px; text-transform: uppercase; }
.article__cta-text { font-size: 16px; font-weight: 300; color: var(--silver); }
.more { margin-top: 100px; }
.more__title { margin-bottom: 30px; font-family: var(--display); font-weight: 500; font-size: 40px; text-transform: uppercase; }

/* --------------------------------------------------------------- работа */
.careers-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.careers-about__text { display: flex; flex-direction: column; gap: 16px; font-size: 16px; font-weight: 300; }
.careers-about__text .shead__title { margin-bottom: 14px; }
.acc { color: var(--acid); font-weight: 600; }

/* Типографические обложки вместо фотографий: бегущая полоса «COLLABA PRO×»
   по верхнему краю, крупный заголовок «СЛОВО × СЛОВО», знак × в углу,
   лёгкий диагональный градиент. */
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 34px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-img);
  background: linear-gradient(135deg, #111111 0%, #000000 62%);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  text-align: center;
}
.tile__ribbon {
  position: absolute;
  left: 0;
  top: 14px;
  width: 100%;
  overflow: hidden;
  opacity: 0.3;
  pointer-events: none;
}
.tile__ribbon-track { display: flex; width: max-content; animation: slide 90s linear infinite; }
.tile__set {
  padding-right: 0.22em;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--fixed-white);
}
.tile__corner { position: absolute; right: 20px; bottom: 18px; width: 34px; height: 34px; opacity: 0.9; }
.tile__title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 0.2em;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 54px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--fixed-white);
}
.tile__part { white-space: nowrap; }
.tile__x { margin-right: 0.2em; color: var(--pink); }
.tile__sub {
  font-family: var(--text);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fixed-silver);
}
.tile { border-color: #2a2a2a; }
.tile .mark__x { fill: var(--fixed-white); }
.tile--acid { background: linear-gradient(135deg, #1b2300 0%, #000000 64%); border-color: #2e3a00; }
.tile--acid .tile__x { color: var(--acid); }
.tile--pink { background: linear-gradient(135deg, #290012 0%, #000000 64%); border-color: #3d0b20; }
.tile--big { aspect-ratio: 83 / 25; }
.tile--small { aspect-ratio: 28 / 25; }
.tile--small .tile__title { font-size: clamp(24px, 2.4vw, 34px); }
.tile--small .tile__sub { font-size: 12px; }
.tile--small .tile__corner { width: 26px; height: 26px; right: 16px; bottom: 14px; }

.careers-gallery { display: grid; grid-template-columns: minmax(0, 830fr) minmax(0, 280fr); gap: 30px; }

.careers-join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 60px; }
.careers-join__intro { display: flex; flex-direction: column; gap: 20px; font-size: 16px; font-weight: 300; }
.careers-join__title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 52px; line-height: 1.05; text-transform: uppercase; }
.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 30px; }
.perk { display: flex; flex-direction: column; gap: 10px; }
.perk__title { font-family: var(--display); font-weight: 500; font-size: 20px; text-transform: uppercase; }
.perk__text { font-size: 14px; font-weight: 300; color: var(--silver); }

.vacs { display: flex; flex-direction: column; margin-top: 40px; border-top: 1px solid var(--line); }
.vac { border-bottom: 1px solid var(--line); }
.vac__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto auto; gap: 30px; align-items: center; padding: 26px 0; }
.vac__title { font-family: var(--display); font-weight: 500; font-size: 25px; line-height: 1.1; text-transform: uppercase; color: var(--acid); }
.vac__short { font-size: 14px; font-weight: 300; color: var(--silver); }
.vac__chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: none;
  color: var(--white);
  cursor: pointer;
}
.vac__chev svg { width: 24px; height: 24px; transition: transform 0.3s var(--ease); }
.vac__chev[aria-expanded='true'] svg { transform: rotate(180deg); }
.vac__body { padding: 0 0 26px; font-size: 15px; font-weight: 300; color: var(--silver); }
.vac__body[hidden] { display: none; }
.vac__body-title { margin-bottom: 10px; font-family: var(--display); font-weight: 500; font-size: 18px; text-transform: uppercase; color: var(--white); }
.vac__body ul { display: flex; flex-direction: column; gap: 8px; }
.vac__body li { position: relative; padding-left: 20px; }
.vac__body li::before { content: '×'; position: absolute; left: 0; color: var(--acid); }

.internship { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 60px; }
.internship__left { display: flex; flex-direction: column; gap: 40px; align-items: flex-start; }
.internship__table { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.irow { display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr); gap: 30px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.irow__title { font-family: var(--display); font-weight: 500; font-size: 20px; text-transform: uppercase; }
.irow__text { font-size: 15px; font-weight: 300; color: var(--silver); }

/* ------------------------------------------------------- политика и 404 */
.legal { max-width: 760px; display: flex; flex-direction: column; gap: 16px; font-size: 16px; font-weight: 300; line-height: 1.5; overflow-wrap: anywhere; }
.legal h2 { margin: 24px 0 0; font-family: var(--display); font-weight: 500; font-size: 26px; text-transform: uppercase; }
.legal a { color: var(--acid); }
.legal__title { margin: 0 0 40px; font-family: var(--display); font-weight: 700; font-size: 52px; line-height: 1.1; text-transform: uppercase; }

.section--404 { display: flex; align-items: center; min-height: 100vh; padding-bottom: 120px; }
.e404 { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.e404__code { display: flex; align-items: center; gap: 20px; font-family: var(--display); font-weight: 700; font-size: 100px; line-height: 1; }
.e404__mark { display: inline-flex; width: 70px; height: 70px; }
.e404__text { font-family: var(--display); font-weight: 500; font-size: 40px; text-transform: uppercase; }
.e404__note { max-width: 520px; font-size: 18px; font-weight: 300; color: var(--silver); }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1279px) {
  :root { --pad: 30px; }
  .shead__title { font-size: 60px; }
  .bhead__num { font-size: 60px; }
  .cover--wide { height: 520px; }
  .footer__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.7fr) minmax(0, 0.85fr) minmax(0, 1.3fr); }
  .logo--xl { font-size: 56px; }
  /* 5 колонок при более узком контейнере — имя ужимаем, чтобы оно оставалось
     в одну строку и не вылезало за карточку. */
  .bcard__name { font-size: 19px; }
  .bcard__plats { gap: 14px; }
  .plat__count { font-size: 12px; }
}

@media (max-width: 1023px) {
  .section { padding-top: 90px; }
  main > .section:first-child { padding-top: calc(90px + var(--header-h)); }
  .hero__lines { gap: 8px; }
  .shead { flex-direction: column; align-items: flex-start; }
  .shead__aside { align-items: flex-start; }
  .shead__title { font-size: 48px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 170px; gap: 18px; }
  .stat__big { font-size: 58px; }
  .bgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; }
  .bcard__name { font-size: 22px; }
  .bhead { flex-direction: column; align-items: flex-start; }
  .bhead__num { font-size: 52px; }
  .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .depts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
  .manifest__text { font-size: 30px; }

  .tgrid { gap: 30px; }
  .tcard__row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tcard__text { text-align: left; }
  .bio { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .bio__photo { max-width: 455px; }
  .bio__name { font-size: 44px; }
  .ngrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cgrid { grid-template-columns: minmax(0, 1fr); }
  .careers-about,
  .careers-join,
  .internship { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .careers-gallery { grid-template-columns: minmax(0, 1fr); }
  .tile--big, .tile--small { aspect-ratio: 16 / 9; }
  .footer { padding: 70px var(--pad) 40px; }
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 50px 30px; }
  .footer__cta { align-items: flex-start; text-align: left; }
  .footer__contacts { align-items: flex-start; }
  .logo--xl { font-size: 48px; }
  .menu__panel { width: 78%; }
  .menu__item a { font-size: 44px; }
  .menu__brief { font-size: 44px; }
  .cover--wide { height: 420px; }
  .vac__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'title chev' 'short short' 'actions actions'; gap: 14px; }
  .vac__title { grid-area: title; }
  .vac__short { grid-area: short; }
  .vac__actions { grid-area: actions; }
  .vac__chev { grid-area: chev; }
}

@media (max-width: 767px) {
  :root { --pad: 20px; --header-h: 76px; }
  body { font-size: 16px; }
  /* тач-цели: кнопки и ссылки-«пилюли» не ниже 44px */
  .btn { min-height: 44px; }
  .header__logo,
  .logo--xl,
  .footer__brief { min-height: 44px; }
  .swiper-pagination-bullet { margin: 0 8px !important; }
  .tile { padding: 28px 18px 20px; gap: 8px; }
  /* Тайлы в слайдере: стрелки лежат поверх обложки — держим текст между ними */
  .tile--wide { padding-left: 58px; padding-right: 58px; }
  .tile__corner { width: 26px; height: 26px; right: 14px; bottom: 12px; }
  .tile__sub { font-size: 12px; letter-spacing: 0.06em; }
  .tile--small .tile__title { font-size: 26px; }
  .section { padding-top: 70px; }
  main > .section:first-child { padding-top: calc(70px + var(--header-h)); }
  .section__cta { margin-top: 40px; }

  .header__actions-item--contact,
  .header__actions-item--tg { display: none; }
  .logo { font-size: 26px; }

  .hero__inner { padding: calc(16px + var(--header-h)) 16px 40px; gap: 12px; }
  .hero__line { font-size: min(52px, 13.3vw); gap: 10px; color: var(--black); flex-wrap: wrap; }
  .hero__lines { gap: 4px; }
  .hero__amp { -webkit-text-stroke-width: 2px; }
  .hero__chip { flex-wrap: wrap; font-size: 15px; }
  .hero__chip-pill { padding: 8px 22px; font-size: 14px; }
  .hero__sub { margin-top: 16px; font-size: 16px; }
  .hero__buttons { flex-direction: column; width: 100%; margin-top: 20px; }
  .hero__btn { width: 100%; animation: none; font-size: 16px; }
  .marquee__set span { font-size: 26px; }

  .shead { margin-bottom: 36px; }
  .shead__title { font-size: 44px; }
  .shead__note { font-size: 16px; }

  .stats { grid-template-columns: 1fr; gap: 14px; }
  .stat { min-height: 180px; gap: 16px; padding: 22px 20px; border-radius: 12px; }
  .stat__big { font-size: 52px; }
  .stat__text { font-size: 16px; }

  .process { margin-top: 50px; }
  .process__title { font-size: 30px; }
  /* На мобайле листаем свайпом и точками — стрелки съедали бы ширину слайда */
  .slider--process .sarrow { display: none; }

  .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 16px; }
  .bcard__name { font-size: 18px; }
  .bcard__plats { gap: 14px; }
  .plat__count { font-size: 12px; }
  .bhead__num { font-size: 40px; }
  .bhead__note { font-size: 16px; }

  .cover--wide { height: 320px; }
  .cover__sub { margin-top: 12px; font-size: 12px; }
  .caseslide__caption { left: 12px; bottom: 12px; padding: 8px 18px; font-size: 14px; }
  .slider--cases .sarrow--prev, .slider--photos .sarrow--prev { left: 10px; }
  .slider--cases .sarrow--next, .slider--photos .sarrow--next { right: 10px; }

  .manifest__row { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 20px 0; }
  .manifest__n { font-size: 20px; }
  .manifest__text { font-size: 24px; }

  .tgrid { grid-template-columns: 1fr; gap: 34px; margin-bottom: 50px; }
  .tcard__body { gap: 10px; }
  .tcard__name { font-size: 26px; }
  .tcard__role { font-size: 13px; }
  .tcard__text, .tcard__quote { font-size: 15px; }
  .ttile { aspect-ratio: auto; padding: 28px; }
  .ttile__text { font-size: 22px; }
  .depts { grid-template-columns: 1fr; gap: 24px; padding-bottom: 70px; }

  /* На мобайле полоса площадок превращается в бегущую строку */
  .pbar { height: auto; padding: 18px 0; flex-direction: column; align-items: stretch; gap: 12px; }
  .pbar__label { padding: 0 var(--pad); }
  .pbar__track { width: max-content; animation: slide 32s linear infinite; }
  .pbar__list {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 28px;
    width: max-content;
    padding-right: 28px;
  }
  .pbar__list--clone { display: flex; }

  .sgrid { grid-template-columns: 1fr; }
  .scard { min-height: 200px; }
  .scard__title { font-size: 28px; }

  /* Табы услуг — горизонтальный скролл-ряд вместо переноса */
  .tabs {
    width: 100%;
    flex-wrap: nowrap;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; white-space: nowrap; }

  .shead--bloggers, .shead--services { gap: 20px; }
  .shead--bloggers, .shead--services, .shead__text, .shead__aside { width: 100%; }
  .search { width: 100%; }
  .filters__group { flex-direction: column; align-items: flex-start; gap: 8px; }
  .filters__title { width: auto; }
  .filters__chips { gap: 8px; }

  .crumbs { font-size: 18px; margin-bottom: 24px; }
  .bio__name { font-size: 36px; }
  .bio__plats { gap: 24px; }

  .ngrid { grid-template-columns: 1fr; gap: 40px; }
  .ncard__title { font-size: 26px; }
  .ncard__lead { font-size: 16px; }
  .article__title { font-size: 34px; }
  .article__lead { font-size: 17px; }
  .article__body { font-size: 16px; }
  .article__body h2 { font-size: 24px; }
  .article__cta { padding: 24px; }
  .more { margin-top: 60px; }
  .more__title { font-size: 30px; }

  .careers-join__title { font-size: 34px; }
  .perks { grid-template-columns: 1fr; gap: 26px; }
  .irow { grid-template-columns: 1fr; gap: 8px; }
  .btn--tall { min-height: 64px; width: 100%; font-size: 17px; }

  .legal__title { font-size: 30px; }
  .e404__code { font-size: 64px; }
  .e404__mark { width: 46px; height: 46px; }
  .e404__text { font-size: 28px; }

  /* Меню на мобайле — во всю ширину и целиком помещается на экран */
  .menu__panel { width: 100%; padding: 80px var(--pad) 20px; gap: 20px; }
  .menu__top { right: var(--pad); }
  .menu__body { flex-direction: column; gap: 22px; }
  .menu__main { gap: 4px; }
  .menu__item a { font-size: 30px; min-height: 44px; }
  .menu__side { gap: 22px; }
  .menu__bottom { flex-direction: row; align-items: center; gap: 16px; }
  .menu__brief { font-size: 28px; }

  .modal__panel { padding: 60px 20px 30px; }
  .modal__title { font-size: 40px; }
  .modal__subtitle { font-size: 18px; }
  .modal__close { top: 16px; right: 16px; }
  .form__submit { height: 64px; font-size: 24px; }
  .field { font-size: 16px; }

  .footer { padding: 50px var(--pad) 30px; }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__brand { gap: 30px; }
  .logo--xl { font-size: 40px; }
  .footer__col-title { font-size: 30px; }
  .footer__brief { font-size: 30px; }
  .footer__note { margin-top: 30px; font-size: 12px; }

  .cookie { flex-direction: column; align-items: stretch; gap: 12px; text-align: center; }

  /* --- Тач-цели: все интерактивные элементы не меньше 44×44 --- */
  .burger,
  .icon-btn,
  .sarrow,
  .social,
  .vac__chev,
  .scard__toggle { width: 44px; height: 44px; }
  .scard__toggle { top: 16px; right: 16px; }
  .chip { min-height: 44px; padding: 10px 18px; }
  .tab { min-height: 44px; display: inline-flex; align-items: center; }
  .search__input { height: 44px; }
  .filters__toggle { min-height: 44px; }
  .filters__reset,
  .cookie__accept,
  .footer__policy,
  .crumbs a { min-height: 44px; display: inline-flex; align-items: center; }
  .cookie__accept { justify-content: center; }
  .footer__list,
  .footer__contacts,
  .menu__services,
  .menu__contacts { gap: 4px; }
  .footer__list a,
  .footer__contacts a,
  .menu__services a,
  .menu__contacts a { min-height: 44px; display: inline-flex; align-items: center; }
  .bcard__name { min-height: 44px; display: inline-flex; align-items: center; }
  .menu__item a { display: inline-flex; align-items: center; min-height: 48px; }
  .socials { gap: 16px; }
}

@media (max-width: 374px) {
  .hero__line { font-size: 42px; }
  .shead__title { font-size: 36px; }
  .bgrid { grid-template-columns: 1fr; }
}

/* --------------------------------------------- уважение к reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .marquee__track,
  .tile__ribbon-track,
  .pbar__list,
  .hero__orb-ring { animation: none !important; }
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__toggle { width: 69px; }
}

/* ------------------------------------- переключение темы: «распыление» (C) */
.dust {
  position: fixed;
  inset: 0;
  z-index: 1500;
  pointer-events: none;
}
/* Только transition, без animation: собственные keyframes элементов
   (widen у кнопок hero, fadeIn) не должны перезапускаться после уборки. */
/* Элемент не исчезает разом: тает за 260 мс, пока на его месте проявляются
   частицы. Blur одинаковый в обе стороны (3px) — на возврате нет скачка. */
.is-dust-hidden {
  opacity: 0 !important;
  filter: blur(3px) !important;
  transition: opacity 260ms linear !important, filter 260ms linear !important;
}
.is-dust-in {
  opacity: 1;
  filter: blur(0);
  transition: opacity 260ms var(--ease) !important, filter 260ms var(--ease) !important;
}
@media (prefers-reduced-motion: reduce) {
  .is-dust-hidden { opacity: 1 !important; filter: none !important; }
  .is-dust-in { transition: none !important; }
}

/* ---- инвертированная тема: контраст мелкого текста и рамок ----------------
   Acid Green как ЗАЛИВКА не меняется (кнопки, карточки-цифры, бегущая строка,
   лого, крупные дисплейные заголовки). Но зелёный ТЕКСТ 15–25px на бумаге
   нечитаем, поэтому в инверсии он темнеет до --acid-ink. */
html[data-theme='inverted'] { --acid-ink: #4c6300; }

html[data-theme='inverted'] .acc,
html[data-theme='inverted'] .legal a,
html[data-theme='inverted'] .cookie__text a,
html[data-theme='inverted'] .form__status,
html[data-theme='inverted'] .filters__reset,
html[data-theme='inverted'] .tab:hover,
html[data-theme='inverted'] .tab.is-active,
html[data-theme='inverted'] .tcard__role,
html[data-theme='inverted'] .tcard__quote,
html[data-theme='inverted'] .vac__title,
html[data-theme='inverted'] .vac__body li::before,
html[data-theme='inverted'] .ccard__did li::before,
html[data-theme='inverted'] .pill--acid,
html[data-theme='inverted'] .btn--acid-outline,
html[data-theme='inverted'] .menu__item a:hover,
html[data-theme='inverted'] .menu__services a:hover,
html[data-theme='inverted'] .menu__contacts a:hover,
html[data-theme='inverted'] .footer__policy:hover,
html[data-theme='inverted'] .footer__list a:hover,
html[data-theme='inverted'] .footer__contacts a:hover,
html[data-theme='inverted'] .crumbs a:hover,
html[data-theme='inverted'] .ncard__title a:hover,
html[data-theme='inverted'] .bcard__name:hover,
html[data-theme='inverted'] .sarrow--plain:hover,
/* крупный дисплейный текст акцентом: на бумаге чистый Acid нечитаем */
html[data-theme='inverted'] .footer__col-title,
html[data-theme='inverted'] .footer__brief,
html[data-theme='inverted'] .footer__star,
html[data-theme='inverted'] .menu__brief,
html[data-theme='inverted'] .dept__title,
html[data-theme='inverted'] .manifest__n,
html[data-theme='inverted'] .manifest__acc,
html[data-theme='inverted'] .step__n,
html[data-theme='inverted'] .scard__n,
html[data-theme='inverted'] .ccard__value,
html[data-theme='inverted'] .bhead__num .counter__last,
html[data-theme='inverted'] .counter--last-acid .counter__last,
html[data-theme='inverted'] .form__status { color: var(--acid-ink); }

html[data-theme='inverted'] .btn--acid-outline,
html[data-theme='inverted'] .pill--acid { border-color: var(--acid-ink); }
html[data-theme='inverted'] .btn--acid-outline:hover { color: var(--brand-ink); border-color: var(--acid); }
html[data-theme='inverted'] .field:focus,
html[data-theme='inverted'] .search__input:focus,
html[data-theme='inverted'] .scard:hover,
html[data-theme='inverted'] .chip:hover { border-color: var(--acid-ink); }
html[data-theme='inverted'] .tabs { border-bottom-color: var(--acid-ink); }

/* Бумажные обложки в инверсии не сливаются с бумажным фоном страницы */
html[data-theme='inverted'] .cover--paper,
html[data-theme='inverted'] .ncover--paper { box-shadow: inset 0 0 0 1px #dcd9d1; }

/* ==========================================================================
   UGC-МАРКЕТПЛЕЙС: лендинги, вход, кабинеты (MARKETPLACE-SPEC §4)
   Те же токены и та же пластика, что и на остальном сайте.
   ========================================================================== */

/* ------------------------------------------------------- кнопка «Войти» */
.header__actions-item--login { display: flex; }
.header__login { width: 110px; }
.menu__bottom-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.menu__login { min-height: 44px; }
.menu__services--market a { color: var(--acid); }
.menu__services--market a:hover { color: var(--white); }
html[data-theme='inverted'] .menu__services--market a { color: var(--acid-ink); }

/* ------------------------------------------------------------ hero лендингов */
.mk-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 620px;
  padding: calc(var(--header-h) + 60px) 0 70px;
  background: var(--paper);
  color: var(--black);
}
.mk-hero__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.mk-hero__chip { display: flex; align-items: center; gap: 14px; }
.mk-hero__chip .hero__chip-pill { background: var(--black); color: var(--paper); }
.mk-hero__mark { display: inline-flex; width: 26px; height: 26px; --mark-notch: var(--paper); }
.mk-hero__title {
  margin: 0;
  max-width: 15ch;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6.6vw, 92px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.mk-hero__sub { max-width: 62ch; font-size: 18px; font-weight: 300; line-height: 1.35; }
.mk-hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.mk-hero__btn { min-height: 52px; padding: 12px 34px; font-size: 16px; }

/* --------------------------------------------------------------- секции */
.section--mk { padding: 110px 0; }
.section--mk-calc { padding-top: 0; }
.section--mk-cta { padding: 110px 0; border-top: 1px solid var(--line); }
.mk-legal { margin-top: 30px; font-size: 14px; color: var(--silver); }

/* ----------------------------------------------------------------- шаги */
.mk-steps { margin-top: 10px; }
.mk-benefits + .mk-steps { margin-top: 70px; }
.mk-niches + .mk-faq { margin-top: 60px; }
.mk-steps__title {
  margin: 0 0 30px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  text-transform: uppercase;
}
.mk-steps__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; margin: 0; padding: 0; list-style: none; }
.mk-step { display: flex; flex-direction: column; gap: 12px; padding-right: 10px; }
.mk-step__n { font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1; color: var(--acid); }
.mk-step__lead { font-size: 16px; font-weight: 600; }
.mk-step__text { font-size: 16px; font-weight: 300; color: var(--silver); }
html[data-theme='inverted'] .mk-step__n { color: var(--acid-ink); }

/* ------------------------------------------------------------- обещания */
.mk-promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 60px; }
.mk-promise {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 170px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.mk-promise__value { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--acid); }
.mk-promise__title { font-family: var(--display); font-weight: 500; font-size: 20px; text-transform: uppercase; }
.mk-promise__text { margin-top: auto; font-size: 14px; font-weight: 300; color: var(--silver); }
html[data-theme='inverted'] .mk-promise__value { color: var(--acid-ink); }

/* --------------------------------------------------------------- выгоды */
.mk-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.mk-benefit {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 26px 26px 70px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: border-color 0.3s var(--ease);
}
.mk-benefit:hover { border-color: var(--acid); }
.mk-benefit__mark { position: absolute; left: 24px; top: 26px; width: 28px; height: 28px; }
.mk-benefit__title { font-family: var(--display); font-weight: 500; font-size: 25px; line-height: 1.1; text-transform: uppercase; }
.mk-benefit__text { font-size: 16px; font-weight: 300; color: var(--silver); }

/* ---------------------------------------------------------- бенчмарки */
.mk-bench {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.mk-bench__title { font-family: var(--display); font-weight: 500; font-size: 25px; text-transform: uppercase; }
.mk-bench__list { display: flex; flex-direction: column; gap: 10px; }
.mk-bench__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 300;
}
.mk-bench__row b { font-weight: 600; color: var(--acid); white-space: nowrap; }
.mk-bench__note { font-size: 13px; color: var(--silver); }
html[data-theme='inverted'] .mk-bench__row b { color: var(--acid-ink); }

/* ----------------------------------------------------------- калькуляторы */
.mk-money { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.mk-money--single { grid-template-columns: minmax(0, 1fr); }

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 30px;
  padding: 30px;
  border: 1px solid var(--acid);
  border-radius: var(--radius-card);
}
.calc__controls { display: flex; flex-direction: column; gap: 20px; }
.calc__kicker {
  font-family: var(--display);
  font-weight: 500;
  font-size: 25px;
  text-transform: uppercase;
  color: var(--acid);
}
html[data-theme='inverted'] .calc__kicker { color: var(--acid-ink); }
.calc__field { display: flex; flex-direction: column; gap: 10px; }
.calc__label { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; font-weight: 300; color: var(--silver); }
.calc__val { font-family: var(--display); font-weight: 500; font-size: 18px; color: var(--white); }
.calc__hint { font-size: 13px; color: var(--silver); }
.calc__opts { display: flex; flex-direction: column; gap: 14px; }
.calc__opts .check__text i { font-style: normal; color: var(--acid); }
html[data-theme='inverted'] .calc__opts .check__text i { color: var(--acid-ink); }

.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--line); }
.range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -10px;
  border: none;
  border-radius: 50%;
  background: var(--acid);
}
.range::-moz-range-thumb { width: 24px; height: 24px; border: none; border-radius: 50%; background: var(--acid); }
.range:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }

.calc__out {
  display: flex;
  flex-direction: column;
  align-self: start;
  gap: 12px;
  padding: 26px;
  border-radius: var(--radius-card);
  background: rgba(200, 255, 0, 0.06);
}
.calc__row { display: flex; justify-content: space-between; gap: 14px; font-size: 15px; font-weight: 300; }
.calc__row b { font-family: var(--display); font-weight: 500; font-size: 20px; white-space: nowrap; }
.calc__row--total { padding-top: 12px; border-top: 1px solid var(--line); }
.calc__row--total b { font-size: 32px; color: var(--acid); }
html[data-theme='inverted'] .calc__row--total b { color: var(--acid-ink); }
.calc__per { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; color: var(--silver); }
.calc__per b { font-weight: 600; color: var(--white); white-space: nowrap; }
.calc__warn { font-size: 14px; color: var(--pink); }
.calc__cta { margin-top: 8px; min-height: 52px; }
.calc__legal { font-size: 13px; color: var(--silver); }

.field--select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 9 7 7 7-7' fill='none' stroke='%23C8FF00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 18px;
  cursor: pointer;
}
.field--select option { background: var(--black); color: var(--white); }
html[data-theme='inverted'] .field--select option { background: #ffffff; color: #0a0a0a; }

/* -------------------------------------------------------------------- FAQ */
.mk-faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.mk-faq__item { border-bottom: 1px solid var(--line); }
.mk-faq__q { margin: 0; }
.mk-faq__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 44px;
  padding: 24px 0;
  border: none;
  background: transparent;
  color: inherit;
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.mk-faq__btn:hover { color: var(--acid); }
.mk-faq__btn svg { width: 24px; height: 24px; flex: 0 0 auto; transition: transform 0.3s var(--ease); }
.mk-faq__btn[aria-expanded='true'] { color: var(--acid); }
.mk-faq__btn[aria-expanded='true'] svg { transform: rotate(180deg); }
.mk-faq__a { padding: 0 0 24px; max-width: 90ch; font-size: 16px; font-weight: 300; line-height: 1.5; color: var(--silver); }
.mk-faq__a[hidden] { display: none; }
html[data-theme='inverted'] .mk-faq__btn:hover,
html[data-theme='inverted'] .mk-faq__btn[aria-expanded='true'] { color: var(--acid-ink); }

/* --------------------------------------------------------- витрина и ниши */
.mk-showcase { display: flex; flex-direction: column; gap: 24px; }
.mk-showcase__note,
.bgrid__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 300;
  color: var(--silver);
}
.bgrid__note { margin-bottom: 24px; }
.bgrid--partners { grid-template-columns: repeat(auto-fit, minmax(200px, 280px)); }
.bgrid--partners .bcard__name { white-space: normal; }
.section--bloggers .bgrid__note { margin-top: 28px; max-width: 760px; line-height: 1.5; }
@media (max-width: 600px) {
  .bgrid--partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bgrid--partners .bcard__meta { font-size: 12px; overflow-wrap: anywhere; }
}
@media (max-width: 320px) {
  .bgrid--partners { grid-template-columns: 1fr; }
}
.mk-showcase__note a,
.bgrid__note a { color: var(--acid); }
html[data-theme='inverted'] .mk-showcase__note a,
html[data-theme='inverted'] .bgrid__note a { color: var(--acid-ink); }
.badge--demo { border: 1px solid var(--silver); color: var(--silver); }
.is-live .badge--demo { display: none; }
.mk-niches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }

/* -------------------------------------------------------- карточка из API */
.bcard__photo--avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-img);
  background: linear-gradient(135deg, #1b2300 0%, #000000 66%);
  border: 1px solid #2e3a00;
}
.bcard__initials {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  color: var(--acid);
}
.bcard--api .bcard__name { cursor: default; }
.bcard__meta { font-size: 14px; font-weight: 300; color: var(--silver); }
.bcard__price { font-family: var(--display); font-weight: 500; font-size: 18px; color: var(--acid); }
html[data-theme='inverted'] .bcard__price { color: var(--acid-ink); }
.plat__icon--text { font-family: var(--display); font-weight: 700; font-size: 10px; letter-spacing: 0.02em; }

/* ------------------------------------------------------------ финальный CTA */
.mk-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.mk-cta__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.05;
  text-transform: uppercase;
}
.mk-cta__text { max-width: 60ch; font-size: 18px; font-weight: 300; color: var(--silver); }
.mk-cta__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }

/* ==================================================== модалка входа */
.modal__panel--auth { width: min(560px, 100%); padding: 46px 50px 40px; }
.modal__panel--auth .modal__title { font-size: 36px; max-width: 78%; }
.modal__panel--auth .modal__subtitle { font-size: 16px; color: var(--silver); }
.auth__roles { display: flex; gap: 10px; margin-top: 22px; }
.auth__role {
  flex: 1 1 0;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--white);
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.auth__role:hover { border-color: var(--acid); }
.auth__role.is-active { background: var(--acid); border-color: var(--acid); color: var(--brand-ink); }
.auth__modes { display: flex; gap: 22px; margin-top: 18px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.auth__mode {
  min-height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--silver);
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.auth__mode:hover { color: var(--white); }
.auth__mode.is-active { color: var(--acid); }
html[data-theme='inverted'] .auth__mode.is-active { color: var(--acid-ink); }
.auth__form { margin-top: 22px; gap: 12px; }
.auth__form .form__submit { height: 60px; font-size: 22px; }
.auth__switch { margin-top: 18px; font-size: 14px; color: var(--silver); }
.form__status.is-error { color: var(--pink); }
.check__box--radio { border-radius: 50%; }

/* ======================================================== кабинеты /app/ */
.section--app { padding: calc(var(--header-h) + 60px) 0 100px; }
.app-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.app-head__text { display: flex; flex-direction: column; gap: 10px; }
.app-head__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--text);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver);
}
.app-head__mark { display: inline-flex; width: 18px; height: 18px; }
.app-head__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.05;
  text-transform: uppercase;
}
.app-head__note { font-size: 16px; font-weight: 300; color: var(--silver); }
.app-head__user { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.app-head__name { font-family: var(--display); font-weight: 500; font-size: 22px; text-transform: uppercase; }
.app-head__email { font-size: 14px; color: var(--silver); }
.app-head__actions { margin-top: 8px; }
.app-head__btn { min-height: 44px; }

.app-gate {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.app-gate__text { font-family: var(--display); font-weight: 500; font-size: 28px; text-transform: uppercase; }
.app-gate__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.app-gate__hint { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 15px; color: var(--silver); }

.app-tabs { gap: 24px; }
.app-tab { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.app-tab__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--pink);
  color: var(--brand-ink);
  font-family: var(--text);
  font-weight: 700;
  font-size: 12px;
}
.app-panels { margin-top: 36px; }
.app-panel { display: flex; flex-direction: column; gap: 22px; }
.app-panel[hidden] { display: none; }
.app-panel__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  text-transform: uppercase;
}
.app-panel__note { font-size: 15px; font-weight: 300; color: var(--silver); }
.app-sub { margin: 10px 0 0; font-family: var(--display); font-weight: 500; font-size: 25px; text-transform: uppercase; color: var(--acid); }
html[data-theme='inverted'] .app-sub { color: var(--acid-ink); }

.app-toast {
  padding: 14px 22px;
  margin-bottom: 20px;
  border: 1px solid var(--acid);
  border-radius: var(--radius-pill);
  font-size: 15px;
  color: var(--acid);
}
.app-toast.is-error { border-color: var(--pink); color: var(--pink); }
html[data-theme='inverted'] .app-toast { border-color: var(--acid-ink); color: var(--acid-ink); }

.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.app-actions__note { font-size: 14px; color: var(--silver); }

.app-formwrap[hidden] { display: none; }
.app-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.app-form__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.app-form__opts { display: flex; flex-wrap: wrap; gap: 18px 30px; }
.app-form__opts .check__text i { font-style: normal; color: var(--acid); }
html[data-theme='inverted'] .app-form__opts .check__text i { color: var(--acid-ink); }
.app-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.app-form__total { font-size: 15px; color: var(--acid); }
html[data-theme='inverted'] .app-form__total { color: var(--acid-ink); }
.app-form__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.app-form__buttons .btn { min-height: 48px; }
.app-form__status { font-size: 15px; color: var(--acid); }
.app-form__status.is-error { color: var(--pink); }
html[data-theme='inverted'] .app-form__status { color: var(--acid-ink); }

.app-field { display: flex; flex-direction: column; gap: 8px; }
.app-field--wide { grid-column: 1 / -1; }
.app-field__label { font-size: 14px; font-weight: 500; color: var(--silver); }
.app-field__label i { font-style: normal; color: var(--pink); }
.app-field__hint { font-size: 13px; color: var(--silver); }
.app-field .field { height: 52px; padding: 0 22px; font-size: 16px; }
.app-field .field--area { height: auto; min-height: 96px; padding: 16px 22px; }

.app-checks { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.check--chip { align-items: center; min-height: 44px; }

.app-socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.app-social { display: grid; grid-template-columns: 110px minmax(0, 1.4fr) minmax(0, 0.8fr); gap: 10px; align-items: center; }
.app-social__label { font-size: 14px; color: var(--silver); }
.app-social .field { height: 48px; padding: 0 18px; font-size: 15px; }

.app-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.app-filter { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--silver); }
.app-filter .field { height: 48px; padding: 0 20px; font-size: 15px; min-width: 190px; }
.app-filters .btn { min-height: 48px; }

.app-list { display: flex; flex-direction: column; gap: 20px; }
.app-empty { font-size: 16px; font-weight: 300; color: var(--silver); }

/* ------------------------------------------------------------ карточки */
.acard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: border-color 0.3s var(--ease);
}
.acard:hover { border-color: var(--steel); }
.acard__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 6px; }
.acard__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 25px;
  line-height: 1.1;
  text-transform: uppercase;
}
.acard__row { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; font-weight: 300; }
.acard__key { color: var(--silver); }
.acard__val { font-weight: 600; text-align: right; }
.acard__text { font-size: 15px; font-weight: 300; line-height: 1.45; }
.acard__text--muted { color: var(--silver); }
.acard__note { font-size: 15px; color: var(--acid); }
html[data-theme='inverted'] .acard__note { color: var(--acid-ink); }
.acard__date { font-size: 13px; color: var(--steel); }
.acard__invoice {
  padding: 14px 18px;
  border: 1px dashed var(--acid);
  border-radius: var(--radius-img);
  font-size: 14px;
  font-weight: 300;
  color: var(--silver);
}
.acard__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.acard__actions .btn { min-height: 44px; font-size: 15px; }
.acard__empty { font-size: 15px; color: var(--silver); }
.acard__reason { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.acard__reason .field { height: 48px; padding: 0 20px; font-size: 15px; flex: 1 1 240px; }
.acard__reason .btn { min-height: 48px; }
.acard__reason[hidden] { display: none; }
.acard__reason-text { font-size: 14px; color: var(--pink); }

.acard__resps { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.acard__resps[hidden] { display: none; }
.acard__resp {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-img);
  background: rgba(255, 255, 255, 0.02);
}
.acard__resp-name { font-family: var(--display); font-weight: 500; font-size: 20px; text-transform: uppercase; }
.acard__resp-meta { font-size: 14px; color: var(--acid); }
html[data-theme='inverted'] .acard__resp-meta { color: var(--acid-ink); }
.acard__resp-msg { font-size: 15px; font-weight: 300; color: var(--silver); }
.acard__resp-links { display: flex; flex-wrap: wrap; gap: 12px; }
.acard__link { font-size: 14px; color: var(--acid); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
html[data-theme='inverted'] .acard__link { color: var(--acid-ink); }

.acard__files { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.acard__file { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px; border-left: 2px solid var(--acid); }
.acard__file-title { font-size: 14px; font-weight: 600; }
.acard__file-note { font-size: 14px; color: var(--silver); }

.acard__form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.acard__form .field { height: 48px; padding: 0 18px; font-size: 15px; flex: 1 1 180px; min-width: 120px; }
.acard__form .field--area { height: auto; min-height: 72px; padding: 14px 18px; flex-basis: 100%; }
.acard__form .btn { min-height: 48px; }
.acard__form-label { font-size: 13px; color: var(--silver); }
.acard__form--deliver { flex-direction: column; align-items: stretch; }

.acard__chat { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.acard__chat[hidden] { display: none; }
.chat__list { display: flex; flex-direction: column; gap: 10px; max-height: 260px; overflow-y: auto; padding-right: 6px; }
.chat__msg { padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-img); }
.chat__msg--mine { border-color: var(--acid); }
.chat__author { font-size: 12px; color: var(--steel); }
.chat__text { font-size: 15px; font-weight: 300; }
.chat__empty { font-size: 14px; color: var(--silver); }
.chat__form { display: flex; flex-wrap: wrap; gap: 10px; }
.chat__form .field { flex: 1 1 220px; height: 48px; padding: 0 18px; font-size: 15px; }
.chat__send { min-height: 48px; padding: 10px 26px; }

.acard--notif { gap: 6px; padding: 18px 22px; }
.acard--notif.is-new { border-color: var(--acid); }

.badge--grey { border: 1px solid var(--silver); color: var(--silver); }
.badge--acid { background: var(--acid); color: var(--brand-ink); }
.badge--pink { background: var(--pink); color: var(--brand-ink); }

/* ----------------------------------------------------------------- цифры */
.app-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.app-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.app-stat__value { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1; color: var(--acid); }
.app-stat__label { font-size: 14px; color: var(--silver); }
html[data-theme='inverted'] .app-stat__value { color: var(--acid-ink); }

/* ---------------------------------------------------------- Telegram-блок */
.app-tg {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.app-tg__title { font-family: var(--display); font-weight: 500; font-size: 22px; text-transform: uppercase; }
.app-tg__text { font-size: 15px; font-weight: 300; color: var(--silver); }
.app-tg__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.app-tg__row .btn { min-height: 44px; }
.app-tg__code { font-family: var(--display); font-weight: 500; font-size: 18px; color: var(--acid); overflow-wrap: anywhere; }
html[data-theme='inverted'] .app-tg__code { color: var(--acid-ink); }

/* ------------------------------------------------------------ выбор роли */
.app-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.app-choice__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  text-decoration: none;
  transition: border-color 0.3s var(--ease);
}
.app-choice__card:hover { border-color: var(--acid); }
.app-choice__title { font-family: var(--display); font-weight: 700; font-size: 34px; text-transform: uppercase; }
.app-choice__text { font-size: 15px; font-weight: 300; color: var(--silver); }
.app-choice__go { margin-top: auto; display: inline-flex; width: 28px; height: 28px; color: var(--acid); }
.app-choice__go svg { width: 100%; height: 100%; }
html[data-theme='inverted'] .app-choice__go { color: var(--acid-ink); }

/* =========================================================== адаптив */
@media (max-width: 1023px) {
  .mk-steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-benefits { grid-template-columns: minmax(0, 1fr); }
  .mk-money { grid-template-columns: minmax(0, 1fr); }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .app-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-socials { grid-template-columns: minmax(0, 1fr); }
  .app-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-choice { grid-template-columns: minmax(0, 1fr); }
  .section--mk { padding: 80px 0; }
  .section--mk-cta { padding: 80px 0; }
}

@media (max-width: 767px) {
  .header__actions-item--login { display: flex; }
  .header__login { width: auto; min-width: 88px; padding: 0 16px; height: 40px; font-size: 13px; }
  .mk-hero { min-height: 0; padding: calc(var(--header-h) + 30px) 0 50px; }
  .mk-hero__inner { gap: 16px; }
  .mk-hero__sub { font-size: 16px; }
  .mk-hero__buttons { width: 100%; flex-direction: column; }
  .mk-hero__btn { width: 100%; }
  .section--mk { padding: 60px 0; }
  .section--mk-calc { padding-top: 0; }
  .section--mk-cta { padding: 60px 0; }
  .section--app { padding: calc(var(--header-h) + 30px) 0 70px; }

  .mk-steps__list { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .mk-steps__title { font-size: 26px; }
  .mk-promises { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .mk-promise { min-height: 0; }
  .mk-benefit { padding: 22px 20px 22px 60px; }
  .mk-benefit__mark { left: 18px; top: 22px; width: 24px; height: 24px; }
  .mk-benefit__title { font-size: 21px; }
  .mk-bench { padding: 22px 20px; }
  .mk-bench__row { flex-direction: column; gap: 4px; }
  .calc { padding: 22px 18px; gap: 22px; }
  .calc__out { padding: 20px 18px; }
  .calc__row--total b { font-size: 26px; }
  .mk-faq__btn { font-size: 18px; padding: 18px 0; }
  .mk-cta__text { font-size: 16px; }
  .mk-cta__buttons { width: 100%; flex-direction: column; }
  .mk-cta__buttons .btn { width: 100%; }

  .modal__panel--auth { padding: 56px 20px 30px; }
  .modal__panel--auth .modal__title { font-size: 30px; }
  .auth__roles { flex-direction: row; }
  .auth__role { font-size: 15px; padding: 10px 12px; }
  .auth__form .form__submit { height: 56px; font-size: 19px; }

  .app-head { flex-direction: column; }
  .app-head__user { align-items: flex-start; text-align: left; }
  .app-gate { padding: 26px 20px; }
  .app-gate__text { font-size: 22px; }
  .app-tabs { gap: 16px; }
  .app-panel__title { font-size: 26px; }
  .app-form { padding: 20px 16px; }
  .app-form__grid { grid-template-columns: minmax(0, 1fr); }
  .app-social { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .app-filter .field { min-width: 0; width: 100%; }
  .app-filter { width: 100%; }
  .app-stats { grid-template-columns: minmax(0, 1fr); }
  .acard { padding: 20px 16px; }
  .acard__title { font-size: 21px; }
  .acard__row { flex-direction: column; gap: 2px; }
  .acard__val { text-align: left; }
  .acard__actions .btn { width: 100%; }
  .acard__form .field { flex-basis: 100%; }
  .acard__form .btn { width: 100%; }
  .chat__form .field { flex-basis: 100%; }
  .chat__send { width: 100%; }
  .app-choice__title { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .mk-benefit,
  .acard,
  .app-choice__card,
  .mk-faq__btn svg { transition: none; }
}
