/* ─────────── ФармКонсилиум · base ─────────── */
:root {
  color-scheme: light dark;
  --bg: #F1F2F5;
  --bg-2: #E7E9EE;
  --surface: #FFFFFF;
  --surface-2: #FAFBFC;
  --ink: #0B0F19;
  --ink-2: #1F2433;
  --muted: #5A6273;
  --muted-2: #8A92A3;
  --border: rgba(11, 15, 25, 0.08);
  --border-2: rgba(11, 15, 25, 0.14);
  --accent: #6E4BFF;
  --accent-2: #8A6BFF;
  --accent-soft: #EEE9FF;
  --accent-glow: rgba(110, 75, 255, 0.18);
  --danger: #E5484D;
  --good: #2BA471;
  --shadow-sm: 0 1px 2px rgba(11, 15, 25, 0.04), 0 2px 6px rgba(11, 15, 25, 0.04);
  --shadow-md: 0 4px 14px rgba(11, 15, 25, 0.08), 0 18px 40px rgba(11, 15, 25, 0.06);
  --shadow-lg: 0 14px 40px rgba(11, 15, 25, 0.10), 0 40px 80px rgba(11, 15, 25, 0.10);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

[data-theme="dark"] {
  --bg: #07090F;
  --bg-2: #0E121C;
  --surface: #121624;
  --surface-2: #181D2B;
  --ink: #F4F5F7;
  --ink-2: #D8DCE6;
  --muted: #9098AA;
  --muted-2: #6B7385;
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --accent: #8A6BFF;
  --accent-2: #A48AFF;
  --accent-soft: rgba(138, 107, 255, 0.14);
  --accent-glow: rgba(138, 107, 255, 0.28);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 6px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.55);
}

* { box-sizing: border-box; }
html {
  overflow-y: scroll;
  overflow-x: hidden;
  overflow-x: clip;
}
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-scroll-locked {
  overflow: hidden;
}
body {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  transition: background 280ms ease, color 280ms ease;
  overflow-x: hidden;
  overflow-x: clip;
}
#root {
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}
.page-route {
  max-width: 100%;
  min-width: 0;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.font-display { font-family: var(--font-display); letter-spacing: -0.025em; font-weight: 500; }
.font-mono { font-family: var(--font-mono); }
.numeric { font-variant-numeric: tabular-nums; }

/* ─────────── layout ─────────── */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  min-width: 0;
}
@media (max-width: 1024px) { .container { padding: 0 24px; } }
@media (max-width: 720px) { .container { padding: 0 20px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
/* Hero: длинный текст — точка на уровне первой строки, как у «Что мы делаем» */
.hero .eyebrow {
  display: block;
  position: relative;
  padding-left: 14px;
  line-height: 1.48;
  max-width: 52ch;
}
.hero .eyebrow::before {
  position: absolute;
  left: 0;
  top: 0.74em;
  transform: translateY(-50%);
  margin: 0;
}

.kbd {
  display: inline-flex; padding: 2px 6px; border: none;
  border-radius: 5px; font-family: var(--font-mono); font-size: 10.5px;
  color: var(--muted); background: var(--surface);
}

/* ─────────── header ─────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background 280ms ease;
}
.header .container {
  min-width: 0;
  overflow: visible;
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.header-left  { display: flex; align-items: center; justify-self: start; gap: 0; }
.header-right { display: flex; align-items: center; gap: 8px; justify-self: end; }

.brand {
  display: flex; align-items: center;
  cursor: pointer; user-select: none;
}
.brand-logo {
  width: 150px;
  height: auto;
  display: block;
  transition: filter 280ms ease;
}
[data-theme="dark"] .brand-logo {
  filter: brightness(0) invert(1);
}
.footer .brand-logo { width: 150px; }

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: center;
}
.nav-items {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  flex-wrap: wrap;
}
.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
}
.nav-actions .btn-primary { flex-shrink: 0; }
.nav-item {
  position: relative;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
  white-space: nowrap;
}
.nav-item:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav-item.active { color: var(--accent); }
.nav-item.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px;
  height: 2px; background: var(--accent); border-radius: 2px;
}

.lang-toggle {
  display: inline-flex; align-items: center; gap: 0;
  padding: 3px; border-radius: 8px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  border: none;
}
.lang-toggle button {
  background: transparent; border: 0; cursor: pointer;
  padding: 4px 9px; border-radius: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--muted);
}
.lang-toggle button.on {
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.lang-toggle button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 9px;
}
.btn-sm .arrow { font-weight: 400; }

@media (max-width: 1180px) {
  .nav-item { padding: 8px 10px; font-size: 13px; }
  .header-inner { gap: 16px; }
  .brand-logo { width: 130px; }
}

/* Desktop: logo row + nav row aligned with page .container */
@media (min-width: 1401px) {
  .header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 72px;
    padding-top: 0;
    padding-bottom: 0;
  }
  .header-right { display: none; }
  .header-left { flex: 0 0 auto; }
  .nav {
    flex: 1 1 auto;
    width: auto;
    justify-self: auto;
    justify-content: space-between;
    min-width: 0;
  }
  .nav-items { flex: 1 1 auto; }
  .nav-actions { margin-left: 16px; flex: 0 0 auto; }
}
/* Планшет (в т.ч. iPad landscape ~1366px): гамбургер, иначе не влезает «Контакты» */
@media (max-width: 1400px) {
  .nav { display: none; }
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    min-width: 0;
  }
  .header-left { min-width: 0; }
  .header-right {
    gap: 6px;
    flex-shrink: 0;
    min-width: max-content;
    justify-content: flex-end;
  }
  .header-right .btn-primary.btn-sm {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .brand-logo { width: clamp(88px, 24vw, 112px); }
}
@media (max-width: 860px) {
  .header-right .btn-primary {
    padding: 8px 11px;
    font-size: 12.5px;
  }
  .header-right .btn-primary .arrow { display: none; }
}
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .header-inner { height: 64px; gap: 8px; }
  .mobile-nav-backdrop,
  .mobile-nav-sheet,
  .mega-overlay { top: 64px; }
  .header-right .btn-primary {
    padding: 8px 10px;
    font-size: 12px;
  }
  .brand-logo { width: 92px; }
}

/* Narrow viewports (mobile, IDE Simple Browser): nav → hamburger sheet */
.nav-menu-btn { display: none; }
.mobile-nav-backdrop,
.mobile-nav-sheet { display: none; }
@media (max-width: 1400px) {
  .nav-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-menu-btn[aria-expanded="true"] {
    background: transparent;
    border: none;
  }
  .mobile-nav-backdrop {
    display: block;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: color-mix(in srgb, var(--ink) 40%, transparent);
    z-index: 44;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
  }
  .mobile-nav-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-nav-sheet {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    padding: 12px 20px 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    background: var(--surface);
    box-shadow: 0 24px 48px -12px rgba(11, 15, 25, 0.16);
    z-index: 45;
    transition: max-height 260ms ease, opacity 200ms ease, padding-bottom 260ms ease;
  }
  .mobile-nav-sheet.open {
    max-height: min(88vh, 640px);
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-nav-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .mobile-nav-row {
    display: flex;
    align-items: stretch;
    gap: 4px;
  }
  .mobile-nav-row .mobile-nav-link {
    flex: 1;
    min-width: 0;
  }
  .mobile-nav-expand {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-width: 56px;
    width: 56px;
    min-height: 48px;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    color: var(--muted-2);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 140ms ease, color 140ms ease;
  }
  .mobile-nav-expand:hover {
    background: color-mix(in srgb, var(--ink) 6%, transparent);
    color: var(--ink-2);
  }
  .mobile-nav-expand.expanded,
  .mobile-nav-expand.expanded:hover {
    color: var(--muted-2);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: none;
    border: none;
  }
  .mobile-nav-expand:focus,
  .mobile-nav-expand:focus-visible {
    outline: none;
    box-shadow: none;
  }
  .mobile-nav-group.is-expanded .mobile-nav-link {
    color: var(--ink);
    background: color-mix(in srgb, var(--accent-soft) 75%, transparent);
  }
  .mobile-nav-expand .mobile-nav-chevron {
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: rotate(0deg);
    transition: transform 200ms ease;
  }
  .mobile-nav-expand.expanded .mobile-nav-chevron {
    transform: rotate(180deg);
  }
  .mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(17px, 4.2vw, 20px);
    letter-spacing: -0.015em;
    line-height: 1.2;
    color: var(--ink-2);
    cursor: pointer;
    transition: background 140ms ease, color 140ms ease;
  }
  .mobile-nav-link-label {
    flex: 1;
    min-width: 0;
  }
  .mobile-nav-link:hover {
    background: color-mix(in srgb, var(--ink) 6%, transparent);
  }
  .mobile-nav-group.is-expanded .mobile-nav-link:hover {
    background: color-mix(in srgb, var(--accent-soft) 88%, transparent);
  }
  .mobile-nav-link:focus,
  .mobile-nav-link:focus-visible {
    outline: none;
  }
  .mobile-nav-panel {
    padding: 2px 8px 10px 14px;
    margin: 0 8px 10px 18px;
    border-left: 2px solid color-mix(in srgb, var(--accent) 28%, var(--accent-soft));
  }
  .mobile-nav-panel-title {
    margin: 0 0 8px;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--muted);
    letter-spacing: -0.01em;
  }
  .mobile-nav-sublinks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .mobile-nav-sublinks li + li {
    border-top: 1px solid color-mix(in srgb, var(--accent) 28%, var(--accent-soft));
  }
  .mobile-nav-sublink {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: var(--ink-2);
    cursor: pointer;
    transition: background 140ms ease, color 140ms ease;
  }
  .mobile-nav-sublink:hover {
    background: color-mix(in srgb, var(--ink) 6%, transparent);
  }
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent), #4DD2FF 35%));
  position: relative; flex: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 4px 14px var(--accent-glow);
}
.brand-mark::before, .brand-mark::after {
  content: ''; position: absolute; background: rgba(255,255,255,.96); border-radius: 1px;
}
.brand-mark::before { top: 7px; left: 50%; transform: translateX(-50%); width: 2.2px; height: 14px; }
.brand-mark::after { top: 50%; left: 7px; transform: translateY(-50%); width: 14px; height: 2.2px; }
.brand small {
  color: var(--muted); font-family: var(--font-body); font-weight: 500;
  font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  padding-left: 10px;
}

