/* ===========================================================================
   CallSense · НоваДент — общая dark/orange дизайн-система
   Извлечена из garant-call-analyzer-product-site.html (база знаний).
   Шрифты самохостятся (assets/fonts/fonts.css) → рендер без сети.
   Брендовые шрифты Danifo — Display: Unbounded · Body: Futura PT.
   =========================================================================== */
@import url("/assets/fonts/fonts.css");

:root {
  --ink: #0E0B2C;
  --ink-2: #17134A;
  --navy: #29256A;
  --purple: #60489D;
  --orange: #F47929;
  --orange-dark: #D96920;
  --paper: #F7F6F2;
  --white: #FFFFFF;
  --gray: #D1D3D4;
  --text: #201D52;
  --muted: #64617A;
  --line: rgba(41, 37, 106, 0.14);
  --line-dark: rgba(255, 255, 255, 0.18);
  --green: #178A53;
  --green-soft: #E7F3EC;
  --red: #C0392B;
  --red-soft: #FBEAE8;
  --amber: #C97515;
  --amber-soft: #FEF1DF;
  --font-display: "Unbounded", "Trebuchet MS", sans-serif;
  --font-body: "Futura PT", "Helvetica Neue", Arial, sans-serif;
  --radius: 8px;
  --shadow: 0 18px 44px rgba(14, 11, 44, 0.14);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection { background: rgba(244, 121, 41, 0.24); }
a { color: inherit; text-decoration: none; }

svg {
  display: block;
  width: 1.1em;
  height: 1.1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.page { overflow: hidden; }

.container { width: min(100% - 40px, 1180px); margin: 0 auto; }
.container--narrow { width: min(100% - 40px, 920px); }

/* ---------- Topbar / nav ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(14, 11, 44, 0.88);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(16px);
}
.topbar__inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); min-width: 0; }
.brand__mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  color: var(--orange);
  border: 1px solid rgba(244, 121, 41, 0.5);
  border-radius: 8px;
  flex: 0 0 auto;
}
.brand__text { display: grid; gap: 2px; min-width: 0; }
.brand__company { color: rgba(255, 255, 255, 0.72); font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; }
.brand__name { font-family: var(--font-display); font-weight: 900; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1; }
.brand__descriptor { color: rgba(255, 255, 255, 0.62); font-size: 12px; line-height: 1.12; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 22px; color: rgba(255, 255, 255, 0.72); font-size: 15px; white-space: nowrap; }
.nav a { transition: color 180ms ease; }
.nav a:hover, .nav a.active { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 18px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { color: var(--white); background: var(--orange); }
.btn--primary:hover { background: var(--orange-dark); }
.btn--ghost-light { color: var(--white); border-color: rgba(255, 255, 255, 0.42); background: rgba(255, 255, 255, 0.04); }
.btn--ghost-light:hover { border-color: var(--white); background: var(--white); color: var(--ink); }
.btn--ghost { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn--ghost:hover { color: var(--white); background: var(--navy); }
.btn--small { min-height: 36px; padding: 9px 14px; font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 94px 0; background: var(--paper); }
.section--white { background: var(--white); }
.section--dark {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--ink);
  background-size: 46px 46px, 46px 46px, auto;
  color: var(--white);
}
.section-head { max-width: 820px; margin-bottom: 42px; }
.section-head--wide { max-width: 1040px; }
.section-head h2 { margin: 12px 0 0; font-family: var(--font-display); font-size: 42px; line-height: 1.08; }
.section-head p { margin: 18px 0 0; color: var(--muted); font-size: 22px; line-height: 1.28; max-width: 760px; }
.section--dark .section-head p { color: rgba(255, 255, 255, 0.74); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--orange); font-weight: 700; text-transform: uppercase;
  font-size: 13px; letter-spacing: 0;
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px; border-radius: 2px;
  background: var(--orange); box-shadow: 0 0 0 5px rgba(244, 121, 41, 0.18);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  padding: 128px 0 76px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--ink);
  background-size: 44px 44px, 44px 44px, auto;
  color: var(--white);
  isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14, 11, 44, 0.18), rgba(14, 11, 44, 0.76) 78%, var(--ink));
}
.hero__content { max-width: 880px; }
.hero h1 { margin: 22px 0 0; font-family: var(--font-display); font-weight: 900; font-size: 60px; line-height: 1.04; max-width: 880px; }
.hero h1 span { color: var(--orange); }
.hero__lead { margin: 26px 0 0; max-width: 760px; color: rgba(255, 255, 255, 0.84); font-size: 23px; line-height: 1.28; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-proof {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 56px; border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, 0.14); max-width: 1000px;
}
.hero-proof__item { min-height: 118px; padding: 18px; background: rgba(14, 11, 44, 0.74); }
.hero-proof__item b { display: block; color: var(--white); font-family: var(--font-display); font-size: 22px; line-height: 1.1; font-weight: 900; margin-bottom: 8px; }
.hero-proof__item span { display: block; color: rgba(255, 255, 255, 0.68); font-size: 14px; line-height: 1.32; }

/* ---------- Split band / summary ---------- */
.split-band { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 42px; align-items: start; }
.summary {
  position: sticky; top: 100px; padding: 28px;
  border-left: 5px solid var(--orange);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.summary h3 { margin: 14px 0 0; font-family: var(--font-display); font-size: 24px; line-height: 1.18; }
.summary p { margin: 14px 0 0; color: var(--muted); font-size: 18px; }

/* ---------- Before / after ---------- */
.before-after { display: grid; gap: 14px; }
.ba-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ba-cell { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); min-height: 148px; }
.ba-cell--bad { border-left: 4px solid var(--red); }
.ba-cell--good { border-left: 4px solid var(--green); }
.ba-kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--muted); text-transform: uppercase; margin-bottom: 12px; }
.ba-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); }
.ba-cell h3 { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 1.22; }
.ba-cell p { margin: 10px 0 0; color: var(--muted); font-size: 16px; }

