/* === Variables === */
/* Brandbook v1.0 / 2026 — Маркетинговая лаборатория Семёна Сафронова
   Бумага · Тушь · Реактив · Пыль · Стоп
   8 px модуль · 12 колонок · Onest + JetBrains Mono */
:root {
  --bg: #F4F1EA;            /* Бумага — основа 74% */
  --bg-soft: #ECE8DE;       /* Бумага тоном темнее для секций */
  --bg-pill: #E5E0D2;       /* Пыль-light для пиллов */
  --text: #0E0E0E;          /* Тушь */
  --text-secondary: #1F1F1F;
  --text-muted: #5E5E5E;    /* WCAG AA: 5.75:1 на бумаге, 5.3:1 на bg-soft */
  --border: #C8C2B6;        /* Пыль */
  --border-soft: rgba(14, 14, 14, 0.10);
  --primary: #0E0E0E;       /* Тушь */
  --primary-hover: #000000;
  --accent: #2A6FDB;        /* Реактив — синий, Pantone 285 C (брендбук 03). Заливки, крупное, иконки */
  --accent-text: #225FC0;   /* Реактив затемнённый для мелкого текста/ссылок · WCAG AA 5.37:1 на бумаге */
  --accent-hover: #1B4C9E;
  --stop: #E63322;          /* Стоп — только "нельзя" */
  --paper: #F4F1EA;
  --ink: #0E0E0E;

  --font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 8 px модуль */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;

  --max-width: 1280px;
  --padding-x: 32px;
  --padding-x-mobile: 24px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);

  /* Брендбук НЕ использует тени и скругления как акцент.
     Радиусы минимальные — только функциональные. */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* === Motion lab: interactive system layer (R24) === */
@keyframes system-dash {
  from { stroke-dashoffset: 340; }
  to { stroke-dashoffset: 0; }
}

@keyframes system-node-live {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.04); }
}

@keyframes signal-shimmer {
  from { transform: translateX(-120%); }
  to { transform: translateX(160%); }
}

@keyframes terminal-caret {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@keyframes rail-pulse {
  0%, 100% { transform: scale(1); opacity: 0.48; }
  50% { transform: scale(1.42); opacity: 1; }
}

.gpt-terminal {
  position: relative;
  display: grid;
  gap: 8px;
  max-width: 620px;
  margin-top: -6px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.gpt-terminal-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 2px;
}

.gpt-terminal-top span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.gpt-terminal-top span:nth-child(1) { background: #ff5a8a; }
.gpt-terminal-top span:nth-child(2) { background: #ffb000; }
.gpt-terminal-top span:nth-child(3) { background: #11a36a; }

.gpt-terminal-top strong,
.gpt-terminal p {
  color: rgba(255, 255, 255, 0.68);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.gpt-terminal-top strong {
  margin-left: 4px;
  text-transform: uppercase;
}

.gpt-terminal p {
  position: relative;
  min-height: 18px;
  max-width: none;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.gpt-terminal p::before {
  content: "> ";
  color: #11a36a;
}

.gpt-terminal p.is-typing::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 4px;
  transform: translateY(2px);
  background: var(--accent);
  animation: terminal-caret 0.9s steps(1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .gpt-terminal p.is-typing::after {
    animation: none !important;
  }
}

/* === Reset === */
* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Брендбук 07.2 — сетка точек как «спокойный фон». Шаг 24 px = 3 модуля. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(14, 14, 14, 0.10) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent 70%);
}

img,
svg {
  max-width: 100%;
}

/* === Typography === Брендбук 04 / Onest + JetBrains Mono */
h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text);
}

/* H1 / Display 2 — 56 px / 0.95 / 800 / -2.5% */
h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 800;
}

/* H2 / разделы — Display 2 урезанный — 36-56 px / 700 / -2% */
h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 700;
}

/* H3 — 24 px / 1.15 / 700 / -1% */
h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h4 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Body — 17 px / 1.5 / 400 */
p {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-secondary);
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.btn-pill:focus-visible,
.site-brand:focus-visible,
.site-nav a:focus-visible,
.site-header-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

s, del {
  color: var(--text-muted);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.meta {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}

.skip-link {
  position: fixed;
  left: 20px;
  top: 14px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  transform: translateY(-140%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* === Layout === */
section, footer {
  position: relative;
  padding: 100px var(--padding-x);
  scroll-margin-top: 110px;
}

section + section {
  padding-top: 60px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  min-width: 0;
}

/* === Header === */
.site-header {
  position: fixed;
  top: 16px;
  left: var(--padding-x);
  right: var(--padding-x);
  z-index: 60;
  pointer-events: none;
}

.site-header-inner {
  width: 100%;
  max-width: var(--max-width);
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  margin: 0 auto;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: none;
  pointer-events: auto;
}

/* Брендбук 01.1 / wordmark — «сафронов.» + точка-реактив */
.site-brand {
  min-height: 42px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 4px 0 0;
  color: var(--text);
  border-radius: 0;
}

.site-brand .brand-word {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: lowercase;
  display: inline;
}

.site-brand .brand-dot {
  color: var(--accent);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  margin-left: 1px;
}

.site-brand small {
  margin-top: 6px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav {
  min-width: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--bg-pill);
  color: var(--text);
}

.site-header-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header-cta:hover {
  background: var(--accent);
  color: var(--paper);
}

/* === Mobile nav toggle (burger) === */
.site-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(9, 9, 11, 0.12);
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.site-nav-toggle:hover,
.site-nav-toggle:focus-visible {
  background: var(--bg-soft);
}

.site-nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 55;
}

body.nav-open .site-nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .site-nav-toggle__bar,
  .site-nav-backdrop {
    transition: none;
  }
}

/* === Buttons === брендбук 04 — sharp, ink/paper, моноширинный кап-лок */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  will-change: background-color;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.35s var(--ease);
  z-index: -1;
}

.btn:hover::before {
  transform: translateY(0);
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
  transform: none;
  box-shadow: none;
}

.btn .arrow {
  font-size: 12px;
  transition: transform 0.3s var(--ease);
  display: inline-block;
}

.btn:hover .arrow {
  transform: translate(3px, -3px);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--bg-pill);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.3s var(--ease);
}

.btn-pill:hover {
  background: var(--accent);
  color: #fff;
}

.btn-pill .arrow {
  transition: transform 0.3s var(--ease);
  display: inline-block;
}

.btn-pill:hover .arrow {
  transform: translateX(3px);
}

/* === Reveal animations === */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* === Hero === */
#hero {
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  width: 100%;
  max-width: var(--max-width);
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(320px, 420px);
  gap: 64px;
  align-items: center;
}

#hero h1 {
  grid-column: 1;
  margin: 28px 0 32px;
  max-width: 920px;
}

#hero .meta,
.hero-lead,
.hero-cta {
  grid-column: 1;
}

#hero h1 s {
  font-style: normal;
}

.hero-lead {
  font-size: 22px;
  line-height: 1.5;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 40px;
  max-width: 720px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.hero-copy {
  grid-column: 1;
  display: flex;
  flex-direction: column;
}

.hero-photo {
  grid-column: 2;
  grid-row: 1 / span 6;
  margin: 0;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 4 / 5;
  box-shadow: 0 28px 80px -64px rgba(9, 9, 11, 0.6);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === Numbers === */
#numbers .meta { margin-bottom: 24px; }

#numbers h2 {
  margin-bottom: 56px;
  max-width: 880px;
}

/* === Cases === */
#cases {
  position: relative;
  background:
    linear-gradient(180deg, #fff 0%, #f7f8fb 100%);
  overflow: hidden;
}

/* Паттерн: формулы юнит-экономики фоном (брендбук 07) */
#cases::before {
  content: "cac = spend / customers      roas = revenue / spend      ltv = arpu × lifetime      romi = (revenue − cost) / cost";
  position: absolute;
  top: 22px;
  right: -4%;
  max-width: 46%;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  line-height: 2.4;
  letter-spacing: 0.02em;
  color: var(--accent);
  opacity: 0.06;
  white-space: pre-wrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

#cases > .container {
  position: relative;
  z-index: 1;
}