/* old nav rules above are now in the consolidated header block; remove fallback */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; letter-spacing: -0.005em;
  cursor: pointer; border: 0;
  transition: transform 120ms ease, background 150ms ease, color 150ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 92%, #000); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.btn-icon {
  width: 36px; height: 36px; padding: 0; justify-content: center;
  border-radius: 10px; background: transparent;
  border: none;
  color: var(--ink);
}
.btn-icon:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }

/* mega-overlay top offset matches header height */
.mega-overlay {
  position: fixed; left: 0; right: 0;
  top: 72px;
  background: var(--surface);
  box-shadow: 0 30px 60px -10px rgba(11,15,25,.18);
  z-index: 40;
  transform: translateY(-6px);
  opacity: 0; pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}
.mega-overlay.open {
  opacity: 1; transform: none; pointer-events: auto;
}
.mega-inner {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 56px; padding: 36px 0 44px;
}
.mega-left h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 13px; color: var(--muted); margin: 0 0 14px;
  text-transform: uppercase; letter-spacing: 0.14em;
}
.mega-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px;
  list-style: none; padding: 0; margin: 0;
}
.mega-links li {
  padding: 8px 10px 8px 12px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: background 140ms ease, color 140ms ease;
}
.mega-links li:hover { background: var(--accent-soft); color: var(--accent); }
.mega-links li .arrow { opacity: 0; transform: translateX(-4px); transition: all 140ms; font-size: 13px; }
.mega-links li:hover .arrow { opacity: 1; transform: none; }

.mega-feature {
  background: linear-gradient(160deg, var(--bg-2), var(--surface));
  border: none;
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 280px;
  position: relative; overflow: hidden;
}
.mega-feature .mf-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
}
.mega-feature .mf-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: 26px; line-height: 1.1; margin: 10px 0 8px;
  letter-spacing: -0.025em;
}
.mega-feature .mf-desc { color: var(--muted); font-size: 13.5px; max-width: 36ch; }
.mega-feature .mf-art {
  position: absolute; right: -20px; bottom: -10px;
  width: 220px; height: 180px; opacity: .92;
}
.mega-feature .mf-art--photo {
  right: 0;
  bottom: 0;
  width: min(52%, 252px);
  height: min(72%, 200px);
  opacity: 1;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) 0;
}
.mega-feature .mf-art-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 100% 100%;
  transform: scale(1.05);
  transform-origin: 100% 100%;
  filter: none;
}
[data-theme="dark"] .mega-feature .mf-art-img {
  filter: brightness(1.04) saturate(1.04);
}

/* ─────────── hero ─────────── */
.hero {
  position: relative;
  padding: 56px 0 80px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 64px; align-items: center;
}
.hero-grid > div {
  min-width: 0;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}
.hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 18px 0 22px;
  color: var(--ink);
}
.page-hero h1,
.detail-hero h1 {
  color: var(--ink);
}
.hero h1 .accent,
.page-hero h1 .accent,
.detail-hero h1 .accent {
  color: var(--accent);
}

/* Keep short accent phrases on one line (long ones should wrap) */
@media (min-width: 721px) {
  .page-hero h1 .accent--nowrap,
  .detail-hero h1 .accent--nowrap {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }
}
.hero h1 .h1-primary,
.page-hero h1 .h1-primary,
.detail-hero h1 .h1-primary {
  color: var(--ink);
}
.hero h1 .muted { color: var(--muted-2); }
.hero-lede {
  font-size: 18px; color: var(--muted);
  max-width: min(46ch, 100%); margin: 0 0 32px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: normal;
}
.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: stretch;
  max-width: 100%;
}
.hero-cta-submit {
  flex-shrink: 0;
  height: 40px;
  padding: 0 18px;
}
.hero-cta-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.hero-cta-submit:disabled:active {
  transform: none;
}
.hero-cta-field {
  flex: 1 1 180px;
  min-width: 0;
  max-width: 260px;
}
.hero-cta-field--combined {
  flex: 1 1 auto;
  max-width: none;
}
.hero-cta-field input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: -0.005em;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.hero-cta-field input::placeholder {
  color: var(--muted);
  font-weight: 600;
}
.hero-cta-field input:hover {
  background: color-mix(in srgb, var(--ink) 4%, var(--surface));
}
.hero-cta-field input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 0 0 3px var(--accent-soft);
}
@media (max-width: 1024px) {
  .hero-cta {
    flex-wrap: wrap;
    width: 100% !important;
    max-width: 100%;
  }
  .hero-cta-field--combined {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 40px;
  padding-top: 28px;
}
.hero-trust > div {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
@media (max-width: 720px) {
  .hero-trust {
    flex-wrap: wrap;
    gap: 20px 24px;
  }
}
.hero-trust .stat-num {
  font-family: var(--font-display); font-weight: 500;
  font-size: 28px; letter-spacing: -0.03em; color: var(--ink);
}
.hero-trust .stat-lbl {
  font-size: 12.5px; color: var(--muted); margin-top: 2px;
  width: 100%;
}

/* forecast card */
.forecast-card {
  background: var(--surface);
  border: none;
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.forecast-card::before {
  content: ''; position: absolute; inset: -1px;
  background: radial-gradient(120% 60% at 100% 0%, var(--accent-soft) 0%, transparent 60%);
  z-index: -1;
}
.forecast-card--pulse {
  box-shadow: var(--shadow-md), 0 0 0 3px var(--accent-soft);
  transition: box-shadow 400ms ease;
}
.fc-chart-skeleton {
  width: 100%;
  min-height: 200px;
  border-radius: var(--radius);
  background: linear-gradient(
    110deg,
    var(--bg-2) 0%,
    color-mix(in srgb, var(--surface) 88%, var(--bg-2)) 45%,
    var(--bg-2) 90%
  );
  background-size: 200% 100%;
  animation: fc-chart-shimmer 1.2s ease-in-out infinite;
}
@keyframes fc-chart-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.fc-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 12px;
}
.fc-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: 15px; letter-spacing: -0.01em;
}
.fc-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.fc-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  background: color-mix(in srgb, var(--good) 14%, transparent);
  color: var(--good);
}
.fc-pill .dot { width: 6px; height: 6px; background: var(--good); border-radius: 50%; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.7); }
}

.fc-meta {
  display: flex; gap: 16px; padding: 0 4px 14px;
}
.fc-meta .m { display: flex; flex-direction: column; }
.fc-meta .m-lbl { font-size: 10.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.fc-meta .m-val { font-family: var(--font-mono); font-weight: 600; font-size: 18px; margin-top: 2px; }
.fc-meta .m-val.up { color: var(--good); }
.fc-meta .m-val.down { color: var(--danger); }

.fc-canvas-wrap {
  position: relative; aspect-ratio: 16 / 9; min-height: 240px;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 60%, transparent), transparent);
}
.fc-canvas-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.fc-legend {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 14px;
  font-size: 11.5px; color: var(--muted);
}
.fc-legend .li { display: inline-flex; align-items: center; gap: 6px; }
.fc-legend .sw {
  width: 14px; height: 4px; border-radius: 2px; background: var(--accent);
}
.fc-legend .sw.dashed {
  background: repeating-linear-gradient(90deg, var(--accent) 0 4px, transparent 4px 8px);
}
.fc-legend .sw.band {
  background: var(--accent-soft);
  height: 10px; width: 14px; border-radius: 3px;
}

/* ─────────── home tiles ─────────── */
.section { padding: 80px 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; margin-bottom: 36px;
  min-width: 0;
}
.section-head > div {
  min-width: 0;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 10px 0 0;
  max-width: 18ch;
  overflow-wrap: anywhere;
}
.section-head h2 .section-h2-link {
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  color: inherit;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: block;
  max-width: inherit;
}
.section-head h2 .section-h2-link:hover {
  color: var(--accent);
}
.section-head .right {
  color: var(--muted);
  flex: 1 1 36ch;
  min-width: 0;
  max-width: 36ch;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}
@media (max-width: 1200px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .section-head h2 {
    max-width: 100%;
  }
  .section-head .right {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
  .section-head--title-sync .right {
    margin-top: 0;
  }
  .section--know-now .section-head--insights {
    grid-template-columns: 1fr;
    row-gap: 16px;
    align-items: start;
  }
  .section--know-now .section-head--insights h2,
  .section--know-now .section-head--insights .right {
    grid-column: 1;
    align-self: start;
  }
}
/* Правый текст на одной линии с h2 (не с нижним краем колонки) */
.section-head--title-sync {
  align-items: flex-start;
}
.section-head--title-sync .right {
  margin-top: 26px;
  align-self: start;
}
.section--know-now .section-head--insights {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 32px;
  row-gap: 10px;
  align-items: center;
  margin-bottom: 44px;
}
.section--know-now .section-head--insights .eyebrow {
  grid-column: 1 / -1;
}
.section--know-now .section-head--insights h2 {
  grid-column: 1;
  margin-top: 0;
  align-self: center;
}
.section--know-now .section-head--insights .right {
  grid-column: 2;
  margin-top: 0;
  align-self: center;
}
.section--know-now .cards-grid--2x2 {
  margin-top: 20px;
  align-items: stretch;
}
.section--know-now .cards-grid--2x2 .card {
  min-height: auto;
  height: auto;
  align-self: stretch;
  padding: 16px 18px 18px;
}
.section--know-now .cards-grid--2x2 .card-num {
  margin-bottom: 4px;
}
.section--know-now .cards-grid--2x2 .card h3 {
  font-size: clamp(16px, 2vw, 18px);
  margin: 0 0 8px;
  line-height: 1.25;
  flex: 0 0 auto;
}
.section--know-now .cards-grid--2x2 .card p {
  font-size: 13px;
  line-height: 1.45;
  flex: 1 1 auto;
  margin: 0;
}
@media (max-width: 720px) {
  .section--know-now .cards-grid--2x2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .section--know-now .cards-grid--2x2 .card {
    padding: 12px 14px 14px;
  }
  .section--know-now .cards-grid--2x2 .card h3 {
    font-size: 15px;
    margin-bottom: 6px;
  }
  .section--know-now .cards-grid--2x2 .card p {
    font-size: 12px;
    line-height: 1.4;
  }
}
@media (max-width: 400px) {
  .section--know-now .cards-grid--2x2 {
    grid-template-columns: 1fr;
  }
}

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.tile {
  grid-column: span 4;
  background: var(--surface);
  border: none;
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform 220ms cubic-bezier(.2,.7,.3,1), box-shadow 220ms ease;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: start;
}
.tile.big { grid-column: span 8; }
.tile.wide { grid-column: span 6; }
.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.tile .tile-art {
  width: 64px; height: 64px;
  margin: 0;
  border-radius: 14px;
  border: none;
  box-shadow: none;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex: none;
}
.tile .tile-art svg { width: 100%; height: 100%; }
.tile .tile-art .home-tile-art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.tile .tile-art .home-tile-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  mix-blend-mode: normal;
  filter: saturate(1.08) contrast(1.02);
}
[data-theme="dark"] .tile .tile-art .home-tile-art img {
  mix-blend-mode: normal;
  filter: saturate(1.1) brightness(1.04) contrast(0.98);
}
.tile.big .tile-art,
.tile.wide .tile-art { width: 64px; height: 64px; }
.tile-cap { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile-cap .num {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--muted);
}
.tile-cap h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 18px; line-height: 1.15; letter-spacing: -0.018em;
  margin: 2px 0 0;
}
.tile.big .tile-cap h3 { font-size: 20px; }
.tile-cap p { color: var(--muted); font-size: 13px; margin: 6px 0 0; line-height: 1.45; }
.tile-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--accent);
  margin-top: 10px;
}
.tile:hover .tile-cta .arrow { transform: translateX(4px); }
.tile-cta .arrow { transition: transform 200ms; }

