:root {
  --paper: #f8f4ef;
  --ink: #413029;
  --brown: #754e35;
  --accent: #d6975c;
  --line: rgba(65, 48, 41, 0.15);
  --muted: rgba(65, 48, 41, 0.58);
  --header-bg: #f8f4ef;
  --hero-bg: #f8f4ef;
  --clients-bg: #f8f4ef;
  --problem-bg: #f8f4ef;
  --formats-bg: #f8f4ef;
  --card-bg: rgba(255, 255, 255, 0.08);
  --button-ink: #ffffff;
  --accent-ink: #ffffff;
  --page: 1208px;
}

html[data-theme="2"] {
  --paper: #ffffff;
  --ink: #151515;
  --brown: #ff6a00;
  --accent: #ff8a1f;
  --line: rgba(21, 21, 21, 0.14);
  --muted: rgba(21, 21, 21, 0.58);
  --header-bg: #ffffff;
  --hero-bg: #ffffff;
  --clients-bg: #fff5eb;
  --problem-bg: #ffffff;
  --formats-bg: #fffaf5;
  --card-bg: rgba(255, 106, 0, 0.035);
  --button-ink: #ffffff;
}

html[data-theme="3"] {
  --paper: #0d0d0d;
  --ink: #fffaf4;
  --brown: #ff7417;
  --accent: #ff9b43;
  --line: rgba(255, 250, 244, 0.16);
  --muted: rgba(255, 250, 244, 0.62);
  --header-bg: #0d0d0d;
  --hero-bg: #0d0d0d;
  --clients-bg: #151515;
  --problem-bg: #0d0d0d;
  --formats-bg: #151515;
  --card-bg: rgba(255, 255, 255, 0.035);
  --button-ink: #0d0d0d;
}

html[data-theme="4"] {
  --paper: #f26a00;
  --ink: #111111;
  --brown: #111111;
  --accent: #ffffff;
  --line: rgba(17, 17, 17, 0.2);
  --muted: rgba(17, 17, 17, 0.68);
  --header-bg: #f26a00;
  --hero-bg: #f26a00;
  --clients-bg: #111111;
  --problem-bg: #ff7a14;
  --formats-bg: #f26a00;
  --card-bg: rgba(255, 255, 255, 0.12);
  --button-ink: #ffffff;
  --accent-ink: #111111;
}

html[data-theme="5"] {
  --paper: #f7f7f5;
  --ink: #0b0b0b;
  --brown: #0b0b0b;
  --accent: #ff5c00;
  --line: rgba(11, 11, 11, 0.16);
  --muted: rgba(11, 11, 11, 0.58);
  --header-bg: #f7f7f5;
  --hero-bg: #f7f7f5;
  --clients-bg: #ffffff;
  --problem-bg: #f7f7f5;
  --formats-bg: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.72);
  --button-ink: #ffffff;
}

html[data-theme="6"] {
  --paper: #fff7e9;
  --ink: #2b1608;
  --brown: #d64b00;
  --accent: #ff8b2b;
  --line: rgba(43, 22, 8, 0.16);
  --muted: rgba(43, 22, 8, 0.58);
  --header-bg: #fff7e9;
  --hero-bg: #fff1d9;
  --clients-bg: #ffffff;
  --problem-bg: #fff7e9;
  --formats-bg: #fff1d9;
  --card-bg: rgba(255, 255, 255, 0.46);
  --button-ink: #ffffff;
}

html[data-theme="7"] {
  --paper: #1b1b1b;
  --ink: #f4f1eb;
  --brown: #ff8a26;
  --accent: #ff6410;
  --line: rgba(244, 241, 235, 0.16);
  --muted: rgba(244, 241, 235, 0.6);
  --header-bg: #1b1b1b;
  --hero-bg: #222222;
  --clients-bg: #111111;
  --problem-bg: #1b1b1b;
  --formats-bg: #222222;
  --card-bg: rgba(255, 255, 255, 0.04);
  --button-ink: #111111;
}

html[data-theme="8"] {
  --paper: #ffffff;
  --ink: #000000;
  --brown: #ff4d00;
  --accent: #ff4d00;
  --line: rgba(0, 0, 0, 0.2);
  --muted: rgba(0, 0, 0, 0.62);
  --header-bg: #ffffff;
  --hero-bg: #ffffff;
  --clients-bg: #ff4d00;
  --problem-bg: #ffffff;
  --formats-bg: #f2f2f0;
  --card-bg: rgba(255, 77, 0, 0.035);
  --button-ink: #ffffff;
}

html[data-theme="9"] {
  --paper: #ffd7b5;
  --ink: #21120a;
  --brown: #c43f00;
  --accent: #ff5c00;
  --line: rgba(33, 18, 10, 0.17);
  --muted: rgba(33, 18, 10, 0.58);
  --header-bg: #ffd7b5;
  --hero-bg: #ffd7b5;
  --clients-bg: #ff7b20;
  --problem-bg: #ffe7d2;
  --formats-bg: #ffd7b5;
  --card-bg: rgba(255, 255, 255, 0.25);
  --button-ink: #ffffff;
}

html[data-theme="10"] {
  --paper: #050505;
  --ink: #ffffff;
  --brown: #ffffff;
  --accent: #ff5c00;
  --line: rgba(255, 255, 255, 0.2);
  --muted: rgba(255, 255, 255, 0.62);
  --header-bg: #050505;
  --hero-bg: #050505;
  --clients-bg: #ff5c00;
  --problem-bg: #0e0e0e;
  --formats-bg: #050505;
  --card-bg: rgba(255, 255, 255, 0.055);
  --button-ink: #050505;
}

html[data-theme="11"] {
  --paper: #f7faff;
  --ink: #112342;
  --brown: #1455d9;
  --accent: #ff6d5a;
  --line: rgba(17, 35, 66, 0.15);
  --muted: rgba(17, 35, 66, 0.6);
  --header-bg: #ffffff;
  --hero-bg: #f7faff;
  --clients-bg: #eaf2ff;
  --problem-bg: #ffffff;
  --formats-bg: #f7faff;
  --card-bg: rgba(20, 85, 217, 0.035);
  --button-ink: #ffffff;
}

html[data-theme="12"] {
  --paper: #eef7ff;
  --ink: #10264f;
  --brown: #184db7;
  --accent: #b8f536;
  --line: rgba(16, 38, 79, 0.16);
  --muted: rgba(16, 38, 79, 0.6);
  --header-bg: #eef7ff;
  --hero-bg: #ffffff;
  --clients-bg: #10264f;
  --problem-bg: #eef7ff;
  --formats-bg: #ffffff;
  --card-bg: rgba(24, 77, 183, 0.045);
  --button-ink: #ffffff;
  --accent-ink: #10264f;
}

html[data-theme="13"] {
  --paper: #dcefff;
  --ink: #1b2430;
  --brown: #1267c4;
  --accent: #2d3642;
  --line: rgba(27, 36, 48, 0.16);
  --muted: rgba(27, 36, 48, 0.6);
  --header-bg: #ffffff;
  --hero-bg: #dcefff;
  --clients-bg: #ffffff;
  --problem-bg: #edf7ff;
  --formats-bg: #dcefff;
  --card-bg: rgba(255, 255, 255, 0.34);
  --button-ink: #ffffff;
}

html[data-theme="14"] {
  --paper: #1755d1;
  --ink: #ffffff;
  --brown: #ffdf3e;
  --accent: #ffdf3e;
  --line: rgba(255, 255, 255, 0.2);
  --muted: rgba(255, 255, 255, 0.68);
  --header-bg: #1755d1;
  --hero-bg: #1755d1;
  --clients-bg: #ffffff;
  --problem-bg: #1048b7;
  --formats-bg: #1755d1;
  --card-bg: rgba(255, 255, 255, 0.07);
  --button-ink: #102a64;
  --accent-ink: #102a64;
}

html[data-theme="15"] {
  --paper: #06172f;
  --ink: #f6fbff;
  --brown: #31d9ff;
  --accent: #31d9ff;
  --line: rgba(246, 251, 255, 0.18);
  --muted: rgba(246, 251, 255, 0.64);
  --header-bg: #06172f;
  --hero-bg: #06172f;
  --clients-bg: #0b2346;
  --problem-bg: #081d3b;
  --formats-bg: #06172f;
  --card-bg: rgba(49, 217, 255, 0.055);
  --button-ink: #06172f;
  --accent-ink: #06172f;
}

html[data-theme="16"] {
  --paper: #ffffff;
  --ink: #102c5c;
  --brown: #1a5ee8;
  --accent: #f13b4d;
  --line: rgba(16, 44, 92, 0.16);
  --muted: rgba(16, 44, 92, 0.6);
  --header-bg: #ffffff;
  --hero-bg: #f4f8ff;
  --clients-bg: #f13b4d;
  --problem-bg: #ffffff;
  --formats-bg: #f4f8ff;
  --card-bg: rgba(26, 94, 232, 0.04);
  --button-ink: #ffffff;
}

html[data-theme="17"] {
  --paper: #101d4a;
  --ink: #fffaff;
  --brown: #ff85c8;
  --accent: #ff85c8;
  --line: rgba(255, 250, 255, 0.18);
  --muted: rgba(255, 250, 255, 0.64);
  --header-bg: #101d4a;
  --hero-bg: #101d4a;
  --clients-bg: #17285f;
  --problem-bg: #0d183e;
  --formats-bg: #101d4a;
  --card-bg: rgba(255, 133, 200, 0.055);
  --button-ink: #101d4a;
  --accent-ink: #101d4a;
}

html[data-theme="18"] {
  --paper: #e9f8ff;
  --ink: #083b54;
  --brown: #087b9e;
  --accent: #ff7a21;
  --line: rgba(8, 59, 84, 0.16);
  --muted: rgba(8, 59, 84, 0.6);
  --header-bg: #ffffff;
  --hero-bg: #e9f8ff;
  --clients-bg: #087b9e;
  --problem-bg: #ffffff;
  --formats-bg: #e9f8ff;
  --card-bg: rgba(8, 123, 158, 0.04);
  --button-ink: #ffffff;
}

html[data-theme="19"] {
  --paper: #063cc7;
  --ink: #ffffff;
  --brown: #ff8a24;
  --accent: #ff8a24;
  --line: rgba(255, 255, 255, 0.2);
  --muted: rgba(255, 255, 255, 0.67);
  --header-bg: #063cc7;
  --hero-bg: #063cc7;
  --clients-bg: #082d91;
  --problem-bg: #0b47d7;
  --formats-bg: #063cc7;
  --card-bg: rgba(255, 255, 255, 0.07);
  --button-ink: #092b76;
  --accent-ink: #092b76;
}

html[data-theme="20"] {
  --paper: #071423;
  --ink: #eef5fb;
  --brown: #aebfd0;
  --accent: #3ce6a4;
  --line: rgba(238, 245, 251, 0.18);
  --muted: rgba(238, 245, 251, 0.63);
  --header-bg: #071423;
  --hero-bg: #0a1b2f;
  --clients-bg: #0d2945;
  --problem-bg: #071423;
  --formats-bg: #0a1b2f;
  --card-bg: rgba(174, 191, 208, 0.055);
  --button-ink: #071423;
  --accent-ink: #071423;
}

html[data-theme="21"] {
  --paper: #f3f7fb;
  --ink: #182b44;
  --brown: #1b4f8c;
  --accent: #6ea9d8;
  --line: rgba(24, 43, 68, 0.15);
  --muted: rgba(24, 43, 68, 0.58);
  --header-bg: #f3f7fb;
  --hero-bg: #f3f7fb;
  --clients-bg: #f3f7fb;
  --problem-bg: #f3f7fb;
  --formats-bg: #f3f7fb;
  --card-bg: rgba(255, 255, 255, 0.08);
  --button-ink: #ffffff;
  --accent-ink: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: "Onest", sans-serif;
  font-size: 16px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.site-shell {
  width: min(var(--page), calc(100% - 48px));
  margin: 0 auto;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: color-mix(in srgb, var(--header-bg) 90%, transparent);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--ink) 7%, transparent);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
}

.nav a,
.text-link {
  transition: color 180ms ease;
}

.nav a:hover,
.text-link:hover {
  color: var(--accent);
}

