/* Трибун — спокойный конструктивизм: графит, бумага, сдержанный акцент */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Unbounded:wght@500;600;700&display=swap');

:root {
  /* Brand — приглушённый оксид, не «сигнальный» красный */
  --brand: #a84b45;
  --brand-strong: #863832;
  --brand-soft: #c47871;
  --brand-deep: #6e2e2a;
  --gradient-brand: linear-gradient(90deg, #a84b45 0%, #863832 100%);

  /* Type */
  --font-display: 'Unbounded', ui-sans-serif, system-ui, sans-serif;
  --font-ui: 'Manrope', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --text-caption: 13px;
  --text-small: 14px;
  --text-body: 16px;
  --text-subheading: 20px;
  --text-heading-sm: 24px;
  --text-heading: clamp(28px, 3.8vw, 42px);
  --text-display: clamp(40px, 7.2vw, 88px);

  /* Layout */
  --page-max-width: 1180px;
  --section-gap: clamp(64px, 9vw, 104px);
  --card-padding: 28px;
  --element-gap: 20px;

  /* Shape — лёгкая геометрия, без «пилы» */
  --radius-buttons: 2px;
  --radius-nav: 2px;
  --radius-panels: 2px;
  --radius-cards: 2px;
  --radius-pill: 2px;
  --radius-tile: 2px;
}

:root,
[data-theme='light'] {
  color-scheme: light;
  --bg: #f5f4f1;
  --surface: #ffffff;
  --surface-2: #eceae5;
  --surface-tile: #f3ebe9;
  --text: #1c1c1c;
  --text-2: #5a5a5a;
  --text-3: #7a7a7a;
  --border: #e0ddd6;
  --border-strong: #c8c4bb;
  --invert-bg: #1c1c1c;
  --invert-surface: #2a2a2a;
  --invert-text: #f5f4f1;
  --invert-text-2: #a8a49c;
  --shadow-lg: 0 8px 28px rgba(28, 28, 28, 0.08);
  --on-brand: #ffffff;
  --paper-rule: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 47px,
    rgba(28, 28, 28, 0.035) 47px,
    rgba(28, 28, 28, 0.035) 48px
  );
}

[data-theme='dark'] {
  color-scheme: dark;
  --bg: #121212;
  --surface: #1a1a1a;
  --surface-2: #242424;
  --surface-tile: #2a1f1e;
  --text: #f2f1ee;
  --text-2: #a8a49c;
  --text-3: #7e7a72;
  --border: #2e2e2e;
  --border-strong: #454545;
  --invert-bg: #f5f4f1;
  --invert-surface: #ffffff;
  --invert-text: #1c1c1c;
  --invert-text-2: #5a5a5a;
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.35);
  --on-brand: #ffffff;
  --paper-rule: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 47px,
    rgba(242, 241, 238, 0.035) 47px,
    rgba(242, 241, 238, 0.035) 48px
  );
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

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

.container {
  width: min(100% - 48px, var(--page-max-width));
  margin-inline: auto;
}

/* Typography */
.display, h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}

h3, .h3 {
  font-family: var(--font-display);
  font-size: var(--text-heading-sm);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--text-subheading);
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-2);
  margin: 0;
  max-width: 36em;
}

.muted { color: var(--text-2); }
.small { font-size: var(--text-small); font-weight: 500; color: var(--text-2); }

.disclaimer {
  font-size: var(--text-caption);
  color: var(--text-3);
  margin-top: 24px;
  max-width: 720px;
}

/* Announcement — графит, не заливка сигнальным красным */
.announce {
  background: var(--invert-bg);
  color: var(--invert-text);
  font-size: var(--text-small);
  font-weight: 500;
  text-align: center;
  padding: 11px 24px;
  letter-spacing: 0.01em;
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 55%, transparent);
}
.announce a {
  color: var(--brand-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-strong);
}

/* Тёмная тема: в шапке то же лого, что в светлой (чёрный текст) — нужен светлый фон */
[data-theme='dark'] .site-header {
  background: #f5f4f1;
  border-bottom-color: #1c1c1c;
}
[data-theme='dark'] .nav-links a:not(.btn) {
  color: #1c1c1c;
}
[data-theme='dark'] .nav-links a:not(.btn):hover {
  background: #1c1c1c;
  color: #f5f4f1;
}
[data-theme='dark'] .theme-toggle,
[data-theme='dark'] .nav-toggle {
  border-color: #1c1c1c;
  background: #f5f4f1;
  color: #1c1c1c;
}
[data-theme='dark'] .theme-toggle:hover {
  background: #1c1c1c;
  color: #f5f4f1;
}

.nav-pill {
  width: min(100% - 48px, var(--page-max-width));
  margin-inline: auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 44px; width: auto; }