/* ---------- Action fan (one call → five actions) ---------- */
.action-story { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 28px; align-items: center; }
.action-fan { position: relative; min-height: 520px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.action-fan::before {
  content: ""; position: absolute; inset: 34px; border-radius: 50%;
  background:
    radial-gradient(circle, rgba(244, 121, 41, 0.12), transparent 62%),
    conic-gradient(from 250deg, rgba(41, 37, 106, 0.12), rgba(244, 121, 41, 0.15), rgba(23, 138, 83, 0.12), rgba(96, 72, 157, 0.12), rgba(41, 37, 106, 0.12));
  opacity: 0.9;
}
.fan-core { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 134px; height: 134px; border-radius: 50%; background: var(--ink); color: var(--white); text-align: center; font-family: var(--font-display); font-size: 19px; line-height: 1.12; font-weight: 900; z-index: 3; box-shadow: 0 18px 44px rgba(14, 11, 44, 0.26); }
.fan-line { position: absolute; top: 50%; left: 50%; width: 170px; height: 2px; background: rgba(244, 121, 41, 0.5); transform-origin: left center; z-index: 1; }
.fan-card { position: absolute; width: 190px; min-height: 116px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.94); z-index: 2; box-shadow: 0 12px 30px rgba(14, 11, 44, 0.1); }
.fan-card b { display: block; color: var(--navy); font-family: var(--font-display); font-size: 16px; line-height: 1.15; margin-bottom: 7px; }
.fan-card span { display: block; color: var(--muted); font-size: 14px; line-height: 1.3; }
.fan-card--one { top: 32px; left: 50%; transform: translateX(-50%); }
.fan-card--two { top: 145px; right: 28px; }
.fan-card--three { bottom: 42px; right: 68px; }
.fan-card--four { bottom: 42px; left: 68px; }
.fan-card--five { top: 145px; left: 28px; }
.fan-line--one { transform: rotate(-90deg); width: 150px; }
.fan-line--two { transform: rotate(-22deg); }
.fan-line--three { transform: rotate(48deg); width: 160px; }
.fan-line--four { transform: rotate(132deg); width: 160px; }
.fan-line--five { transform: rotate(202deg); }

.action-list { display: grid; gap: 12px; }
.action-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.action-item__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: var(--navy); color: var(--white); font-family: var(--font-display); font-weight: 900; }
.action-item h3 { margin: 0; font-family: var(--font-display); font-size: 19px; line-height: 1.18; }
.action-item p { margin: 7px 0 0; color: var(--muted); font-size: 16px; line-height: 1.4; }

/* ---------- Card grids ---------- */
.data-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); padding: 24px;
}
.card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; color: var(--orange); background: rgba(244, 121, 41, 0.1); margin-bottom: 18px; }
.card h3 { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 1.18; }
.card p { margin: 11px 0 0; color: var(--muted); font-size: 16px; line-height: 1.42; }
.section--dark .card { background: rgba(255, 255, 255, 0.05); border-color: var(--line-dark); color: var(--white); }
.section--dark .card p { color: rgba(255, 255, 255, 0.72); }