/* CTA между плитками и feature-row — по центру, равные отступы сверху/снизу */
.section--tiles {
  padding-bottom: 0;
}
.section--feature-after-cta {
  padding-top: 0;
}
.home-tiles-cta {
  padding: 40px 0;
  margin: 0;
}
.home-tiles-cta .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 960px) {
  .tile, .tile.big, .tile.wide { grid-column: span 12; }
}

/* ─────────── feature row ─────────── */
.feature-row {
  position: relative;
  background: var(--surface);
  border: none;
  border-radius: var(--radius-xl);
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  min-height: 360px;
}
.feature-row > div:first-child {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 48px 32px 48px 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.feature-row-art {
  position: relative;
  align-self: stretch;
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}
.feature-row-art svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}
.feature-row-art--crm {
  min-height: 340px;
}
.feature-crm-art-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: color-mix(in srgb, var(--surface) 82%, var(--accent-soft));
  box-shadow: none;
  border-radius: 0;
}
.feature-crm-art-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      100deg,
      var(--surface) 0%,
      color-mix(in srgb, var(--surface) 92%, transparent) 20%,
      color-mix(in srgb, var(--surface) 38%, transparent) 36%,
      transparent 52%
    ),
    linear-gradient(180deg, transparent 78%, color-mix(in srgb, var(--surface) 28%, transparent) 100%);
}
.feature-crm-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  display: block;
  border-radius: 0;
  object-fit: cover;
  object-position: 62% center;
}
.feature-crm-art--theme-dark {
  display: none;
}
[data-theme="dark"] .feature-crm-art--theme-light {
  display: none;
}
[data-theme="dark"] .feature-crm-art--theme-dark {
  display: block;
}
[data-theme="dark"] .feature-crm-art-wrap {
  background: #06060c;
}
[data-theme="dark"] .feature-crm-art--theme-dark {
  inset: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  transform: none;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
}
/* Узкая колонка / стек — иллюстрация крупнее, без «рамки» PNG */
@media (max-width: 1100px) {
  [data-theme="dark"] .feature-crm-art--theme-dark {
    object-position: 54% 42%;
  }
}
@media (max-width: 960px) {
  .feature-row {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .feature-row > div:first-child {
    padding: 28px 28px 20px;
  }
  .feature-row-art--crm {
    min-height: clamp(300px, 52vw, 400px);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  }
  .feature-crm-art-wrap::after {
    background: linear-gradient(
      180deg,
      var(--surface) 0%,
      color-mix(in srgb, var(--surface) 70%, transparent) 14%,
      transparent 38%
    );
  }
  .feature-crm-art--theme-light {
    object-position: center 42%;
  }
  [data-theme="dark"] .feature-crm-art-wrap::after {
    background: linear-gradient(
      180deg,
      var(--surface) 0%,
      color-mix(in srgb, var(--surface) 55%, transparent) 10%,
      transparent 22%
    );
  }
  [data-theme="dark"] .feature-crm-art--theme-dark {
    inset: auto;
    right: auto;
    bottom: auto;
    left: 50%;
    top: 50%;
    width: 118%;
    height: 118%;
    max-width: none;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center 34%;
  }
}
@media (max-width: 480px) {
  .feature-row-art--crm {
    min-height: clamp(280px, 78vw, 360px);
  }
  [data-theme="dark"] .feature-crm-art--theme-dark {
    width: 128%;
    height: 128%;
    object-position: center 30%;
  }
}
.feature-row h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 12px 0 14px;
}
.feature-row p {
  color: var(--muted);
  font-size: 16px;
  max-width: min(42ch, 100%);
  overflow-wrap: anywhere;
  word-break: normal;
}

/* ─────────── team contacts block ─────────── */
.team-contacts {
  position: relative;
  margin: 64px 0;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  min-height: 320px;
}
.team-contacts-copy {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.team-contacts-copy h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.025em;
  margin: 12px 0 24px;
  line-height: 1.05;
}
.team-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.team-contacts-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.team-contacts-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 600;
}
.team-contacts-label {
  color: var(--muted);
  font-size: 12px;
}
.team-contacts-value {
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.team-contacts-value a {
  color: inherit;
  text-decoration: none;
}
.team-contacts-value a:hover {
  color: var(--accent);
}
.team-contacts-value--address {
  line-height: 1.45;
}
.team-contacts-art {
  position: relative;
  align-self: stretch;
  min-height: 280px;
  overflow: hidden;
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}
.team-contacts-art-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: color-mix(in srgb, var(--surface) 82%, var(--accent-soft));
}
.team-contacts-art-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      100deg,
      var(--surface) 0%,
      color-mix(in srgb, var(--surface) 92%, transparent) 20%,
      color-mix(in srgb, var(--surface) 38%, transparent) 36%,
      transparent 52%
    ),
    linear-gradient(180deg, transparent 78%, color-mix(in srgb, var(--surface) 28%, transparent) 100%);
}
.team-contacts-art-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 58% center;
}
.team-contacts-art-img--theme-dark {
  display: none;
}
[data-theme="dark"] .team-contacts-art-img--theme-light {
  display: none;
}
[data-theme="dark"] .team-contacts-art-img--theme-dark {
  display: block;
}
[data-theme="dark"] .team-contacts-art-wrap {
  background: var(--surface);
}
[data-theme="dark"] .team-contacts-art-img--theme-dark {
  object-fit: cover;
  object-position: 58% center;
  transform: scale(1.06);
  transform-origin: center center;
  opacity: 1;
}
@media (min-width: 961px) and (max-width: 1100px) {
  [data-theme="dark"] .team-contacts-art-wrap {
    background: #06060c;
  }
  [data-theme="dark"] .team-contacts-art-img--theme-dark {
    object-fit: cover;
    object-position: 50% 42%;
    transform: scale(1.07);
  }
}
@media (max-width: 960px) {
  .team-contacts {
    grid-template-columns: 1fr;
    min-height: 0;
    margin: 48px 0;
  }
  .team-contacts-art {
    order: -1;
    min-height: 0;
    height: auto;
    width: 100%;
    aspect-ratio: 1024 / 851;
    min-height: clamp(280px, 62vw, 400px);
    max-height: none;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  .team-contacts-art-wrap {
    background: var(--surface);
  }
  .team-contacts-art-wrap::after {
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--surface) 50%, transparent) 0%,
      transparent 20%
    );
  }
  .team-contacts-art-img--theme-light,
  .team-contacts-art-img--theme-dark {
    inset: 0;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center center;
    transform: none;
    transform-origin: center center;
  }
  [data-theme="dark"] .team-contacts-art-wrap {
    background: var(--surface);
  }
  .team-contacts-copy {
    padding: 24px 22px 32px;
  }
  .team-contacts-copy h2 {
    font-size: clamp(24px, 6.2vw, 34px);
    margin: 10px 0 20px;
  }
  .team-contacts-item {
    align-items: flex-start;
    gap: 12px;
  }
  .team-contacts-value {
    font-size: 15px;
    word-break: break-word;
  }
  .team-contacts-list {
    gap: 18px;
  }
}
@media (max-width: 480px) {
  .team-contacts-art {
    aspect-ratio: 1024 / 851;
    min-height: clamp(260px, 78vw, 360px);
  }
  .team-contacts-copy {
    padding: 20px 18px 28px;
  }
}