.logo-dark { display: none; }
[data-theme='dark'] .logo-light { display: none; }
[data-theme='dark'] .logo-dark { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-links a:not(.btn) {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--text);
  padding: 10px 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-links a:not(.btn):hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-links .btn { margin-left: 10px; }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin-left: 4px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.theme-toggle:hover { background: var(--surface-2); color: var(--text); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-moon { display: none; }
[data-theme='dark'] .theme-toggle .icon-sun { display: none; }
[data-theme='dark'] .theme-toggle .icon-moon { display: block; }

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
}

/* Buttons — основной CTA графитовый, акцент сдержанный */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-buttons);
  padding: 14px 22px;
  font-family: var(--font-ui);
  font-size: var(--text-small);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--invert-bg);
  color: var(--invert-text);
  border-color: var(--invert-bg);
  box-shadow: var(--shadow-lg);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--invert-bg) 88%, var(--brand));
  border-color: color-mix(in srgb, var(--invert-bg) 88%, var(--brand));
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: color-mix(in srgb, currentColor 35%, transparent);
  color: inherit;
}
.btn-ghost:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-pill { border-radius: 0; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Sections */
.section { padding: var(--section-gap) 0; position: relative; }

.section-alt,
.section-audience,
.section-process,
.section-faq {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section-related {
  padding-top: clamp(64px, 9vw, 96px);
  padding-bottom: var(--section-gap);
}

.section-head {
  max-width: 760px;
  margin-bottom: 44px;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 18px; }

.section-head-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}
.section-head-split .lead { max-width: 520px; }
.section-cta-row { margin-top: 32px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  background: transparent;
  padding: 6px 12px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 18px;
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--brand);
}

.badge-on-dark {
  border-color: rgba(247, 245, 240, 0.4);
  color: var(--invert-text);
}
.badge-on-dark::before { background: var(--brand); }

.text-link {
  display: inline-block;
  margin-top: 20px;
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 2px solid var(--brand);
  padding-bottom: 2px;
}
.text-link:hover { color: var(--brand); }

/* ========== HERO · constructivist composition ========== */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-bottom: 2px solid var(--text);
  background: #141414;
  color: var(--invert-text);
}

.hero-construct {
  background: #141414;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #141414;
}

.hero-video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(1.04);
  filter: saturate(0.85) contrast(1.02);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: block;
  background:
    linear-gradient(90deg, rgba(20, 20, 20, 0.82) 0%, rgba(20, 20, 20, 0.55) 46%, rgba(20, 20, 20, 0.28) 78%, rgba(20, 20, 20, 0.4) 100%),
    linear-gradient(180deg, rgba(20, 20, 20, 0.3) 0%, rgba(20, 20, 20, 0.12) 42%, rgba(20, 20, 20, 0.62) 100%);
}

.hero-geo {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-geo__block {
  position: absolute;
  background: var(--brand);
}
.hero-geo__block--1 {
  width: min(28vw, 340px);
  height: min(28vw, 340px);
  right: 8%;
  top: 12%;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 28% 100%, 0 100%);
  opacity: 0.88;
  animation: geo-rise 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero-geo__block--2 {
  width: min(18vw, 220px);
  height: min(18vw, 220px);
  right: 26%;
  bottom: 14%;
  background: #f3f1ec;
  opacity: 0.82;
  animation: geo-rise 1.2s 0.12s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero-geo__block--3 {
  width: 4px;
  height: 42%;
  left: 46%;
  top: 18%;
  background: rgba(243, 241, 236, 0.45);
  transform: rotate(18deg);
  animation: geo-rise 1s 0.2s both;
}
.hero-geo__circle {
  position: absolute;
  width: min(22vw, 260px);
  height: min(22vw, 260px);
  border: 3px solid rgba(243, 241, 236, 0.55);
  border-radius: 50%;
  right: 18%;
  top: 38%;
  animation: geo-spin 28s linear infinite;
}
.hero-geo__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243, 241, 236, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 241, 236, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
  opacity: 0.45;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-el { display: none; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: end;
  width: min(100% - 48px, var(--page-max-width));
  margin: 0 auto;
  padding: clamp(72px, 12vh, 120px) 0 clamp(56px, 8vh, 88px);
}

.hero-inner-solo {
  grid-template-columns: minmax(0, 38rem) 1fr;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(52px, 11vw, 120px);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #f7f5f0;
  margin: 0 0 28px;
  animation: geo-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero-brand span {
  display: inline;
  color: var(--brand-soft);
}

.hero-copy h1 {
  font-size: clamp(28px, 4.2vw, 48px);
  max-width: 12em;
  color: #f7f5f0;
  text-transform: uppercase;
  animation: geo-rise 0.95s 0.08s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero-copy .lead {
  margin-top: 20px;
  max-width: 28em;
  color: rgba(247, 245, 240, 0.78);
  font-size: clamp(17px, 2vw, 20px);
  animation: geo-rise 1s 0.14s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  animation: geo-rise 1.05s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero .btn-primary {
  background: #f5f4f1;
  color: #1c1c1c;
  border-color: #f5f4f1;
  box-shadow: none;
}
.hero .btn-primary:hover {
  background: #fff;
  border-color: #fff;
  color: #1c1c1c;
}
.hero .btn-ghost {
  color: #f5f4f1;
  border-color: rgba(245, 244, 241, 0.45);
}
.hero .btn-ghost:hover {
  background: #f5f4f1;
  color: #1c1c1c;
  border-color: #f5f4f1;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(247, 245, 240, 0.18);
  animation: geo-rise 1.1s 0.26s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero-trust li {
  position: relative;
  font-size: var(--text-small);
  font-weight: 600;
  color: rgba(247, 245, 240, 0.72);
  padding-left: 18px;
  letter-spacing: 0.02em;
}
.hero-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 7px;
  height: 7px;
  background: var(--brand-soft);
  opacity: 0.9;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding-bottom: 8px;
  animation: geo-rise 1.15s 0.18s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero-aside__mark {
  width: 72px;
  height: auto;
}
[data-theme='dark'] .hero-aside__mark { opacity: 1; }
.hero-aside__line {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.55);
  max-width: 12em;
  line-height: 1.35;
}

@keyframes geo-rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes geo-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-geo__block,
  .hero-geo__circle,
  .hero-brand,
  .hero-copy h1,
  .hero-copy .lead,
  .hero-cta,
  .hero-trust,
  .hero-aside { animation: none; }
}

/* Cards / grids */
.card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: var(--card-padding);
}
a.card:hover { border-color: var(--brand); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-2); margin: 0; }

.card-dark {
  background: var(--invert-bg);
  border-color: var(--invert-bg);
  color: var(--invert-text);
}
.card-dark h2, .card-dark h3 { color: var(--invert-text); }
.card-dark p, .card-dark .muted, .card-dark .small { color: var(--invert-text-2); }
.card-dark .price { color: var(--invert-text); }
.card-dark .old-price { color: var(--invert-text-2); }
.card-dark .btn-primary {
  background: var(--brand);
  color: #fff;
}
.card-dark .includes li { color: var(--invert-text-2); }
.card-dark .disclaimer { color: var(--invert-text-2); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--element-gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--element-gap); }

.includes { display: grid; gap: 10px; margin: 16px 0 0; }
.includes li {
  position: relative;
  padding-left: 18px;
  color: var(--text-2);
  font-size: var(--text-small);
}
.includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  background: var(--brand);
}