.logo {
  color: var(--brown);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.header > .button {
  justify-self: end;
}

.button {
  min-height: 56px;
  padding: 0 36px;
  border: 0;
  border-radius: 4px;
  background: var(--brown);
  color: var(--button-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.button:hover {
  background: #8c5b3d;
  transform: translateY(-2px);
}

.button--small {
  min-height: 42px;
  padding: 0 24px;
  font-size: 14px;
}

.spark {
  margin-left: 14px;
  font-size: 16px;
}

.menu-toggle {
  display: none;
}

.section {
  border-bottom: 1px solid var(--line);
}

.hero {
  min-height: 548px;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 660px 1fr;
  gap: 12px;
  overflow: hidden;
  background: var(--hero-bg);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.social-proof {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 500;
}

.client-badges {
  display: flex;
  width: 112px;
  flex: 0 0 auto;
}

.client-badge {
  width: 38px;
  height: 38px;
  border: 2px solid var(--hero-bg);
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.client-badge + .client-badge {
  margin-left: -12px;
}

.client-badge img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.social-proof > span {
  color: var(--muted);
}

.social-proof > span strong {
  color: var(--ink);
  font-weight: 650;
}

h1,
.section-heading h2 {
  margin: 0;
  font-family: "Source Serif 4", serif;
  font-weight: 500;
  letter-spacing: -0.052em;
}

h1 {
  width: 655px;
  font-size: 80px;
  line-height: 0.84;
}

h1 em,
.section-heading h2 em {
  display: block;
  color: var(--brown);
  font-weight: 500;
}

.bracketed {
  position: relative;
  width: fit-content;
}

.bracketed::before {
  content: "";
  position: absolute;
  inset: -4px -8px -3px;
  pointer-events: none;
  background:
    linear-gradient(var(--accent), var(--accent)) left top / 16px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left top / 2px 16px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right top / 16px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right top / 2px 16px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left bottom / 16px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left bottom / 2px 16px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / 16px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / 2px 16px no-repeat;
}

.bracketed::after {
  content: none;
}

.hero-lead {
  width: 555px;
  margin: 24px 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.1;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.text-link {
  padding: 18px 20px;
  color: var(--brown);
  font-weight: 700;
}

.text-link span {
  display: inline-block;
  margin-left: 20px;
  font-size: 22px;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(5px);
}

.case-rail {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-top: 52px;
}

.case-card {
  flex: 0 0 400px;
  min-height: 365px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px 36px 6px 6px;
  background: var(--card-bg);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  will-change: transform, opacity;
}

.case-card h2 {
  width: 340px;
  margin: 24px 0 12px;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 500;
}

.case-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.case-card > a {
  color: var(--brown);
  font-weight: 700;
}

.case-card > a span {
  margin-left: 20px;
  font-size: 20px;
}

.case-brand {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
}

.case-brand i {
  width: 112px;
  height: 34px;
  display: grid;
  place-items: center;
  font-style: normal;
}

.case-brand i .company-logo {
  width: 100%;
  height: 100%;
}

.case-brand [data-case-name] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.case-metrics {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
}

.case-metrics div {
  width: 50%;
  display: flex;
  flex-direction: column;
}

.case-metrics div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.case-metrics strong {
  color: var(--brown);
  font-family: "Source Serif 4", serif;
  font-size: clamp(40px, 3.2vw, 48px);
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.case-metrics span {
  margin-top: 8px;
  color: var(--muted);
}

.case-card--peek {
  flex-basis: 286px;
  opacity: 0.28;
  border-radius: 6px;
  cursor: pointer;
}

.case-card--peek h2,
.case-card--peek p {
  width: 235px;
}

.case-card--peek > p {
  display: none;
}

.case-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -16px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.case-progress button {
  position: relative;
  overflow: hidden;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: var(--line);
  cursor: pointer;
}

.case-progress button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.case-progress button.is-active::after {
  animation: case-timer 4s linear forwards;
}

.case-rail.is-paused .case-progress button.is-active::after {
  animation-play-state: paused;
}

@keyframes case-timer {
  to {
    transform: scaleX(1);
  }
}

.clients {
  min-height: 208px;
  padding: 57px 72px 46px;
  overflow: hidden;
  text-align: center;
  background: var(--clients-bg);
}

.clients h2 {
  margin: 0 0 34px;
  font-size: 23px;
  font-weight: 500;
}

.clients h2 span {
  color: var(--brown);
}

.client-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.client-logos img {
  width: min(13.5%, 144px);
  max-height: 34px;
  object-fit: contain;
}

.client-logos small {
  font-size: 14px;
  color: #89827d;
}

.brand-magnit {
  color: #ed172d;
}

.brand-sber {
  color: #08a652;
}

.brand-ozon {
  color: #0757e8;
  letter-spacing: 0.06em;
}

.brand-vtb {
  color: #123879;
}

.brand-s7 {
  color: #bedb28;
}

.brand-rostelecom {
  color: #a759ee;
}

.brand-colvir {
  color: #ef6f32;
}

.all-cases {
  padding: 52px 24px 68px;
  background: var(--paper);
  scroll-margin-top: 76px;
}

.cases-heading {
  margin-bottom: 48px;
}

.cases-kicker {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.cases-kicker span {
  width: 42px;
  height: 1px;
  background: currentColor;
}

.cases-heading h2 {
  max-width: 900px;
  margin: 0;
  font: 500 54px/1 "Onest", sans-serif;
  letter-spacing: -0.055em;
}

.cases-heading h2 em {
  display: block;
  color: var(--brown);
  font-family: "Source Serif 4", serif;
  font-weight: 500;
}

.cases-heading > p {
  max-width: 620px;
  margin: 20px 0 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.cases-heading__catalog {
  width: fit-content;
  min-height: 44px;
  margin: 22px 0 0 auto;
  padding: 0 6px 0 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 160ms ease, color 160ms ease;
}

.cases-heading__catalog span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 400;
  transition: transform 160ms ease;
}

.cases-heading__catalog:hover {
  border-color: var(--ink);
}

.cases-heading__catalog:hover span {
  transform: rotate(90deg);
}

.home-cases-grid {
  margin-top: 34px;
}

.all-cases > .cases-tier-heading,
.all-cases > .cases-grid:not(.home-cases-grid),
.all-cases > .case-catalog {
  display: none;
}

.cases-tier-heading {
  min-height: 58px;
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  align-items: end;
}

.cases-tier-heading > span {
  color: var(--accent);
  font: 500 14px/1 "Onest", sans-serif;
}

.cases-tier-heading h3 {
  margin: 0;
  font: 500 24px/1.05 "Onest", sans-serif;
  letter-spacing: -0.035em;
}

.cases-tier-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.cases-tier-heading:not(:first-of-type) {
  margin-top: 50px;
}

.cases-grid {
  display: grid;
  gap: 12px;
}

.cases-grid--featured {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.cases-grid--featured .portfolio-case {
  grid-column: span 6;
}

.cases-grid--featured .portfolio-case:nth-child(4n + 1),
.cases-grid--featured .portfolio-case:nth-child(4n + 4) {
  grid-column: span 7;
}

.cases-grid--featured .portfolio-case:nth-child(4n + 2),
.cases-grid--featured .portfolio-case:nth-child(4n + 3) {
  grid-column: span 5;
}

.cases-grid--programs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portfolio-case {
  position: relative;
  min-width: 0;
  min-height: 310px;
  padding: 24px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 4px 22px 4px 4px;
  background: color-mix(in srgb, var(--paper) 94%, white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    border-color 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
}

.portfolio-case::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24px;
  width: 72px;
  height: 3px;
  background: var(--accent);
}

.portfolio-case:nth-child(4n + 2),
.portfolio-case:nth-child(4n + 3) {
  border-radius: 22px 4px 4px 4px;
  background: color-mix(in srgb, var(--card-bg) 74%, var(--paper));
}

.portfolio-case:hover {
  border-color: color-mix(in srgb, var(--accent) 72%, var(--line));
  box-shadow: 0 20px 44px color-mix(in srgb, var(--ink) 8%, transparent);
  transform: translateX(3px);
}

.case-detail-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
}

.case-detail-link span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.case-detail-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.portfolio-case__head {
  min-height: 40px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.portfolio-case__head > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.portfolio-case__head strong {
  font-size: 18px;
  line-height: 1.1;
}

.portfolio-case__head small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.company-mark {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: var(--brown);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.company-mark--gpn {
  color: #1374d4;
}

.company-mark--sber {
  color: #08a652;
}

.company-mark--vtb {
  color: #123879;
}

.company-mark--magnit {
  color: #ed172d;
}

.company-mark--rt {
  color: #8f52d9;
}

.company-mark--s7 {
  color: #9eb817;
}

.company-mark--sibur {
  color: #008f83;
}

.company-mark--ozon {
  color: #0757e8;
}

.company-logo {
  display: block;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.company-logo--mono {
  filter: brightness(0) saturate(100%) invert(15%) sepia(19%) saturate(1554%)
    hue-rotate(173deg) brightness(92%) contrast(89%);
}

.company-logo--portfolio {
  width: 96px;
  height: 34px;
  margin-left: auto;
  object-position: right center;
}

.portfolio-case--compact .company-logo--portfolio {
  width: 74px;
  height: 30px;
}

.portfolio-case h3 {
  max-width: 500px;
  margin: 24px 0 10px;
  font: 500 21px/1.13 "Onest", sans-serif;
  letter-spacing: -0.035em;
}

.portfolio-case > p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.42;
}

.portfolio-case__format {
  margin-top: auto;
  padding: 21px 0 11px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.portfolio-case__metric {
  min-height: 58px;
  padding-top: 12px;
  padding-right: 52px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.portfolio-case__metric strong {
  color: var(--brown);
  font: 500 32px/0.94 "Source Serif 4", serif;
  letter-spacing: -0.04em;
}

.portfolio-case__metric span {
  max-width: 390px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.portfolio-case__arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  display: grid;
  place-items: center;
  font-size: 22px;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.portfolio-case:hover .portfolio-case__arrow {
  background: var(--brown);
  color: var(--button-ink);
  transform: rotate(8deg);
}

.portfolio-case--compact {
  min-height: 292px;
  padding: 20px;
}

.portfolio-case--compact h3 {
  margin-top: 20px;
  font-size: 17.5px;
}

.portfolio-case--compact .portfolio-case__metric strong {
  font-size: 27px;
}

.portfolio-case--compact .portfolio-case__metric {
  padding-right: 0;
  grid-template-columns: 1fr;
  gap: 4px;
}

.cases-tier-heading--catalog {
  margin-bottom: 24px;
}

.case-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.case-catalog article {
  position: relative;
  min-width: 0;
  min-height: 148px;
  padding: 19px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  transition: background 180ms ease;
}

.case-catalog article:nth-child(3n + 2) {
  background: transparent;
}

.case-catalog article:hover {
  background: color-mix(in srgb, var(--accent) 9%, var(--card-bg));
}

.case-catalog strong {
  max-width: calc(100% - 82px);
  font-size: 17px;
  line-height: 1.15;
}

.case-catalog small {
  margin-top: 7px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.case-catalog p {
  margin: auto 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.case-catalog article:hover small,
.case-catalog article:hover p {
  color: var(--muted);
}

.company-logo--catalog {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 66px;
  height: 30px;
  object-position: right center;
}

.problem {
  padding: 58px 24px 84px;
  background: var(--problem-bg);
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  margin-bottom: 14px;
  font-size: 14px;
}

.eyebrow span {
  width: 29px;
  height: 29px;
  margin-right: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  clip-path: polygon(25% 7%, 75% 7%, 100% 50%, 75% 93%, 25% 93%, 0 50%);
  display: inline-grid;
  place-items: center;
  font-size: 11px;
}

.section-heading h2 {
  font-size: 51px;
  line-height: 0.96;
}

.section-heading h2 em {
  margin: 0 auto;
  font-style: italic;
}

.section-heading h2 .bracketed::before {
  inset: -1px -11px -2px;
  background:
    linear-gradient(var(--accent), var(--accent)) left top / 9px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left top / 1.5px 9px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right top / 9px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right top / 1.5px 9px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left bottom / 9px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left bottom / 1.5px 9px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / 9px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / 1.5px 9px no-repeat;
}

.section-heading p {
  max-width: 740px;
  margin: 16px auto 0;
  color: var(--muted);
  line-height: 1.35;
}

.problem-list {
  width: 100%;
}

.problem-row {
  border-top: 1px solid var(--line);
}

.problem-title {
  width: 100%;
  min-height: 118px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  grid-template-columns: 28px 1fr 30px;
  gap: 16px;
  align-items: center;
  text-align: left;
  font: 500 23px/1.1 "Onest", sans-serif;
  cursor: pointer;
}

.problem-title:disabled {
  opacity: 1;
  cursor: default;
}

.problem-title small {
  align-self: start;
  padding-top: 26px;
  font-size: 10px;
  font-weight: 400;
}

.hex {
  width: 20px;
  height: 22px;
  border: 0;
  display: grid;
  place-items: center;
}

.hex::before {
  content: "⬡";
  color: var(--ink);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.hex--filled {
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
}

.hex--filled::before {
  content: none;
}

.problem-row.is-open .problem-title {
  min-height: 94px;
  color: var(--ink);
}

.problem-detail {
  display: none;
}

.problem-row.is-open .problem-detail {
  min-height: 230px;
  padding: 0 72px 24px 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.problem-side {
  padding-right: 62px;
}

.problem-side p,
.solution-side > p {
  color: var(--muted);
  line-height: 1.38;
}

.solution-side {
  padding-left: 52px;
  border-left: 1px solid var(--line);
}

.solution-side h3 {
  margin: -62px 0 26px;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 500;
}

.mini-cube {
  margin-left: -52px;
  margin-right: 29px;
  color: var(--accent);
}

.proof-tabs {
  margin-top: 28px;
  display: flex;
  gap: 0;
}

.proof-tabs button {
  padding: 0 18px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.proof-tabs button:first-child {
  padding-left: 0;
  border-left: 0;
}

.proof-tabs button.is-active {
  color: var(--brown);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

blockquote {
  position: relative;
  margin: 20px 0 0;
  padding: 20px 24px;
  border: 1px solid rgba(223, 154, 88, 0.35);
  border-radius: 6px;
  color: var(--muted);
  line-height: 1.4;
}

blockquote::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 112px;
  width: 12px;
  height: 12px;
  border-top: 1px solid rgba(223, 154, 88, 0.35);
  border-left: 1px solid rgba(223, 154, 88, 0.35);
  background: var(--paper);
  transform: rotate(45deg);
}

.formats {
  padding-top: 60px;
  background: var(--formats-bg);
}

.formats .section-heading {
  max-width: 850px;
  margin-bottom: 32px;
}

.formats .section-heading h2 {
  font-size: 50px;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.format-card {
  min-width: 0;
  min-height: 720px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
}

.format-card + .format-card {
  border-left: 1px solid var(--line);
}

.format-card h3 {
  min-height: 70px;
  margin: 0 0 24px;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 500;
}

.format-card h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 500;
}

.format-block {
  margin-bottom: 24px;
}

.format-block:first-of-type {
  min-height: 96px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags span {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 14px;
  white-space: nowrap;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.65;
}

li::before {
  content: "•";
  margin-right: 12px;
  color: var(--accent);
  font-size: 22px;
  line-height: 0;
}

.result {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.result p {
  min-height: 47px;
  margin: 0 0 24px;
  line-height: 1.3;
}

.format-card .button {
  width: 100%;
}

.reviews {
  padding: 72px 24px 84px;
  background: var(--hero-bg);
}

.reviews-heading {
  max-width: 860px;
  margin-bottom: 42px;
}

.reviews-heading h2 {
  max-width: 820px;
  margin: 0;
  font-size: 51px;
  line-height: 0.98;
  font-weight: 500;
}

.reviews-heading h2 em {
  display: block;
  color: var(--brown);
  font-family: "Source Serif 4", serif;
  font-weight: 400;
}

.reviews-heading > p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.review-card {
  min-height: 340px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
}

.review-card--story {
  grid-column: span 6;
  min-height: 360px;
}

.review-card--quote,
.review-card--metric {
  grid-column: span 3;
}

.review-card--accent {
  border-color: color-mix(in srgb, var(--accent) 48%, transparent);
}

.review-card--compact {
  grid-column: span 4;
  min-height: 300px;
}

.review-brand {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.review-brand .company-logo {
  width: 120px;
  height: 36px;
  object-position: left center;
}

.review-brand > span:last-child {
  max-width: 150px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  text-align: right;
}

.review-wordmark {
  color: var(--ink) !important;
  font-size: 20px !important;
  font-weight: 700;
  text-align: left !important;
}

.review-card blockquote {
  margin: auto 0 18px;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-family: "Source Serif 4", serif;
  font-size: 30px;
  line-height: 1.13;
}

.review-card blockquote::before {
  display: none;
}

.review-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.review-card--metric > strong {
  margin-top: auto;
  color: var(--brown);
  font-family: "Source Serif 4", serif;
  font-size: 82px;
  line-height: 0.9;
  font-weight: 400;
}

.review-card--metric > strong span {
  font-size: 34px;
}

.review-card--metric > p {
  max-width: 230px;
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.review-card--score > strong {
  font-size: 68px;
}

.review-card--score > p:not(.review-note) {
  margin-top: 14px;
}

.review-card--score .review-note {
  margin-top: 14px;
}

.review-case-link {
  width: fit-content;
  min-height: 32px;
  margin-top: 18px;
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--brown) 42%, var(--line));
  border-radius: 999px;
  color: var(--brown);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.review-case-link:hover,
.review-case-link:focus-visible {
  background: var(--brown);
  color: var(--paper);
  outline: none;
  transform: translateY(-1px);
}

.lead-section {
  padding: 84px 24px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  gap: 76px;
  background: var(--ink);
  color: var(--paper);
}

.lead-copy h2 {
  max-width: 560px;
  margin: 0;
  font-size: 50px;
  line-height: 0.98;
  font-weight: 500;
}

.lead-copy h2 em {
  display: block;
  color: var(--accent);
  font-family: "Source Serif 4", serif;
  font-weight: 400;
}

.lead-copy > p {
  max-width: 560px;
  margin: 22px 0 0;
  color: color-mix(in srgb, var(--paper) 68%, transparent);
  line-height: 1.5;
}

.lead-contacts {
  margin-top: 54px;
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
}

.lead-contacts a {
  color: var(--paper);
  text-decoration: none;
}

.lead-contacts small {
  display: block;
  margin-bottom: 5px;
  color: color-mix(in srgb, var(--paper) 55%, transparent);
  font-size: 11px;
}

.lead-contacts span {
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 28%, transparent);
}

.lead-form {
  padding: 30px;
  background: var(--paper);
  color: var(--ink);
}

.lead-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.lead-form label {
  display: block;
  margin: 0;
}

.lead-form__wide {
  grid-column: 1 / -1;
}

.lead-form label > span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}

.lead-form label > span small {
  color: var(--muted);
  font-weight: 400;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: var(--card-bg);
  color: var(--ink);
  font: inherit;
}

.lead-form textarea {
  min-height: 90px;
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent);
}

.lead-form label.is-invalid input,
.lead-form label.is-invalid select,
.lead-form label.is-invalid textarea {
  border-color: #d53c3c;
}

.field-error {
  display: none;
  margin-top: 6px;
  color: #d53c3c;
  font-size: 11px;
}

.lead-form label.is-invalid .field-error {
  display: block;
}

.lead-form__actions {
  padding-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lead-form__actions p,
.lead-form__status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.lead-form__actions .button {
  width: auto;
  min-width: 210px;
}

.lead-form__status {
  min-height: 18px;
  margin-top: 12px;
}

.lead-form__status.is-success {
  color: #16834b;
}

.lead-form__status.is-error {
  color: #d53c3c;
}

.footer {
  padding: 50px 24px 24px;
  background: var(--hero-bg);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr;
  gap: 44px;
  padding-bottom: 42px;
}

.footer-brand > a {
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
}

.footer-brand p {
  max-width: 460px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.footer nav,
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer nav a,
.footer-links a {
  color: var(--ink);
  text-decoration: none;
}

.footer nav a:hover,
.footer-links a:hover {
  color: var(--brown);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}

.theme-switcher {
  position: fixed;
  z-index: 50;
  top: 20px;
  left: 20px;
  color: #111111;
  font-family: "Onest", sans-serif;
}

.theme-switcher__toggle {
  min-width: 174px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.94);
  color: #111111;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 13px/1 "Onest", sans-serif;
  cursor: pointer;
}

.theme-switcher__toggle b {
  color: #f15a00;
}

.theme-switcher__current {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 5px;
  align-items: baseline;
  text-align: left;
}

.theme-switcher__current small {
  grid-column: 1 / -1;
  color: rgba(17, 17, 17, 0.55);
  font-size: 9px;
  font-weight: 500;
}

.theme-switcher__dots {
  display: flex;
  gap: 3px;
}

.theme-switcher__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.theme-switcher__dots i:nth-child(2) {
  background: #ff6a00;
}

.theme-switcher__dots i:nth-child(3) {
  background: #111111;
}

.theme-switcher__panel {
  width: 248px;
  margin-top: 8px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.theme-switcher.is-open .theme-switcher__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.theme-switcher__panel p {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
}

.theme-switcher__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.theme-switcher__grid button {
  position: relative;
  height: 58px;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 9px;
  background: #f5f5f3;
  color: #111111;
  cursor: pointer;
}

.theme-switcher__grid button:hover,
.theme-switcher__grid button.is-active {
  border-color: #ff5c00;
  box-shadow: inset 0 0 0 1px #ff5c00;
}

.theme-switcher__grid i {
  height: 30px;
  border-radius: 5px;
  display: block;
  background: linear-gradient(135deg, #f8f4ef 0 52%, #df9a58 52% 75%, #413029 75%);
}

.theme-switcher__grid span {
  display: block;
  padding-top: 4px;
  font-size: 10px;
  font-weight: 700;
}

.background-mode {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.background-mode > p {
  margin-bottom: 9px;
}

.background-mode > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.background-mode button {
  height: 42px;
  padding: 5px 8px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 9px;
  background: #f5f5f3;
  color: #111111;
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 11px/1 "Onest", sans-serif;
  cursor: pointer;
}

.background-mode button:hover,
.background-mode button.is-active {
  border-color: #ff5c00;
  box-shadow: inset 0 0 0 1px #ff5c00;
}

.background-mode i {
  width: 27px;
  height: 24px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 4px;
  background:
    linear-gradient(
      to bottom,
      #ffffff 0 33%,
      #ffdec9 33% 66%,
      #191919 66%
    );
}

.background-mode button[data-background-value="solid"] i {
  background: #e5e5e2;
}

.theme-switcher__grid button:nth-child(2) i {
  background: linear-gradient(135deg, #fff 0 52%, #ff6a00 52% 75%, #151515 75%);
}

.theme-switcher__grid button:nth-child(3) i {
  background: linear-gradient(135deg, #0d0d0d 0 58%, #ff7417 58% 79%, #fffaf4 79%);
}

.theme-switcher__grid button:nth-child(4) i {
  background: linear-gradient(135deg, #f26a00 0 58%, #111 58% 79%, #fff 79%);
}

.theme-switcher__grid button:nth-child(5) i {
  background: linear-gradient(135deg, #f7f7f5 0 58%, #0b0b0b 58% 79%, #ff5c00 79%);
}

.theme-switcher__grid button:nth-child(6) i {
  background: linear-gradient(135deg, #fff7e9 0 52%, #d64b00 52% 75%, #ff8b2b 75%);
}

.theme-switcher__grid button:nth-child(7) i {
  background: linear-gradient(135deg, #1b1b1b 0 58%, #f4f1eb 58% 79%, #ff6410 79%);
}

.theme-switcher__grid button:nth-child(8) i {
  background: linear-gradient(135deg, #fff 0 58%, #000 58% 79%, #ff4d00 79%);
}

.theme-switcher__grid button:nth-child(9) i {
  background: linear-gradient(135deg, #ffd7b5 0 52%, #ff7b20 52% 75%, #21120a 75%);
}

.theme-switcher__grid button:nth-child(10) i {
  background: linear-gradient(135deg, #050505 0 58%, #fff 58% 79%, #ff5c00 79%);
}

.theme-switcher__grid button:nth-child(11) i {
  background: linear-gradient(135deg, #f7faff 0 52%, #1455d9 52% 76%, #ff6d5a 76%);
}

.theme-switcher__grid button:nth-child(12) i {
  background: linear-gradient(135deg, #eef7ff 0 52%, #10264f 52% 76%, #b8f536 76%);
}

.theme-switcher__grid button:nth-child(13) i {
  background: linear-gradient(135deg, #dcefff 0 52%, #1267c4 52% 76%, #2d3642 76%);
}

.theme-switcher__grid button:nth-child(14) i {
  background: linear-gradient(135deg, #1755d1 0 58%, #fff 58% 78%, #ffdf3e 78%);
}

.theme-switcher__grid button:nth-child(15) i {
  background: linear-gradient(135deg, #06172f 0 58%, #f6fbff 58% 78%, #31d9ff 78%);
}

.theme-switcher__grid button:nth-child(16) i {
  background: linear-gradient(135deg, #fff 0 52%, #1a5ee8 52% 76%, #f13b4d 76%);
}

.theme-switcher__grid button:nth-child(17) i {
  background: linear-gradient(135deg, #101d4a 0 58%, #fffaff 58% 78%, #ff85c8 78%);
}

.theme-switcher__grid button:nth-child(18) i {
  background: linear-gradient(135deg, #e9f8ff 0 52%, #087b9e 52% 76%, #ff7a21 76%);
}

.theme-switcher__grid button:nth-child(19) i {
  background: linear-gradient(135deg, #063cc7 0 58%, #fff 58% 78%, #ff8a24 78%);
}

.theme-switcher__grid button:nth-child(20) i {
  background: linear-gradient(135deg, #071423 0 58%, #aebfd0 58% 78%, #3ce6a4 78%);
}

.theme-switcher__grid button:nth-child(21) i {
  background: linear-gradient(135deg, #f3f7fb 0 52%, #1b4f8c 52% 76%, #6ea9d8 76%);
}

html[data-theme="21"] .theme-switcher__toggle b {
  color: #1b4f8c;
}

html[data-theme="21"] .theme-switcher__dots i:nth-child(2) {
  background: #6ea9d8;
}

html[data-theme="21"] .theme-switcher__dots i:nth-child(3) {
  background: #182b44;
}

html[data-theme="21"] .theme-switcher__grid button:hover,
html[data-theme="21"] .theme-switcher__grid button.is-active,
html[data-theme="21"] .background-mode button:hover,
html[data-theme="21"] .background-mode button.is-active {
  border-color: #1b4f8c;
  box-shadow: inset 0 0 0 1px #1b4f8c;
}

html[data-theme="4"] .clients,
html[data-theme="8"] .clients,
html[data-theme="9"] .clients,
html[data-theme="10"] .clients {
  color: #ffffff;
}

html[data-theme="4"] .clients h2 span,
html[data-theme="8"] .clients h2 span,
html[data-theme="9"] .clients h2 span,
html[data-theme="10"] .clients h2 span {
  color: #ffffff;
}

html[data-theme="4"] .client-logos > *,
html[data-theme="8"] .client-logos > *,
html[data-theme="9"] .client-logos > *,
html[data-theme="10"] .client-logos > * {
  color: #ffffff;
}

html[data-theme="4"] .client-logos small,
html[data-theme="8"] .client-logos small,
html[data-theme="9"] .client-logos small,
html[data-theme="10"] .client-logos small {
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme="12"] .clients,
html[data-theme="15"] .clients,
html[data-theme="16"] .clients,
html[data-theme="17"] .clients,
html[data-theme="18"] .clients,
html[data-theme="19"] .clients,
html[data-theme="20"] .clients {
  color: #ffffff;
}

html[data-theme="12"] .clients h2 span,
html[data-theme="15"] .clients h2 span,
html[data-theme="16"] .clients h2 span,
html[data-theme="17"] .clients h2 span,
html[data-theme="18"] .clients h2 span,
html[data-theme="19"] .clients h2 span,
html[data-theme="20"] .clients h2 span,
html[data-theme="12"] .client-logos > *,
html[data-theme="15"] .client-logos > *,
html[data-theme="16"] .client-logos > *,
html[data-theme="17"] .client-logos > *,
html[data-theme="18"] .client-logos > *,
html[data-theme="19"] .client-logos > *,
html[data-theme="20"] .client-logos > * {
  color: #ffffff;
}

html[data-theme="12"] .client-logos small,
html[data-theme="15"] .client-logos small,
html[data-theme="16"] .client-logos small,
html[data-theme="17"] .client-logos small,
html[data-theme="18"] .client-logos small,
html[data-theme="19"] .client-logos small,
html[data-theme="20"] .client-logos small {
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme="14"] .clients {
  color: #102a64;
}

html[data-theme="14"] .clients h2 span {
  color: #1755d1;
}

html[data-theme="3"] blockquote::before,
html[data-theme="7"] blockquote::before,
html[data-theme="10"] blockquote::before,
html[data-theme="14"] blockquote::before,
html[data-theme="15"] blockquote::before,
html[data-theme="17"] blockquote::before,
html[data-theme="19"] blockquote::before,
html[data-theme="20"] blockquote::before {
  background: var(--problem-bg);
}

html[data-background="solid"] {
  --header-bg: var(--paper);
  --hero-bg: var(--paper);
  --clients-bg: var(--paper);
  --problem-bg: var(--paper);
  --formats-bg: var(--paper);
  --card-bg: transparent;
}

html[data-background="solid"] .clients {
  color: var(--ink);
}

html[data-background="solid"] .clients h2 span {
  color: var(--brown);
}

html[data-background="solid"] .client-logos .brand-magnit {
  color: #ed172d;
}

html[data-background="solid"] .client-logos .brand-sber {
  color: #08a652;
}

html[data-background="solid"] .client-logos .brand-ozon {
  color: #0757e8;
}

html[data-background="solid"] .client-logos .brand-vtb {
  color: #123879;
}

html[data-background="solid"] .client-logos .brand-s7 {
  color: #a4bd19;
}

html[data-background="solid"] .client-logos .brand-rostelecom {
  color: #a759ee;
}

html[data-background="solid"] .client-logos small {
  color: var(--muted);
}

html[data-background="solid"] blockquote::before {
  background: var(--paper);
}

html[data-background="solid"] .lead-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

html[data-background="solid"] .lead-copy > p,
html[data-background="solid"] .lead-contacts small {
  color: var(--muted);
}

html[data-background="solid"] .lead-contacts a {
  color: var(--ink);
}

html[data-background="solid"] .lead-contacts span {
  border-color: var(--line);
}

html[data-background="solid"] .lead-form {
  border: 1px solid var(--line);
}

.header,
.hero,
.clients,
.problem,
.formats,
.reviews,
.review-card,
.lead-section,
.lead-form,
.format-card,
.footer,
.case-card {
  transition:
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

.anchor-target {
  position: absolute;
  top: 0;
}

@media (min-width: 761px) {
  .site-shell {
    padding-top: 0;
  }

  .header {
    height: 64px;
    padding: 0 24px;
  }

  .hero {
    height: 545px;
    min-height: 545px;
    padding: 59px 24px 60px;
  }

  h1 {
    height: 210px;
    font-size: 80px;
    line-height: 0.84;
  }

  .hero-lead {
    height: 40px;
  }

  .hero-actions {
    height: 56px;
  }

  .text-link {
    height: 56px;
    display: inline-flex;
    align-items: center;
    line-height: 20px;
  }

  .text-link span {
    font-size: 19px;
    line-height: 13px;
  }

  .case-rail {
    height: 425px;
    padding-top: 43px;
  }

  .case-card {
    height: 366px;
    min-height: 366px;
    overflow: hidden;
  }

  .case-card p {
    line-height: 1.25;
  }

  .case-metrics strong {
    line-height: 1;
  }

  .case-metrics span {
    margin-top: 6px;
    line-height: 1.2;
  }

  .case-card--peek {
    height: 309px;
    min-height: 309px;
  }

  .case-progress {
    bottom: 0;
  }

  .clients {
    height: 210px;
    min-height: 210px;
    padding: 59px 0 60px;
  }

  .clients h2 {
    margin: 0 0 24px;
    font-size: 24px;
    line-height: 1.1;
  }

  .client-logos {
    width: 1000px;
    height: 40px;
    margin: 0 auto;
    gap: 48px;
  }

  .problem {
    height: 1066px;
    padding: 59px 24px 60px;
  }

  .section-heading {
    height: 180px;
    margin: 0 auto 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .eyebrow {
    height: 30px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
  }

  .section-heading h2,
  .formats .section-heading h2 {
    height: 98px;
    font-size: 52px;
    line-height: 0.95;
  }

  .section-heading p {
    width: 724px;
    margin: 12px auto 0;
    line-height: 1.25;
  }

  .problem-list {
    height: 743px;
  }

  .problem-row {
    position: relative;
    height: 124px;
  }

  .problem-row + .problem-row {
    margin-top: -1px;
  }

  .problem-title {
    min-height: 124px;
    grid-template-columns: 19px 1fr 18px;
    gap: 24px;
    padding: 36px 0;
    align-items: start;
    font-size: 24px;
  }

  .problem-title small {
    padding-top: 0;
    font-size: 12px;
  }

  .problem-row.is-open {
    height: 251px;
  }

  .problem-row.is-open .problem-title {
    position: absolute;
    z-index: 2;
    top: 24px;
    left: 0;
    min-height: 52px;
    height: 52px;
    padding: 0;
  }

  .problem-row.is-open .problem-detail {
    height: 251px;
    min-height: 251px;
    padding: 24px 0;
    grid-template-columns: 531px 531px;
    gap: 96px;
  }

  .problem-side {
    padding: 76px 0 0 43px;
  }

  .problem-side p,
  .solution-side > p {
    margin: 0;
    line-height: 1.25;
  }

  .solution-side {
    position: relative;
    padding: 0 0 0 43px;
    border-left: 0;
  }

  .solution-side::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -48px;
    width: 1px;
    background: var(--line);
  }

  .solution-side h3 {
    height: 52px;
    margin: 0;
    font-size: 24px;
  }

  .mini-cube {
    margin: 0 24px 0 -43px;
  }

  .solution-side > p {
    margin-top: 24px;
  }

  .proof-tabs {
    height: 43px;
    margin-top: 24px;
    align-items: center;
  }

  .problem-row.is-open blockquote {
    position: absolute;
    z-index: 3;
    top: 222px;
    right: 88px;
    width: 400px;
    height: 128px;
    margin: 0;
    padding: 24px;
  }

  .formats {
    position: relative;
    height: 898px;
    padding: 59px 0 30px;
  }

  .formats .section-heading {
    height: 180px;
    margin-bottom: 24px;
  }

  .format-grid {
    height: 604px;
  }

  .format-card {
    height: 604px;
    min-height: 604px;
    display: grid;
    grid-template-rows: 76px 102px 130px 96px 56px;
    row-gap: 24px;
    padding: 24px;
  }

  .format-card h3 {
    height: 76px;
    min-height: 0;
    margin: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
    line-height: 1.1;
  }

  .format-block,
  .format-block:first-of-type {
    height: auto;
    min-height: 0;
    margin: 0;
  }

  .result {
    height: 96px;
    margin: 0;
    padding-top: 24px;
  }

  .result p {
    min-height: 0;
    margin-bottom: 0;
    line-height: 1.25;
  }
}

@media (max-width: 1050px) {
  .site-shell {
    width: calc(100% - 32px);
  }

  .hero {
    grid-template-columns: 56% 44%;
  }

  h1 {
    width: auto;
    font-size: clamp(58px, 8.4vw, 82px);
  }

  .hero-copy,
  .hero-lead {
    width: 100%;
  }

  .case-card {
    flex-basis: 100%;
  }

  .case-card--peek {
    display: none;
  }

  .client-logos {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cases-heading h2 {
    font-size: clamp(46px, 6vw, 54px);
  }

  .cases-grid--programs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-catalog article:nth-child(3n + 2) {
    background: var(--card-bg);
  }

  .case-catalog article:nth-child(even) {
    background: transparent;
  }

  .problem-row.is-open .problem-detail {
    padding-right: 20px;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-card,
  .review-card--story,
  .review-card--quote,
  .review-card--metric,
  .review-card--compact {
    grid-column: auto;
  }

  .review-card--metric,
  .review-card--accent {
    min-height: 250px;
    margin-top: 0;
  }

  .lead-section {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .lead-copy > p {
    max-width: 680px;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: 100%;
    border: 0;
  }

  .theme-switcher {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .theme-switcher__toggle {
    margin-left: auto;
  }

  .theme-switcher__panel {
    position: absolute;
    right: 0;
    bottom: 54px;
    margin-top: 0;
  }

  .header {
    height: 60px;
    padding: 0 16px;
    grid-template-columns: 1fr auto 1fr;
  }

  .menu-toggle {
    width: 32px;
    height: 32px;
    padding: 6px 2px;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }

  .menu-toggle span {
    width: 24px;
    height: 1px;
    background: var(--ink);
  }

  .nav {
    position: absolute;
    z-index: 10;
    top: 60px;
    left: 0;
    right: 0;
    padding: 24px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    display: none;
    flex-direction: column;
    gap: 20px;
  }

  .nav.is-open {
    display: flex;
  }

  .header > .button {
    width: 38px;
    min-height: 38px;
    padding: 0;
    font-size: 0;
  }

  .header > .button .spark {
    margin: 0;
    font-size: 17px;
  }

  .hero {
    padding: 36px 20px 50px;
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .social-proof {
    height: auto;
    align-items: center;
    font-size: 12px;
    line-height: 1.25;
  }

  .social-proof > span {
    max-width: 185px;
  }

  h1 {
    font-size: clamp(42px, 11.8vw, 56px);
    line-height: 0.86;
  }

  .hero h1 em {
    white-space: nowrap;
  }

  .hero h1 .bracketed::before {
    inset: -2px -4px;
    background:
      linear-gradient(var(--accent), var(--accent)) left top / 10px 1.5px no-repeat,
      linear-gradient(var(--accent), var(--accent)) left top / 1.5px 10px no-repeat,
      linear-gradient(var(--accent), var(--accent)) right top / 10px 1.5px no-repeat,
      linear-gradient(var(--accent), var(--accent)) right top / 1.5px 10px no-repeat,
      linear-gradient(var(--accent), var(--accent)) left bottom / 10px 1.5px no-repeat,
      linear-gradient(var(--accent), var(--accent)) left bottom / 1.5px 10px no-repeat,
      linear-gradient(var(--accent), var(--accent)) right bottom / 10px 1.5px no-repeat,
      linear-gradient(var(--accent), var(--accent)) right bottom / 1.5px 10px no-repeat;
  }

  .hero-lead {
    font-size: 16px;
    line-height: 1.35;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .text-link {
    text-align: center;
  }

  .case-rail {
    padding-top: 0;
  }

  .case-card {
    min-height: 0;
  }

  .case-card h2,
  .case-card p {
    width: 100%;
  }

  .case-progress {
    bottom: -22px;
  }

  .clients {
    padding: 42px 20px;
  }

  .clients h2 {
    font-size: 20px;
  }

  .client-logos {
    gap: 24px 30px;
    font-size: 19px;
  }

  .client-logos img {
    width: calc(33.333% - 20px);
    max-width: 104px;
    max-height: 30px;
  }

  .all-cases {
    padding: 42px 20px 56px;
    scroll-margin-top: 60px;
  }

  .cases-heading {
    margin-bottom: 38px;
  }

  .cases-kicker {
    margin-bottom: 22px;
  }

  .cases-heading h2 {
    font-size: clamp(36px, 10.6vw, 46px);
    line-height: 1;
  }

  .cases-heading > p {
    margin: 18px 0 0;
    font-size: 15px;
  }

  .cases-heading__catalog {
    margin: 20px 0 0;
  }

  .cases-tier-heading {
    min-height: 0;
    grid-template-columns: 34px 1fr;
    gap: 9px;
    align-items: start;
  }

  .cases-tier-heading h3 {
    font-size: 23px;
  }

  .cases-tier-heading p {
    grid-column: 2;
  }

  .cases-tier-heading:not(:first-of-type) {
    margin-top: 42px;
  }

  .cases-grid--featured,
  .cases-grid--programs {
    grid-template-columns: 1fr;
  }

  .cases-grid--featured .portfolio-case,
  .cases-grid--featured .portfolio-case:nth-child(4n + 1),
  .cases-grid--featured .portfolio-case:nth-child(4n + 2),
  .cases-grid--featured .portfolio-case:nth-child(4n + 3),
  .cases-grid--featured .portfolio-case:nth-child(4n + 4) {
    grid-column: auto;
  }

  .portfolio-case,
  .portfolio-case--compact {
    min-height: 310px;
    padding: 22px 20px 20px;
    border-radius: 4px 20px 4px 4px;
  }

  .portfolio-case:nth-child(4n + 2),
  .portfolio-case:nth-child(4n + 3) {
    border-radius: 20px 4px 4px 4px;
  }

  .portfolio-case h3,
  .portfolio-case--compact h3 {
    margin-top: 22px;
    font-size: 19px;
  }

  .portfolio-case > p {
    font-size: 14px;
  }

  .portfolio-case__format {
    padding-top: 20px;
    line-height: 1.5;
  }

  .portfolio-case__metric strong,
  .portfolio-case--compact .portfolio-case__metric strong {
    font-size: 30px;
  }

  .portfolio-case__arrow {
    right: 18px;
    bottom: 18px;
    width: 40px;
    height: 40px;
  }

  .case-catalog {
    grid-template-columns: 1fr;
  }

  .case-catalog article,
  .case-catalog article:nth-child(even),
  .case-catalog article:nth-child(3n + 2) {
    min-height: 150px;
    background: var(--card-bg);
  }

  .case-catalog article:nth-child(even) {
    background: transparent;
  }

  .problem {
    padding: 52px 20px 64px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2,
  .formats .section-heading h2 {
    font-size: clamp(40px, 11vw, 51px);
  }

  .section-heading p {
    font-size: 14px;
  }

  .problem-title {
    min-height: 96px;
    grid-template-columns: 22px 1fr 18px;
    gap: 10px;
    font-size: 18px;
  }

  .problem-title br {
    display: none;
  }

  .problem-row.is-open .problem-detail {
    width: 100%;
    min-width: 0;
    padding: 0 0 24px 32px;
    grid-template-columns: 1fr;
  }

  .problem-side,
  .solution-side {
    min-width: 0;
  }

  .problem-side {
    padding: 0;
  }

  .solution-side {
    margin-top: 24px;
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .solution-side h3 {
    margin: 0 0 18px;
  }

  .mini-cube {
    margin: 0 10px 0 0;
  }

  .proof-tabs {
    max-width: 100%;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .proof-tabs button {
    white-space: nowrap;
  }

  .formats {
    padding-top: 52px;
  }

  .formats .section-heading {
    padding: 0 20px;
  }

  .format-grid {
    grid-template-columns: 1fr;
  }

  .format-card {
    min-height: 0;
    padding: 30px 20px;
  }

  .format-card + .format-card {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .format-card h3 {
    min-height: 0;
  }

  .format-block:first-of-type {
    min-height: 0;
  }

  .result {
    margin-top: 10px;
  }

  .reviews {
    padding: 54px 20px 64px;
  }

  .reviews-heading {
    margin-bottom: 30px;
  }

  .reviews-heading h2 {
    font-size: clamp(38px, 10.6vw, 48px);
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .review-card,
  .review-card--story,
  .review-card--metric,
  .review-card--accent {
    min-height: 270px;
    margin-top: 0;
  }

  .review-card blockquote {
    font-size: 25px;
  }

  .review-card--metric > strong {
    font-size: 68px;
  }

  .lead-section {
    padding: 58px 20px;
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .lead-copy h2 {
    font-size: clamp(39px, 10.6vw, 49px);
  }

  .lead-contacts {
    margin-top: 34px;
  }

  .lead-form {
    padding: 22px 18px;
  }

  .lead-form__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .lead-form__wide {
    grid-column: auto;
  }

  .lead-form__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .lead-form__actions .button {
    width: 100%;
  }

  .footer {
    padding: 40px 20px 22px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand p {
    font-size: 15px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Final interaction and density pass */
.social-proof {
  width: max-content;
  max-width: 100%;
  height: auto;
  min-height: 38px;
  gap: 10px;
}

.social-proof__group {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  white-space: nowrap;
}

.social-proof__group strong {
  font-size: 13px;
  font-weight: 650;
}

.social-proof__dot {
  color: var(--muted);
}

.client-badges {
  width: 88px;
}

.client-badge--sber {
  position: relative;
}

.client-badge--sber img {
  position: absolute;
  top: 2px;
  left: 3px;
  width: 205px;
  max-width: none;
  height: 34px;
  object-fit: contain;
  object-position: left center;
}

.client-badge--s7 {
  position: relative;
}

.client-badge--s7 img {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 106px;
  max-width: none;
  height: 34px;
  object-fit: contain;
  object-position: left center;
}

.student-badges {
  width: 88px;
  display: flex;
  flex: 0 0 auto;
}

.student-badges img {
  width: 38px;
  height: 38px;
  border: 2px solid var(--hero-bg);
  border-radius: 50%;
  background: var(--pale);
  object-fit: cover;
}

.student-badges img + img {
  margin-left: -12px;
}

.case-progress button.is-active::after {
  animation-duration: 4s;
}

.client-marquee {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 40px;
  overflow: hidden;
  contain: layout paint;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.client-logos {
  position: absolute;
  inset: 0 auto auto 0;
  width: max-content;
  justify-content: flex-start;
  gap: 0;
  animation: client-marquee 34s linear infinite;
  will-change: transform;
}

.client-logos__group {
  display: flex;
  align-items: center;
  gap: 54px;
  padding-right: 54px;
}

.client-logos img {
  width: 118px;
  max-width: none;
  height: 34px;
  max-height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
}

.client-logos img.client-logo--bnovo {
  height: 34px;
  padding: 7px 10px;
  border-radius: 7px;
  background: #142a45;
}

.client-marquee:hover .client-logos {
  animation-play-state: paused;
}

@keyframes client-marquee {
  to {
    transform: translateX(-50%);
  }
}

.cases-heading__catalog:hover span {
  transform: translate(2px, -2px);
}

.cases-load-more,
.catalog-more {
  width: min(100%, 360px);
  min-height: 50px;
  margin: 28px auto 0;
  padding: 0 10px 0 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font: 600 13px/1 "Onest", sans-serif;
  transition: border-color 180ms ease, background 180ms ease;
}

.cases-load-more[hidden],
.catalog-more[hidden] {
  display: none;
}

.cases-load-more i,
.catalog-more i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-size: 17px;
  font-style: normal;
  transition: transform 180ms ease;
}

.cases-load-more:hover,
.catalog-more:hover {
  border-color: var(--ink);
  background: color-mix(in srgb, var(--card-bg) 80%, transparent);
}

.cases-load-more:hover i,
.catalog-more:hover i {
  transform: translateY(3px);
}

.problem {
  padding-top: 64px;
  padding-bottom: 64px;
}

.problem-title {
  transition: color 220ms ease, background 220ms ease;
}

.problem-title > span:nth-child(2) {
  transition: transform 260ms cubic-bezier(.2, .75, .25, 1);
}

.problem-title:hover > span:nth-child(2) {
  transform: translateX(6px);
}

.problem-title .hex {
  transition: transform 260ms cubic-bezier(.2, .75, .25, 1);
}

.problem-title:hover .hex,
.problem-row.is-open .hex {
  transform: rotate(30deg) scale(1.08);
}

.proof-tabs {
  position: relative;
  gap: 8px;
  flex-wrap: wrap;
}

.proof-tabs a {
  position: relative;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: color-mix(in srgb, var(--card-bg) 86%, var(--paper));
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.proof-tabs a i {
  color: var(--brown);
  font-size: 14px;
  font-style: normal;
  transition: transform 180ms ease;
}

.proof-tabs a:hover,
.proof-tabs a:focus-visible {
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-2px);
}

.proof-tabs a:hover i,
.proof-tabs a:focus-visible i {
  transform: translate(2px, -2px);
}

.proof-tabs a::after {
  position: absolute;
  z-index: 10;
  bottom: calc(100% + 10px);
  left: 0;
  width: 320px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 16px 36px rgba(13, 34, 60, 0.18);
  color: var(--ink);
  content: attr(data-proof);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.proof-tabs a:hover::after,
.proof-tabs a:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

[data-proof-output] {
  display: none !important;
}

.formats {
  padding-top: 48px;
}

.review-card--quote {
  margin-top: 0;
}

.review-card--quote blockquote {
  font-size: 23px;
}

@media (min-width: 761px) {
  .problem,
  .formats {
    height: auto;
  }

  .problem {
    padding-top: 40px;
  }

  .problem > .section-heading {
    margin-bottom: 40px;
  }

  .problem-list,
  .problem-row,
  .problem-row.is-open {
    height: auto;
  }

  .problem-row.is-open .problem-title {
    position: static;
    min-height: 94px;
    height: auto;
    padding: 32px 0 0;
  }

  .problem-detail {
    display: grid;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 360ms cubic-bezier(.2, .75, .25, 1), opacity 220ms ease;
  }

  .problem-row.is-open .problem-detail {
    height: auto;
    min-height: 230px;
    max-height: 420px;
    padding: 0 72px 28px 44px;
    opacity: 1;
    overflow: visible;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .problem-row.is-open .problem-side {
    padding: 0 62px 0 0;
  }

  .problem-row.is-open .solution-side {
    position: static;
    padding: 0 0 0 52px;
    border-left: 1px solid var(--line);
  }

  .problem-row.is-open .solution-side::before {
    content: none;
  }

  .problem-row.is-open .solution-side h3 {
    height: auto;
    margin: -62px 0 26px;
  }
}

@media (max-width: 760px) {
  .social-proof {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .social-proof__dot {
    display: none;
  }

  .social-proof__group strong {
    font-size: 12px;
  }

  .clients {
    height: auto;
    min-height: 190px;
    padding: 42px 0;
  }

  .client-logos {
    width: max-content;
    flex-wrap: nowrap;
    gap: 0;
  }

  .client-logos__group {
    gap: 38px;
    padding-right: 38px;
  }

  .client-logos img {
    width: 96px;
  }

  .proof-tabs a::after {
    width: min(280px, calc(100vw - 64px));
  }

  .problem-row.is-open .problem-detail {
    max-height: 720px;
  }

  .review-card--quote {
    margin-top: 0;
  }
}

/* Temporary lead-section selector: remove after the final CTA direction is chosen. */
.lead-section {
  position: relative;
  margin-top: 56px;
  padding-top: 104px;
  scroll-margin-top: 72px;
  isolation: isolate;
  overflow: hidden;
}

.lead-variant-switcher {
  position: absolute;
  z-index: 4;
  top: 24px;
  right: 24px;
  left: 24px;
  min-height: 44px;
  padding: 6px 8px 6px 14px;
  border: 1px solid color-mix(in srgb, var(--paper) 20%, transparent);
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(12px);
}

.lead-variant-switcher > span {
  margin-right: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-variant-switcher > div {
  display: flex;
  gap: 4px;
}

.lead-variant-switcher button {
  width: 34px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: color-mix(in srgb, var(--paper) 58%, transparent);
  font: 600 11px/1 "Onest", sans-serif;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.lead-variant-switcher button:hover,
.lead-variant-switcher button:focus-visible {
  border-color: color-mix(in srgb, var(--paper) 36%, transparent);
  color: var(--paper);
  outline: 0;
}

.lead-variant-switcher button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}

.lead-variant-switcher > small {
  min-width: 126px;
  color: color-mix(in srgb, var(--paper) 62%, transparent);
  font-size: 10px;
  text-align: right;
}

.lead-copy,
.lead-form {
  position: relative;
  z-index: 1;
  transition:
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease,
    border-radius 220ms ease,
    transform 220ms ease;
}

/* 02 — wide editorial band with a compact horizontal form. */
html[data-lead-variant="2"] .lead-section {
  padding: 104px 36px 36px;
  grid-template-columns: 1fr;
  gap: 34px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 13%, transparent) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--ink);
}

html[data-lead-variant="2"] .lead-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  column-gap: 72px;
}

html[data-lead-variant="2"] .lead-copy .eyebrow {
  grid-column: 1 / -1;
}

html[data-lead-variant="2"] .lead-copy h2 {
  grid-column: 1;
  grid-row: 2 / span 3;
  max-width: 780px;
  font-size: clamp(54px, 5.6vw, 82px);
}

html[data-lead-variant="2"] .lead-copy > p {
  grid-column: 2;
  margin-top: 0;
  align-self: start;
}

html[data-lead-variant="2"] .lead-contacts {
  grid-column: 2;
  margin-top: 34px;
  align-self: end;
}

html[data-lead-variant="2"] .lead-form {
  padding: 24px;
}

html[data-lead-variant="2"] .lead-form__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

html[data-lead-variant="2"] .lead-form__wide {
  grid-column: auto;
}

/* 03 — light editorial spread with a strong vertical rule. */
html[data-lead-variant="3"] .lead-section {
  padding: 120px 48px 58px;
  grid-template-columns: minmax(320px, 0.72fr) minmax(520px, 1.28fr);
  gap: 64px;
  background: var(--paper);
  color: var(--ink);
}

html[data-lead-variant="3"] .lead-section::before {
  content: "03";
  position: absolute;
  top: 72px;
  left: 34px;
  color: color-mix(in srgb, var(--accent) 16%, transparent);
  font: 500 clamp(150px, 18vw, 270px)/0.8 "Source Serif 4", serif;
  pointer-events: none;
}

html[data-lead-variant="3"] .lead-copy {
  align-self: end;
  padding: 84px 0 4px;
}

html[data-lead-variant="3"] .lead-copy h2 {
  font-size: clamp(48px, 5vw, 72px);
}

html[data-lead-variant="3"] .lead-copy > p,
html[data-lead-variant="3"] .lead-contacts small {
  color: var(--muted);
}

html[data-lead-variant="3"] .lead-contacts a {
  color: var(--ink);
}

html[data-lead-variant="3"] .lead-form {
  align-self: center;
  padding: 42px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  background: var(--card-bg);
}

html[data-lead-variant="3"] .lead-variant-switcher,
html[data-lead-variant="5"] .lead-variant-switcher {
  border-color: var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  color: var(--ink);
}

html[data-lead-variant="3"] .lead-variant-switcher button,
html[data-lead-variant="5"] .lead-variant-switcher button {
  color: var(--muted);
}

html[data-lead-variant="3"] .lead-variant-switcher button:hover,
html[data-lead-variant="3"] .lead-variant-switcher button:focus-visible,
html[data-lead-variant="5"] .lead-variant-switcher button:hover,
html[data-lead-variant="5"] .lead-variant-switcher button:focus-visible {
  border-color: var(--line);
  color: var(--ink);
}

html[data-lead-variant="3"] .lead-variant-switcher > small,
html[data-lead-variant="5"] .lead-variant-switcher > small {
  color: var(--muted);
}

/* 04 — a high-signal centered statement with a floating form deck. */
html[data-lead-variant="4"] .lead-section {
  padding: 112px 48px 48px;
  grid-template-columns: 1fr;
  gap: 42px;
  background:
    radial-gradient(circle at 86% 10%, color-mix(in srgb, var(--paper) 18%, transparent), transparent 32%),
    var(--accent);
  color: var(--paper);
}

html[data-lead-variant="4"] .lead-section::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: 24%;
  width: 240px;
  height: 240px;
  border: 1px solid color-mix(in srgb, var(--paper) 28%, transparent);
  transform: rotate(45deg);
  pointer-events: none;
}

html[data-lead-variant="4"] .lead-copy {
  text-align: center;
}

html[data-lead-variant="4"] .lead-copy .eyebrow {
  justify-content: center;
}

html[data-lead-variant="4"] .lead-copy h2 {
  max-width: 980px;
  margin-inline: auto;
  font-size: clamp(58px, 7vw, 104px);
  letter-spacing: -0.045em;
}

html[data-lead-variant="4"] .lead-copy h2 em {
  color: var(--paper);
}

html[data-lead-variant="4"] .lead-copy > p {
  max-width: 720px;
  margin-inline: auto;
  color: color-mix(in srgb, var(--paper) 82%, transparent);
}

html[data-lead-variant="4"] .lead-contacts {
  justify-content: center;
  margin-top: 30px;
}

html[data-lead-variant="4"] .lead-form {
  width: min(1080px, 100%);
  margin-inline: auto;
  box-shadow: 18px 18px 0 color-mix(in srgb, var(--ink) 18%, transparent);
}

/* 05 — quiet light layout with underline fields and lots of restraint. */
html[data-lead-variant="5"] .lead-section {
  padding: 116px 48px 72px;
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.1fr);
  gap: 88px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}

html[data-lead-variant="5"] .lead-copy {
  padding-left: 44px;
  border-left: 1px solid var(--accent);
}

html[data-lead-variant="5"] .lead-copy h2 {
  font-size: clamp(50px, 5.4vw, 78px);
}

html[data-lead-variant="5"] .lead-copy > p,
html[data-lead-variant="5"] .lead-contacts small {
  color: var(--muted);
}

html[data-lead-variant="5"] .lead-contacts a {
  color: var(--ink);
}

html[data-lead-variant="5"] .lead-form {
  align-self: center;
  padding: 0;
  background: transparent;
  color: var(--ink);
}

html[data-lead-variant="5"] .lead-form input {
  padding-inline: 0;
  border-width: 0 0 1px;
  background: transparent;
}

html[data-lead-variant="5"] .lead-form input:focus {
  box-shadow: none;
  border-color: var(--accent);
}

/* 06 — paired conversation cards, deliberately softer than the site shell. */
html[data-lead-variant="6"] .lead-section {
  padding: 108px 42px 54px;
  grid-template-columns: minmax(360px, 0.9fr) minmax(500px, 1.1fr);
  gap: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 48%),
    var(--ink);
}

html[data-lead-variant="6"] .lead-copy {
  padding: 42px;
  border-radius: 28px 28px 4px 28px;
  background: var(--paper);
  color: var(--ink);
}

html[data-lead-variant="6"] .lead-copy h2 {
  font-size: clamp(48px, 4.8vw, 68px);
}

html[data-lead-variant="6"] .lead-copy > p,
html[data-lead-variant="6"] .lead-contacts small {
  color: var(--muted);
}

html[data-lead-variant="6"] .lead-contacts {
  margin-top: 40px;
}

html[data-lead-variant="6"] .lead-contacts a {
  color: var(--ink);
}

html[data-lead-variant="6"] .lead-form {
  padding: 42px;
  border: 1px solid color-mix(in srgb, var(--paper) 22%, transparent);
  border-radius: 4px 28px 28px 28px;
  background: color-mix(in srgb, var(--paper) 7%, transparent);
  color: var(--paper);
}

html[data-lead-variant="6"] .lead-form input {
  border-color: color-mix(in srgb, var(--paper) 22%, transparent);
  background: color-mix(in srgb, var(--paper) 8%, transparent);
  color: var(--paper);
}

html[data-lead-variant="6"] .lead-form input::placeholder {
  color: color-mix(in srgb, var(--paper) 45%, transparent);
}

html[data-lead-variant="6"] .lead-form__actions p,
html[data-lead-variant="6"] .lead-form__status {
  color: color-mix(in srgb, var(--paper) 58%, transparent);
}

@media (min-width: 761px) and (max-width: 1120px) {
  html[data-lead-variant="2"] .lead-copy,
  html[data-lead-variant="3"] .lead-section,
  html[data-lead-variant="5"] .lead-section,
  html[data-lead-variant="6"] .lead-section {
    grid-template-columns: 1fr;
  }

  html[data-lead-variant="2"] .lead-copy h2,
  html[data-lead-variant="2"] .lead-copy > p,
  html[data-lead-variant="2"] .lead-contacts {
    grid-column: 1;
    grid-row: auto;
  }

  html[data-lead-variant="2"] .lead-copy > p {
    margin-top: 24px;
  }

  html[data-lead-variant="2"] .lead-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-lead-variant="3"] .lead-copy {
    padding-top: 34px;
  }
}

@media (max-width: 760px) {
  .lead-section,
  html[data-lead-variant="2"] .lead-section,
  html[data-lead-variant="3"] .lead-section,
  html[data-lead-variant="4"] .lead-section,
  html[data-lead-variant="5"] .lead-section,
  html[data-lead-variant="6"] .lead-section {
    margin-top: 32px;
    padding: 116px 20px 54px;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .lead-variant-switcher {
    top: 20px;
    right: 20px;
    left: 20px;
    padding: 8px;
    flex-wrap: wrap;
    gap: 7px;
  }

  .lead-variant-switcher > span {
    width: 100%;
    margin: 0;
  }

  .lead-variant-switcher > div {
    flex: 1;
  }

  .lead-variant-switcher button {
    flex: 1;
    width: auto;
    min-width: 30px;
  }

  .lead-variant-switcher > small {
    display: none;
  }

  html[data-lead-variant="2"] .lead-copy {
    display: block;
  }

  html[data-lead-variant="2"] .lead-copy h2,
  html[data-lead-variant="3"] .lead-copy h2,
  html[data-lead-variant="4"] .lead-copy h2,
  html[data-lead-variant="5"] .lead-copy h2,
  html[data-lead-variant="6"] .lead-copy h2 {
    font-size: clamp(39px, 10.6vw, 49px);
  }

  html[data-lead-variant="2"] .lead-copy > p {
    margin-top: 22px;
  }

  html[data-lead-variant="2"] .lead-form__grid {
    grid-template-columns: 1fr;
  }

  html[data-lead-variant="3"] .lead-section::before {
    top: 108px;
    left: auto;
    right: 12px;
    font-size: 120px;
  }

  html[data-lead-variant="3"] .lead-copy,
  html[data-lead-variant="5"] .lead-copy {
    padding: 0;
    border-left: 0;
  }

  html[data-lead-variant="3"] .lead-form,
  html[data-lead-variant="6"] .lead-copy,
  html[data-lead-variant="6"] .lead-form {
    padding: 24px 20px;
  }

  html[data-lead-variant="4"] .lead-copy {
    text-align: left;
  }

  html[data-lead-variant="4"] .lead-copy .eyebrow,
  html[data-lead-variant="4"] .lead-contacts {
    justify-content: flex-start;
  }

  html[data-lead-variant="4"] .lead-copy > p {
    margin-inline: 0;
  }

  html[data-lead-variant="4"] .lead-form {
    box-shadow: 8px 8px 0 color-mix(in srgb, var(--ink) 18%, transparent);
  }

  html[data-lead-variant="6"] .lead-copy {
    border-radius: 22px 22px 4px 22px;
  }

  html[data-lead-variant="6"] .lead-form {
    border-radius: 4px 22px 22px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
  }

  .case-progress button.is-active::after {
    animation: none;
    transform: scaleX(1);
  }

  .client-logos {
    animation: none;
  }
}

/* ===== lead variant 7–16: micro-form blocks ===== */
.lead-variant {
  grid-column: 1 / -1;
  width: 100%;
  padding: 40px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  display: none;
}

html[data-lead-variant="7"] .lead-section,
html[data-lead-variant="8"] .lead-section,
html[data-lead-variant="9"] .lead-section,
html[data-lead-variant="10"] .lead-section,
html[data-lead-variant="11"] .lead-section,
html[data-lead-variant="12"] .lead-section,
html[data-lead-variant="13"] .lead-section,
html[data-lead-variant="14"] .lead-section,
html[data-lead-variant="15"] .lead-section,
html[data-lead-variant="16"] .lead-section {
  padding: 104px 36px 42px;
  grid-template-columns: 1fr;
  gap: 0;
}

html[data-lead-variant="7"] .lead-variant-7,
html[data-lead-variant="8"] .lead-variant-8,
html[data-lead-variant="9"] .lead-variant-9,
html[data-lead-variant="10"] .lead-variant-10,
html[data-lead-variant="11"] .lead-variant-11,
html[data-lead-variant="12"] .lead-variant-12,
html[data-lead-variant="13"] .lead-variant-13,
html[data-lead-variant="14"] .lead-variant-14,
html[data-lead-variant="15"] .lead-variant-15,
html[data-lead-variant="16"] .lead-variant-16 {
  display: block;
}

/* Hide original content for variants 7–16 */
html[data-lead-variant="7"] .lead-copy,
html[data-lead-variant="7"] .lead-form,
html[data-lead-variant="8"] .lead-copy,
html[data-lead-variant="8"] .lead-form,
html[data-lead-variant="9"] .lead-copy,
html[data-lead-variant="9"] .lead-form,
html[data-lead-variant="10"] .lead-copy,
html[data-lead-variant="10"] .lead-form,
html[data-lead-variant="11"] .lead-copy,
html[data-lead-variant="11"] .lead-form,
html[data-lead-variant="12"] .lead-copy,
html[data-lead-variant="12"] .lead-form,
html[data-lead-variant="13"] .lead-copy,
html[data-lead-variant="13"] .lead-form,
html[data-lead-variant="14"] .lead-copy,
html[data-lead-variant="14"] .lead-form,
html[data-lead-variant="15"] .lead-copy,
html[data-lead-variant="15"] .lead-form,
html[data-lead-variant="16"] .lead-copy,
html[data-lead-variant="16"] .lead-form {
  display: none;
}

/* Shared micro-form utilities (isolated, no cascade to rest of page) */
:where(
  .mv7-side, .mv8-side, .mv9-side, .mv10-side,
  .mv12-side, .mv13-side, .mv14-side, .mv15-side, .mv16-side
) { min-width: 0; }

:where(
  .mv7, .mv8, .mv9, .mv10,
  .mv12, .mv13, .mv14, .mv15, .mv16
) {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

:where(
  .mv7-title, .mv8-title, .mv9-title, .mv10-title,
  .mv11-title, .mv12-title, .mv13-title, .mv14-title,
  .mv15-title, .mv16-title
) {
  font-family: "Onest", sans-serif;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 12px;
}

:where(
  .mv7-title em, .mv8-title em, .mv9-title em, .mv10-title em,
  .mv11-title em, .mv12-title em, .mv13-title em, .mv14-title em,
  .mv15-title em, .mv16-title em
) { font-style: italic; }

:where(
  .mv7-desc, .mv8-desc, .mv9-desc, .mv10-desc,
  .mv12-desc, .mv13-desc, .mv14-desc, .mv15-desc, .mv16-desc
) {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 24px;
}

:where(
  .mv7-form, .mv8-form, .mv9-form, .mv10-form,
  .mv12-form, .mv13-form, .mv14-form, .mv16-form
) {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

:where(
  .mv7-form label > span, .mv8-form label > span, .mv9-form label > span,
  .mv10-form label > span, .mv12-form label > span, .mv13-form label > span,
  .mv14-form label > span, .mv15-form label > span, .mv16-form label > span
) {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

:where(
  .mv7-form input, .mv8-form input, .mv9-form input,
  .mv10-form input, .mv12-form input, .mv13-form input,
  .mv14-form input, .mv16-form input
) {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: 600 14px/1.4 "Onest", sans-serif;
  transition: border-color 180ms ease;
}

:where(
  .mv7-form input:focus, .mv8-form input:focus, .mv9-form input:focus,
  .mv10-form input:focus, .mv12-form input:focus, .mv13-form input:focus,
  .mv14-form input:focus, .mv16-form input:focus
) {
  outline: 0;
  border-color: var(--accent);
}

.lead-variant label.is-invalid input {
  border-color: #b74f46;
}

.lead-variant label.is-invalid .field-error {
  display: block;
}

:where(
  .mv7-acts, .mv8-acts, .mv9-acts, .mv10-acts,
  .mv12-acts, .mv13-acts, .mv14-acts, .mv15-acts, .mv16-acts
) {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

:where(.mv7-note, .mv11-note, .mv16-note) {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

:where(.mv7-proof, .mv9-proof, .mv15-proof, .mv16-proof) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

:where(.mv8-proof, .mv10-proof, .mv12-proof, .mv13-proof) {
  display: flex;
  align-items: center;
  justify-content: center;
}

:where(.mv14-proof) {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 07 — Stats */
.mv7-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
}

.mv7-stat strong {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.mv7-stat span {
  font-size: 14px;
  color: var(--muted);
}

/* 08 — Review quote */
.mv8-fig {
  margin: 0;
  padding: 24px;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.mv8-stars {
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.mv8-fig p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 12px;
  font-style: italic;
}

.mv8-fig cite {
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
}

/* 09 — Logo marquee */
.mv9-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin: 0;
  text-transform: uppercase;
}

.mv9-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.mv9-logos span {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  opacity: 0.7;
}

/* 10 — Case result */
.mv10-card {
  text-align: center;
  padding: 28px 24px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent) 4%, var(--paper));
}

.mv10-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.mv10-badge {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--paper);
  font-size: 16px;
  font-weight: 800;
}

.mv10-brand strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.mv10-card .mv10-stat {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.mv10-card .mv10-stat strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}

/* 11 — Inline row */
.mv11-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.mv11-title {
  flex: none;
  margin-bottom: 0;
}

.mv11-form {
  display: flex;
  align-items: end;
  gap: 12px;
  flex: 1;
  min-width: 240px;
}

.mv11-form label {
  flex: 1;
  min-width: 0;
}

.mv11-form label > span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.mv11-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: 600 14px/1.4 "Onest", sans-serif;
  transition: border-color 180ms ease;
}

.mv11-form input:focus {
  outline: 0;
  border-color: var(--accent);
}

.mv11-note {
  flex: none;
  white-space: nowrap;
}

/* 12 — Role selector */
.mv12-roles {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.mv12-roles .button {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: 600 13px/1.2 "Onest", sans-serif;
  cursor: pointer;
  transition: all 180ms ease;
}

.mv12-roles .button:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.mv12-roles .button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.mv12-proof {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* 13 — Badge */
.mv13-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.mv13-proof {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* 14 — Contact channels */
.mv14-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: all 180ms ease;
}

.mv14-link:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.mv14-link strong {
  font-weight: 600;
  color: var(--ink);
}

/* 15 — Name + company + phone */
.mv15-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mv15-form label:nth-child(3) {
  grid-column: 1 / -1;
}

.mv15-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: 600 14px/1.4 "Onest", sans-serif;
  transition: border-color 180ms ease;
}

.mv15-form input:focus {
  outline: 0;
  border-color: var(--accent);
}

.mv15-form label > span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.mv15-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.mv15-strip span {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  opacity: 0.7;
}

/* 16 — Logo wall */
.mv16-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin: 0;
  text-transform: uppercase;
}

.mv16-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.mv16-logos span {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  opacity: 0.7;
}

@media (max-width: 760px) {
  html[data-lead-variant="7"] .lead-section,
  html[data-lead-variant="8"] .lead-section,
  html[data-lead-variant="9"] .lead-section,
  html[data-lead-variant="10"] .lead-section,
  html[data-lead-variant="11"] .lead-section,
  html[data-lead-variant="12"] .lead-section,
  html[data-lead-variant="13"] .lead-section,
  html[data-lead-variant="14"] .lead-section,
  html[data-lead-variant="15"] .lead-section,
  html[data-lead-variant="16"] .lead-section {
    padding: 184px 20px 40px;
  }

  .lead-variant-switcher > div {
    flex-wrap: wrap;
  }

  .lead-variant-switcher button {
    flex: 0 0 calc(12.5% - 4px);
  }

  .lead-variant {
    padding: 24px 20px;
  }

  :where(
    .mv7, .mv8, .mv9, .mv10,
    .mv12, .mv13, .mv14, .mv15, .mv16
  ) {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .mv11-row {
    flex-direction: column;
    align-items: stretch;
  }
  .mv11-form {
    flex-direction: column;
    align-items: stretch;
  }
  .mv11-note {
    white-space: normal;
  }
  .mv15-form {
    grid-template-columns: 1fr;
  }
  .mv15-form label:nth-child(3) {
    grid-column: 1;
  }
  .mv12-roles {
    flex-direction: column;
  }
}

/* Task switcher: compact scenarios, recommended formats and relevant cases. */
.problem-legacy {
  display: none !important;
}

.problem {
  padding: 78px 24px 86px;
}

.problem-intro {
  margin-bottom: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 70px;
  align-items: end;
}

.problem-intro h2 {
  max-width: 760px;
  margin: 0;
  font: 500 clamp(48px, 5.5vw, 72px)/0.94 "Onest", sans-serif;
  letter-spacing: -0.058em;
}

.problem-intro h2 em {
  color: var(--brown);
  display: block;
  font-family: "Source Serif 4", serif;
  font-weight: 500;
}

.problem-intro > p {
  max-width: 480px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.problem-switcher {
  display: grid;
  grid-template-columns: minmax(250px, 0.62fr) minmax(0, 1.38fr);
  gap: 30px;
  align-items: start;
}

.problem-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.problem-tab {
  width: 100%;
  min-height: 76px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 6px 20px 6px 6px;
  background: color-mix(in srgb, var(--card-bg) 88%, transparent);
  color: var(--ink);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.problem-tab small {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--muted);
  display: grid;
  place-items: center;
  font: 600 11px/1 "Onest", sans-serif;
}

.problem-tab span {
  font: 560 17px/1.15 "Onest", sans-serif;
}

.problem-tab:hover,
.problem-tab:focus-visible {
  border-color: color-mix(in srgb, var(--ink) 38%, var(--line));
  outline: none;
  transform: translateX(4px);
}

.problem-tab.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  transform: none;
}

.problem-tab.is-active small {
  background: var(--accent);
  color: var(--accent-ink);
}

.problem-panels {
  min-width: 0;
}

.problem-panel {
  min-height: 560px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 6px 34px 6px 6px;
  background: color-mix(in srgb, var(--card-bg) 94%, var(--paper));
  animation: problem-panel-in 260ms cubic-bezier(.2, .75, .25, 1) both;
}

.problem-panel[hidden] {
  display: none;
}

@keyframes problem-panel-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.problem-panel__label,
.problem-formats > span,
.problem-cases > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.problem-panel > h3 {
  max-width: 790px;
  margin: 12px 0 34px;
  font: 520 clamp(34px, 3.5vw, 50px)/1.03 "Onest", sans-serif;
  letter-spacing: -0.05em;
}

.problem-panel__summary {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: 42px;
}

.problem-panel__summary > div + div {
  padding-left: 42px;
  border-left: 1px solid var(--line);
}

.problem-panel__summary h4 {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.problem-panel__summary ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.problem-panel__summary li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.35;
}

.problem-panel__summary li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--brown);
}

.problem-panel__summary p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.problem-panel__footer {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.42fr);
  gap: 28px;
}

.problem-formats > div {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.problem-formats a {
  min-height: 92px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 5px 16px 5px 5px;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.problem-formats a:hover,
.problem-formats a:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, var(--paper));
  outline: none;
  transform: translateY(-2px);
}

.problem-formats strong {
  font-size: 14px;
  line-height: 1.2;
}

.problem-formats small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.problem-cases > div {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.problem-cases a {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--brown);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.problem-cases a:hover,
.problem-cases a:focus-visible {
  border-color: var(--brown);
  background: var(--brown);
  color: var(--paper);
  outline: none;
}

.problem-cases i {
  font-size: 13px;
  font-style: normal;
}

@media (max-width: 980px) {
  .problem-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .problem-switcher {
    grid-template-columns: minmax(220px, 0.52fr) minmax(0, 1.48fr);
    gap: 18px;
  }

  .problem-panel {
    padding: 32px;
  }

  .problem-panel__summary,
  .problem-panel__footer {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .problem-panel__summary > div + div {
    padding: 20px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .problem {
    padding: 54px 20px 64px;
  }

  .problem-intro {
    margin-bottom: 30px;
  }

  .problem-intro h2 {
    font-size: clamp(40px, 11vw, 52px);
  }

  .problem-intro > p {
    font-size: 14px;
  }

  .problem-switcher {
    display: block;
  }

  .problem-tabs {
    margin: 0 -20px 14px;
    padding: 0 20px 8px;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .problem-tabs::-webkit-scrollbar {
    display: none;
  }

  .problem-tab {
    width: auto;
    min-width: max-content;
    min-height: 54px;
    padding: 9px 14px 9px 10px;
    border-radius: 5px 16px 5px 5px;
    grid-template-columns: 30px auto;
    gap: 9px;
    scroll-snap-align: start;
  }

  .problem-tab small {
    width: 28px;
    height: 28px;
    font-size: 9px;
  }

  .problem-tab span {
    font-size: 14px;
  }

  .problem-tab:hover,
  .problem-tab:focus-visible {
    transform: none;
  }

  .problem-panel {
    min-height: 0;
    padding: 25px 20px;
    border-radius: 5px 24px 5px 5px;
  }

  .problem-panel > h3 {
    margin-bottom: 24px;
    font-size: 32px;
  }

  .problem-panel__summary {
    padding: 22px 0;
  }

  .problem-formats > div {
    grid-template-columns: 1fr;
  }

.problem-panel__footer {
    margin-top: 22px;
  }
}

/* Lead concepts 07–16: full selling compositions, not compact form demos. */
.lead-variant {
  position: relative;
  min-height: 560px;
  padding: 0;
  overflow: hidden;
}

:where(.mv7, .mv8, .mv9, .mv10, .mv12, .mv13, .mv14, .mv15, .mv16) {
  min-height: 558px;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 0;
  align-items: stretch;
}

:where(
  .mv7-side, .mv8-side, .mv9-side, .mv10-side, .mv12-side,
  .mv13-side, .mv14-side, .mv15-side, .mv16-side
) {
  padding: clamp(44px, 5vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mv-kicker,
.mv-proof-label {
  display: block;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

:where(
  .mv7-title, .mv8-title, .mv9-title, .mv10-title, .mv11-title,
  .mv12-title, .mv13-title, .mv14-title, .mv15-title, .mv16-title
) {
  max-width: 760px;
  margin: 0 0 20px;
  font-family: "Source Serif 4", serif;
  font-size: clamp(46px, 4.7vw, 70px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

:where(
  .mv7-title em, .mv8-title em, .mv9-title em, .mv10-title em,
  .mv11-title em, .mv12-title em, .mv13-title em, .mv14-title em,
  .mv15-title em, .mv16-title em
) {
  display: block;
  color: var(--brown);
  font-weight: 500;
}

:where(
  .mv7-desc, .mv8-desc, .mv9-desc, .mv10-desc,
  .mv12-desc, .mv13-desc, .mv14-desc, .mv15-desc, .mv16-desc
) {
  max-width: 660px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.48;
}

:where(
  .mv7-form, .mv8-form, .mv9-form, .mv10-form,
  .mv12-form, .mv13-form, .mv14-form, .mv16-form
) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

:where(.mv7-form, .mv14-form) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

:where(.mv7-acts, .mv14-acts) {
  grid-column: 1 / -1;
}

:where(
  .mv7-form label, .mv8-form label, .mv9-form label, .mv10-form label,
  .mv11-form label, .mv12-form label, .mv13-form label, .mv14-form label,
  .mv15-form label, .mv16-form label
) {
  min-width: 0;
}

:where(
  .mv7-form input, .mv8-form input, .mv9-form input, .mv10-form input,
  .mv11-form input, .mv12-form input, .mv13-form input, .mv14-form input,
  .mv15-form input, .mv16-form input
) {
  min-height: 50px;
  padding: 13px 15px;
}

:where(
  .mv7-acts, .mv8-acts, .mv9-acts, .mv10-acts,
  .mv12-acts, .mv13-acts, .mv14-acts, .mv15-acts, .mv16-acts
) .button {
  min-height: 50px;
}

/* 07: diagnostic dossier. */
.lead-variant-7 {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--line) 44%, transparent) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--paper);
}

.mv7-proof {
  padding: clamp(42px, 5vw, 70px);
  background: var(--ink);
  color: var(--paper);
  align-items: stretch;
  justify-content: center;
}

.mv7-proof .mv-proof-label {
  color: color-mix(in srgb, var(--paper) 58%, transparent);
}

.mv7-stat {
  position: relative;
  padding: 24px 0;
  border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
  align-items: center;
}

.mv7-stat:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
}

.mv7-stat strong {
  color: var(--accent);
  font: 500 38px/1 "Source Serif 4", serif;
}

.mv7-stat span {
  color: var(--paper);
  font-size: 16px;
  line-height: 1.35;
}

/* 08: proof-first scorecard. */
.lead-variant-8 {
  border-color: var(--accent);
  background: var(--accent);
}

.mv8-side {
  background: var(--accent);
}

.mv8-side .mv-kicker,
.mv8-side .mv8-desc {
  color: color-mix(in srgb, var(--ink) 66%, transparent);
}

.mv8-title em {
  color: var(--ink);
}

.mv8-proof {
  padding: clamp(30px, 4vw, 58px);
  background: var(--ink);
}

.mv8-fig {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: clamp(34px, 4.4vw, 64px);
  border: 1px solid color-mix(in srgb, var(--paper) 20%, transparent);
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mv8-score {
  display: flex;
  align-items: end;
  gap: 8px;
  color: var(--paper);
}

.mv8-score strong {
  color: var(--accent);
  font: 500 clamp(96px, 10vw, 150px)/0.72 "Source Serif 4", serif;
  letter-spacing: -0.07em;
}

.mv8-score span {
  margin-bottom: 8px;
  color: color-mix(in srgb, var(--paper) 54%, transparent);
  font-size: 18px;
}

.mv8-fig p {
  max-width: 390px;
  margin: 34px 0 12px;
  color: var(--paper);
  font-size: 20px;
  font-style: normal;
  line-height: 1.35;
}

.mv8-fig cite {
  color: color-mix(in srgb, var(--paper) 56%, transparent);
  font-size: 13px;
}

.mv8-fig a {
  width: fit-content;
  margin-top: 34px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

/* 09: brand wall backed by scale. */
.lead-variant-9 {
  background: var(--paper);
}

.mv9-proof {
  padding: clamp(40px, 5vw, 68px);
  border-left: 1px solid var(--line);
  background: var(--card-bg);
  align-items: stretch;
  justify-content: center;
}

.mv9-numbers {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 12px;
}

.mv9-numbers p {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.mv9-numbers strong,
.mv9-numbers span {
  display: block;
}

.mv9-numbers strong {
  color: var(--brown);
  font: 500 clamp(40px, 4vw, 64px)/0.95 "Source Serif 4", serif;
}

.mv9-numbers span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.mv9-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mv9-logos span {
  min-height: 74px;
  padding: 15px;
  border: 1px solid var(--line);
  background: var(--paper);
  opacity: 1;
  display: grid;
  place-items: center;
}

.mv9-logos img {
  width: min(120px, 86%);
  height: 34px;
  object-fit: contain;
}

/* 10: visual route to adoption. */
.lead-variant-10 {
  background: var(--ink);
  color: var(--paper);
}

.mv10-side .mv-kicker,
.mv10-side .mv10-desc,
.mv10-side label > span {
  color: color-mix(in srgb, var(--paper) 60%, transparent);
}

.mv10-title {
  color: var(--paper);
}

.mv10-title em {
  color: var(--accent);
}

.mv10-proof {
  padding: clamp(30px, 4vw, 54px);
  background: color-mix(in srgb, var(--paper) 6%, var(--ink));
}

.mv10-card {
  width: 100%;
  min-height: 100%;
  padding: clamp(32px, 4vw, 52px);
  border-color: color-mix(in srgb, var(--paper) 18%, transparent);
  background: transparent;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mv10-brand {
  justify-content: flex-start;
  margin-bottom: 24px;
  color: var(--paper);
}

.mv10-brand strong {
  color: var(--paper);
}

.mv10-card .mv10-stat {
  position: relative;
  margin: 0;
  padding: 20px 0 20px 70px;
  border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
}

.mv10-card .mv10-stat:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
}

.mv10-card .mv10-stat > strong {
  position: absolute;
  top: 22px;
  left: 0;
  color: var(--accent);
  font: 500 34px/1 "Source Serif 4", serif;
}

.mv10-card .mv10-stat > span,
.mv10-card .mv10-stat > small {
  display: block;
}

.mv10-card .mv10-stat > span {
  color: var(--paper);
  font-size: 17px;
  font-weight: 650;
}

.mv10-card .mv10-stat > small {
  margin-top: 5px;
  color: color-mix(in srgb, var(--paper) 50%, transparent);
  font-size: 12px;
}

/* 11: bold single-action banner. */
.lead-variant-11 {
  min-height: 560px;
  padding: clamp(44px, 6vw, 84px);
  border-color: var(--accent);
  background:
    radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--paper) 26%, transparent), transparent 30%),
    var(--accent);
}

.mv11-row {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  grid-template-rows: auto auto;
  gap: 38px 70px;
  align-content: center;
}

.mv11-copy p {
  max-width: 680px;
  margin: 0;
  color: color-mix(in srgb, var(--ink) 68%, transparent);
  font-size: 17px;
  line-height: 1.5;
}

.mv11-title {
  font-size: clamp(56px, 6.4vw, 92px);
}

.mv11-title em {
  color: var(--ink);
}

.mv11-form {
  padding: 30px;
  border: 1px solid color-mix(in srgb, var(--ink) 28%, transparent);
  background: var(--paper);
  align-self: center;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.mv11-note {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}

.mv11-note span {
  padding: 9px 13px;
  border: 1px solid color-mix(in srgb, var(--ink) 28%, transparent);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

/* 12: role console with live outcome. */
.lead-variant-12 {
  background: var(--paper);
}

.mv12-roles {
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.mv12-roles .button {
  min-height: 48px;
  padding: 12px 16px;
  justify-content: flex-start;
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.mv12-roles .button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.mv12-proof {
  padding: clamp(44px, 5vw, 72px);
  background: var(--ink);
  color: var(--paper);
  text-align: left;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.mv12-proof > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.mv12-proof p {
  max-width: 480px;
  margin: 30px 0;
  color: var(--paper);
  font: 500 clamp(34px, 3.6vw, 54px)/1.04 "Source Serif 4", serif;
  letter-spacing: -0.035em;
}

.mv12-proof small {
  color: color-mix(in srgb, var(--paper) 54%, transparent);
  font-size: 12px;
}

/* 13: productized pilot. */
.lead-variant-13 {
  background: var(--paper);
}

.mv13-badge {
  width: fit-content;
  margin: 0 0 20px;
  border-color: var(--ink);
  color: var(--ink);
}

.mv13-proof {
  padding: clamp(42px, 5vw, 68px);
  background: var(--accent);
  color: var(--ink);
  text-align: left;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.mv13-proof .mv-proof-label {
  color: color-mix(in srgb, var(--ink) 58%, transparent);
}

.mv13-proof ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mv13-proof li {
  padding: 20px 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  display: flex;
  gap: 18px;
  font-size: 17px;
  font-weight: 650;
}

.mv13-proof li span {
  font: 500 28px/1 "Source Serif 4", serif;
}

.mv13-decision {
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  font-size: 13px;
}

.mv13-decision strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

/* 14: personal contact, human and direct. */
.lead-variant-14 {
  background: var(--ink);
  color: var(--paper);
}

.mv14-title {
  color: var(--paper);
}

.mv14-title em {
  color: var(--accent);
}

.mv14-side .mv-kicker,
.mv14-side .mv14-desc,
.mv14-side label > span {
  color: color-mix(in srgb, var(--paper) 58%, transparent);
}

.mv14-proof {
  padding: clamp(42px, 5vw, 70px);
  background: var(--paper);
  color: var(--ink);
  justify-content: center;
}

.mv14-person {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
}

.mv14-person > span {
  width: 54px;
  height: 54px;
  background: var(--accent);
  display: grid;
  place-items: center;
  font: 700 16px/1 "Onest", sans-serif;
}

.mv14-person strong,
.mv14-person small {
  display: block;
}

.mv14-person small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.mv14-proof > p {
  margin: 30px 0;
  color: var(--ink);
  font: 500 clamp(27px, 2.6vw, 38px)/1.12 "Source Serif 4", serif;
  letter-spacing: -0.03em;
}

.mv14-link {
  min-height: 50px;
  padding: 12px 0;
  border-width: 1px 0 0;
  justify-content: space-between;
}

.mv14-link:last-child {
  border-bottom: 1px solid var(--line);
}

/* 15: editorial brief with a tangible output. */
.lead-variant-15 {
  background: var(--paper);
}

.mv15-form {
  margin-top: 4px;
}

.mv15-form label:nth-child(3) {
  grid-column: 1 / -1;
}

.mv15-acts {
  grid-column: 1 / -1;
}

.mv15-proof {
  padding: clamp(42px, 5vw, 70px);
  border-left: 1px solid var(--line);
  background: var(--card-bg);
  align-items: stretch;
  justify-content: center;
}

.mv15-output {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
}

.mv15-output:last-child {
  border-bottom: 1px solid var(--line);
}

.mv15-output > span {
  color: var(--brown);
  font: 500 30px/1 "Source Serif 4", serif;
}

.mv15-output p,
.mv15-output strong,
.mv15-output small {
  display: block;
  margin: 0;
}

.mv15-output strong {
  font-size: 16px;
}

.mv15-output small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

/* 16: case matcher. */
.lead-variant-16 {
  background: var(--ink);
  color: var(--paper);
}

.mv16-title {
  color: var(--paper);
}

.mv16-title em {
  color: var(--accent);
}

.mv16-side .mv-kicker,
.mv16-side .mv16-desc,
.mv16-side label > span,
.mv16-note {
  color: color-mix(in srgb, var(--paper) 58%, transparent);
}

.mv16-proof {
  padding: clamp(32px, 4vw, 54px);
  background: color-mix(in srgb, var(--paper) 6%, var(--ink));
  align-items: stretch;
  justify-content: center;
}

.mv16-form {
  grid-template-columns: 1fr;
}

.mv16-acts {
  justify-content: flex-start;
}

.mv16-case {
  position: relative;
  min-height: 126px;
  padding: 20px 22px;
  border: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
  color: var(--paper);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.mv16-case + .mv16-case {
  margin-top: -1px;
}

.mv16-case:hover,
.mv16-case:focus-visible {
  z-index: 1;
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  outline: none;
  transform: translateX(-6px);
}

.mv16-case > span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
}

.mv16-case strong {
  margin: 7px 0;
  font: 500 30px/1 "Source Serif 4", serif;
}

.mv16-case small {
  color: color-mix(in srgb, var(--paper) 56%, transparent);
  font-size: 12px;
}

.mv16-case i {
  float: right;
  color: var(--accent);
  font-style: normal;
}

@media (min-width: 761px) and (max-width: 1120px) {
  :where(.mv7, .mv8, .mv9, .mv10, .mv12, .mv13, .mv14, .mv15, .mv16) {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  }

  :where(
    .mv7-title, .mv8-title, .mv9-title, .mv10-title, .mv12-title,
    .mv13-title, .mv14-title, .mv15-title, .mv16-title
  ) {
    font-size: clamp(40px, 4.8vw, 56px);
  }

  .mv11-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  html[data-lead-variant="7"] .lead-section,
  html[data-lead-variant="8"] .lead-section,
  html[data-lead-variant="9"] .lead-section,
  html[data-lead-variant="10"] .lead-section,
  html[data-lead-variant="11"] .lead-section,
  html[data-lead-variant="12"] .lead-section,
  html[data-lead-variant="13"] .lead-section,
  html[data-lead-variant="14"] .lead-section,
  html[data-lead-variant="15"] .lead-section,
  html[data-lead-variant="16"] .lead-section {
    padding: 190px 16px 28px;
  }

  .lead-variant {
    min-height: 0;
  }

  .theme-switcher {
    right: 12px;
    left: auto;
  }

  .theme-switcher__toggle {
    width: 46px;
    min-width: 46px;
    padding: 0;
    justify-content: center;
  }

  .theme-switcher__dots,
  .theme-switcher__current small {
    display: none;
  }

  .theme-switcher__current {
    display: block;
    font-size: 0;
  }

  .theme-switcher__current::before {
    content: "V";
    color: var(--muted);
    font-size: 9px;
  }

  .theme-switcher__current b {
    font-size: 12px;
  }

  :where(.mv7, .mv8, .mv9, .mv10, .mv12, .mv13, .mv14, .mv15, .mv16) {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  :where(
    .mv7-side, .mv8-side, .mv9-side, .mv10-side, .mv12-side,
    .mv13-side, .mv14-side, .mv15-side, .mv16-side,
    .mv7-proof, .mv8-proof, .mv9-proof, .mv10-proof, .mv12-proof,
    .mv13-proof, .mv14-proof, .mv15-proof, .mv16-proof
  ) {
    padding: 30px 22px;
  }

  :where(
    .mv7-title, .mv8-title, .mv9-title, .mv10-title, .mv11-title,
    .mv12-title, .mv13-title, .mv14-title, .mv15-title, .mv16-title
  ) {
    font-size: clamp(39px, 11.4vw, 50px);
  }

  :where(
    .mv7-form, .mv8-form, .mv9-form, .mv10-form, .mv11-form,
    .mv12-form, .mv13-form, .mv14-form, .mv15-form, .mv16-form
  ) {
    grid-template-columns: 1fr;
  }

  :where(.mv7-acts, .mv14-acts, .mv15-form label:nth-child(3), .mv15-acts) {
    grid-column: 1;
  }

  .lead-variant-11 {
    padding: 34px 22px;
  }

  .mv11-row {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .mv11-title {
    font-size: clamp(43px, 12.6vw, 58px);
  }

  .mv11-form {
    padding: 22px;
  }

  .mv11-note {
    flex-wrap: wrap;
  }

  .mv9-numbers {
    grid-template-columns: 1fr 1fr;
  }

  .mv9-numbers p {
    padding: 16px;
  }

  .mv9-numbers strong {
    font-size: 38px;
  }

  .mv12-roles {
    flex-direction: initial;
  }

  .mv14-proof > p {
    font-size: 30px;
  }

  .mv16-case:hover,
  .mv16-case:focus-visible {
    transform: none;
  }
}

/* Unified section labels and customer-stage switcher refinements. */
.section-kicker {
  width: fit-content;
  height: auto;
  margin-bottom: 26px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.section-kicker > span,
.eyebrow.section-kicker > span,
.cases-kicker.section-kicker > span {
  width: 42px;
  height: 1px;
  margin: 0;
  flex: 0 0 42px;
  display: block;
  background: currentColor;
  clip-path: none;
  color: inherit;
  font-size: 0;
}

.lead-copy .section-kicker {
  color: color-mix(in srgb, var(--paper) 68%, transparent);
}

html[data-background="solid"] .lead-copy .section-kicker {
  color: var(--muted);
}

.formats .section-heading {
  max-width: none;
  height: auto;
  margin: 0 0 38px;
  padding: 0 24px;
  display: block;
  text-align: left;
}

.formats .section-heading h2 {
  max-width: 900px;
  height: auto;
  margin: 0;
}

.formats .section-heading h2 em {
  margin-inline: 0;
}

.formats .section-heading p {
  width: auto;
  max-width: 620px;
  margin: 18px 0 0 auto;
  line-height: 1.4;
}

.problem-panel__summary li {
  padding-left: 0;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.problem-panel__summary li::before {
  position: static;
  width: 11px;
  height: 1.5px;
  margin-top: 0.64em;
  background: var(--brown);
  content: "";
}

@media (max-width: 760px) {
  .section-kicker {
    margin-bottom: 20px;
    gap: 13px;
    font-size: 11px;
    letter-spacing: 0.2em;
  }

  .section-kicker > span,
  .eyebrow.section-kicker > span,
  .cases-kicker.section-kicker > span {
    width: 30px;
    flex-basis: 30px;
  }

  .formats .section-heading {
    margin-bottom: 30px;
    padding: 0 20px;
  }

  .formats .section-heading p {
    margin-left: 0;
  }
}

/* Hero proof logos: real lockups, no absolute-position crop hacks. */
.client-badges {
  width: 142px;
  gap: 4px;
  align-items: center;
}

.client-badge + .client-badge {
  margin-left: 0;
}

.client-badge--sber,
.client-badge--s7 {
  width: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
}

.client-badge--sber img {
  position: static;
  width: 30px;
  max-width: 30px;
  height: 30px;
  object-fit: cover;
  object-position: left center;
}

.client-badge--s7 img {
  position: static;
  width: 30px;
  max-width: 30px;
  height: 30px;
  object-fit: contain;
}

.client-badge--vtb {
  width: 58px;
  flex: 0 0 58px;
  border-radius: 12px;
}

.client-badge--vtb img {
  width: 46px;
  height: 18px;
  object-fit: contain;
}