/* ─────────── inner page ─────────── */
.page-hero {
  padding: 72px 0 56px;
}
.page-hero .crumbs {
  font-size: 12.5px; color: var(--muted);
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 14px;
}
.page-hero .crumbs span.sep { color: var(--muted-2); }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 18ch;
}
.page-hero p.lede {
  margin: 24px 0 0;
  font-size: 18px;
  color: var(--muted);
  max-width: none;
  line-height: 1.55;
}
.page-hero .team-lede-stack {
  width: 100%;
  max-width: none;
}
.page-hero .team-lede-stack p {
  margin: 16px 0 0;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.55;
}
.page-hero .team-lede-stack p:first-child {
  margin-top: 24px;
}
.page-hero .team-lede-stack strong {
  color: var(--ink);
  font-weight: 700;
}
.page-hero .team-lede-stack strong.team-lede-accent {
  color: var(--accent);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin: 48px 0;
}
/* Главная: 4 карточки 2×2, одинаковая высота в ряду */
.cards-grid--2x2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cards-grid--2x2 .card {
  grid-column: auto;
  min-height: auto;
  height: auto;
  align-self: stretch;
}
@media (max-width: 720px) {
  .cards-grid--2x2 {
    grid-template-columns: 1fr;
  }
}
.cards-grid--section .card {
  min-width: 0;
}
@media (max-width: 1400px) {
  .cards-grid--section .card,
  .cards-grid--section .card.wide,
  .cards-grid--section .card.huge {
    grid-column: 1 / -1;
    min-height: 0;
  }
}
.card {
  grid-column: span 4;
  min-width: 0;
  background: var(--surface);
  border: none;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(.2,.7,.3,1), box-shadow 220ms;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card--draft {
  border: 1.5px dashed color-mix(in srgb, var(--muted-2) 50%, transparent);
  background: color-mix(in srgb, var(--surface) 90%, var(--bg-2));
}
.card--draft:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.card--draft h3,
.card--draft p {
  color: var(--muted);
}
.card--draft .read {
  color: var(--muted-2);
  font-weight: 500;
}
.card.wide { grid-column: span 4; }
.card.huge { grid-column: span 4; }

/* Split card: image left, description right */
.card.split {
  grid-column: span 6;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 260px;
}
.card.split .split-art {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, var(--bg-2), var(--accent-soft));
  display: flex; align-items: center; justify-content: center;
}
.card.split .split-art svg { width: 75%; height: 75%; }
.card.split .split-body {
  padding: 28px;
  display: flex; flex-direction: column; gap: 8px;
}
.card.split .split-body h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 22px; line-height: 1.15; letter-spacing: -0.02em;
  margin: 0;
}
.card.split .split-body p {
  margin: 0; color: var(--muted);
  font-size: 14.5px; line-height: 1.55;
}
.card.split .split-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); letter-spacing: .06em;
}
@media (max-width: 800px) {
  .card.split { grid-template-columns: 1fr; }
  .card.split .split-art { min-height: 180px; }
}
.card-art {
  height: 140px;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(140deg, var(--bg-2), var(--accent-soft));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  position: relative;
}
.card.huge .card-art { height: 140px; }
.card-art svg { width: 80%; height: 80%; max-height: 100%; }
.card-art--photo {
  background: var(--bg-2);
  padding: 0;
  display: block;
  position: relative;
  line-height: 0;
}
.card-art--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.card-art--photo-fit-contain img {
  object-fit: cover;
}
/* горизонтальные превью (баннер / туба) в card-art */
.card-art--photo-wide img {
  object-fit: cover;
  object-position: center 42%;
}
.card-art--photo.card-art--photo-contain {
  background: linear-gradient(140deg, var(--bg-2), var(--accent-soft));
  overflow: hidden;
}
.card-art--photo-contain img {
  object-fit: cover;
  object-position: center center;
  padding: 0;
  background: transparent;
  transform: none;
  filter: none;
}
.card-num {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  margin-bottom: 6px;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(17px, 2.1vw, 20px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 8px;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}
.card p {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0;
  line-height: 1.5;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.directory-spec-table-wrap {
  margin-top: 12px;
  overflow: hidden;
}
.directory-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  table-layout: fixed;
}
.directory-spec-table th,
.directory-spec-table td {
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.directory-spec-table th {
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-2);
}
.directory-spec-table th:first-child,
.directory-spec-table td:first-child {
  width: 34%;
}
.directory-spec-table td strong {
  color: var(--ink-2);
  font-weight: 600;
}
.directory-spec-table tbody tr:last-child td {
  border-bottom: none;
}
.directory-benefit-card {
  scroll-margin-top: 96px;
  grid-column: span 6;
  cursor: pointer;
  min-height: 280px;
}
.directory-benefit-card .card-art {
  height: 220px;
}
.directory-benefit-card .directory-benefit-art.card-art--photo-contain {
  background: var(--directory-benefit-art-bg);
}
[data-theme="light"] .directory-benefit-card .directory-benefit-art.card-art--photo-contain {
  background: #fff;
}
[data-theme="dark"] .directory-benefit-card .directory-benefit-art.card-art--photo-contain {
  background: var(--surface-2);
}
.directory-benefit-card#directory-benefit-0 .directory-benefit-art.card-art--photo-contain {
  background: transparent;
}
[data-theme="dark"] .directory-benefit-card#directory-benefit-0 .directory-benefit-art.card-art--photo-contain {
  background: transparent;
}
.directory-benefit-card#directory-benefit-0 .directory-benefit-art.card-art--photo-contain img {
  object-fit: contain;
  object-position: center center;
}
.directory-benefit-card#directory-benefit-1 .directory-benefit-art.card-art--photo-contain {
  background: transparent;
}
[data-theme="dark"] .directory-benefit-card#directory-benefit-1 .directory-benefit-art.card-art--photo-contain {
  background: transparent;
}
.directory-benefit-card#directory-benefit-1 .directory-benefit-art.card-art--photo-contain img {
  object-fit: contain;
  object-position: center center;
}
.directory-benefit-card#directory-benefit-3 .directory-benefit-art.card-art--photo-contain {
  background: transparent;
}
[data-theme="dark"] .directory-benefit-card#directory-benefit-3 .directory-benefit-art.card-art--photo-contain {
  background: transparent;
}
.directory-benefit-card#directory-benefit-3 .directory-benefit-art.card-art--photo-contain img {
  object-fit: contain;
  object-position: center center;
  background: transparent;
  filter: none;
}
.directory-benefit-card#directory-benefit-2 .directory-benefit-art.card-art--photo-contain {
  background: transparent;
}
[data-theme="dark"] .directory-benefit-card#directory-benefit-2 .directory-benefit-art.card-art--photo-contain {
  background: transparent;
}
.directory-benefit-card#directory-benefit-2 .directory-benefit-art.card-art--photo-contain img {
  object-fit: contain;
  object-position: center center;
}
.directory-benefit-card:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}
.directory-benefit-card h3 {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}
.directory-benefit-card p {
  overflow-wrap: anywhere;
  word-break: normal;
}
.cards-grid--directory-benefits .directory-benefit-card,
.cards-grid--directory-stats .directory-stat-card {
  min-width: 0;
}
.cards-grid--directory-stats .directory-stat-card {
  grid-column: span 6;
  min-height: auto;
  padding-bottom: 18px;
  cursor: default;
}
.cards-grid--directory-stats .directory-stat-card:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 1200px) {
  .cards-grid--directory-benefits .directory-benefit-card,
  .cards-grid--directory-stats .directory-stat-card {
    grid-column: 1 / -1;
    min-height: 0;
  }
  .directory-benefit-card .card-art {
    height: 200px;
  }
}
.directory-benefit-cta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.directory-benefit-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.directory-benefit-cta-row .btn {
  flex: 1 1 240px;
  max-width: 360px;
  justify-content: center;
}
.directory-drug-samples {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.directory-drug-sample {
  border: none;
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface-2);
}
.directory-drug-sample-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.directory-drug-sample-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin-top: 6px;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.directory-drug-sample-mnn {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
  font-style: italic;
}
.directory-drug-sample-link {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--accent);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.directory-drug-sample-link--inline {
  display: inline;
  margin-top: 0;
  font-size: inherit;
  line-height: inherit;
  overflow-wrap: normal;
}
.directory-drug-sample-link:hover {
  text-decoration: underline;
}
.directory-drug-sample-desc {
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 10px;
  line-height: 1.5;
}
.directory-drug-sample-desc strong {
  font-weight: 700;
  color: var(--ink);
}
.directory-drug-sample-desc-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.directory-drug-sample-desc-link:hover {
  text-decoration: underline;
}
.directory-drug-sample-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
}
.card .read {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  margin-top: 16px;
}

@media (max-width: 1100px) {
  .cards-grid:not(.cards-grid--2x2):not(.cards-grid--directory-benefits):not(.cards-grid--directory-stats):not(.cards-grid--section):not(.cards-grid--portfolio) .card:not(.split) {
    grid-column: span 6;
  }
  .cards-grid:not(.cards-grid--2x2):not(.cards-grid--directory-benefits):not(.cards-grid--directory-stats):not(.cards-grid--section):not(.cards-grid--portfolio) .card.split {
    grid-column: span 12;
  }

  /* Портфолио: карточки всегда в одну колонку, чтобы порядок “сверху вниз” читался на телефонах/планшетах */
  .cards-grid--portfolio .card:not(.split),
  .cards-grid--portfolio .card.split {
    grid-column: 1 / -1;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
  }
  .cards-grid--portfolio .card-art {
    min-width: 0;
    max-width: 100%;
  }
}
@media (max-width: 960px) {
  .card, .card.wide, .card.huge { grid-column: span 12; }
  .cards-grid--2x2 .card { grid-column: auto; }
}
@media (max-width: 600px) {
  .card {
    padding: 20px;
    min-height: 0;
  }
  .card h3 {
    font-size: 18px;
  }
}