.prose { max-width: 720px; color: var(--text-2); font-size: var(--text-body); line-height: 1.65; }
.prose p { margin: 0 0 18px; }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  color: var(--text);
  margin: 36px 0 14px;
  text-transform: uppercase;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text);
  margin: 28px 0 10px;
}
.prose a { color: var(--text); border-bottom: 2px solid var(--brand); }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.2rem; display: grid; gap: 8px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { color: var(--text-2); }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--text); font-weight: 700; }
.prose .lead-in {
  font-size: var(--text-subheading);
  color: var(--text);
  font-weight: 500;
}

/* Audience — без «карточек-пузырей»: жёсткие панели */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-strong);
}
.audience-card {
  background: var(--surface);
  border-right: 1px solid var(--border-strong);
  padding: 32px 28px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.audience-card:last-child { border-right: none; }
.audience-card h3 {
  margin: 16px 0 12px;
  font-size: 22px;
  text-transform: uppercase;
}
.audience-card p { margin: 0; color: var(--text-2); flex: 1; }

.audience-card-accent {
  background: var(--text);
  color: var(--bg);
}
.audience-card-accent h3 { color: var(--bg); }
.audience-card-accent p { color: rgba(243, 241, 236, 0.72); }
.audience-card-accent .audience-icon {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.audience-card-accent .text-link {
  color: #fff;
  border-color: var(--brand);
}
.audience-card-accent .text-link:hover { color: var(--brand-soft); }

.audience-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
}
.audience-icon svg { width: 24px; height: 24px; }

/* Practices */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border-strong);
}
.practice-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-strong);
  border-right: 1px solid var(--border-strong);
  padding: 22px 24px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.practice-card:nth-child(2n) { border-right: none; }
.practice-card:nth-last-child(-n+2) { border-bottom: none; }
.practice-card:hover {
  background: var(--text);
  color: var(--bg);
}
.practice-card:hover .practice-index,
.practice-card:hover .practice-body span,
.practice-card:hover .practice-arrow { color: rgba(243, 241, 236, 0.55); }
.practice-card:hover .practice-body strong { color: var(--bg); }

.practice-index {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.practice-body strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.practice-body span {
  display: block;
  font-size: var(--text-small);
  color: var(--text-2);
  margin-top: 4px;
}
.practice-arrow {
  font-family: var(--font-display);
  color: var(--text-3);
  font-size: 20px;
}

/* Process */
.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-strong);
}
.process-track li { list-style: none; }
.process-step {
  padding: 28px 24px;
  border-right: 1px solid var(--border-strong);
  background: var(--surface);
  position: relative;
}
.process-step:last-child { border-right: none; }
.process-num {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 18px;
  line-height: 1;
}
.process-step h3 {
  font-size: 18px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.process-step p {
  margin: 0;
  font-size: var(--text-small);
  color: var(--text-2);
}

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border-strong); }
.step {
  background: var(--surface);
  border-right: 1px solid var(--border-strong);
  padding: 24px;
}
.step:last-child { border-right: none; }
.step-num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 12px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; text-transform: uppercase; }
.step p { font-size: var(--text-small); color: var(--text-2); margin: 0; }

/* Offers */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border-strong);
}
.offer-card {
  position: relative;
  background: var(--surface);
  border-right: 1px solid var(--border-strong);
  padding: 28px 24px;
}
.offer-card:last-child { border-right: none; }
.offer-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.offer-card p { margin: 0; font-size: var(--text-small); color: var(--text-2); }

