/* ============================================================
   Витрина «Мастер CFO» — премиум-редизайн
   ИИ: тёмная тема + фирменный лайм · ФД: светлая редакционная
   Шрифты: Gilroy (дисплей) + Inter (текст)
   ============================================================ */

@font-face { font-family: "Gilroy"; src: url("assets/fonts/Gilroy-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("assets/fonts/Gilroy-Semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("assets/fonts/Gilroy-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("assets/fonts/Gilroy-Extrabold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("assets/fonts/Gilroy-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-400.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

/* ---------- Tokens: ИИ (тёмный премиум + лайм) ---------- */
:root {
  --page: #0a0e0b;
  --page-soft: #0d1310;
  --surface: #12180f;
  --surface-raised: #171e13;
  --surface-muted: #1c2418;
  --ink: #f1f5ec;
  --ink-soft: #a6b29d;
  --ink-faint: #71806a;

  --accent: #a3dd45;
  --accent-2: #c2f065;
  --accent-ink: #0b1403;
  --accent-tint: rgba(163, 221, 69, 0.12);

  --line: rgba(224, 240, 208, 0.10);
  --line-strong: rgba(163, 221, 69, 0.38);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 20px 46px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 40px 90px rgba(0, 0, 0, 0.55);
  --shadow-accent: 0 24px 60px rgba(163, 221, 69, 0.22);

  --hero-glow: radial-gradient(60% 55% at 82% 12%, rgba(163, 221, 69, 0.22), transparent 62%);
  --hero-base: linear-gradient(168deg, #0c130c 0%, #0a0e0b 46%, #080b08 100%);
  --media-bg: radial-gradient(120% 120% at 50% -10%, rgba(163, 221, 69, 0.14), transparent 55%), linear-gradient(180deg, #1a2216, #10150e);
  --device-frame: #2b3327;
  --device-frame-2: #3c4735;

  --shell: 1240px;
  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 15px;
  --r-sm: 11px;

  --display: "Gilroy", "Trebuchet MS", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;

  color-scheme: dark;
}

/* ---------- Tokens: ФД (светлый премиум-редакционный) ---------- */
body[data-direction="finance"] {
  --page: #f3f6fb;
  --page-soft: #e9eff7;
  --surface: #ffffff;
  --surface-raised: #f6f9fe;
  --surface-muted: #eaf1fa;
  --ink: #0f2033;
  --ink-soft: #4a5c72;
  --ink-faint: #7e8ea2;

  --accent: #2c63f6;
  --accent-2: #1d4cd8;
  --accent-ink: #ffffff;
  --accent-tint: rgba(44, 99, 246, 0.10);

  --line: rgba(15, 32, 51, 0.12);
  --line-strong: rgba(44, 99, 246, 0.32);

  --shadow-sm: 0 2px 8px rgba(23, 51, 92, 0.08);
  --shadow-md: 0 22px 46px rgba(23, 51, 92, 0.12);
  --shadow-lg: 0 40px 84px rgba(23, 51, 92, 0.16);
  --shadow-accent: 0 24px 56px rgba(44, 99, 246, 0.20);

  --hero-glow: radial-gradient(58% 52% at 80% 10%, rgba(44, 99, 246, 0.18), transparent 60%);
  --hero-base: linear-gradient(168deg, #ffffff 0%, #eef4fc 52%, #dfeaf8 100%);
  --media-bg: radial-gradient(120% 120% at 50% -10%, rgba(44, 99, 246, 0.10), transparent 55%), linear-gradient(180deg, #f4f8fe, #e7eff9);
  --device-frame: #c3d0df;
  --device-frame-2: #98a9bd;

  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 120px; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.5s ease, color 0.5s ease;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1, h2, h3, h4 { font-family: var(--display); }

.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }

.skip-link {
  position: fixed; z-index: 1000; top: 12px; left: 12px;
  padding: 11px 16px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--display); font-weight: 700;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

/* ---------- Header ---------- */
.site-header { position: absolute; z-index: 50; inset: 0 0 auto; padding-top: 22px; }

.header-inner {
  min-height: 70px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px;
  padding: 10px 12px 10px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
}

.brand img, .footer-brand img { width: 156px; height: auto; }
body[data-direction="ai"] .brand img,
body[data-direction="ai"] .footer-brand img { filter: brightness(0) invert(1); }

.header-nav { display: flex; justify-content: center; gap: 30px; }
.header-nav a {
  color: var(--ink-soft); font-family: var(--display);
  font-size: 14px; font-weight: 600; transition: color 0.2s ease;
}
.header-nav a:hover { color: var(--ink); }

.header-mode, .direction-tabs {
  display: flex; gap: 4px; padding: 4px;
  border: 1px solid var(--line); border-radius: 13px;
  background: color-mix(in srgb, var(--page) 60%, transparent);
}
.header-mode button, .direction-tab {
  border: 0; border-radius: 10px; background: transparent; color: var(--ink-soft);
  font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  padding: 10px 16px;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.header-mode button.is-active, .direction-tab.is-active {
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px var(--accent-tint);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 150px 0 70px;
  background: var(--hero-glow), var(--hero-base);
}
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 720px; height: 720px; right: -240px; top: -280px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 50%; opacity: 0.5;
}
.hero-noise {
  position: absolute; z-index: -1; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(70% 60% at 75% 15%, black, transparent 75%);
}

.hero-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 0.82fr);
  align-items: center; gap: clamp(42px, 6vw, 92px); min-height: 540px;
}

.eyebrow, .section-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 22px;
  color: var(--accent); font-family: var(--display);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em;
}
.eyebrow::before, .section-kicker::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.hero h1 {
  margin: 0; max-width: 680px;
  font-size: clamp(44px, 5.4vw, 74px); font-weight: 800;
  line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance;
}
.hero h1 span { color: var(--accent); }

.hero-lead {
  max-width: 620px; margin: 26px 0 0;
  color: var(--ink-soft); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.62;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.button {
  min-height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 0 26px; border: 1px solid transparent; border-radius: var(--r-md);
  font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: 0.01em;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.button--primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-accent); }
.button--primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.button--ghost { border-color: var(--line-strong); background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); }
.button--ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }

.hero-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 10px 30px; margin-top: 40px;
  color: var(--ink-faint); font-family: var(--display);
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
}
.hero-facts b { margin-right: 8px; color: var(--accent); font-weight: 800; }

/* Hero visual */
.hero-visual { position: relative; min-width: 0; }
.hero-frame {
  position: relative; overflow: hidden; aspect-ratio: 5 / 4;
  border: 1px solid var(--line-strong); border-radius: var(--r-xl);
  background: var(--surface); box-shadow: var(--shadow-lg);
}
.hero-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--page) 55%, transparent));
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; will-change: transform; }