/* ─────────── footer ─────────── */
.footer {
  background: var(--bg-2);
  margin-top: 80px;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.68fr) minmax(0, 0.88fr) minmax(0, 1.28fr);
  grid-template-areas: 'brand sections contacts map';
  gap: 18px 20px;
  align-items: stretch;
  margin-bottom: 48px;
}
.footer-col--brand { grid-area: brand; }
.footer-col--sections { grid-area: sections; }
.footer-col--contacts { grid-area: contacts; }
.footer-map {
  grid-area: map;
  position: relative;
  height: 260px;
  min-height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.04));
  align-self: stretch;
}
.footer-map__slot {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
}
.footer-map iframe,
.footer-map-skeleton {
  display: block;
  width: 100%;
  height: 260px;
  min-height: 260px;
  border: 0;
}
.footer-map-skeleton {
  background: linear-gradient(180deg, var(--surface, #f3f4f6) 0%, var(--bg) 100%);
}
[data-theme="dark"] .footer-map-skeleton {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, var(--bg) 100%);
}
.footer-map-link {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(6px);
  transition: color 180ms ease, transform 180ms ease;
}
.footer-map-link:hover {
  color: var(--accent);
  transform: translateY(-1px);
}
[data-theme="dark"] .footer-map-link {
  background: rgba(20, 20, 24, 0.88);
  color: var(--ink-2);
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      'brand sections'
      'contacts map';
    gap: 16px 14px;
    align-items: stretch;
  }
  .footer-map {
    height: 220px;
    min-height: 220px;
  }
  .footer-map iframe,
  .footer-map-skeleton {
    height: 220px;
    min-height: 220px;
  }
  .footer-map-link {
    right: 8px;
    bottom: 8px;
    padding: 5px 8px;
    font-size: 10px;
  }
}
@media (max-width: 1024px) and (min-width: 901px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr) minmax(0, 0.92fr) minmax(0, 1.15fr);
    gap: 16px 18px;
  }
}
@media (max-width: 420px) {
  .footer-grid {
    gap: 14px 12px;
  }
  .footer-map {
    height: 200px;
    min-height: 200px;
  }
  .footer-map iframe,
  .footer-map-skeleton {
    height: 200px;
    min-height: 200px;
  }
  .footer-col h4 {
    margin-bottom: 10px;
  }
  .footer-col ul {
    gap: 6px;
  }
  .footer-col ul li {
    font-size: 13px;
  }
}
.footer-col {
  min-width: 0;
}
.footer-col h4 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 13px; color: var(--muted); margin: 0 0 14px;
  text-transform: uppercase; letter-spacing: 0.14em;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.footer-col ul li {
  color: var(--ink-2);
  font-size: 14px;
  cursor: pointer;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.footer-col ul li a {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.footer-col ul li:hover { color: var(--accent); }
.footer-tag {
  font-family: var(--font-display); font-weight: 500;
  font-size: 22px; letter-spacing: -0.02em;
  margin: 16px 0 10px;
  max-width: 22ch;
  line-height: 1.15;
}
.footer-tag .accent {
  color: var(--accent);
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  background: none;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 180ms cubic-bezier(.2,.7,.3,1), opacity 180ms ease;
  box-shadow: none;
}
.footer-social-link:hover {
  transform: translateY(-2px);
  box-shadow: none;
  opacity: 0.88;
}
.footer-social-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.footer-social-link svg,
.footer-social-link img {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.footer-meta {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding-top: 24px;
  font-size: 12.5px; color: var(--muted);
  min-width: 0;
}
.footer-meta > div {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'brand'
      'sections'
      'contacts'
      'map';
    gap: 20px 0;
  }
  .footer-map {
    height: 220px;
    min-height: 220px;
  }
  .footer-map iframe,
  .footer-map-skeleton {
    height: 220px;
    min-height: 220px;
  }
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer .brand-logo {
    width: min(140px, 72vw);
    max-width: 100%;
    height: auto;
  }
}

/* ─────────── team ─────────── */
.team-members-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 48px 0 24px;
  color: var(--ink);
}
.team-members-section .team-grid {
  margin-top: 0;
}
.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 48px 0;
}
@media (max-width: 800px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.tm {
  background: var(--surface); border: none;
  border-radius: var(--radius-lg); padding: 18px;
  transition: transform 200ms, box-shadow 200ms;
}
.tm:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tm:has(.tm-portrait--photo):hover {
  transform: none;
  box-shadow: none;
}
.tm--draft {
  border: 1.5px dashed color-mix(in srgb, var(--muted-2) 50%, transparent);
  background: color-mix(in srgb, var(--surface) 92%, var(--bg-2));
}
.tm--draft:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.tm--draft .tm-name,
.tm--draft .tm-role {
  color: var(--muted);
}
.tm-portrait--empty {
  background: color-mix(in srgb, var(--bg-2) 88%, transparent);
  border: 1px dashed color-mix(in srgb, var(--muted-2) 42%, transparent);
}
.tm-portrait {
  aspect-ratio: 4/5; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-2), var(--accent-soft));
  margin-bottom: 14px;
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
}
.tm-portrait--robbie {
  background: linear-gradient(180deg, var(--bg-2), var(--accent-soft));
  align-items: center;
}
.tm-portrait--robbie .tm-portrait-img img {
  object-fit: cover;
  object-position: center center;
}
.tm-portrait--photo .tm-portrait-img img {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.tm-portrait-img {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
}
/* Плейсхолдер без фото: смена варианта при наведении */
.tm-portrait--dual .tm-portrait-img {
  transition: opacity 320ms cubic-bezier(.2,.7,.3,1), transform 600ms cubic-bezier(.2,.7,.3,1);
}
.tm-portrait--dual .tm-portrait-default { opacity: 1; transform: scale(1); }
.tm-portrait--dual .tm-portrait-hover   { opacity: 0; transform: scale(1.06); }
.tm-portrait--dual:hover .tm-portrait-default { opacity: 0; transform: scale(.96); }
.tm-portrait--dual:hover .tm-portrait-hover   { opacity: 1; transform: scale(1); }
.tm-portrait-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
}
.robbie-face-cycle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: none;
}
.robbie-face-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 750ms ease-in-out;
  pointer-events: none;
}
.robbie-face-layer--base {
  opacity: 1;
  z-index: 0;
}
.robbie-face-layer--overlay {
  z-index: 1;
}
.robbie-face-layer--overlay.is-visible {
  opacity: 1;
}
.tm-portrait-img .robbie-face-cycle .robbie-face-layer {
  object-fit: cover;
  object-position: center center;
}
.tm-name { font-family: var(--font-display); font-weight: 500; font-size: 16px; letter-spacing: -0.015em; }
.tm-role { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* ─────────── page transition ─────────── */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.page-route { animation: pageIn 380ms cubic-bezier(.2,.7,.3,1); }

/* logo placeholder */
.logo-placeholder {
  border: none;
  border-radius: 6px;
  padding: 3px 8px;
  font-family: var(--font-mono); font-size: 9px;
  color: var(--muted-2); letter-spacing: 0.08em;
  margin-left: 6px;
}

/* tag chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.01em;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* references / scroller */
.marquee {
  overflow: hidden;
  overflow-x: clip;
  padding: 22px 0;
  display: flex;
  gap: 56px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  font-family: var(--font-display); font-weight: 500;
  font-size: 20px; color: var(--muted-2);
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  contain: inline-size;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 56px;
  animation: scroll 300s linear infinite;
  will-change: transform;
}
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* tooltip pin on chart */
.fc-pin {
  position: absolute; pointer-events: none;
  background: var(--ink); color: var(--surface);
  border-radius: 8px; padding: 7px 10px;
  font-family: var(--font-mono); font-size: 11px;
  transform: translate(-50%, -120%);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  display: none;
}
.fc-pin.show { display: block; }

/* Сценарии прогноза переключатель */
.fc-scenarios {
  position: absolute; left: 12px; top: 12px;
  display: inline-flex; gap: 2px; padding: 3px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: none; border-radius: 10px;
  z-index: 2;
}
.fc-scenarios button {
  background: transparent; border: 0; cursor: pointer;
  padding: 5px 10px; border-radius: 7px;
  font-size: 11px; font-weight: 600;
  color: var(--muted); font-family: var(--font-body);
}
.fc-scenarios button.on { background: var(--accent); color: white; }

/* ─────────── 3D robot companion ─────────── */
.robot-img {
  position: fixed;
  left: 50%; top: 50%;
  width: 170px; height: 170px;
  pointer-events: none;
  z-index: 90;
  will-change: transform;
  filter: none;
  transition: opacity 0.35s ease;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1100px;
  perspective-origin: 50% 50%;
}
.robot-img.robot-img--boot {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.robot-img.robot-img--hide-over-copy {
  opacity: 0;
}
.robot-bubble-wrap {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 28;
  width: min(300px, 84vw);
  padding-top: 14px;
  pointer-events: auto;
  transform: translateX(-50%);
  animation: robot-bubble-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.robot-bubble {
  position: relative;
  max-height: min(42vh, 220px);
  overflow-y: auto;
  scroll-behavior: smooth;
  padding: 18px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 92%, var(--accent) 8%);
  border: 2px solid var(--accent);
  box-shadow:
    0 10px 28px rgba(18, 12, 42, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
[data-theme="dark"] .robot-bubble {
  border-color: var(--border-2);
}
.robot-bubble__close {
  position: absolute;
  top: 0;
  right: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.robot-bubble__close:hover {
  background: color-mix(in srgb, var(--ink) 6%, var(--surface));
}
.robot-bubble__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.robot-bubble__text {
  margin: 0;
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text);
  letter-spacing: -0.01em;
}
.robot-bubble__caret {
  display: inline-block;
  width: 2px;
  height: 0.88em;
  margin-left: 2px;
  vertical-align: -0.1em;
  border-radius: 1px;
  background: var(--accent);
  opacity: 0.85;
  animation: robot-bubble-caret 1.1s ease-in-out infinite;
}
@keyframes robot-bubble-caret {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}
.robot-img.robot-img--reduced-motion .robot-bubble__caret {
  display: none;
}
@keyframes robot-bubble-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}
.robot-img.robot-img--reduced-motion .robot-bubble-wrap {
  animation: none;
}
.robot-surprise {
  position: absolute;
  left: 50%;
  top: 2%;
  z-index: 25;
  pointer-events: none;
  animation: robot-surprise-pop 0.68s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.robot-surprise__text {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 4.2vw, 1.55rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent-2);
  text-shadow:
    0 0 14px rgba(138, 107, 255, 0.95),
    0 0 28px rgba(110, 75, 255, 0.55),
    0 2px 8px rgba(18, 12, 42, 0.35);
  filter: drop-shadow(0 0 6px rgba(110, 75, 255, 0.65));
}
@keyframes robot-surprise-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, 20%) scale(0.25) rotate(-8deg);
  }
  22% {
    opacity: 1;
    transform: translate(-50%, -88%) scale(1.14) rotate(4deg);
  }
  55% {
    opacity: 1;
    transform: translate(-50%, -108%) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -150%) scale(0.72) rotate(6deg);
  }
}
.robot-img.robot-img--reduced-motion .robot-surprise {
  display: none;
}
.robot-img-hit {
  position: absolute;
  inset: 0;
  z-index: 30;
  border-radius: 22%;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  background: transparent;
}
.robot-img--dragging .robot-img-hit {
  cursor: grabbing;
}
.robot-img--dragging .robot-img-float {
  animation-play-state: paused;
}
.robot-img.robot-img--busy .robot-img-hit {
  pointer-events: none;
  cursor: default;
}
.robot-img.robot-img--busy {
  transition: opacity 0.45s ease;
}
.robot-img-stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.robot-img-body {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  transform-style: flat;
  isolation: isolate;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.robot-img-float {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: flat;
  animation: robot-bob 4.2s ease-in-out infinite;
}
.robot-img-stack {
  position: absolute;
  inset: 0;
}
.robot-img-stack--pose {
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.robot-img[data-robot-pose="held"] .robot-img-stack--default,
.robot-img[data-robot-pose="angry"] .robot-img-stack--default {
  opacity: 0;
  visibility: hidden;
}
.robot-img[data-robot-pose="held"] .robot-img-stack--pose,
.robot-img[data-robot-pose="angry"] .robot-img-stack--pose {
  opacity: 1;
  visibility: visible;
}
.robot-img[data-robot-pose="blank"] .robot-img-stack--pose {
  opacity: 0;
  visibility: hidden;
}
.robot-img[data-robot-pose="blank"] .robot-img-stack--default {
  opacity: 1;
  visibility: visible;
}
.robot-img-pose {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
  backface-visibility: hidden;
}
.robot-img-layer {
  position: absolute;
  inset: 0;
  transform-style: flat;
  pointer-events: none;
  backface-visibility: hidden;
}
.robot-img-layer--base {
  z-index: 0;
}
.robot-img-layer--face {
  z-index: 1;
}
.robot-img-layer--glow {
  z-index: 6;
}
.robot-img-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
  backface-visibility: hidden;
}
.robot-img .robot-face-cycle {
  position: absolute;
  inset: 0;
}
.robot-face-cycle--lighten .robbie-face-layer {
  mix-blend-mode: lighten;
}
.robot-img--moving .robot-face-cycle--lighten .robbie-face-layer {
  mix-blend-mode: normal;
}
.robot-img--moving .robot-img-glow {
  mix-blend-mode: normal;
  opacity: 0.92;
  animation-play-state: paused;
}
.robot-img--moving .robot-img-float {
  animation-play-state: paused;
}
/* Robby_11 — неоновая обводка */
.robot-img-glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
  mix-blend-mode: screen;
  backface-visibility: hidden;
  animation: robot-glow-pulse 2.8s ease-in-out infinite;
}
.robot-img img,
.robot-img .robbie-face-cycle {
  width: 100%; height: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.robot-img .robbie-face-cycle,
.robot-img .robbie-face-cycle .robbie-face-layer {
  filter: none;
}
.robot-img .robbie-face-cycle .robbie-face-layer {
  object-fit: contain;
  object-position: center center;
}
@keyframes robot-bob {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -6px, 0); }
}
@keyframes robot-glow-pulse {
  0%, 100% { opacity: 0.9; filter: brightness(1) saturate(1); }
  50% { opacity: 1; filter: brightness(1.14) saturate(1.08); }
}
.robot-img.robot-img--reduced-motion .robot-img-float,
.robot-img.robot-img--reduced-motion .robot-img-glow {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .robot-img-float,
  .robot-img-glow {
    animation: none !important;
  }
  .robot-img-stage {
    transform: none !important;
  }
}
@media (max-width: 1024px) {
  .robot-img {
    width: 135px;
    height: 135px;
    opacity: 0.92;
    perspective: 760px;
  }
}
@media (max-width: 720px) {
  .robot-img { width: 118px; height: 118px; }
}