.offer-card-featured {
  background: var(--text);
  color: var(--bg);
}
.offer-card-featured h3 { color: var(--bg); }
.offer-card-featured p { color: rgba(243, 241, 236, 0.7); }
.offer-card-featured .price { color: #fff; }
.offer-card-featured .old-price { color: rgba(243, 241, 236, 0.45); }

.offer-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 10px;
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  color: var(--brand-strong);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.offer-card-featured .offer-tag {
  background: color-mix(in srgb, var(--brand-soft) 25%, transparent);
  color: #f5f4f1;
  border-color: color-mix(in srgb, var(--brand-soft) 40%, transparent);
}

.price {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 22px;
  color: var(--text);
}
.price.accent { color: var(--text); }
.card .price { font-size: 22px; }
.old-price {
  font-size: var(--text-small);
  font-weight: 400;
  color: var(--text-3);
  text-decoration: line-through;
  margin-left: 8px;
}

/* Trust */
.section-trust { padding-bottom: calc(var(--section-gap) - 16px); }
.trust-band {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--invert-bg);
  color: var(--invert-text);
  border: 1px solid var(--invert-bg);
  padding: clamp(32px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}
.trust-band::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -36px;
  bottom: -36px;
  background: color-mix(in srgb, var(--brand) 55%, transparent);
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
}
.trust-band h2 { color: var(--invert-text); }
.trust-band .lead { color: var(--invert-text-2); margin-top: 16px; }
.trust-points { display: grid; gap: 0; border: 1px solid rgba(247, 245, 240, 0.2); position: relative; z-index: 1; }
.trust-points li {
  border-bottom: 1px solid rgba(247, 245, 240, 0.2);
  padding: 18px 20px;
  display: grid;
  gap: 6px;
}
.trust-points li:last-child { border-bottom: none; }
.trust-points strong {
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--invert-text);
}
.trust-points span { font-size: var(--text-small); color: var(--invert-text-2); }

/* FAQ */
.faq-list { display: grid; gap: 0; border: 1px solid var(--border-strong); }
.faq-item {
  background: var(--surface);
  border-bottom: 1px solid var(--border-strong);
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  cursor: pointer;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  color: var(--brand);
  font-size: 22px;
  font-weight: 600;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer {
  padding: 0 24px 22px;
  color: var(--text-2);
  font-size: var(--text-body);
  max-width: 76ch;
}

/* CTA */
.cta-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.cta-copy .lead { margin-top: 16px; max-width: 30em; }
.cta-blog { margin-top: 40px; }
.cta-blog h3 {
  font-size: 16px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cta-blog ul { display: grid; gap: 10px; }
.cta-blog a {
  font-size: var(--text-small);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.cta-blog a:hover { border-color: var(--brand); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.form-card h3 {
  font-size: 18px;
  text-transform: uppercase;
}
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
input, textarea, select {
  width: 100%;
  font-family: var(--font-ui);
  font-size: var(--text-body);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  padding: 12px 14px;
  border-radius: var(--radius-buttons);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand);
}
textarea { min-height: 110px; resize: vertical; }

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--text-caption);
  color: var(--text-2);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.checkbox input {
  width: auto;
  margin-top: 2px;
}
.checkbox a { color: var(--text); border-bottom: 2px solid var(--brand); }

.form-status { font-size: var(--text-small); min-height: 1em; }
.form-status.ok { color: #1a7f4b; }
.form-status.err { color: #c0392b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Inner pages */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 20px 0 0;
  font-size: var(--text-caption);
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.breadcrumbs a { color: var(--text-2); }
.breadcrumbs a:hover { color: var(--brand); }

.page-hero { padding: 48px 0 12px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 56px); }
.page-hero .lead { margin-top: 20px; max-width: 44em; }

/* Footer — всегда тёмный графит */
.site-footer {
  background: #1c1c1c;
  color: #f5f4f1;
  border-top: 1px solid #1c1c1c;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand img { height: 52px; width: auto; margin-bottom: 18px; }
.site-footer p { color: #b0aaa0; font-size: var(--text-small); max-width: 32em; }
.footer-heading {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: #fff;
}
.site-footer ul { display: grid; gap: 10px; }
.site-footer li a { font-size: var(--text-small); color: #b0aaa0; }
.site-footer li a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(247, 245, 240, 0.15);
  font-size: var(--text-caption);
  color: #b0aaa0;
}

/* Motion */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fade-up.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner,
  .hero-inner-solo,
  .trust-band,
  .cta-layout { grid-template-columns: 1fr; }
  .hero-aside { display: none; }
  .offers-grid { grid-template-columns: repeat(2, 1fr); }
  .offer-card:nth-child(2n) { border-right: none; }
  .offer-card:nth-child(n+3) { border-top: 2px solid var(--text); }
  .process-track,
  .steps { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2n),
  .step:nth-child(2n) { border-right: none; }
  .process-step:nth-child(n+3),
  .step:nth-child(n+3) { border-top: 2px solid var(--text); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; place-items: center; order: 3; margin-left: 4px; }
  .theme-toggle { order: 2; margin-left: auto; }
  .nav-links {
    order: 4;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 16px;
    margin: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { margin: 8px 0 0; }
  .nav-pill { flex-wrap: wrap; padding: 12px 0; }

  .grid-2,
  .grid-3,
  .audience-grid,
  .practice-grid,
  .form-row { grid-template-columns: 1fr; }

  .audience-card {
    border-right: none;
    border-bottom: 2px solid var(--text);
    min-height: 0;
  }
  .audience-card:last-child { border-bottom: none; }

  .practice-card {
    border-right: none !important;
  }
  .practice-card:nth-last-child(-n+2) { border-bottom: 2px solid var(--text); }
  .practice-card:last-child { border-bottom: none !important; }

  .section-head-split { flex-direction: column; align-items: flex-start; }
  .hero-geo__block--1 { width: 42vw; height: 42vw; right: -4%; top: 8%; opacity: 0.85; }
  .hero-geo__block--2 { width: 22vw; height: 22vw; }
  .hero-geo__circle { opacity: 0.4; }
}

@media (max-width: 560px) {
  .offers-grid,
  .process-track,
  .steps { grid-template-columns: 1fr; }
  .offer-card,
  .process-step,
  .step {
    border-right: none !important;
    border-top: 2px solid var(--text);
  }
  .offer-card:first-child,
  .process-step:first-child,
  .step:first-child { border-top: none; }
  .container { width: min(100% - 32px, var(--page-max-width)); }
  .nav-pill { width: min(100% - 32px, var(--page-max-width)); }
  .hero-inner { width: min(100% - 32px, var(--page-max-width)); }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Admin */
.admin-body { background: var(--bg); min-height: 100vh; }
.admin-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: auto;
}

.admin-brand { display: flex; gap: 10px; align-items: center; color: var(--text); }
.admin-brand img { width: 32px; height: 32px; object-fit: contain; }
.admin-brand strong { display: block; font-size: var(--text-small); font-weight: 600; }
.admin-brand span { display: block; font-size: var(--text-caption); color: var(--text-3); }
.admin-brand .theme-toggle { margin-left: auto; }

.admin-nav { display: grid; gap: 2px; }
.admin-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-nav);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--text-2);
}
.admin-nav a:hover { background: var(--surface-2); color: var(--text); }
.admin-nav a.is-active { background: var(--surface-2); color: var(--text); }
.admin-nav-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--invert-bg);
  color: var(--invert-text);
  font-size: 11px;
  font-weight: 600;
  display: inline-grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}