/* ---------- Demo launcher (deck centerpiece) ---------- */
.launch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.launch-card {
  display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start;
  padding: 24px; border: 1px solid var(--line-dark); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05); color: var(--white);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.launch-card:hover { transform: translateY(-3px); border-color: rgba(244, 121, 41, 0.6); background: rgba(255, 255, 255, 0.08); }
.launch-card__mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; background: rgba(244, 121, 41, 0.16); color: var(--orange); }
.launch-card__mark svg { width: 26px; height: 26px; }
.launch-card h3 { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 1.16; }
.launch-card .tag { display: inline-block; margin: 4px 0 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--orange); }
.launch-card p { margin: 9px 0 0; color: rgba(255, 255, 255, 0.72); font-size: 15px; line-height: 1.4; }
.launch-card__go { margin-top: 12px; display: inline-flex; align-items: center; gap: 7px; color: var(--white); font-weight: 700; font-size: 15px; }
.launch-card__go svg { color: var(--orange); }

/* ---------- Portal-flow (closed loop) ---------- */
.portal-flow { display: grid; gap: 12px; }
.portal-flow__step { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #FAF9FC; }
.section--dark .portal-flow__step { background: rgba(255,255,255,0.05); border-color: var(--line-dark); }
.portal-flow__step b { color: var(--orange); font-family: var(--font-display); font-size: 15px; }
.portal-flow__step span { color: var(--text); font-weight: 700; }
.section--dark .portal-flow__step span { color: var(--white); }
.portal-flow__step small { color: var(--muted); font-size: 13px; text-align: right; }
.section--dark .portal-flow__step small { color: rgba(255,255,255,0.62); }

/* ---------- CTA / footer ---------- */
.cta { padding: 92px 0; background: var(--ink); color: var(--white); }
.cta__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 26px; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); padding: 46px 0; }
.cta h2 { margin: 0; font-family: var(--font-display); font-size: 42px; line-height: 1.08; max-width: 780px; }
.cta p { margin: 16px 0 0; color: rgba(255, 255, 255, 0.72); font-size: 21px; line-height: 1.3; max-width: 680px; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.54); padding: 28px 0 34px; font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 24px; }

/* ---------- Generic helpers ---------- */
.pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; }
.pill--ok { color: #BDE7D0; background: rgba(23, 138, 83, 0.16); border: 1px solid rgba(23, 138, 83, 0.34); }
.pill--warn { color: var(--amber); background: var(--amber-soft); border: 1px solid rgba(201,117,21,0.3); }
.pill--bad { color: var(--red); background: var(--red-soft); border: 1px solid rgba(192,57,43,0.3); }
.pill--muted { color: var(--muted); background: rgba(41,37,106,0.08); border: 1px solid var(--line); }
.tag-chip { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(244,121,41,0.12); color: var(--orange-dark); }

.reveal { opacity: 1; transform: none; }

/* ===========================================================================
   Responsive
   =========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
@media (max-width: 1120px) {
  .nav { display: none; }
  .hero h1 { font-size: 52px; }
  .hero-proof { grid-template-columns: repeat(2, 1fr); }
  .action-story { grid-template-columns: 1fr; }
  .data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { min-height: auto; padding-bottom: 54px; }
  .hero h1 { font-size: 42px; }
  .hero__lead, .section-head p, .cta p { font-size: 19px; }
  .section-head h2, .cta h2 { font-size: 32px; }
  .split-band, .cta__inner { grid-template-columns: 1fr; }
  .summary { position: static; }
  .launch-grid { grid-template-columns: 1fr; }
  .cta__actions { justify-content: flex-start; }
  .footer__inner { flex-direction: column; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { width: min(100% - 28px, 1180px); }
  .hero { padding-top: 104px; }
  .hero h1 { font-size: 34px; }
  .hero-proof, .ba-row, .data-grid, .grid-2 { grid-template-columns: 1fr; }
  .action-fan { min-height: auto; display: grid; gap: 12px; padding: 16px; }
  .action-fan::before, .fan-line { display: none; }
  .fan-core, .fan-card, .fan-card--one, .fan-card--two, .fan-card--three, .fan-card--four, .fan-card--five { position: static; transform: none; width: auto; min-height: auto; }
  .fan-core { width: 100%; height: auto; min-height: 92px; border-radius: 8px; }
  .portal-flow__step { grid-template-columns: 1fr; }
  .portal-flow__step small { text-align: left; }
  .section { padding: 70px 0; }
  .section-head h2, .cta h2 { font-size: 27px; }
  .launch-card { grid-template-columns: 1fr; }
}