/* ─────────── detail / subpage ─────────── */
.detail-hero {
  padding: 88px 0 56px;
  position: relative;
  overflow: hidden;
}
.detail-hero .eyebrow--one-line {
  text-transform: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  max-width: none;
  font-size: clamp(9.5px, 2.15vw, 11.5px);
}
@media (max-width: 720px) {
  .detail-hero .eyebrow--one-line {
    white-space: normal;
    max-width: 100%;
    line-height: 1.4;
  }
  .detail-hero .lede,
  .page-hero p.lede {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .detail-hero h1,
  .page-hero h1 {
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
  }
}
.detail-hero--h1-wide h1 {
  max-width: min(44ch, 100%);
  line-height: 1.02;
}
.detail-hero::after {
  content: ''; position: absolute; right: -180px; top: -40px;
  width: 540px; height: 540px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 60%);
  z-index: -1;
}
.detail-hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 12px 0 0;
  max-width: 22ch;
}
.detail-hero .lede {
  margin: 24px 0 32px;
  font-size: 19px; color: var(--muted); max-width: 56ch;
  line-height: 1.5;
}
.detail-hero .tags {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px;
}

.detail-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 64px; align-items: start;
  padding: 80px 0 32px;
}
@media (max-width: 960px) { .detail-grid { grid-template-columns: 1fr; gap: 32px; } }

.detail-art {
  background: var(--surface);
  border: none;
  border-radius: var(--radius-xl);
  padding: 24px;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  position: sticky; top: 96px;
}
.detail-art--slides {
  padding: 0;
  align-items: stretch;
  overflow: hidden;
}
.detail-art--slides .detail-art-slider {
  position: relative;
}
.detail-art--slides .detail-art-slider-stage.proj-slider-stage {
  aspect-ratio: auto;
  flex: 1;
  min-height: 0;
  height: 100%;
  background: transparent;
  border-radius: var(--radius-xl);
}
.detail-art--slides .detail-art-slider-stage.proj-slider-stage--image {
  background: transparent;
}
.detail-art--slides .detail-art-slider-stage.proj-slider-stage--video {
  background: var(--bg-2);
  max-height: min(78vh, 720px);
}
.detail-art--slides .detail-art-slide-img,
[data-theme="dark"] .detail-art--slides .detail-art-slide-img {
  object-fit: contain;
  background: transparent;
}
.detail-art--slides .detail-art-slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  margin-top: 0;
  z-index: 2;
}
.detail-art-slider {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.detail-art-slider-stage {
  flex: 1;
  min-height: 0;
  border-radius: var(--radius-lg);
}
.detail-art-slide-img {
  object-fit: contain;
  background: var(--bg-2);
}
[data-theme="dark"] .detail-art-slide-img {
  background: var(--bg);
}
.detail-art-slider-dots .dot.on {
  background: var(--accent);
}
.detail-art-slide-zoom {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.detail-art-slide-zoom:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.detail-art-lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 24px;
}
.detail-art-lightbox-shell {
  width: max-content;
  max-width: 96vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.detail-art-lightbox {
  position: relative;
  width: max-content;
  max-width: 100%;
  max-height: calc(92vh - 58px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.detail-art-lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.detail-art-lightbox-nav,
.detail-art-lightbox-close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transition: background 180ms, color 180ms, transform 180ms;
}
.detail-art-lightbox-nav {
  font-size: 22px;
}
.detail-art-lightbox-close {
  font-size: 26px;
}
.detail-art-lightbox-nav:hover,
.detail-art-lightbox-close:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.04);
}
.detail-art-lightbox-nav:focus-visible,
.detail-art-lightbox-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.detail-art-lightbox-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--surface) 90%, transparent);
}
.detail-art-lightbox-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(92vh - 48px);
  object-fit: contain;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  box-shadow: var(--shadow-md);
  image-rendering: auto;
}
body.is-detail-slide-lightbox-open .robot-img {
  opacity: 0;
  visibility: hidden;
}
.detail-body h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.025em; line-height: 1.05;
  margin: 0 0 16px;
}
.detail-body p { color: var(--ink-2); font-size: 16px; line-height: 1.6; margin: 0 0 14px; }
.detail-body p + h2,
.detail-body ul + h2,
.detail-body ol + h2,
.detail-body div + h2 { margin-top: 40px; }

.detail-longform {
  margin-top: 8px;
}
.detail-longform h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.8vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 40px 0 14px;
  color: var(--ink);
}
.detail-longform h2:first-child {
  margin-top: 28px;
}
.detail-longform p {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.62;
  margin: 0 0 14px;
}
.detail-longform-ul {
  margin: 0 0 20px;
  padding-left: 1.15em;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}
.detail-longform-ul li {
  margin-bottom: 8px;
}
.detail-longform-ul li:last-child {
  margin-bottom: 0;
}
.detail-longform-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 20px;
}
.detail-longform-card {
  padding: 14px 16px;
  background: var(--bg-2);
  border-radius: var(--radius);
}
.detail-longform-card h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 6px;
  color: var(--ink);
}
.detail-longform-card p {
  font-size: 14px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.detail-longform-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 4px;
}
.detail-longform-faq-item {
  padding: 14px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.detail-longform-faq-item h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 8px;
  color: var(--ink);
}
.detail-longform-faq-item p {
  font-size: 14px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.feat-list {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.feat-list li {
  display: flex; gap: 14px;
  padding: 14px 16px;
  background: var(--bg-2);
  border-radius: var(--radius);
  align-items: flex-start;
  overflow: visible;
}
.feat-list li .ic {
  width: 28px; height: 28px; flex: none;
  border-radius: 8px; background: var(--accent);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
}
.feat-list li .ft {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: visible;
}
.feat-list li .ft b { font-weight: 600; font-size: 15px; }
.feat-list li .ft span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.feat-list li .ft .feat-sublist {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.35;
}
.feat-list li .ft .feat-sublist li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 3px;
  padding: 0;
  list-style: none;
}
.feat-list li .ft .feat-sublist li::before {
  content: '';
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  margin-top: 0.48em;
  border-radius: 50%;
  background: var(--accent);
}
.feat-list li .ft .feat-sublist li:last-child { margin-bottom: 0; }
.feat-list li .ft .feat-sublist-text {
  flex: 1;
  min-width: 0;
}
.feat-list li .ft .feat-sublist b { color: var(--ink); font-weight: 600; }

.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin: 48px 0;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface);
  border: none;
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  height: auto;
  overflow: visible;
}
.step .step-n {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); font-weight: 600;
  letter-spacing: 0.06em;
}
.step h4 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 16px; letter-spacing: -0.01em;
  margin: 8px 0;
}
.step p { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.5; overflow: visible; }

.steps--2col {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 560px) {
  .steps--2col { grid-template-columns: 1fr; }
}