.admin-nav a.is-active .admin-nav-count,
.admin-nav-count.is-muted {
  background: var(--surface-tile);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.admin-sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 8px;
  font-size: var(--text-caption);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.admin-sidebar-foot a { color: var(--text-3); }
.admin-sidebar-foot a:hover { color: var(--text); }

.admin-main { padding: 28px 32px 56px; min-width: 0; }
.admin-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.admin-top-copy { min-width: 0; }
.admin-top h1 { font-size: 28px; letter-spacing: -0.025em; }
.admin-top .small { margin-top: 6px; }
.admin-top-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}
.admin-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-2);
  font-size: var(--text-caption);
  font-weight: 500;
}
.admin-filter:hover { background: var(--surface-2); color: var(--text); }
.admin-filter.is-active {
  background: var(--invert-bg);
  border-color: var(--invert-bg);
  color: var(--invert-text);
}
.admin-filter-count {
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
a.admin-stat-card,
.admin-stat-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-panels);
  padding: 18px 20px;
  transition: border-color 0.15s ease;
}
a.admin-stat-card:hover { border-color: var(--border-strong); }
.admin-stat-card .small { margin: 0; }
.admin-stat {
  margin-top: 8px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.admin-stat-card .hint {
  margin-top: 6px;
  font-size: var(--text-caption);
  color: var(--text-3);
}

.admin-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-cards);
  overflow: hidden;
}
.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.admin-panel-head h2,
.admin-panel-head h3 {
  margin: 0;
  font-size: var(--text-subheading);
  font-weight: 600;
}
.admin-panel-body { padding: 20px; }
.admin-panel-body.tight { padding: 0; }