.cases-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.58fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 42px;
}

.cases-head h2 {
  max-width: 860px;
}

.cases-lead {
  max-width: 620px;
  margin-bottom: 4px;
  color: var(--text-secondary);
  font-size: 20px;
}

.cases-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.91fr 0.91fr;
  gap: 12px;
}

.case-card {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--paper);
  overflow: hidden;
  transition:
    transform 0.28s var(--ease),
    border-color 0.28s var(--ease),
    background 0.28s var(--ease);
}

.case-card--dark {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.case-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 54px;
}

.case-card-top span,
.case-card-top small {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.case-card-top small {
  max-width: 150px;
  text-align: right;
}

.case-card--dark .case-card-top span,
.case-card--dark .case-card-top small {
  color: rgba(255, 255, 255, 0.75);
}

.case-card h3 {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.case-card p {
  position: relative;
  z-index: 1;
  color: var(--text-secondary);
  font-size: 16px;
}

.case-card--dark h3,
.case-card--dark p {
  color: #fff;
}

.case-card--dark p {
  color: rgba(255, 255, 255, 0.72);
}

.case-metrics {
  position: relative;
  z-index: 1;
  margin-top: 34px;
}

.case-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-metrics span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--bg-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-card:hover {
  transform: none;
  border-color: var(--accent);
  box-shadow: none;
}

/* === Services === */
#services h2 { margin-bottom: 24px; }

.services-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.6fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 40px;
}

.services-lead {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 0;
  max-width: 620px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.capability {
  position: relative;
  min-height: 220px;
  padding: 26px;
  border-radius: 20px;
  background: var(--bg-soft);
  overflow: hidden;
}

.capability-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: start;
  margin-bottom: 26px;
}

.capability-top span {
  color: var(--text-muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.capability h4 {
  max-width: 260px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
  text-align: left;
  margin: 0;
  letter-spacing: -0.01em;
}

.capability p {
  max-width: 520px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.52;
}

.format-output span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 11px;
  border: 1px solid rgba(9, 9, 11, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.capability ul {
  display: grid;
  gap: 7px;
  margin-top: 24px;
  list-style: none;
}

.capability li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  font-size: 14px;
}

.capability li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.capability-strip {
  margin-top: 28px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-formats {
  margin-top: 48px;
}

.work-formats-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 16px;
}

.work-formats-head p {
  max-width: 520px;
  color: var(--text-secondary);
  font-size: 15px;
  text-align: right;
}

.work-format-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.work-format {
  min-height: 232px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  transition:
    transform 0.28s var(--ease),
    border-color 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}

.work-format--dark {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.work-format-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 30px;
}

.work-format-top span,
.work-format-top small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.work-format-top small {
  text-align: right;
}

.work-format--dark .work-format-top span,
.work-format--dark .work-format-top small {
  color: rgba(255, 255, 255, 0.75);
}

.work-format h3 {
  margin-bottom: 14px;
  color: var(--text);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 360;
}

.work-format p {
  color: var(--text-secondary);
  font-size: 15px;
}

.format-output {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 32px;
}

.work-format--dark .format-output span {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.work-format--dark h3,
.work-format--dark p {
  color: #fff;
}

.work-format--dark p {
  color: rgba(255, 255, 255, 0.72);
}

.work-format ul {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 28px;
  list-style: none;
}

.work-format li {
  position: relative;
  padding-left: 16px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.35;
}

.work-format li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.work-format--dark li {
  color: rgba(255, 255, 255, 0.72);
}

.work-format:hover {
  transform: translateY(-4px);
  border-color: rgba(42, 111, 219, 0.22);
  box-shadow: 0 24px 72px -46px rgba(9, 9, 11, 0.45);
}

.services-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding: 32px 36px;
  background: var(--bg-soft);
  border-radius: 20px;
}

.services-cta-text {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* === About === */
#about h2 { margin-bottom: 0; }

/* === Clients === */
#clients h2 { margin-bottom: 32px; }

.industries-chips {
  list-style: none;
  margin: 0 0 56px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.industries-chips li {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-pill);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.clients-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.clients-list--featured {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.clients-list li {
  padding: 28px 20px;
  background: var(--bg-soft);
  border-radius: 16px;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-align: center;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.clients-list .client-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 112px;
  padding: 22px 18px 18px;
  color: var(--text);
}

.client-logo img {
  display: block;
  width: auto;
  max-width: 130px;
  height: 36px;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(1) saturate(0) brightness(0);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.client-logo::after {
  display: none;
}

.client-logo--wide img,
.client-logo--wordmark img {
  max-width: 130px;
  height: 36px;
  opacity: 0.7;
}

.clients-list li:hover {
  background: var(--border);
}

.clients-list li:hover img {
  opacity: 0.94;
  transform: translateY(-1px);
}

.clients-nda {
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* === Awards === */
#achievements {
  overflow: hidden;
  background:
    linear-gradient(rgba(9, 9, 11, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 9, 11, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #fff 0%, #f7f8fb 100%);
  background-size: 48px 48px, 48px 48px, auto;
}

.awards-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 48px;
  align-items: end;
  margin-bottom: 32px;
}

.awards-copy h2 {
  max-width: 920px;
  margin-bottom: 24px;
}

.awards-lead {
  max-width: 760px;
  color: var(--text-secondary);
}

.awards-badge {
  position: relative;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  color: #fff;
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: 28px;
  overflow: hidden;
}

.awards-badge::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  pointer-events: none;
}

.awards-badge::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.awards-badge span,
.awards-badge em {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.awards-badge strong {
  position: relative;
  z-index: 1;
  font-size: clamp(64px, 7vw, 96px);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.awards-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.proof-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(9, 9, 11, 0.06);
}

.proof-card {
  min-height: 152px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 24px;
}

.proof-card span {
  color: var(--text);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.proof-card p {
  max-width: 230px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.35;
}

.proof-card--dark {
  color: #fff;
  background: var(--text);
  border-color: var(--text);
}

.proof-card--dark span {
  color: #fff;
}

.proof-card--dark p {
  color: rgba(255, 255, 255, 0.68);
}

/* === Speaking === */
#speaking h2 { margin-bottom: 48px; }

/* === Tools (SafronovGPT + Channel) — двойной терминал === */
#tools {
  padding: clamp(48px, 8vw, 96px) 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.4vw, 32px);
  align-items: stretch;
}

.tool-terminal {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(42, 111, 219, 0.18), transparent 58%),
    linear-gradient(135deg, #101014 0%, #18181b 52%, #09090b 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  color: #fff;
}

.tool-terminal__top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
  box-sizing: border-box;
  height: 44px;
}

.tool-terminal__top > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.tool-terminal__top > span:nth-child(1) { background: #ff5a8a; }
.tool-terminal__top > span:nth-child(2) { background: #ffb000; }
.tool-terminal__top > span:nth-child(3) { background: #11a36a; }

.tool-terminal__top strong {
  margin-left: 8px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.02em;
}

.tool-terminal__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 2.6vw, 36px);
  flex: 1;
}

.tool-terminal__desc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 160px;
}

.tool-terminal__body .meta {
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

.tool-terminal__body h2 {
  color: #fff;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.05;
  min-height: clamp(34px, 3.5vw, 46px);
}

.tool-terminal__body p {
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.55;
  margin: 0;
  max-width: none;
}

.tool-terminal__lines {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  min-height: 96px;
  box-sizing: border-box;
}

.tool-terminal__lines p {
  position: relative;
  padding-left: 18px;
  margin: 4px 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.tool-terminal__lines p::before {
  content: "> ";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.tool-terminal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 78px;
  align-content: flex-start;
}

.tool-terminal__tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  min-height: 30px;
  display: inline-flex;
  align-items: center;
}

.tool-terminal__body .btn {
  align-self: flex-start;
  width: auto;
}

/* Mobile — стек, min-height снимаются */
@media (max-width: 900px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .tool-terminal {
    min-height: auto;
  }
  .tool-terminal__desc,
  .tool-terminal__lines,
  .tool-terminal__tags,
  .tool-terminal__body h2 {
    min-height: auto;
  }
}

/* === CTA === */
#cta h2 {
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: 32px;
}

.cta-intro {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 32px;
  color: var(--text);
  letter-spacing: -0.01em;
  max-width: 720px;
}

.cta-list {
  list-style: none;
  margin-bottom: 48px;
  max-width: 720px;
  counter-reset: cta-counter;
}

.cta-list li {
  padding: 20px 0 20px 56px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  position: relative;
  counter-increment: cta-counter;
  font-weight: 400;
}

.cta-list li:first-child {
  border-top: 1px solid var(--border);
}

.cta-list li::before {
  content: counter(cta-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 22px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.cta-brief {
  max-width: 820px;
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 32px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(42, 111, 219, 0.08), transparent 52%),
    rgba(255, 255, 255, 0.84);
}

.cta-brief strong {
  display: block;
  max-width: 320px;
  color: var(--text);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.cta-brief ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.cta-brief li {
  position: relative;
  min-height: 34px;
  display: flex;
  align-items: center;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.35;
}

.cta-brief li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cta-note {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* === Footer === брендбук 06 — инверсия на туши */
#footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px var(--padding-x) 40px;
  border-top: none;
}

#footer .meta {
  color: var(--accent-text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

.footer-contacts {
  list-style: none;
}

.footer-contacts li {
  padding: 6px 0;
  font-size: 15px;
  color: rgba(244, 241, 234, 0.78);
}

.footer-contacts a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: rgba(244, 241, 234, 0.22);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.25s var(--ease), color 0.25s var(--ease);
}

.footer-contacts a:hover {
  text-decoration-color: var(--accent-text);
  color: var(--accent-text);
}

.footer-mission {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: rgba(244, 241, 234, 0.78);
}

.footer-stamp {
  margin-top: 20px;
  font-family: "Onest", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--paper);
}

.footer-stamp::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 3px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: baseline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.55);
  padding-top: 32px;
  border-top: 1px solid rgba(244, 241, 234, 0.12);
}

.footer-meta {
  color: rgba(244, 241, 234, 0.9);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(244, 241, 234, 0.12);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(244, 241, 234, 0.5);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-legal-links a {
  color: rgba(244, 241, 234, 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 241, 234, 0.2);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-legal-links a:hover {
  color: #fff;
  border-color: rgba(244, 241, 234, 0.6);
}

/* === Cookie bar === */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  max-width: 880px;
  margin: 0 auto;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--text);
  color: rgba(244, 241, 234, 0.85);
  box-shadow: 0 24px 70px -24px rgba(0, 0, 0, 0.5);
}

.cookie-bar[hidden] { display: none; }

.cookie-bar-text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(244, 241, 234, 0.85);
}

.cookie-bar-text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-bar-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* === Legal doc page === */
.legal-doc {
  padding: 140px 0 100px;
}

.legal-doc h1 {
  margin: 12px 0 8px;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.legal-updated {
  margin: 0 0 40px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.legal-doc h2 {
  margin: 40px 0 12px;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.legal-doc p {
  margin: 0 0 14px;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}

.legal-doc ul {
  margin: 0 0 14px;
  padding-left: 22px;
  max-width: 720px;
}

.legal-doc li {
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

.legal-back {
  margin-top: 48px;
}

.legal-back a {
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 500;
}

.legal-back a:hover {
  text-decoration: underline;
}

/* === Tablet === */
@media (max-width: 1024px) {
  :root { --padding-x: 24px; }

  section, footer { padding: 80px var(--padding-x); }
  section + section { padding-top: 48px; }

  .hero-inner,
  .hero-inner--with-photo {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-photo {
    grid-column: 1;
    grid-row: auto;
    max-width: 420px;
    aspect-ratio: 4 / 5;
  }

  .cases-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .case-card--dark {
    grid-column: span 2;
  }
  .work-format-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .services-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  
  
  
  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  
  .work-formats-head {
    align-items: start;
  }
  .clients-list--featured { grid-template-columns: repeat(3, 1fr); }

  .awards-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .awards-badge {
    min-height: 220px;
    max-width: 420px;
  }
  
  
  
  
  
}

/* === Mobile === */
@media (max-width: 768px) {
  :root { --padding-x: 20px; }

  body {
    font-size: 15px;
    padding-bottom: 76px;
  }

  section, footer {
    padding: 64px var(--padding-x);
    scroll-margin-top: 92px;
  }
  section + section { padding-top: 32px; }

  .site-header {
    top: 10px;
    left: 10px;
    right: 10px;
  }

  .site-header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 8px;
    padding: 6px;
    border-radius: 18px;
  }

  .site-brand {
    min-height: 40px;
    padding: 0 10px;
  }

  .site-header-cta {
    min-height: 40px;
    padding: 0 12px;
    font-size: 11px;
    white-space: nowrap;
  }

  .site-nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 70px;
    left: 10px;
    right: 10px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(9, 9, 11, 0.1);
    border-radius: 18px;
    box-shadow: 0 24px 80px -32px rgba(9, 9, 11, 0.45);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 65;
  }

  body.nav-open .site-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    font-size: 15px;
    border-radius: 12px;
  }

  .lang-switcher {
    justify-self: end;
    margin-right: 0;
  }

  @media (prefers-reduced-motion: reduce) {
    .site-nav {
      transition: none;
    }
  }

  #hero {
    padding-top: 108px;
    padding-bottom: 56px;
    min-height: auto;
  }

  h1 {
    font-size: clamp(38px, 10.8vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.02em;
  }

  h2 {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.08;
  }

  .meta {
    font-size: 11px;
    letter-spacing: 0.08em;
    line-height: 1.45;
  }

  .hero-inner,
  .hero-inner--with-photo {
    max-width: 100%;
    min-width: 0;
  }

  .hero-photo {
    max-width: 100%;
    margin: 0;
    aspect-ratio: 4 / 5;
  }

  #hero h1 {
    max-width: calc(100vw - (var(--padding-x) * 2));
    margin: 20px 0 22px;
    overflow-wrap: normal;
  }

  .hero-h1 .word {
    display: inline;
  }

  .hero-lead {
    max-width: min(100%, 330px);
    font-size: 17px;
    line-height: 1.52;
    margin-bottom: 32px;
    overflow-wrap: break-word;
  }

  .hero-cta { gap: 12px; }
  .hero-note { width: 100%; }
  #numbers h2 { max-width: calc(100vw - (var(--padding-x) * 2)); }

  .cases-head {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 24px;
  }
  .cases-lead {
    font-size: 17px;
  }
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .case-card,
  .case-card--dark {
    grid-column: auto;
    min-height: auto;
    padding: 22px;
    border-radius: 18px;
  }
  .case-card-top {
    margin-bottom: 40px;
  }
  .case-card h3 {
    font-size: 26px;
  }
  .case-card p {
    font-size: 15px;
  }
  
  #services h2 { margin-bottom: 16px; }
  .services-head {
    gap: 10px;
    margin-bottom: 28px;
  }
  .services-lead { font-size: 17px; margin-bottom: 0; }
  
  
  
  
  
  
  
  
  
  .capability-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .capability {
    grid-column: auto;
    min-height: auto;
    padding: 22px;
    border-radius: 18px;
  }
  .capability-top {
    margin-bottom: 20px;
  }
  .capability h4 {
    font-size: 24px;
  }
  .capability p {
    font-size: 14px;
  }
  .work-formats {
    margin-top: 32px;
  }
  .work-formats-head {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
  }
  .work-formats-head p {
    max-width: none;
    text-align: left;
    font-size: 14px;
  }
  .work-format-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .work-format {
    min-height: auto;
    padding: 22px;
    border-radius: 18px;
  }
  .work-format-top {
    margin-bottom: 30px;
  }
  .work-format h3 {
    font-size: 24px;
  }
  .work-format ul {
    padding-top: 22px;
  }
  
  
  
  
  .services-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
    border-radius: 20px;
  }
  .services-cta-text { font-size: 18px; }

  
  
  
  
  
  
  
  
  
  
  
  
  
  

  .clients-list--featured { grid-template-columns: repeat(2, 1fr); }
  
  
  
  
  
  .clients-list li { font-size: 15px; padding: 22px 16px; border-radius: 14px; }
  .clients-list .client-logo { min-height: 104px; padding: 18px 12px 14px; gap: 10px; }
  .client-logo img { max-width: 128px; max-height: 34px; }
  .client-logo--wide img { max-width: 142px; max-height: 38px; }
  .client-logo--wordmark img { max-width: 154px; max-height: 40px; }
  .client-logo::after { font-size: 12px; }

  .awards-head { gap: 20px; margin-bottom: 22px; }
  .awards-copy h2 { margin-bottom: 18px; }
  .awards-lead { font-size: 17px; }
  .awards-badge {
    min-height: 190px;
    padding: 22px;
    border-radius: 22px;
  }
  .awards-badge::before {
    inset: 14px;
    border-radius: 18px;
  }
  .awards-badge strong { font-size: 72px; }
  .awards-proof {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .proof-card {
    min-height: 128px;
    padding: 20px;
    border-radius: 18px;
  }
  .proof-card span { font-size: 42px; }
  
  
  
  

  

  
  
  

  #cta h2 { margin-bottom: 24px; }
  .cta-intro { font-size: 18px; margin-bottom: 24px; }
  .cta-list { margin-bottom: 32px; }
  .cta-list li { padding-left: 44px; font-size: 16px; }
  .cta-brief {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
    border-radius: 18px;
  }
  .cta-brief strong {
    font-size: 22px;
  }
  .cta-brief li {
    min-height: auto;
    font-size: 14px;
  }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn,
  .cta-actions .btn-pill { justify-content: center; }

  #footer { padding: 56px var(--padding-x) 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
  .footer-mission { font-size: 16px; }
  .footer-bottom { flex-direction: column; gap: 8px; }

}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }
}
/* ============================================================
   === Patch v2: media section + animations + cursor + marquee
   ============================================================ */

/* === Media section === */
#media {
  padding: clamp(80px, 12vh, 160px) 0;
}

/* === Mobile / narrow: 2 columns at 900-700, 1 column < 700 === */

/* === About / Speaking photos: реальные фото === */

/* === Tilt cards === */
[data-tilt] {
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

/* === Hero stagger === */
.hero-h1 .word {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
}
.js .hero-h1 .word {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.js .hero-h1.is-visible .word {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-h1 .word { opacity: 1; transform: none; }
  [data-tilt] { transition: none; }
}

/* === Channel number gradient === */

@media (max-width: 768px) {
  .hero-h1 .word {
    display: inline;
  }
}

/* === About: simple two-column layout === */
#about { position: relative; padding: clamp(80px, 12vh, 160px) 0; overflow: hidden; }
#about h2 { margin-bottom: 56px; max-width: 880px; }

/* Паттерн: сетка точек спокойным фоном (брендбук 07) */
#about::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 320px;
  background-image: radial-gradient(var(--border) 1.1px, transparent 1.1px);
  background-size: 22px 22px;
  opacity: 0.5;
  mask-image: radial-gradient(circle at top right, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at top right, #000, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

#about > .container { position: relative; z-index: 1; }

@media (max-width: 768px) {
  #about h2 { margin-bottom: 32px; }
  
  
}

/* === Lang switcher === */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-right: 16px;
}
.lang-switcher .lang-link {
  color: var(--text-muted, #737378);
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}
.lang-switcher .lang-link:hover {
  color: var(--text, #09090b);
  background: var(--bg-soft, #f4f4f5);
}
.lang-switcher .lang-link.is-active {
  color: var(--text, #09090b);
  font-weight: 500;
}
.lang-switcher .lang-sep {
  color: var(--text-muted, #737378);
  opacity: 0.4;
}
@media (max-width: 768px) {
  .lang-switcher { margin-right: 0; font-size: 11px; }
  .lang-switcher .lang-link { padding: 2px 4px; }
}

/* === btn--ghost === брендбук 04.вторичная кнопка */
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost::before {
  background: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* === About-Timeline === */

/* === Practitioner Manifesto === */
#manifesto {
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(80px, 10vw, 140px);
  background: var(--bg-soft, #f7f7f8);
  border-top: 1px solid var(--border, #e4e4e7);
  border-bottom: 1px solid var(--border, #e4e4e7);
}

/* === Cases simplified (R6) === */
.case-industry {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-problem,
.case-outcome {
  position: relative;
  z-index: 1;
  margin-top: 22px;
}

.case-problem p,
.case-outcome p {
  font-size: 17px;
  line-height: 1.45;
  font-weight: 400;
  margin: 0;
  max-width: 540px;
}

.case-problem p {
  color: var(--text, #09090b);
  font-weight: 500;
}

.case-outcome p {
  color: var(--text-soft, #52525b);
}

.case-card--dark .case-problem p {
  color: #fff;
}

.case-card--dark .case-outcome p {
  color: rgba(255, 255, 255, 0.78);
}

.case-label {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft, #71717a);
  margin-bottom: 8px;
}

.case-card--dark .case-label {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 768px) {
  .case-problem p,
  .case-outcome p { font-size: 15px; }
  .case-label { font-size: 10px; margin-bottom: 6px; }
  .case-problem,
  .case-outcome { margin-top: 18px; }
}

/* === Clients clean (R8): убрать текстовые подписи, центровать логотипы === */
.client-logo::after,
.client-logo::after {
  display: none;
}

.clients-list .client-logo {
  gap: 0;
}

.clients-list .client-logo img {
  margin: auto;
}

/* Подкрутить высоту, чтобы логотипы выглядели визуально центрированно */
.clients-list--featured .client-logo {
  min-height: 96px;
}

/* === Process / 5 steps (R14) === */
#process {
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(80px, 10vw, 140px);
  border-top: 1px solid var(--border-soft, rgba(0, 0, 0, 0.06));
}


.gpt-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.7fr);
  gap: 24px;
  align-items: stretch;
  min-height: 380px;
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(90% 90% at 100% 0%, rgba(42, 111, 219, 0.18), transparent 58%),
    linear-gradient(135deg, #101014 0%, #18181b 52%, #09090b 100%);
  color: #fff;
  overflow: hidden;
}

.gpt-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 4vw, 52px);
}

.gpt-copy .meta,
.gpt-copy p {
  color: rgba(255, 255, 255, 0.68);
}

.gpt-copy h2 {
  color: #fff;
  font-size: clamp(48px, 7vw, 96px);
  letter-spacing: -0.045em;
}

.gpt-copy p {
  max-width: 640px;
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.42;
}

.gpt-copy .btn {
  align-self: flex-start;
}

.gpt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.gpt-tags span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gpt-visual {
  position: relative;
  min-height: 340px;
  max-height: 480px;
  align-self: start;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.gpt-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.gpt-visual figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: calc(100% - 36px);
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.68);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* === Requested cleanup (R18) === */
#hero {
  min-height: auto;
}

.hero-inner {
  max-width: 980px;
  grid-template-columns: 1fr;
  gap: 0;
}

.hero-inner--with-photo {
  max-width: var(--max-width);
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
  gap: 56px;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-inner--with-photo {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-inner--with-photo .hero-photo {
    grid-column: 1;
    grid-row: auto;
    max-width: 460px;
  }
}

@media (max-width: 768px) {
  .hero-inner--with-photo {
    gap: 28px;
  }

  .hero-inner--with-photo .hero-photo {
    max-width: 100%;
  }

  #hero .meta {
    overflow-wrap: normal;
    word-break: normal;
  }
}

#hero .meta,
#hero h1,
.hero-lead,
.hero-cta {
  grid-column: 1;
}

.word--accent {
  color: var(--accent);
}

.clients-list--unified {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 10px;
}

.clients-list--unified .client-logo {
  flex: 1 1 178px;
  max-width: 230px;
  min-height: 104px;
  padding: 20px 16px 16px;
  gap: 10px;
}

.clients-list--unified .client-logo img,
.clients-list--unified .client-logo--wide img,
.clients-list--unified .client-logo--wordmark img {
  width: auto;
  max-width: 142px;
  height: 36px;
  max-height: 38px;
}

.clients-list--unified .client-logo::after {
  display: none;
}

@media (max-width: 768px) {
  .clients-list--unified {
    gap: 8px;
  }

  .clients-list--unified .client-logo {
    flex-basis: calc(50% - 4px);
    max-width: none;
    min-height: 98px;
    padding: 16px 10px 12px;
  }

  .clients-list--unified .client-logo img,
  .clients-list--unified .client-logo--wide img,
  .clients-list--unified .client-logo--wordmark img {
    max-width: 128px;
    height: 32px;
    max-height: 34px;
  }
}

@media (max-width: 1024px) {
  .gpt-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .gpt-visual {
    min-height: 320px;
    max-height: 420px;
  }
}

@media (max-width: 768px) {
  .gpt-card {
    gap: 16px;
    padding: 16px;
    border-radius: 22px;
  }

  .gpt-copy {
    padding: 22px 18px 8px;
  }

  .gpt-visual {
    min-height: 420px;
    border-radius: 18px;
  }
}

/* === Case hero metric (R15) === */
.case-hero-metric {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--border, rgba(0, 0, 0, 0.1));
  border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.1));
  display: grid;
  gap: 6px;
}

.case-hero-num {
  font-family: var(--font-display, "Inter", system-ui, sans-serif);
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--accent, #d24a26);
  font-variant-numeric: tabular-nums;
}

.case-hero-label {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted, #6b6f76);
}

.case-card--dark .case-hero-metric {
  border-color: rgba(255, 255, 255, 0.18);
}

.case-card--dark .case-hero-num {
  color: #fff;
}

.case-card--dark .case-hero-label {
  color: rgba(255, 255, 255, 0.65);
}

.case-hero-metric + .case-metrics {
  margin-top: 18px;
}

.cases-disclaimer {
  margin: 28px 0 0;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted, #6b6f76);
  max-width: 720px;
}

.cases-cta {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.cases-cta .btn {
  padding: 22px 38px;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 18px 60px -20px rgba(42, 111, 219, 0.5);
}

.cases-cta .btn .arrow {
  font-size: 22px;
}

/* === Client logo rows (R19) === */
.clients-list--unified {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.clients-list--unified .client-logo {
  width: 100%;
  max-width: none;
  min-height: 108px;
}

@media (max-width: 1024px) {
  .clients-list--unified {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .clients-list--unified {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* === About (R21) === */
#about {
  padding-top: 48px;
  padding-bottom: 48px;
}

.about-banner {
  margin: 0 0 40px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 16 / 7;
  box-shadow: 0 28px 80px -64px rgba(9, 9, 11, 0.6);
}

.about-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-copy {
  max-width: 760px;
}

.about-copy .meta {
  margin-bottom: 20px;
}

.about-copy p {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}

@media (max-width: 768px) {
  .about-banner {
    aspect-ratio: 4 / 3;
    margin-bottom: 28px;
    border-radius: 20px;
  }
  .about-copy p {
    font-size: 19px;
    line-height: 1.5;
  }
}

/* === Rulemaker integrated (R22) === */
.btn--blue {
  background: var(--accent);
  color: #fff;
}

.btn--blue:hover {
  background: var(--accent-hover);
  color: #fff;
}

.hero-inner--rulemaker {
  display: block;
  max-width: 1060px;
  min-height: 72vh;
  padding-top: 54px;
  padding-bottom: 54px;
}

.hero-inner--rulemaker .hero-copy {
  max-width: 1060px;
}

#hero .hero-inner--rulemaker .hero-h1 {
  max-width: 1060px;
  font-size: clamp(56px, 8.2vw, 116px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: lowercase;
}

#hero .hero-inner--rulemaker .word--accent {
  color: var(--accent);
}

/* Брендбук 01.1 — фирменная синяя точка-маркер. Используется в логотипе,
   манифесте и любых блоках, где нужен брендовый акцент. */
.hero-h1 .word--dot,
.word--dot {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: -0.05em;
  display: inline-block;
}

/* Display 1 — крупный манифест */
.hero-h1--display {
  font-size: clamp(56px, 9vw, 128px) !important;
  font-weight: 800 !important;
  line-height: 0.9 !important;
  letter-spacing: -0.035em !important;
  text-transform: lowercase;
}

#hero .hero-inner--rulemaker .hero-lead {
  max-width: 730px;
  margin-top: 30px;
  color: var(--text-muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.38;
}

#hero .hero-inner--rulemaker .hero-cta {
  margin-top: 30px;
}

#hero .hero-inner--rulemaker .hero-note {
  color: var(--text-muted);
}

.rule-section-head,
.cases-head.rule-section-head,
.services-head.rule-section-head,
.section-head.rule-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 48px;
  align-items: end;
  margin-bottom: 38px;
}

.rule-section-head h2,
.cases-head.rule-section-head h2,
.services-head.rule-section-head h2,
.section-head.rule-section-head h2 {
  margin-top: 12px;
  font-size: clamp(46px, 6.4vw, 86px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.058em;
}

.rule-section-head p,
.cases-head.rule-section-head p,
.services-head.rule-section-head p,
.section-head.rule-section-head p {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.48;
}

.rule-case {
  min-height: 178px;
  display: grid;
  grid-template-columns: minmax(184px, 0.36fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 28px 80px -72px rgba(9, 9, 11, 0.65);
}

.rule-case strong {
  color: var(--accent);
  font-size: clamp(42px, 4.6vw, 64px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.rule-case h3 {
  max-width: none;
  font-size: clamp(24px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.rule-case p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.35;
}

.not-services {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 28px 90px -80px rgba(9, 9, 11, 0.72);
}

.not-services-top {
  min-height: 180px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border-bottom: 1px solid var(--border);
}

.not-services-top h3 {
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.068em;
}

.not-services-top del {
  color: var(--text-muted);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
}

.system-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.system-tab {
  min-height: 320px;
  display: grid;
  align-content: space-between;
  padding: 24px 20px;
  border-right: 1px solid var(--border);
  background: #fff;
}

.system-tab:nth-child(even) {
  background: var(--bg-soft);
}

.system-tab:last-child {
  border-right: 0;
}

.system-tab small {
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.system-tab h3 {
  font-size: clamp(25px, 2.3vw, 36px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
}

.system-tab ul {
  display: grid;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  list-style: none;
}

#about {
  padding-top: 82px;
  padding-bottom: 82px;
}

.proof-rule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.proof-rule-left-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.proof-rule-left {
  min-height: 210px;
  display: grid;
  align-content: space-between;
  padding: 28px 30px;
  border-radius: 28px;
  background: var(--accent);
  color: #fff;
}

.proof-rule-left strong {
  color: #fff;
  font-size: clamp(56px, 6.5vw, 96px);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.08em;
}

.proof-rule-left span {
  color: #fff;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.proof-rule-right {
  display: grid;
  gap: 10px;
}

.proof-rule-item {
  min-height: 100px;
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}

.proof-rule-item strong {
  color: var(--accent);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.proof-rule-item span {
  color: var(--text-muted);
  font-size: 15px;
}

.proof-rule-left strong sup {
  font-size: 0.32em;
  font-weight: 500;
  vertical-align: super;
  letter-spacing: 0;
}

.proof-rule-note {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

/* speaking strip — 10 / media proof */
.speaking-strip {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  border-radius: 28px;
  overflow: hidden;
}

.speaking-strip-item {
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f2f3f5;
}

.speaking-strip-item picture,
.speaking-strip-item img {
  display: block;
  width: 100%;
  height: 100%;
}

.speaking-strip-item img {
  object-fit: cover;
  object-position: center;
  transition: transform 400ms ease, filter 400ms ease;
  filter: saturate(0.92);
}

.speaking-strip-item:hover img {
  transform: scale(1.04);
  filter: saturate(1.05);
}

@media (max-width: 980px) {
  .speaking-strip {
    grid-template-columns: repeat(3, 1fr);
    border-radius: 24px;
  }
}

@media (max-width: 560px) {
  .speaking-strip {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 64%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px;
    gap: 6px;
  }
  .speaking-strip-item {
    scroll-snap-align: start;
    aspect-ratio: 3 / 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .speaking-strip-item img {
    transition: none;
  }
  .speaking-strip-item:hover img {
    transform: none;
  }
}

.rule-contact {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  align-items: center;
  padding: clamp(34px, 6vw, 72px);
  border-radius: 34px;
  background: var(--text);
  color: #fff;
  overflow: hidden;
}

.rule-contact h2 {
  max-width: 800px;
  margin: 12px 0 0;
  color: #fff;
  font-size: clamp(52px, 7vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.rule-contact p {
  max-width: 560px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  line-height: 1.42;
}

.rule-contact .meta {
  color: rgba(255, 255, 255, 0.7);
}

.rule-contact-panel {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.rule-contact-panel span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 14px;
  line-height: 1.35;
}

/* === Pricing (12 / стоимость) === */
.pricing-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: 48px;
  align-items: start;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: 34px;
  background: var(--bg-soft);
}

.pricing-head h2 {
  margin-top: 12px;
  font-size: clamp(46px, 6.4vw, 86px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.058em;
}

.pricing-body {
  display: grid;
  gap: 16px;
  align-content: start;
}

.pricing-body .pricing-lead {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.pricing-body p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.5;
}

.pricing-body .btn {
  margin-top: 12px;
  justify-self: start;
}

@media (max-width: 900px) {
  .pricing-block {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .pricing-block {
    border-radius: 22px;
  }
}

@media (max-width: 1120px) {
  .site-nav a {
    padding-inline: 8px;
    font-size: 12px;
  }
}

@media (max-width: 980px) {
  .hero-inner--rulemaker {
    min-height: auto;
    padding-top: 62px;
    padding-bottom: 80px;
  }

  #hero .hero-inner--rulemaker .hero-h1 {
    font-size: clamp(40px, 11.5vw, 86px);
    letter-spacing: -0.06em;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }

  .rule-section-head,
  .cases-head.rule-section-head,
  .services-head.rule-section-head,
  .section-head.rule-section-head,
  .not-services-top,
  .proof-rule,
  .rule-contact {
    grid-template-columns: 1fr;
  }

  .system-tabs {
    grid-template-columns: 1fr;
  }

  .system-tab {
    min-height: 180px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .system-tab:last-child {
    border-bottom: 0;
  }

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

  .proof-rule-item {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }
}

@media (max-width: 640px) {
  .not-services,
  .proof-rule-left,
  .rule-contact {
    border-radius: 22px;
  }

  .not-services-top {
    padding: 22px;
  }

  .not-services-top .btn {
    width: 100%;
  }

  .rule-case {
    min-height: auto;
    padding: 20px;
  }

  .rule-contact {
    min-height: auto;
  }
}

/* Очень узкие экраны: страхуем hero от горизонтального оверфлоу */
@media (max-width: 400px) {
  #hero .hero-inner--rulemaker .hero-h1 {
    font-size: clamp(34px, 10vw, 44px);
  }
}

/* === Motion layer: revenue-system animations === */
@keyframes metric-pop {
  0% { transform: translateY(8px) scale(0.96); filter: blur(2px); }
  64% { transform: translateY(-2px) scale(1.025); filter: blur(0); }
  100% { transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes gpt-scan {
  0% { transform: translateY(-120%) rotate(10deg); opacity: 0; }
  12%, 78% { opacity: 0.78; }
  100% { transform: translateY(120%) rotate(10deg); opacity: 0; }
}

@keyframes cta-morph {
  0% { transform: translateY(0) scale(1); }
  42% { transform: translateY(2px) scale(0.985); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes live-dot {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.65); opacity: 0.9; }
}

.hero-h1 .word--accent {
  position: relative;
  isolation: isolate;
}

.hero-h1 .word--accent::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  bottom: 0.05em;
  z-index: -1;
  height: 0.16em;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--hero-accent-delay, 0ms) + 520ms);
}

.hero-h1.is-visible .word--accent::after {
  transform: scaleX(1);
}

.rule-case strong,
.case-hero-num {
  font-variant-numeric: tabular-nums;
}

.rule-case.is-visible strong,
.case-card.is-visible .case-hero-num {
  animation: metric-pop 0.72s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.not-services {
  position: relative;
}

.system-tabs {
  position: relative;
  isolation: isolate;
}

.system-tabs::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 26px;
  z-index: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0.64;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.not-services.is-visible .system-tabs::before {
  transform: scaleX(1);
}

.system-tab {
  position: relative;
  z-index: 1;
  transition:
    transform 0.32s var(--ease),
    background 0.32s var(--ease),
    border-color 0.32s var(--ease);
}

.system-tab::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 20px;
  width: 10px;
  height: 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 20%, transparent);
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.not-services.is-visible .system-tab::after {
  opacity: 1;
  transform: scale(1);
  animation: live-dot 1.8s ease-in-out infinite;
}

.not-services.is-visible .system-tab:nth-child(2)::after { animation-delay: 160ms; transition-delay: 80ms; }
.not-services.is-visible .system-tab:nth-child(3)::after { animation-delay: 320ms; transition-delay: 160ms; }
.not-services.is-visible .system-tab:nth-child(4)::after { animation-delay: 480ms; transition-delay: 240ms; }
.not-services.is-visible .system-tab:nth-child(5)::after { animation-delay: 640ms; transition-delay: 320ms; }

@media (hover: hover) {
  .system-tab:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  }
}

.gpt-visual::before {
  content: "";
  position: absolute;
  left: -18%;
  right: -18%;
  top: -42%;
  z-index: 2;
  height: 46%;
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.42), transparent),
    linear-gradient(90deg, transparent, rgba(42, 111, 219, 0.32), transparent);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}

.gpt-card.is-visible .gpt-visual::before {
  animation: gpt-scan 2.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.gpt-visual figcaption {
  z-index: 3;
}

.js .gpt-tags span {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.42s var(--ease),
    transform 0.42s var(--ease);
}

.gpt-card.is-visible .gpt-tags span {
  opacity: 1;
  transform: translateY(0);
}

.gpt-card.is-visible .gpt-tags span:nth-child(1) { transition-delay: 120ms; }
.gpt-card.is-visible .gpt-tags span:nth-child(2) { transition-delay: 190ms; }
.gpt-card.is-visible .gpt-tags span:nth-child(3) { transition-delay: 260ms; }
.gpt-card.is-visible .gpt-tags span:nth-child(4) { transition-delay: 330ms; }
.gpt-card.is-visible .gpt-tags span:nth-child(5) { transition-delay: 400ms; }

.work-format:hover,
.capability:hover {
  transition:
    transform 0.3s var(--ease),
    background 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

@media (hover: hover) {
  .capability:hover,
  .work-format:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 768px) {
  .hero-h1 .word.word--accent {
    display: inline-block;
  }

  .system-tabs::before {
    left: 25px;
    right: auto;
    top: 28px;
    bottom: 28px;
    width: 1px;
    height: auto;
    transform: scaleY(0);
    transform-origin: top center;
    background: linear-gradient(180deg, var(--accent), transparent);
  }

  .not-services.is-visible .system-tabs::before {
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-h1 .word--accent::after,
  .system-tabs::before {
    transform: none;
  }

  .rule-case.is-visible strong,
  .case-card.is-visible .case-hero-num,
  .not-services.is-visible .system-tab::after,
  .gpt-card.is-visible .gpt-visual::before {
    animation: none !important;
  }

  .js .gpt-tags span {
    opacity: 1;
    transform: none;
  }
}

/* === PDF content update: problems, formats, FAQ === */
#hero {
  padding-bottom: 34px;
}

#hero .hero-inner--rulemaker {
  min-height: auto;
  padding-top: 34px;
  padding-bottom: 28px;
}

#hero .hero-inner--rulemaker .hero-h1 {
  max-width: 1040px;
  font-size: clamp(54px, 7vw, 98px);
  line-height: 0.96;
  letter-spacing: -0.062em;
}

#problems,
#formats,
#faq {
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(80px, 10vw, 140px);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.problem-card,
.trust-card,
.faq-item {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 28px 80px -72px rgba(9, 9, 11, 0.62);
}

.problem-card {
  min-height: 260px;
  display: grid;
  align-content: space-between;
  gap: 24px;
  padding: 24px;
  border-radius: 22px;
}

.problem-card--wide {
  grid-column: span 4;
  background:
    linear-gradient(135deg, rgba(42, 111, 219, 0.12), transparent 54%),
    rgba(255, 255, 255, 0.9);
}

.problem-card span,
.trust-card span {
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.problem-card h3,
.trust-card h3 {
  color: var(--text);
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.problem-card p,
.trust-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.45;
}

/* Тех-бейджи + мета-строка (брендбук 07) */
.meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: rgba(42, 111, 219, 0.05);
}

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

.cases-grid--pdf .case-card {
  min-height: 560px;
}

.case-story {
  display: grid;
  gap: 10px;
}

.case-story div {
  padding: 14px 16px;
  border: 1px solid rgba(9, 9, 11, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.case-story span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-story p {
  margin: 0;
  font-size: 14px;
  line-height: 1.38;
}

.case-card--dark .case-story div {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.case-card--dark .case-story span {
  color: rgba(255, 255, 255, 0.72);
}

.system-tab {
  gap: 18px;
}

.system-tab p {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.38;
}

#formats .work-format-grid {
  margin-top: 8px;
}

.format-output {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(260px, 0.48fr) minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 26px;
  border-radius: 26px;
  background: var(--text);
  color: #fff;
}

.format-output h3 {
  margin-top: 12px;
  color: #fff;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 360;
  line-height: 1.08;
  letter-spacing: -0.045em;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.format-output .board-label,
.format-output p {
  color: rgba(255, 255, 255, 0.75);
}

.format-output .board-label {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.format-output ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.format-output li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.35;
}

.format-output li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.format-output .btn {
  justify-self: end;
  white-space: nowrap;
}

.format-output > p {
  grid-column: 2 / -1;
  margin: -10px 0 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trust-card {
  min-height: 310px;
  display: grid;
  align-content: space-between;
  gap: 22px;
  padding: 24px;
  border-radius: 22px;
}

.trust-photo {
  grid-column: 1 / -1;
  max-height: 520px;
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-soft);
}

.trust-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 34%;
  filter: grayscale(1);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border-radius: 20px;
  overflow: hidden;
}

.faq-item summary {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  color: var(--text);
  cursor: pointer;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.045em;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 22px;
  line-height: 1;
  transition: transform 0.24s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  max-width: 860px;
  margin: -6px 24px 24px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.52;
}

.cta-points {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  counter-reset: cta-points;
}

.cta-points li {
  position: relative;
  counter-increment: cta-points;
  padding-left: 44px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.4;
}

.cta-points li::before {
  content: counter(cta-points, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(255, 255, 255, 0.48);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

@media (max-width: 1120px) {
  .problems-grid,
  .cases-grid--pdf,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .problem-card--wide {
    grid-column: span 2;
  }

  .format-output {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .format-output .btn {
    justify-self: start;
  }

  .format-output > p {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  #hero {
    padding-top: 28px;
    padding-bottom: 20px;
  }

  #hero .hero-inner--rulemaker {
    padding-top: 24px;
    padding-bottom: 14px;
  }

  #hero .hero-inner--rulemaker .hero-h1 {
    font-size: clamp(43px, 11.6vw, 58px);
    line-height: 0.98;
  }

  .problems-grid,
  .cases-grid--pdf,
  .trust-grid,
  .format-output ul {
    grid-template-columns: 1fr;
  }

  .problem-card,
  .problem-card--wide {
    grid-column: auto;
    min-height: 220px;
  }

  .cases-grid--pdf .case-card {
    min-height: auto;
  }

  .format-output {
    padding: 18px;
    border-radius: 22px;
  }

  .trust-card {
    min-height: auto;
  }

  .trust-photo {
    max-height: 420px;
    border-radius: 22px;
  }

  .faq-item summary {
    min-height: 64px;
    padding: 18px;
  }

  .faq-item p {
    margin: -4px 18px 20px;
    font-size: 15px;
  }
}

/* === Motion lab final overrides (R24) === */
.gpt-copy .gpt-terminal {
  gap: 8px;
  max-width: 620px;
  margin-top: -6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.gpt-copy .gpt-terminal-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 2px;
}

.gpt-copy .gpt-terminal-top strong,
.gpt-copy .gpt-terminal p {
  max-width: none;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

.gpt-copy .gpt-terminal-top strong {
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
}

.gpt-copy .gpt-terminal p::before {
  content: "> ";
  color: #11a36a;
}

@media (max-width: 768px) {
  .gpt-copy .gpt-terminal p {
    font-size: 11px;
    line-height: 1.45;
  }
}

/* === Content QA: safer text flow and graphic containment (R25) === */
h1,
h2,
h3,
h4,
.hero-lead,
.cases-lead,
.services-lead,
.rule-section-head p,
.section-head p {
  text-wrap: balance;
}

p,
li,
summary,
.case-metrics span {
  overflow-wrap: break-word;
}

.rule-section-head > *,
.cases-head.rule-section-head > *,
.services-head.rule-section-head > *,
.section-head.rule-section-head > *,
.case-card,
.problem-card,
.work-format,
.system-tab,
.format-output > *,
.gpt-card > *,
.rule-contact > * {
  min-width: 0;
  max-width: 100%;
}

.btn,
.btn-pill,
.site-header-cta {
  white-space: nowrap;
  flex-wrap: nowrap;
}

.btn .arrow,
.btn-pill .arrow,
.site-header-cta span {
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  .rule-section-head,
  .cases-head.rule-section-head,
  .services-head.rule-section-head,
  .section-head.rule-section-head {
    gap: 22px;
    margin-bottom: 30px;
  }

  .rule-section-head h2,
  .cases-head.rule-section-head h2,
  .services-head.rule-section-head h2,
  .section-head.rule-section-head h2 {
    font-size: clamp(38px, 10.6vw, 54px);
    letter-spacing: -0.055em;
  }
}

/* ============================================================
   /cases/ — catalog hero + filters + directory cards + modal
   ============================================================ */

.cases-catalog-hero {
  padding: 110px 0 64px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(1100px 320px at 12% 0%, rgba(42, 111, 219, 0.07), transparent 70%),
    linear-gradient(180deg, #fafafb 0%, #ffffff 100%);
}

.cases-catalog-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
}

.cases-catalog-hero .hero-h1 {
  font-size: clamp(40px, 5.2vw, 72px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 14px 0 22px;
}

.cases-catalog-hero .hero-lead {
  max-width: 640px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.55;
}

.cases-catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cases-catalog-summary {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(42, 111, 219, 0.05), transparent 60%),
    #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 280px;
}

.cases-catalog-summary span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cases-catalog-summary strong {
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
}

.cases-catalog-summary p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.cases-catalog-summary ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cases-catalog-summary li {
  font-size: 13px;
  color: var(--text-secondary);
  position: relative;
  padding-left: 16px;
}

.cases-catalog-summary li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.cases-catalog-section {
  padding: 64px 0 120px;
}

.cases-catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.cases-catalog-toolbar > div:first-child {
  flex: 0 0 auto;
  padding-bottom: 18px;
}

.cases-catalog-toolbar h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 6px 0 0;
}

.case-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: stretch;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.case-filter {
  position: relative;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 14px 16px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}

.case-filter:hover,
.case-filter:focus-visible {
  color: var(--text);
  outline: none;
}

.case-filter:focus-visible {
  border-bottom-color: var(--accent);
}

.case-filter.is-active {
  color: var(--accent-text);
  border-bottom-color: var(--accent);
  font-weight: 700;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.case-directory-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform 0.28s var(--ease),
    border-color 0.28s var(--ease),
    background 0.28s var(--ease);
  isolation: isolate;
}

.case-directory-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.28s var(--ease);
  z-index: 1;
}

.case-directory-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--accent);
}

.case-directory-card:hover::before {
  transform: scaleY(1);
}

.case-directory-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.case-directory-card__top span,
.case-directory-card__top small {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.35;
}

.case-directory-card__top small {
  color: var(--text-secondary);
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

.case-directory-card h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.case-directory-card > p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-directory-card__metric {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: auto;
}

.case-directory-card__metric strong {
  font-size: 36px;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--accent);
  font-weight: 800;
}

.case-directory-card__metric span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.3;
}

.case-directory-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.case-directory-card__tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-pill);
  color: var(--text-secondary);
  white-space: nowrap;
}

.case-directory-card__button {
  align-self: flex-start;
  margin-top: 4px;
}

.case-empty {
  grid-column: 1 / -1;
  padding: 64px 24px;
  text-align: center;
  font-size: 16px;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

.case-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s var(--ease), visibility 0s 0.24s linear;
}

.case-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.24s var(--ease), visibility 0s 0s linear;
}

.case-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.case-modal__dialog {
  position: relative;
  max-width: 820px;
  width: 100%;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 48px 48px 40px;
  box-shadow: 0 28px 60px rgba(9, 9, 11, 0.32);
  outline: none;
  transform: translateY(10px);
  transition: transform 0.28s var(--ease);
}

.case-modal.is-open .case-modal__dialog {
  transform: translateY(0);
}

.case-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 22px;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.case-modal__close:hover,
.case-modal__close:focus-visible {
  background: var(--bg-soft);
  border-color: var(--text);
  outline: none;
}

.case-modal__kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.case-modal__body h2 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 14px;
  font-weight: 600;
}

.case-modal__lead {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 24px;
}

.case-modal__metric {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-soft);
  border-radius: 14px;
  margin-bottom: 28px;
}

.case-modal__metric strong {
  font-size: 36px;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--text);
  font-weight: 600;
}

.case-modal__metric span {
  font-size: 14px;
  color: var(--text-muted);
}

.case-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 32px;
  margin-bottom: 32px;
}

.case-modal__grid section h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.case-modal__grid section p,
.case-modal__grid section li {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.case-modal__grid section p {
  margin: 0;
}

.case-modal__grid section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-modal__grid section li {
  position: relative;
  padding-left: 16px;
}

.case-modal__grid section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.case-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.case-modal__tags span {
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-pill);
  color: var(--text-secondary);
}

body.case-modal-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .cases-catalog-hero {
    padding: 80px 0 48px;
  }

  .cases-catalog-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: stretch;
  }

  .cases-catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .case-filter-list {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
  }

  .case-filter {
    padding: 12px 14px 14px;
    font-size: 13px;
  }

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

  .case-modal {
    padding: 0;
  }

  .case-modal__dialog {
    max-height: 100vh;
    border-radius: 0;
    padding: 56px 24px 32px;
  }

  .case-modal__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-directory-card,
  .case-directory-card::before,
  .case-modal,
  .case-modal__dialog,
  .case-filter {
    transition: none;
  }

  .case-directory-card:hover {
    transform: none;
  }
}

/* === Hero compact overrides (must be last) === */
#hero {
  padding-top: 96px !important; /* компенсация фиксированного хедера */
  padding-bottom: 56px !important;
  min-height: auto !important;
  display: block !important;
}

#hero .container {
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
}

#hero .hero-inner--rulemaker,
#hero .hero-inner--with-photo {
  min-height: auto !important;
  padding-top: 0 !important;
  padding-bottom: 16px !important;
}

#hero .hero-inner--rulemaker .hero-h1,
#hero .hero-inner--rulemaker .hero-h1.hero-h1--display,
#hero .hero-inner--with-photo .hero-h1,
#hero .hero-inner--with-photo .hero-h1.hero-h1--display {
  font-size: clamp(40px, 4.8vw, 72px) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.03em !important;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  margin: 0 !important;
}