.detail-regulatory {
  margin: 40px 0 12px;
  padding: 28px 24px;
  background: var(--surface);
  border-radius: var(--radius);
}
.detail-regulatory-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  color: var(--ink);
}
.detail-regulatory-intro {
  margin: 0 0 24px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  max-width: 72ch;
}
.detail-regulatory-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.detail-regulatory-list li b {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--ink);
}
.detail-regulatory-list li span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.deliver-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px;
  margin: 24px 0 0; padding: 0; list-style: none;
}
.deliver-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px;
  line-height: 1.45;
  padding: 8px 0;
}
.deliver-list li::before {
  content: '✓'; color: var(--accent); font-weight: 700;
}
.deliver-item-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.deliver-list li .deliver-item-kicker {
  display: block;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.deliver-list li .deliver-item-body {
  display: block;
  color: var(--ink-2);
  line-height: 1.5;
}
@media (max-width: 720px) {
  .deliver-list {
    grid-template-columns: 1fr;
    gap: 12px 0;
  }
}

.detail-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--surface);
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 24px 32px;
  align-items: center;
  margin: 56px 0;
}
.detail-cta--scroll-list {
  align-items: start;
}
.detail-cta--scroll-list .detail-cta-body {
  min-width: 0;
}
.detail-cta-topics {
  margin: 14px 0 0;
  padding: 4px 12px 4px 4px;
  max-height: min(220px, 38vh);
  overflow-y: auto;
  overflow-x: hidden;
  list-style: none;
  counter-reset: detail-cta-topic;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
  scrollbar-gutter: stable;
}
.detail-cta-topics li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 3.25em;
  counter-increment: detail-cta-topic;
}
.detail-cta-topics li::before {
  content: counter(detail-cta-topic) '.';
  position: absolute;
  left: 0;
  width: 3em;
  text-align: right;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.detail-cta-topics li:last-child {
  margin-bottom: 0;
}
.detail-cta--scroll-list .detail-cta-actions {
  align-self: center;
}
.detail-cta::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: radial-gradient(90% 80% at 0% 0%, var(--accent-soft) 0%, transparent 58%);
  z-index: -1;
  pointer-events: none;
}
.detail-cta h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.8vw, 32px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 8px;
  color: var(--ink);
}
.detail-cta p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  max-width: 42ch;
}
.detail-cta .detail-cta-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .detail-cta {
    grid-template-columns: 1fr;
    padding: 24px 22px;
  }
  .detail-cta .detail-cta-actions {
    justify-content: flex-start;
  }
  .detail-cta-topics {
    max-height: min(200px, 32vh);
  }
}

.related {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin: 48px 0;
}
@media (max-width: 800px) { .related { grid-template-columns: 1fr; } }
.rel-card {
  background: var(--surface);
  border: none;
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: transform 200ms, box-shadow 200ms;
  display: flex; align-items: center; gap: 16px;
}
.rel-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.rel-card .rel-art {
  width: 60px; height: 60px; flex: none;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--bg-2), var(--accent-soft));
  display: flex; align-items: center; justify-content: center;
}
.rel-card .rel-art svg { width: 100%; height: 100%; }
.rel-art--photo {
  padding: 0;
  overflow: hidden;
  background: var(--bg-2);
}
.rel-art--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.rel-art--photo-contain img {
  object-fit: contain;
  padding: 4px;
}
.rel-card .rel-art.rel-art--section-card {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--bg-2), var(--accent-soft));
  border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
  box-shadow: none;
}
.rel-card .rel-art.rel-art--section-card:not(.rel-art--photo) svg {
  width: 72%;
  height: 72%;
}
.rel-card .rel-art.rel-art--section-card.rel-art--photo img {
  object-fit: cover;
  object-position: var(--rel-art-position, center center);
  padding: 0;
  transform: scale(1.12);
  transform-origin: var(--rel-art-position, center center);
}
[data-theme="dark"] .rel-card .rel-art.rel-art--section-card {
  background: #0a0a0f;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 6%, transparent);
}
[data-theme="dark"] .rel-card .rel-art.rel-art--section-card:not(.rel-art--photo) {
  background: linear-gradient(140deg, var(--bg-2), var(--accent-soft));
  border-color: transparent;
  box-shadow: none;
}
.rel-card h4 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 15px; letter-spacing: -0.01em; margin: 0;
}
.rel-card-body { min-width: 0; flex: 1; }
.rel-card p { color: var(--muted); font-size: 12.5px; margin: 4px 0 0; line-height: 1.45; }
.rel-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.rel-card-chip {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 12px;
  padding: 0;
}

/* ─────────── portfolio ─────────── */
.pf-filter {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 36px;
  padding: 8px 10px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border: none;
  border-radius: 20px;
  width: 100%;
  max-width: 100%;
}
.pf-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 0; background: transparent;
  border-radius: 999px;
  font-family: inherit; font-size: 13px; font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background 150ms, color 150ms;
  white-space: nowrap;
}
.pf-chip:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); }
.pf-chip.on   { background: var(--ink); color: var(--surface); }
.pf-chip-count {
  font-family: var(--font-mono); font-size: 10.5px;
  padding: 1px 6px; border-radius: 6px;
  background: color-mix(in srgb, currentColor 20%, transparent);
  opacity: .8;
}
.pf-chip.on .pf-chip-count { background: rgba(255,255,255,.2); }

.pf-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 1100px) { .pf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .pf-grid { grid-template-columns: 1fr; } }

.pf-card {
  background: var(--surface);
  border: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform 240ms cubic-bezier(.2,.7,.3,1), box-shadow 240ms;
}
.pf-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.pf-card-large {
  display: grid; grid-template-columns: 1fr;
  align-items: stretch;
}
@media (max-width: 800px) { .pf-card-large { grid-template-columns: 1fr; grid-column: span 1; } }

.pf-art {
  position: relative;
  height: 140px;
  overflow: hidden;
}
.pf-card-large .pf-art {
  height: 140px;
}
.pf-art-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--pf-accent, var(--accent)) 18%, var(--bg-2)),
    color-mix(in srgb, var(--pf-accent, var(--accent)) 6%, var(--bg-2)));
}
.pf-art > svg {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  display: block;
}
.pf-art-overlay {
  position: absolute; inset: 16px 16px auto 16px;
  z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink);
}
.pf-cat {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 5px 10px; border-radius: 999px;
  font-weight: 600;
}
.pf-year {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 5px 10px; border-radius: 999px;
}

.pf-body {
  padding: 18px;
  display: flex; flex-direction: column;
  flex: 1;
}
.pf-body h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 18px; letter-spacing: -0.015em;
  margin: 0 0 8px;
  line-height: 1.15;
}
.pf-card-large .pf-body h3 { font-size: 18px; }
.pf-body p { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 0 0 14px; }

.pf-meta {
  display: flex; flex-wrap: wrap; gap: 4px 22px;
  padding-top: 14px;
  margin-top: auto;
}
.pf-meta-i { display: flex; flex-direction: column; }
.pf-meta-l { font-size: 10.5px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.pf-meta-v { font-size: 13px; color: var(--ink); font-weight: 500; margin-top: 2px; }

/* ─────────── project page ─────────── */
.proj-hero {
  padding: 80px 0 56px;
  position: relative;
  overflow: hidden;
}
.proj-hero::after {
  content: ''; position: absolute;
  right: -120px; top: -120px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--proj-accent, var(--accent)) 22%, transparent), transparent 65%);
  z-index: -1;
}
.proj-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--ink);
  background: color-mix(in srgb, var(--proj-accent, var(--accent)) 14%, transparent);
  padding: 6px 12px; border-radius: 999px;
  font-weight: 600; letter-spacing: 0.04em;
  margin: 18px 0 18px;
}
.proj-tag-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--proj-accent, var(--accent));
  animation: pulse 1.6s ease-in-out infinite;
}

.proj-hero-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 56px; align-items: center;
}
@media (max-width: 800px) { .proj-hero-grid { grid-template-columns: 1fr; gap: 32px; } }

.proj-name {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 0.97;
  letter-spacing: -0.03em;
  margin: 0;
}
.proj-hero-lede {
  margin: 22px 0 32px;
  font-size: 18px; color: var(--muted);
  line-height: 1.5;
  max-width: 50ch;
}

.proj-meta-panel {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.proj-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 4px;
}
.proj-meta-chip {
  background: transparent;
  border: none;
  color: var(--muted);
}
.proj-info {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 18px 22px;
  background: var(--surface);
  border: none;
  border-radius: var(--radius);
  margin-top: 0;
}
@media (max-width: 600px) { .proj-info { grid-template-columns: 1fr 1fr; } }
.proj-info-i { display: flex; flex-direction: column; gap: 3px; }
.proj-info-l { font-size: 10.5px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.proj-info-v { font-size: 14.5px; color: var(--ink); font-weight: 500; }

.proj-hero-art {
  background: var(--surface);
  border: none;
  border-radius: var(--radius-xl);
  padding: 24px;
  aspect-ratio: 1;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.proj-hero-art::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--proj-accent, var(--accent)) 12%, transparent), transparent 60%);
}
.proj-hero-art > svg {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
}

/* Metrics strip */
.proj-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 56px 0;
  background: var(--surface);
  border: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 4px;
}
@media (max-width: 800px) { .proj-metrics { grid-template-columns: 1fr 1fr; } }
.proj-metric {
  padding: 28px 24px;
  background: var(--surface);
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  border-radius: var(--radius);
  transition: background 200ms;
  text-align: center;
}
.proj-metric:hover { background: var(--bg-2); }
.proj-metric-v {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
  width: 100%;
}
.proj-metric-l {
  color: var(--muted); font-size: 13px;
  width: 100%;
}

.proj-section {
  margin: 64px 0;
  max-width: 800px;
}
.proj-section.full { max-width: none; }
.proj-section-label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 12px;
}
.proj-section h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.05; letter-spacing: -0.025em;
  margin: 0 0 24px;
  max-width: 18ch;
}
.proj-paragraph {
  font-size: 17px; color: var(--ink-2);
  line-height: 1.55; max-width: 60ch;
}
.proj-extra-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--ink);
}
.proj-desc-block .proj-paragraph + .proj-paragraph {
  margin-top: 12px;
}