.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-small);
  background: transparent;
  border: none;
  border-radius: 0;
}
.admin-table th, .admin-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.admin-table th {
  color: var(--text-3);
  font-weight: 500;
  font-size: var(--text-caption);
  white-space: nowrap;
  background: var(--surface-2);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr.is-new td { background: rgba(214, 31, 38, 0.08); }
.admin-table .cell-title { font-weight: 600; color: var(--text); }
.admin-table .cell-meta { margin-top: 4px; color: var(--text-3); font-size: var(--text-caption); }
.admin-table .cell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.admin-table .btn-sm {
  padding: 7px 10px;
  font-size: 12px;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.admin-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}
.admin-status.is-new,
.admin-status.is-intake { color: #0f6b4a; background: #e6f8f5; border-color: #b7e5d4; }
.admin-status.is-active,
.admin-status.is-done { color: #127a4c; background: #e8f6ee; border-color: #bfe5cd; }
.admin-status.is-waiting,
.admin-status.is-running { color: #4b5f8a; background: #eef2f8; border-color: #cfd8e8; }
.admin-status.is-live { color: #0f6b4a; background: #e6f8f5; border-color: #b7e5d4; }
.admin-status.is-closed,
.admin-status.is-processed { color: var(--text-3); background: var(--surface-2); }
.admin-status.is-error,
.admin-status.is-soon { color: #a33b3b; background: #f8ecec; border-color: #e5c4c4; }
[data-theme='dark'] .admin-status.is-new,
[data-theme='dark'] .admin-status.is-intake { color: #3db87a; background: #10241c; border-color: #1d3a2c; }
[data-theme='dark'] .admin-status.is-active,
[data-theme='dark'] .admin-status.is-done { color: #4ade80; background: #14241a; border-color: #244532; }
[data-theme='dark'] .admin-status.is-waiting,
[data-theme='dark'] .admin-status.is-running { color: #93c5fd; background: #151b24; border-color: #243044; }
[data-theme='dark'] .admin-status.is-error,
[data-theme='dark'] .admin-status.is-soon { color: #f87171; background: #241414; border-color: #3a2222; }

.admin-empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-2);
}
.admin-empty strong { display: block; color: var(--text); margin-bottom: 6px; }

.admin-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: start;
}
.admin-layout.is-wide-form { grid-template-columns: 380px 1fr; }
.admin-new-case {
  margin-bottom: 20px;
  max-width: 820px;
}
.admin-new-case[hidden] { display: none !important; }
.admin-new-case-form { max-width: 720px; }
.admin-layout.is-case-detail {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  align-items: start;
}
.admin-layout.is-agents {
  grid-template-columns: 1fr;
  max-width: 920px;
}

.admin-flash {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-panels);
  border: 1px solid #b7e5d4;
  background: #e6f8f5;
  color: #0f6b4a;
  font-size: var(--text-small);
}
.admin-flash.is-error {
  border-color: #e8b4b4;
  background: #fdf2f2;
  color: #8a2b2b;
}

.admin-analyze-bar { margin-bottom: 16px; }

.statement-analyze {
  display: grid;
  gap: 14px;
}
.analyze-presets {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  border: 0;
}
.analyze-presets-title {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.statement-analyze .checkbox {
  margin: 0;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  line-height: 1.35;
}
.statement-analyze .checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 2px 0 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--brand, #a84b45);
}
.statement-analyze textarea {
  min-height: 0;
}

.case-minis {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
}
.case-mini {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.case-mini[open] {
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}
.case-mini-summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "kicker title chevron"
    "meta meta chevron";
  gap: 2px 12px;
  align-items: center;
  padding: 12px 14px;
  user-select: none;
}
.case-mini-summary::-webkit-details-marker { display: none; }
.case-mini-kicker {
  grid-area: kicker;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-strong);
}
.case-mini-title {
  grid-area: title;
  font-weight: 650;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.case-mini-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  font-size: 12px;
  color: var(--text-2);
  min-width: 0;
}
.case-mini-meta > span:not(.admin-status) {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.case-mini-chevron {
  grid-area: chevron;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
  justify-self: end;
  margin-right: 4px;
}
.case-mini[open] .case-mini-chevron {
  transform: rotate(45deg);
  margin-top: -4px;
}
.case-mini-body {
  padding: 0 14px 16px;
  border-top: 1px solid var(--line);
  animation: analyze-panel-in 0.3s ease both;
}
.case-mini-glance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 12px;
}
.case-mini-glance div {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-2);
}
.case-mini-glance span {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 2px;
}
.case-mini-glance strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.case-mini-facts {
  margin: 0 0 14px;
  font-size: var(--text-small);
  color: var(--text-2);
  line-height: 1.45;
}
.case-mini-form .admin-form-section:first-child { margin-top: 4px; }
.case-mini-files {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.case-mini-files li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-2);
}
.case-mini-files a {
  color: var(--text);
  font-weight: 600;
  font-size: var(--text-small);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.case-mini-files a:hover { color: var(--brand-strong); }
.case-mini-empty-docs { margin: 12px 0 0; }
.admin-upload-box.is-compact { margin-top: 14px; }

@media (max-width: 820px) {
  .case-mini-glance { grid-template-columns: 1fr 1fr; }
  .case-mini-summary {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "kicker chevron"
      "title title"
      "meta meta";
  }
}

.analyze-live {
  margin-top: 22px;
  padding: 18px 18px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(25, 160, 95, 0.08), transparent 42%),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  overflow: hidden;
  position: relative;
}
.analyze-live.is-open { animation: analyze-panel-in 0.45s ease both; }
.analyze-live.is-done {
  background:
    linear-gradient(135deg, rgba(25, 160, 95, 0.14), transparent 50%),
    linear-gradient(180deg, var(--surface), var(--surface-2));
}
.analyze-live.is-error {
  background:
    linear-gradient(135deg, rgba(196, 92, 92, 0.12), transparent 48%),
    linear-gradient(180deg, var(--surface), var(--surface-2));
}
.analyze-live::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
  animation: analyze-pulse-bar 1.6s ease-in-out infinite;
}
.analyze-live.is-done::before { animation: none; background: var(--brand); }
.analyze-live.is-error::before { animation: none; background: #c45c5c; }

.analyze-live-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.analyze-live-head strong {
  display: block;
  font-size: var(--text-subheading);
  letter-spacing: -0.02em;
}
.analyze-live-head p { margin: 4px 0 0; }
.analyze-live-pct {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--brand-strong);
  min-width: 3.2rem;
  text-align: right;
}
.analyze-live.is-error .analyze-live-pct { color: #8a2b2b; }

.analyze-track {
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 80%, transparent);
  overflow: hidden;
  margin-bottom: 18px;
}
.analyze-track-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand), var(--brand-soft));
  background-size: 200% 100%;
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  animation: analyze-shimmer 2.2s linear infinite;
}
.analyze-live.is-done .analyze-track-fill,
.analyze-live.is-error .analyze-track-fill { animation: none; }