#hero .hero-inner--rulemaker .hero-h1 .word,
#hero .hero-inner--with-photo .hero-h1 .word {
  display: inline !important;
  transform: none !important;
  opacity: 1 !important;
}

#hero .hero-inner--rulemaker .hero-lead,
#hero .hero-inner--with-photo .hero-lead {
  font-size: clamp(14px, 1.1vw, 16px) !important;
  line-height: 1.5 !important;
  margin-top: 24px !important;
}

#hero .hero-inner--rulemaker .hero-cta,
#hero .hero-inner--with-photo .hero-cta {
  margin-top: 28px !important;
}

@media (max-width: 768px) {
  #hero {
    padding-top: 80px !important;
  }
  #hero .hero-inner--rulemaker .hero-h1,
  #hero .hero-inner--rulemaker .hero-h1.hero-h1--display,
  #hero .hero-inner--with-photo .hero-h1,
  #hero .hero-inner--with-photo .hero-h1.hero-h1--display {
    font-size: clamp(34px, 8.5vw, 56px) !important;
  }
}

/* === Print === Раскрываем весь контент для печати/PDF (reveal/stagger не срабатывают в headless-рендере) */
@media print {
  .reveal,
  .js .reveal,
  .hero-h1 .word,
  .js .hero-h1 .word {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  body::before { display: none !important; }

  .site-header,
  .site-nav-toggle,
  .site-nav-backdrop,
  .cookie-bar,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  section,
  footer {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 11px;
    color: #555;
  }
}