.proj-approach {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 700px) { .proj-approach { grid-template-columns: 1fr; } }
.proj-approach-i {
  padding: 22px;
  background: var(--surface);
  border: none;
  border-radius: var(--radius);
}
.proj-approach-n {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--proj-accent, var(--accent));
  font-weight: 700; letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.proj-approach-i h4 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 17px; letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.proj-approach-i p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.5; }

.proj-timeline {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 24px;
  position: relative;
}
@media (max-width: 700px) { .proj-timeline { grid-template-columns: 1fr; } }
.proj-tl-step {
  padding: 18px 18px 18px 0;
  position: relative;
}
.proj-tl-bar {
  width: 100%; height: 4px;
  background: var(--proj-accent, var(--accent));
  border-radius: 2px;
  opacity: 1;
  margin-bottom: 14px;
  position: relative;
}
.proj-tl-step:nth-child(2) .proj-tl-bar { opacity: 0.75; }
.proj-tl-step:nth-child(3) .proj-tl-bar { opacity: 0.5; }
.proj-tl-step:nth-child(4) .proj-tl-bar { opacity: 0.25; }
.proj-tl-step:not(:last-child) .proj-tl-bar::after {
  content: ''; position: absolute; right: -4px; top: -2px;
  width: 8px; height: 8px;
  background: var(--proj-accent, var(--accent));
  border-radius: 50%;
}
.proj-tl-phase {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 6px;
}
.proj-tl-t {
  font-size: 14.5px; color: var(--ink); line-height: 1.4;
  max-width: 24ch;
}

/* ─────────── advantages list ─────────── */
.adv-list {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: grid; gap: 1px;
  background: var(--border);
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.adv-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 24px 28px;
  background: var(--surface);
  align-items: start;
  transition: background 180ms;
}
.adv-item:hover { background: var(--surface-2); }
.adv-n {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em; font-weight: 600;
  padding-top: 4px;
}
.adv-body h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 20px; letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 6px;
}
.adv-body p {
  margin: 0; color: var(--muted);
  font-size: 14.5px; line-height: 1.55;
}
@media (max-width: 700px) {
  .adv-item { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
}

/* card click affordance */
.card { cursor: pointer; }
.card:hover .read .arrow { transform: translateX(4px); }
.read .arrow { display: inline-block; transition: transform 200ms; }

.proj-hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 10px 20px;
  flex-wrap: wrap;
  align-items: center;
}
.proj-store-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.proj-store-links-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.proj-store-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.proj-store-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.proj-store-link:hover {
  text-decoration: underline;
}

/* ─────────── project split: slider left + description right ─────────── */
.proj-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  margin: 48px 0;
  align-items: start;
}
@media (min-width: 961px) {
  .proj-split:has(.proj-slider-stage--video-portrait) {
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 20px;
  }
  .proj-split:has(.proj-slider-stage--video-portrait) .proj-slider {
    max-width: 420px;
  }
}
@media (max-width: 960px) {
  .proj-split { grid-template-columns: 1fr; gap: 28px; }
  .proj-split:has(.proj-slider-stage--video-portrait) {
    justify-items: center;
  }
  .proj-split:has(.proj-slider-stage--video-portrait) .proj-slider {
    width: min(360px, 100%);
    max-width: min(360px, 92vw);
    margin-inline: auto;
  }
  .proj-split:has(.proj-slider-stage--video-portrait) .proj-desc {
    justify-self: stretch;
    width: 100%;
  }
}

.proj-slider { position: sticky; top: 88px; }
@media (max-width: 960px) { .proj-slider { position: static; } }

.proj-slider-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.proj-slider-stage--portrait {
  aspect-ratio: 723 / 1024;
  background: var(--bg-2);
}
.proj-slider-stage--image {
  background: var(--bg-2);
}
.proj-slider-stage--image .proj-slide-zoom {
  position: relative;
  display: block;
  width: fit-content;
  height: fit-content;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
}
.proj-slider-stage--image .proj-slide-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}
.proj-slider-stage--image .proj-slide-zoom .proj-slider-meta {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  pointer-events: none;
}
.proj-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(1.04);
  transition: opacity 420ms cubic-bezier(.2,.7,.3,1), transform 600ms cubic-bezier(.2,.7,.3,1);
  pointer-events: none;
}
.proj-slide.on { opacity: 1; transform: scale(1); pointer-events: auto; }
.proj-slide svg { width: 78%; height: 78%; }
.proj-slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.proj-slider-stage--image .proj-slide--video {
  padding: 0;
}
.proj-slider-stage--video-portrait {
  background: var(--bg-2);
  max-height: min(78vh, 720px);
}
.proj-slide-video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: transparent;
  border-radius: 0;
}
[data-theme="dark"] .proj-slider-stage--video-portrait .proj-slide-video {
  background: #06060c;
}
@media (max-width: 960px) {
  .proj-slider-stage--video-portrait {
    max-height: min(68vh, 560px);
    margin-inline: auto;
  }
}
@media (max-width: 480px) {
  .proj-split:has(.proj-slider-stage--video-portrait) .proj-slider {
    width: min(320px, 94vw);
    max-width: min(320px, 94vw);
  }
  .proj-slider-stage--video-portrait {
    max-height: min(62vh, 520px);
  }
}

.proj-slider-meta {
  position: absolute;
  left: 18px; bottom: 16px;
  display: flex; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  backdrop-filter: blur(8px);
  padding: 6px 10px; border-radius: 999px;
}
.proj-slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: color-mix(in oklab, var(--surface) 85%, transparent);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 180ms, background 180ms;
}
.proj-slider-nav:hover {
  background: var(--surface);
  transform: translateY(-50%) scale(1.06);
}
.proj-slider-nav.prev { left: 12px; }
.proj-slider-nav.next { right: 12px; }

.proj-slider-dots {
  display: flex; gap: 8px; justify-content: center;
  margin-top: 14px;
}
.proj-slider-dots .dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer;
  background: var(--border-2);
  transition: background 180ms, transform 180ms, width 200ms;
}
.proj-slider-dots .dot:hover { background: var(--muted-2); }
.proj-slider-dots .dot.on {
  background: var(--proj-accent, var(--accent));
  width: 22px; border-radius: 4px;
}

/* Description column */
.proj-desc {
  display: flex; flex-direction: column;
  gap: 28px;
}
.proj-desc-block .proj-section-label { margin-bottom: 10px; }
.proj-desc .proj-paragraph { font-size: 16px; max-width: none; }

.proj-bullets {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.proj-bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px; line-height: 1.55;
  color: var(--ink-2);
}
.proj-bullets li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--proj-accent, var(--accent));
}
.proj-bullets li b {
  color: var(--ink);
  font-weight: 600;
}
.proj-bullets li span { color: var(--muted); }
.proj-bullets.compact li { font-size: 14px; padding-left: 14px; }
.proj-bullets.compact li::before { width: 4px; height: 4px; top: 10px; }

/* ─────────── contact form modal + floating CTAs ─────────── */
.contact-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: color-mix(in srgb, var(--ink) 45%, transparent);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.contact-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 48px auto;
  background: var(--surface);
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 28px 28px 24px;
}
.contact-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
}
.contact-modal-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 3.2vw, 30px);
  letter-spacing: -0.03em;
  margin: 0 40px 8px 0;
  line-height: 1.1;
  color: var(--ink);
}
.contact-modal-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.45;
}
.contact-modal-form { margin-top: 4px; }
.contact-modal-error {
  background: color-mix(in srgb, #c0392b 12%, transparent);
  border: 1px solid color-mix(in srgb, #c0392b 35%, transparent);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 10px;
}
.contact-modal-success {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  color: var(--ink);
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.contact-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.contact-modal-grid-tight { margin-top: 12px; }
@media (max-width: 640px) {
  .contact-modal-grid { grid-template-columns: 1fr; }
}
.contact-field { display: flex; flex-direction: column; gap: 6px; }
.contact-field-block { margin-top: 14px; }
.contact-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.contact-label-muted { font-weight: 500; color: var(--muted); }
.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-field textarea { resize: vertical; min-height: 120px; }
.contact-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.contact-fieldset {
  border: 0;
  padding: 0;
  margin: 18px 0 0;
}
.contact-fieldset legend { padding: 0; margin-bottom: 8px; }
.contact-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}
.contact-radio-row--channels {
  gap: 10px 16px;
}
.contact-field-sub {
  margin: 14px 0 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
}
.contact-channel-field {
  margin-top: 12px;
}
.contact-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
}
.contact-radio input { accent-color: var(--accent); width: 16px; height: 16px; }
.contact-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}
.contact-consent input {
  margin-top: 3px;
  flex: none;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}
.contact-inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
/* Статичные CTA в потоке (не fixed): середина страницы + перед футером */
.contact-strip-mid {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}
.contact-strip-mid .container {
  display: flex;
  justify-content: center;
}
.contact-strip-mid--compact {
  padding: 10px 0 6px;
  border-bottom: none;
}
.contact-strip-end {
  padding: 28px 0 40px;
}
.contact-strip-end .container {
  display: flex;
  justify-content: center;
}
@media (max-width: 720px) {
  .contact-strip-mid {
    padding: 16px 0;
  }
}
#privacy-policy {
  scroll-margin-top: 88px;
}

/* ========== PRIVACY PAGE ========== */
.privacy-hero {
  padding-bottom: 8px;
}
.privacy-doc-title,
.privacy-doc-h2,
.privacy-doc-lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.privacy-doc-title {
  margin: 16px 0 12px;
}
.page-hero.privacy-hero h1.privacy-doc-title,
.page-hero.privacy-hero p.privacy-doc-lead {
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.02em;
  line-height: normal;
  max-width: none;
}
.privacy-doc-lead {
  margin: 0;
}
.privacy-doc-note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 48em;
}
.privacy-doc-wrap {
  padding-bottom: 64px;
}
.privacy-doc {
  max-width: 52em;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}
.privacy-doc-h2 {
  margin: 36px 0 14px;
}
.privacy-doc-h2:first-child {
  margin-top: 0;
}
.privacy-doc-h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 20px 0 10px;
}
.privacy-doc p {
  margin: 0 0 12px;
}
.privacy-doc ul {
  margin: 0 0 14px;
  padding-left: 1.25em;
}
.privacy-doc li {
  margin-bottom: 6px;
}
.privacy-doc-revision {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}