.analyze-steps {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.analyze-step {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  position: relative;
}
.analyze-step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.analyze-step.is-done { color: var(--brand-strong); }
.analyze-step.is-done .analyze-step-dot {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(25, 160, 95, 0.15);
}
.analyze-step.is-active { color: var(--text); }
.analyze-step.is-active .analyze-step-dot {
  border-color: var(--brand);
  background: var(--surface);
  transform: scale(1.15);
  animation: analyze-dot 1.1s ease-in-out infinite;
}

.analyze-chunks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
  font-size: var(--text-small);
  color: var(--text-2);
}
.analyze-chunk-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
.analyze-chunk-pills i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  display: inline-block;
  font-style: normal;
}
.analyze-chunk-pills i.is-on {
  background: var(--brand);
  box-shadow: 0 0 0 2px rgba(25, 160, 95, 0.2);
}

.analyze-log {
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  max-height: 132px;
  overflow: auto;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-2) 85%, transparent);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-2);
  display: grid;
  gap: 6px;
}
.analyze-log li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  animation: analyze-log-in 0.35s ease both;
}
.analyze-log time {
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
}

@keyframes analyze-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes analyze-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes analyze-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(25, 160, 95, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(25, 160, 95, 0); }
}
@keyframes analyze-pulse-bar {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@keyframes analyze-log-in {
  from { opacity: 0; transform: translateX(-4px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 820px) {
  .analyze-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.admin-option-list {
  margin: 0 0 16px;
  padding-left: 1.15rem;
  color: var(--text-2);
  font-size: var(--text-small);
  display: grid;
  gap: 4px;
}

.report-summary {
  font-size: var(--text-body);
  line-height: 1.55;
  margin: 0 0 12px;
}
.report-cashflow {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line));
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
}
.report-cashflow strong {
  display: block;
  margin-bottom: 4px;
  font-size: var(--text-small);
  color: var(--brand-strong);
}
.report-cashflow p {
  margin: 0;
  color: var(--text);
  font-size: var(--text-small);
  line-height: 1.45;
}
.report-challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.report-challenge-grid > div {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: grid;
  gap: 4px;
}
.report-challenge-grid span {
  font-size: 11px;
  font-weight: 650;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.report-challenge-grid strong {
  font-size: 1.25rem;
  color: var(--text);
}
.report-challenge-grid em {
  font-style: normal;
  font-size: var(--text-small);
  color: var(--text-2);
}
@media (max-width: 820px) {
  .report-challenge-grid { grid-template-columns: 1fr; }
}
.report-history-list { margin-top: 12px !important; }
.admin-status.is-dir-out { color: #8a2b2b; background: #fdf2f2; border-color: #e8b4b4; }
.admin-status.is-dir-in { color: #4b5f8a; background: #eef2f8; border-color: #cfd8e8; }
.admin-status.is-dir-internal { color: #8a6a20; background: #f8f1e0; border-color: #e8d4a8; }
.admin-status.is-dir-unknown { color: var(--text-3); background: var(--surface-2); }
tr.is-dir-in { opacity: 0.72; }
.report-amount {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 20px;
  font-size: var(--text-caption);
  color: var(--text-3);
}
.report-h {
  margin: 24px 0 12px;
  font-size: var(--text-body);
  font-weight: 600;
}
.report-flags {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.report-flag {
  border: 1px solid var(--border);
  border-radius: var(--radius-panels);
  padding: 14px 16px;
  background: var(--surface-2);
}
.report-flag header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: var(--text-small);
}
.report-flag p { margin: 0; font-size: var(--text-small); color: var(--text-2); }
.report-flag.is-high,
.report-flag.is-critical { border-color: #e8b4b4; box-shadow: inset 3px 0 0 #c45c5c; }
.report-flag.is-medium { box-shadow: inset 3px 0 0 #c4a35a; }
.report-flag.is-low { box-shadow: inset 3px 0 0 var(--brand); }
.report-action { color: var(--text) !important; font-weight: 500; margin-top: 8px !important; }

.report-checks { display: grid; gap: 8px; }
.report-check {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-nav);
  background: var(--surface);
  font-size: var(--text-small);
}
.report-check p { grid-column: 1 / -1; margin: 0; color: var(--text-2); }
.report-check.is-ok,
.report-check.is-found { border-color: #b7e5d4; }
.report-check.is-warn,
.report-check.is-missing,
.report-check.is-unclear { border-color: #e8d4a8; }
.report-check.is-check { border-color: #cfd8e8; }

.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}
.report-actions { margin: 0; padding-left: 1.2rem; display: grid; gap: 10px; }
.report-actions .cell-meta { display: block; }
.report-gaps { margin: 0; padding-left: 1.2rem; color: var(--text-2); font-size: var(--text-small); }

.admin-status.is-risk-low { color: #0f6b4a; background: #e6f8f5; border-color: #b7e5d4; }
.admin-status.is-risk-medium { color: #8a6a20; background: #f8f1e0; border-color: #e8d4a8; }
.admin-status.is-risk-high,
.admin-status.is-risk-critical { color: #8a2b2b; background: #fdf2f2; border-color: #e8b4b4; }
.admin-status.is-error { color: #8a2b2b; background: #fdf2f2; border-color: #e8b4b4; }
.admin-status.is-flag { font-size: 11px; text-transform: uppercase; }

@media (max-width: 860px) {
  .report-grid { grid-template-columns: 1fr; }
}
.admin-form-section {
  display: grid;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.admin-form-section:first-child {
  padding-top: 0;
  border-top: none;
}
.admin-form-section h3 {
  margin: 0;
  font-size: var(--text-body);
  font-weight: 600;
}
.admin-form-hint { margin: -6px 0 0; }
[data-client-card] [data-for-types][hidden] { display: none !important; }
.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 8px;
}

.admin-details {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-nav);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: var(--text-caption);
  white-space: pre-wrap;
  max-width: 420px;
}
.admin-inline-form { display: inline; }
.admin-select-sm,
.admin-table select {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-buttons);
  padding: 6px 8px;
}
.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: var(--bg);
}
.admin-login-card { width: min(100%, 440px); }

.admin-agent-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.admin-agent-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-panels);
  padding: 16px;
  background: var(--surface-2);
}
.admin-agent-card h3 { font-size: var(--text-body); margin-bottom: 6px; }
.admin-agent-list { display: grid; gap: 8px; }
.admin-agent-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-nav);
  padding: 12px 16px;
  font-size: var(--text-small);
}

.admin-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.admin-quick a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-panels);
  background: var(--surface);
}
.admin-quick a:hover { border-color: var(--border-strong); background: var(--surface-2); }
.admin-quick strong { display: block; margin-bottom: 4px; font-size: var(--text-small); }
.admin-quick span { font-size: var(--text-caption); color: var(--text-2); }

/* Lead cards */
.admin-lead-list { display: grid; gap: 14px; }
.admin-lead-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-cards);
  padding: 20px 22px;
}
.admin-lead-card.is-new {
  border-color: #b7e5d4;
  box-shadow: inset 3px 0 0 var(--brand);
}
.admin-lead-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.admin-lead-top h3 {
  margin: 0;
  font-size: var(--text-subheading);
}
.admin-lead-top .meta {
  margin-top: 4px;
  font-size: var(--text-caption);
  color: var(--text-3);
}
.admin-lead-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}
.admin-lead-field {
  min-width: 0;
}
.admin-lead-field.is-full { grid-column: 1 / -1; }
.admin-lead-field .label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
}
.admin-lead-field .value {
  color: var(--text);
  font-size: var(--text-small);
  word-break: break-word;
}
.admin-lead-field .value.is-empty { color: var(--text-3); }
.admin-lead-field .value.is-message {
  white-space: pre-wrap;
  padding: 12px 14px;
  border-radius: var(--radius-panels);
  background: var(--surface-2);
  border: 1px solid var(--border);
  line-height: 1.5;
}
.admin-lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.admin-lead-actions .btn { min-width: 120px; }