.hero-person {
  position: absolute; left: -30px; bottom: 26px; z-index: 2; max-width: 320px;
  padding: 15px 20px; border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow-md); backdrop-filter: blur(16px);
}
.hero-person span, .hero-person strong { display: block; }
.hero-person span {
  margin-bottom: 4px; color: var(--accent); font-family: var(--display);
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
}
.hero-person strong { font-family: var(--display); font-size: 14px; font-weight: 700; line-height: 1.35; }

.hero-status {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--display); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; box-shadow: var(--shadow-accent);
}
.hero-status span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Direction gateway */
.direction-gateway { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 58px; }
.gateway-card {
  position: relative; overflow: hidden; min-width: 0;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  min-height: 128px; padding: 26px 28px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.gateway-card--ai { background: linear-gradient(150deg, #141b12, #0f140d); color: #f1f5ec; }
.gateway-card--finance { background: linear-gradient(150deg, #ffffff, #eaf1fa); color: #12304f; }
.gateway-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gateway-card.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-accent); }
.gateway-card.is-active::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: var(--accent);
}
.gateway-index { align-self: start; font-family: var(--display); font-size: 12px; font-weight: 800; opacity: 0.4; }
.gateway-copy strong, .gateway-copy small { display: block; }
.gateway-copy strong { margin-bottom: 7px; font-family: var(--display); font-size: clamp(19px, 1.7vw, 24px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.gateway-copy small { max-width: 440px; font-size: 13px; line-height: 1.5; opacity: 0.68; }
.gateway-arrow {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid currentColor; border-radius: 50%; font-size: 19px; opacity: 0.6;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}
.gateway-card:hover .gateway-arrow, .gateway-card.is-active .gateway-arrow {
  opacity: 1; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: rotate(45deg);
}

/* ---------- Catalog ---------- */
.catalog { position: relative; padding: 120px 0 130px; background: var(--page); }

.catalog-head {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.7fr);
  gap: 64px; align-items: end;
}
.catalog h2, .help-heading h2 {
  margin: 0; font-size: clamp(38px, 4.2vw, 60px); font-weight: 800;
  line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance;
}
.catalog-intro > p, .help-heading > p:last-child {
  margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.7;
}

.search-box {
  min-height: 58px; display: flex; align-items: center; gap: 12px;
  margin-top: 24px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.search-box svg { width: 20px; fill: none; stroke: var(--ink-faint); stroke-width: 2; }
.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; }
.search-box input::placeholder { color: var(--ink-faint); }

.catalog-toolbar {
  position: sticky; z-index: 30; top: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  margin-top: 72px; padding: 9px;
  border: 1px solid var(--line); border-radius: 17px;
  background: color-mix(in srgb, var(--page) 78%, transparent);
  backdrop-filter: blur(18px);
  transition: padding 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.catalog-toolbar.is-stuck {
  padding: 6px; box-shadow: var(--shadow-md);
  background: color-mix(in srgb, var(--page) 92%, transparent);
  border-color: var(--line-strong);
}
.direction-tabs { flex: 0 0 auto; }
.direction-tab { padding: 11px 17px; }

.category-nav {
  min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 4px;
  overflow-x: auto; scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav a {
  flex: 0 0 auto; padding: 11px 14px; border-radius: 10px;
  color: var(--ink-soft); font-family: var(--display); font-size: 12px; font-weight: 600; white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.category-nav a:hover { background: var(--surface); color: var(--ink); }

/* Sections */
.catalog-section { padding-top: 116px; }
.section-heading {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
  gap: 60px; align-items: end; margin-bottom: 40px;
}
.section-heading > div { display: flex; align-items: center; gap: 22px; }
.section-number {
  flex: 0 0 auto; font-family: var(--display); font-size: clamp(40px, 4.4vw, 66px); font-weight: 900;
  line-height: 0.9; letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--accent) 55%, transparent);
  opacity: 0.9;
}
.section-heading h3 {
  margin: 0; font-size: clamp(27px, 2.9vw, 40px); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance;
}
.section-heading > p { margin: 0; color: var(--ink-soft); line-height: 1.65; }

/* Product grid + cards */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.product-card {
  position: relative; min-width: 0; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }

.product-media, .mockup-stage {
  position: relative; min-height: 248px; overflow: hidden; background: var(--media-bg);
}
.product-media::after, .mockup-stage::after {
  content: ""; position: absolute; inset: auto 0 0; height: 46%; pointer-events: none;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--page) 30%, transparent));
}
.product-card:hover .device { transform: translateX(-50%) translateY(-4px) scale(1.015); }
.product-card:hover .device--phone { transform: translateX(-50%) translateY(-4px) rotate(3deg) scale(1.015); }
.product-card:hover .device--document { transform: translateX(-50%) translateY(-4px) rotate(-1.5deg) scale(1.015); }
.product-card:hover .device--book { transform: translateX(-50%) translateY(-4px) rotate(-3deg) scale(1.015); }

/* Devices */
.device { position: absolute; z-index: 1; transition: transform 0.35s ease; }
.device--laptop { left: 50%; bottom: 20px; width: 78%; transform: translateX(-50%); }
.device-screen {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3; padding: 5px;
  border: 2px solid var(--device-frame); border-bottom-width: 8px; border-radius: 11px 11px 5px 5px;
  background: #0e120c; box-shadow: 0 22px 34px rgba(0, 0, 0, 0.32);
}
body[data-direction="finance"] .device-screen { background: #37424e; }
.device-screen img { width: 100%; height: 100%; border-radius: 5px 5px 2px 2px; background: #f3f5f2; object-fit: contain; object-position: center; }
.device-base { width: 112%; height: 12px; margin-left: -6%; border-radius: 2px 2px 12px 12px; background: linear-gradient(var(--device-frame-2), var(--device-frame)); box-shadow: 0 9px 13px rgba(0, 0, 0, 0.25); }
.device-base::after { content: ""; display: block; width: 17%; height: 3px; margin: 0 auto; border-radius: 0 0 6px 6px; background: color-mix(in srgb, var(--device-frame) 60%, #fff); }

.device--phone {
  left: 50%; bottom: 10px; width: 27%; aspect-ratio: 9 / 18; padding: 7px;
  border: 2px solid var(--device-frame); border-radius: 26px; background: #0e120c;
  box-shadow: 0 22px 34px rgba(0, 0, 0, 0.35); transform: translateX(-50%) rotate(3deg);
}
.device--phone::before { content: ""; position: absolute; z-index: 2; width: 34%; height: 5px; top: 6px; left: 33%; border-radius: 99px; background: #000; }
.device--phone img { width: 100%; height: 100%; border-radius: 19px; background: #f4f6f2; object-fit: contain; object-position: center; }

.device--document {
  left: 50%; bottom: 12px; width: 72%; aspect-ratio: 4 / 3; padding: 8px;
  border: 1px solid color-mix(in srgb, var(--device-frame) 70%, transparent); border-radius: 12px; background: #f3f6f2;
  box-shadow: 14px 20px 34px rgba(0, 0, 0, 0.26); transform: translateX(-50%) rotate(-1.5deg);
}
.device--document img { width: 100%; height: 100%; border-radius: 7px; object-fit: contain; object-position: center; }

.device--book {
  left: 50%; bottom: 18px; width: 72%; aspect-ratio: 4 / 3; padding: 8px 8px 8px 14px;
  border-radius: 4px 12px 12px 4px;
  background: linear-gradient(90deg, var(--accent) 0 7px, #12180f 7px 100%);
  box-shadow: 16px 22px 34px rgba(0, 0, 0, 0.34); transform: translateX(-50%) rotate(-3deg);
}
body[data-direction="finance"] .device--book { background: linear-gradient(90deg, var(--accent) 0 7px, #d6e3f1 7px 100%); }
.device--book img { width: 100%; height: 100%; border-radius: 2px 8px 8px 2px; background: #f4f6f2; object-fit: contain; object-position: center; }

/* Card body */
.product-body { min-height: 0; flex: 1; display: flex; flex-direction: column; padding: 28px; }
.product-type {
  margin-bottom: 14px; color: var(--accent); font-family: var(--display);
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.13em;
}
.product-card h4 {
  margin: 0; font-family: var(--display); font-size: clamp(18px, 1.35vw, 21px);
  font-weight: 700; line-height: 1.28; letter-spacing: -0.01em; overflow-wrap: anywhere; text-wrap: balance;
}
.product-card p { margin: 15px 0 26px; color: var(--ink-soft); font-size: 14px; line-height: 1.65; }

.product-action {
  min-height: 52px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding: 0 18px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--accent-tint); color: var(--accent);
  font-family: var(--display); font-size: 13px; font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.product-action span:last-child { transition: transform 0.2s ease; }
.product-action:hover { background: var(--accent); color: var(--accent-ink); }
.product-action:hover span:last-child { transform: translate(3px, -3px); }

/* Featured (флагманы) */
.product-card--featured { border-color: var(--line-strong); box-shadow: var(--shadow-sm), 0 0 0 1px var(--accent-tint); }
.product-card--featured .mockup-stage { min-height: 290px; }
.product-card--featured .mockup-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 70% at 50% 0%, var(--accent-tint), transparent 60%);
}
.product-card--featured .device--laptop { width: 84%; }
.product-card--featured h4 { font-size: clamp(20px, 1.7vw, 25px); }

/* Files */
.file-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.file-list .product-card .product-media { min-height: 228px; }

/* Books */
.book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.book-grid--single { grid-template-columns: minmax(0, 840px); }
.book-grid .product-card { display: grid; grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1fr); }
.book-grid .product-media { min-height: 400px; }
.book-grid .product-body { justify-content: center; padding: 36px; }

/* Empty state */
.empty-state {
  margin-top: 70px; padding: 72px 24px; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: var(--r-lg);
}
.empty-state > span { color: var(--accent); font-size: 42px; }
.empty-state h3 { margin: 14px 0 6px; font-size: 24px; font-weight: 800; }
.empty-state p { margin: 0 0 22px; color: var(--ink-soft); }
.empty-state button {
  min-height: 48px; padding: 0 20px; border: 0; border-radius: var(--r-sm);
  background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-weight: 700;
}

/* ---------- Help ---------- */
.help-section { padding: 116px 0; border-top: 1px solid var(--line); background: var(--page-soft); }
.help-heading {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.62fr);
  column-gap: 80px; align-items: end; margin-bottom: 46px;
}
.help-heading .section-kicker { grid-column: 1 / -1; }

.manager-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.manager-card {
  position: relative; overflow: hidden; min-width: 0; min-height: 350px;
  display: flex; flex-direction: column; padding: 34px;
  border: 1px solid transparent; border-radius: var(--r-xl);
}
.manager-card--ai { border-color: rgba(163, 221, 69, 0.24); background: linear-gradient(155deg, #141b12, #0f140d); color: #f1f5ec; }
.manager-card--finance { border-color: rgba(44, 99, 246, 0.18); background: linear-gradient(155deg, #ffffff, #e7f0fa); color: #0f2033; }
.manager-icon {
  width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 44px;
  border: 1px solid currentColor; border-radius: 50%; font-size: 20px; opacity: 0.7;
}
.manager-card p { margin: 0 0 8px; font-family: var(--display); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.55; }
.manager-card h3 { margin: 0 0 10px; font-family: var(--display); font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -0.01em; }
.manager-card div > span { font-size: 14px; line-height: 1.55; opacity: 0.66; }
.manager-card a {
  min-height: 58px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: auto; padding: 0 22px; border-radius: var(--r-md);
  font-family: var(--display); font-size: 14px; font-weight: 700;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.manager-card a:hover { transform: translateY(-2px); filter: brightness(1.05); }
.manager-card--ai a { background: #a3dd45; color: #0b1403; }
.manager-card--finance a { background: #2c63f6; color: #fff; }

/* ---------- Footer ---------- */
.site-footer { padding: 76px 0 26px; background: #080b08; color: #eef3e8; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1.1fr 0.8fr; gap: 52px; }
.footer-brand img { filter: brightness(0) invert(1); }
.footer-brand p, .footer-grid > div > p { color: #8b988a; font-size: 13px; line-height: 1.7; }
.footer-brand p { max-width: 290px; margin-top: 20px; }
.footer-grid h3 { margin: 0 0 18px; color: #6d7a6c; font-family: var(--display); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.13em; }
.footer-links { display: grid; gap: 12px; }
.footer-links a, .to-top { color: #d3dccf; font-size: 13px; line-height: 1.5; transition: color 0.2s ease; }
.footer-links a:hover, .to-top:hover { color: #a3dd45; }
.footer-hours span { display: block; margin-bottom: 8px; color: #a3dd45; font-family: var(--display); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.to-top { display: inline-block; margin-top: 24px; font-family: var(--display); font-weight: 600; }
.footer-bottom {
  display: flex; justify-content: space-between; margin-top: 60px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08); color: #63705f;
  font-family: var(--display); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
}

.mobile-manager { display: none; }

/* ---------- Reveal (GSAP sets inline; class avoids FOUC only if JS runs) ---------- */
.js-anim [data-reveal] { will-change: transform, opacity; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .header-nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(350px, 0.8fr); gap: 44px; }
  .product-grid, .file-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .category-nav { justify-content: flex-start; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .hero { padding-top: 130px; }
  .hero-layout, .catalog-head, .section-heading, .help-heading { grid-template-columns: 1fr; }
  .hero-layout { min-height: 0; }
  .hero-copy { max-width: 680px; }
  .hero-visual { width: min(100%, 580px); margin-inline: auto; }
  .hero-person { left: 16px; }
  .direction-gateway { grid-template-columns: 1fr; }
  .catalog-head, .section-heading, .help-heading { gap: 30px; }
  .section-heading > div { gap: 16px; }
  .help-heading .section-kicker { grid-column: auto; margin-bottom: -14px; }
  .book-grid, .book-grid--single, .manager-grid { grid-template-columns: 1fr; }
  .book-grid--single { max-width: none; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 104px; }
  body { padding-bottom: 74px; }
  .shell { width: min(calc(100% - 24px), var(--shell)); }
  .site-header { padding-top: 12px; }
  .header-inner { min-height: 60px; padding: 8px 8px 8px 14px; border-radius: 15px; }
  .brand img { width: 126px; }
  .header-mode { padding: 3px; }
  .header-mode button { padding: 8px 11px; font-size: 10px; }
  .hero { padding: 108px 0 40px; }
  .hero-layout { gap: 38px; }
  .eyebrow, .section-kicker { margin-bottom: 15px; font-size: 10px; }
  .hero h1 { font-size: clamp(34px, 10.5vw, 46px); line-height: 1.05; }
  .hero-lead { margin-top: 20px; font-size: 16px; }
  .hero-actions { display: grid; margin-top: 26px; }
  .button { width: 100%; }
  .hero-facts { grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 28px; font-size: 10px; }
  .hero-person { left: 10px; right: 10px; bottom: 10px; max-width: none; padding: 12px 15px; }
  .hero-person strong { font-size: 12px; }
  .hero-status { top: 12px; right: 10px; font-size: 9px; }
  .direction-gateway { margin-top: 34px; }
  .gateway-card { min-height: 104px; gap: 14px; padding: 20px; border-radius: var(--r-md); }
  .gateway-copy strong { font-size: 17px; }
  .gateway-copy small { font-size: 11px; }
  .gateway-arrow { width: 38px; height: 38px; }
  .catalog { padding: 82px 0 88px; }
  .catalog-toolbar { top: 8px; margin-top: 48px; padding: 6px; border-radius: 14px; }
  .direction-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .direction-tab { padding: 10px 8px; font-size: 10px; }
  .category-nav a { padding: 9px 11px; font-size: 10px; }
  .catalog-section { padding-top: 80px; }
  .section-heading { margin-bottom: 26px; }
  .section-heading > div { align-items: center; gap: 14px; }
  .section-number { font-size: 40px; }
  .section-heading h3 { font-size: 27px; }
  .section-heading > p { font-size: 14px; }
  .product-grid, .file-list, .book-grid, .book-grid--single { grid-template-columns: 1fr; }
  .product-media, .mockup-stage, .product-card--featured .mockup-stage, .file-list .product-card .product-media { min-height: 244px; }
  .product-card--featured .device--laptop { width: 76%; }
  .product-body { padding: 24px; }
  .book-grid .product-card { display: flex; }
  .book-grid .product-media { min-height: 300px; }
  .book-grid .product-body { padding: 24px; }
  .help-section { padding: 82px 0; }
  .manager-card { min-height: 320px; padding: 26px; border-radius: var(--r-lg); }
  .manager-icon { margin-bottom: 38px; }
  .site-footer { padding-top: 62px; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
  .mobile-manager {
    position: fixed; z-index: 90; left: 12px; right: 12px; bottom: 10px; min-height: 54px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 0 20px; border-radius: var(--r-md);
    background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-md);
    font-family: var(--display); font-size: 13px; font-weight: 700;
  }
}

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