.admin-upload-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-panels);
  background: var(--surface-2);
}
.admin-upload-box.is-compact { padding: 14px; }
.admin-upload-label {
  display: grid;
  gap: 4px;
  cursor: pointer;
}
.admin-upload-label strong {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--text);
}
.admin-upload-label span {
  font-size: var(--text-caption);
  color: var(--text-2);
  line-height: 1.4;
}
.admin-upload-hint {
  color: var(--text-3) !important;
  word-break: break-word;
}
.admin-upload-box input[type="file"] {
  width: 100%;
  font-size: var(--text-caption);
  color: var(--text-2);
}
.admin-inline-form { margin: 0; }

@media (max-width: 860px) {
  .admin-lead-grid { grid-template-columns: 1fr; }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner,
  .trust-band,
  .cta-layout { grid-template-columns: 1fr; }
  .offers-grid,
  .admin-stats,
  .admin-quick { grid-template-columns: repeat(2, 1fr); }
  .process-track,
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
  }
  .admin-sidebar-foot {
    margin: 0;
    display: flex;
    gap: 16px;
    border: none;
    padding: 0;
    width: 100%;
  }
  .admin-layout,
  .admin-layout.is-wide-form,
  .admin-layout.is-case-detail,
  .admin-layout.is-agents { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; place-items: center; order: 3; margin-left: 4px; }
  .theme-toggle { order: 2; margin-left: auto; }
  .nav-links {
    order: 4;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 16px;
    margin: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { margin: 8px 0 0; }
  .nav-pill { flex-wrap: wrap; padding: 12px 0; }

  .grid-2,
  .grid-3,
  .audience-grid,
  .practice-grid,
  .admin-agent-grid,
  .form-row { grid-template-columns: 1fr; }

  .section-head-split { flex-direction: column; align-items: flex-start; }
  .admin-main { padding: 24px 20px 40px; }
}

@media (max-width: 560px) {
  .offers-grid,
  .process-track,
  .steps,
  .admin-stats,
  .admin-quick,
  .admin-agent-grid { grid-template-columns: 1fr; }
  .container { width: min(100% - 32px, var(--page-max-width)); }
  .nav-pill { width: min(100% - 32px, var(--page-max-width)); }
}
