/* =========================================================
   AMPHRON — Fleet Intelligence
   Верстка по макету Figma (Desktop 1280 / Mobile 390)
   Bootstrap 5.3 + jQuery 3.7
   ========================================================= */

:root {
  /* Цвета из переменных Figma */
  --color-ink: #080f1b;
  --color-navy: #0a456f;       /* в Figma: --blue */
  --color-teal: #4bbba3;       /* в Figma: --color-blue */
  --color-cyan: #9fdfd0;
  --color-mint: #a3f1ce;
  --color-muted: #a8b7cc;
  --color-body: #526177;
  --color-paper: #f3f5fa;
  --color-line: #dce2ec;
  --color-dark-line: #29374b;
  --color-surface: #111e30;
  --color-white: #fff;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius-8: 7.111px;
  --radius-12: 10.667px;
  --radius-16: 14.222px;
  --radius-20: 17.778px;

  --gutter: 71.111px;          /* боковой отступ секций на 1280 */
  --section-y: 64px;
  --header-h: 92px;
}

@media (max-width: 991.98px) {
  :root {
    --gutter: 24px;
    --section-y: 48px;
    --header-h: 72px;
  }
}

/* ---------- База ---------- */
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  color: var(--color-ink);
  background: var(--color-ink);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-cyan);
  outline-offset: 3px;
}

.am-container {
  width: 100%;
  max-width: calc(1137.778px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.am-section { padding-block: var(--section-y); }

/* Фоны секций */
.bg-ink   { background: var(--color-ink); color: var(--color-white); }
.bg-navy  { background: var(--color-navy); color: var(--color-white); }
.bg-paper { background: var(--color-paper); color: var(--color-ink); }

/* ---------- Типографика ---------- */
.am-h2 {
  font-weight: 600;
  font-size: clamp(28px, 2.78vw, 35.556px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin: 0;
}
.am-lead {
  font-size: clamp(16px, 1.32vw, 16.889px);
  line-height: 1.45;
  margin: 0;
  max-width: 711px;
}
.bg-ink .am-lead,
.bg-navy .am-lead { color: var(--color-muted); }
.bg-paper .am-lead { color: var(--color-body); }
.problem .am-lead { color: var(--color-muted); }

.am-heading { display: flex; flex-direction: column; gap: 20px; }
.am-heading--tight { gap: 14.222px; }

.am-statement {
  font-weight: 500;
  font-size: 17.778px;
  line-height: 1.45;
  margin: 0;
  max-width: 995px;
}
.am-statement--lg {
  font-size: clamp(20px, 1.94vw, 24.889px);
  line-height: 1.18;
  max-width: none;
}

.am-divider { height: 1px; border: 0; margin: 0; opacity: 1; }
.bg-paper .am-divider { background: var(--color-line); }
.bg-navy .am-divider,
.bg-ink .am-divider { background: var(--color-dark-line); }

.am-stack { display: flex; flex-direction: column; gap: 32px; }

/* ---------- Кнопки ---------- */
.am-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49.778px;
  padding: 0 21.333px;
  border: 0;
  border-radius: var(--radius-8);
  font-family: var(--font);
  font-weight: 700;
  font-size: 11.85px;
  line-height: 1.45;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.am-btn--primary { background: var(--color-teal); color: var(--color-ink); min-width: 238px; }
.am-btn--primary:hover { background: var(--color-cyan); color: var(--color-ink); }
.am-btn--secondary { background: var(--color-navy); color: var(--color-white); min-width: 245px; font-size: 13.33px; line-height: 1.4; }
.am-btn--secondary:hover { background: #0d5a90; color: var(--color-white); }

/* ---------- Header ---------- */
.am-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--color-ink);
  border-bottom: 1px solid var(--color-dark-line);
}
.am-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}
.am-header__logo { flex: 0 0 200px; display: flex; }
.am-header__logo img { width: 177.778px; height: auto; }
.am-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  gap: 33px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.am-nav a {
  color: var(--color-muted);
  font-weight: 500;
  font-size: 14.222px;
  line-height: 1.45;
  text-decoration: none;
  transition: color .2s ease;
}
.am-nav a:hover { color: var(--color-white); }

.am-burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-dark-line);
  border-radius: var(--radius-8);
  position: relative;
}
.am-burger span,
.am-burger span::before,
.am-burger span::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  margin-left: -10px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform .25s ease, background-color .25s ease;
  content: "";
}
.am-burger span { top: 50%; margin-top: -1px; }
.am-burger span::before { top: -6px; left: 0; margin-left: 0; }
.am-burger span::after  { top: 6px;  left: 0; margin-left: 0; }
.am-header.is-open .am-burger span { background: transparent; }
.am-header.is-open .am-burger span::before { transform: translateY(6px) rotate(45deg); }
.am-header.is-open .am-burger span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 991.98px) {
  .am-header__logo { flex-basis: auto; }
  .am-header__logo img { width: 140px; }
  .am-burger { display: block; }
  .am-header__cta { display: none; }
  .am-header__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 16px var(--gutter) 24px;
    background: var(--color-ink);
    border-bottom: 1px solid var(--color-dark-line);
  }
  .am-header.is-open .am-header__menu { display: block; }
  .am-nav { flex-direction: column; gap: 0; }
  .am-nav a { display: block; padding: 12px 0; font-size: 16px; color: var(--color-white); }
  .am-header__menu .am-btn { width: 100%; margin-top: 12px; }
}
@media (min-width: 992px) {
  .am-header__menu { display: flex; flex: 1 1 auto; align-items: center; gap: 32px; }
  .am-header__menu .am-btn { display: none; }
}

/* ---------- 01 Hero ---------- */
.hero {
  position: relative;
  min-height: calc(720px - var(--header-h));
  overflow: hidden;
}
.hero__visual {
  position: absolute;
  top: calc(var(--header-h) * -1);
  right: 0;
  bottom: 0;
  width: 51.875%;              /* 664 / 1280 */
  background: var(--color-ink);
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 80%;
}
.hero__visual::before {        /* мягкий край фото в текст */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 53px;
  background: linear-gradient(90deg, rgba(8, 15, 27, .78), rgba(8, 15, 27, 0));
  z-index: 1;
}
.hero__visual::after {         /* затемнение под метрики */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 287px;
  background: linear-gradient(180deg, rgba(8, 15, 27, 0) 0%, rgba(8, 15, 27, .75) 38%, #080f1b 100%);
  z-index: 1;
}
.hero__metrics {
  position: absolute;
  left: 22px;
  bottom: 52px;
  z-index: 2;
  padding-left: 42px;
  border-left: 5px solid var(--color-teal);
}
.hero__metrics-row { display: flex; gap: 11px; }
.hero__metric { width: 192px; display: flex; flex-direction: column; gap: 4px; }
.hero__metric-label { font-size: 12px; line-height: 1.3; color: var(--color-muted); }
.hero__metric-value { font-weight: 600; font-size: 28px; line-height: 1.3; color: var(--color-white); }
.hero__metric-value--accent { color: var(--color-teal); }
.hero__caption {
  margin: 0;
  padding-top: 24px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  color: var(--color-white);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 135px;
  padding-bottom: 72px;
}
.hero__copy { max-width: 546px; display: flex; flex-direction: column; gap: 24px; }
.hero__title {
  margin: 0;
  font-weight: 600;
  font-size: clamp(34px, 3.75vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.hero__text {
  margin: 0;
  max-width: 480px;
  font-size: clamp(16px, 1.39vw, 17.778px);
  line-height: 1.45;
  color: var(--color-muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14.222px; }
.hero__steps {
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 338px;
}
.hero__steps li { display: flex; gap: 10.667px; align-items: flex-start; line-height: 1.45; }
.hero__steps b { width: 24.889px; flex: none; font-size: 10.667px; font-weight: 700; color: var(--color-cyan); }
.hero__steps span { font-weight: 500; font-size: 16px; }

@media (max-width: 991.98px) {
  .hero { min-height: 0; }
  .hero__content { padding-top: 40px; padding-bottom: 32px; }
  .hero__actions .am-btn { flex: 1 1 100%; min-width: 0; }
  .hero__steps { margin-top: 32px; gap: 18px; }
  .hero__visual {
    position: relative;
    top: 0;
    width: auto;
    height: 260px;
    margin: 0 var(--gutter) 40px;
    border-radius: var(--radius-20);
    overflow: hidden;
  }
  .hero__visual::before { display: none; }
  .hero__metrics { left: 16px; right: 16px; bottom: 16px; padding-left: 14px; border-left-width: 3px; }
  .hero__metrics-row { gap: 12px; }
  .hero__metric { width: auto; flex: 1 1 0; }
  .hero__metric-value { font-size: 18px; }
  .hero__caption { padding-top: 10px; font-size: 13px; }
}

/* ---------- 01b Product preview (ноутбук) ---------- */
.preview { padding: 56px 0 48px; }
.preview__title {
  margin: 0 0 32px;
  text-align: center;
  font-weight: 600;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.4;
}

/* Сцены с фиксированной «артбордной» геометрией масштабируются через JS (см. main.js → scaleStage) */
.am-stage { position: relative; width: 100%; margin-inline: auto; }
.am-stage__inner { position: absolute; top: 0; left: 0; transform-origin: 0 0; }

.laptop { max-width: 940px; aspect-ratio: 940 / 535; }
.laptop .am-stage__inner { width: 940px; height: 535px; }
.laptop__shadow {
  position: absolute; left: 28px; top: 510px; width: 884px; height: 17px;
  background: #000; opacity: .35; filter: blur(9px); border-radius: 8px;
}
.laptop__lid {
  position: absolute; left: 35px; top: 0; width: 870px; height: 519px;
  background: #223039; border: 1.5px solid #5c6e76; border-radius: 16px;
}
.laptop__bezel {
  position: absolute; left: 1.5px; top: 1.5px; width: 864px; height: 513px;
  background: #070d12; border-radius: 13px;
}
.laptop__cam {
  position: absolute; left: 430px; top: 4px; width: 3px; height: 3px;
  border-radius: 50%; background: #2d3b44;
}
.laptop__base {
  position: absolute; left: 0; top: 511px; width: 940px; height: 13px; border-radius: 2px;
  background: linear-gradient(90deg, #63737d 0%, #d1dbe3 13%, #f0f2f7 50%, #d1dbe3 87%, #63737d 100%);
}
.laptop__edge { position: absolute; left: 7px; top: 524px; width: 926px; height: 7px; background: #596a74; border-radius: 4px; }
.laptop__pad  { position: absolute; left: 403px; top: 511px; width: 134px; height: 7px; background: #76858e; border-radius: 3px; }

.screen {
  position: absolute; left: 12px; top: 11px; width: 840px; height: 492.692px;
  background: #fff; border: .673px solid #dce5e9; border-radius: 5px; overflow: hidden;
  color: #1b3b58; line-height: 1.4;
}
.screen__bar {
  height: 44.423px; background: var(--color-navy);
  display: flex; align-items: center; padding: 0 16px;
}
.screen__bar img { width: 75px; height: auto; }
.screen__crumb { margin-left: 10px; color: #fff; font-size: 10.769px; }
.screen__badge {
  margin-left: auto; width: 110.385px; height: 20.192px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-ink); color: #cde8ed; border-radius: 3.365px;
  font-weight: 500; font-size: 8.077px;
}
.screen__body { padding: 18px 19px 0; }
.screen__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.screen__h { margin: 0; font-weight: 600; font-size: 17.5px; }
.screen__sub { margin: 2px 0 0; font-size: 10.096px; color: #526a80; }
.screen__filter {
  margin-top: 6px; width: 87.5px; height: 28.269px; padding: 6px 8px;
  border: .673px solid #dce5e9; border-radius: 3.365px; font-size: 9.423px; color: #526a80;
}
.screen__kpis { display: grid; grid-template-columns: repeat(3, 258.462px); gap: 10.77px; }
.screen__kpi {
  height: 107.019px; padding: 15.48px; background: #f4f7f7;
  border: .673px solid #dce5e9; border-radius: 5.385px;
}
.screen__kpi--good { background: #e7f5ef; border-color: #b9e3d4; }
.screen__kpi-l { font-size: 10.096px; color: #526a80; }
.screen__kpi-v { margin-top: 6px; font-weight: 600; font-size: 24.231px; }
.screen__kpi--good .screen__kpi-v { color: #147c69; }
.screen__kpi-n { margin-top: 5px; font-size: 8.75px; color: #526a80; }
.screen__grid { display: grid; grid-template-columns: 527px 260px; gap: 11px; margin-top: 16px; }
.screen__table-t { margin: 0 0 12px; font-weight: 600; font-size: 13.462px; }
.screen__table { width: 527px; border-collapse: collapse; font-size: 10.096px; }
.screen__table th {
  height: 30px; padding: 0 12px; background: #f4f7f7;
  font-weight: 400; font-size: 8.75px; color: #526a80; text-align: left;
}
.screen__table td { height: 55.5px; padding: 0 12px; border-bottom: .673px solid #dce5e9; vertical-align: middle; }
.screen__table td b { display: block; font-weight: 600; font-size: 10.769px; }
.screen__table td small { display: block; margin-top: 3px; font-size: 8.75px; color: #526a80; }
.screen__table .is-good { color: #147c69; }
.screen__alert {
  margin-top: 27px; height: 197px; padding: 19.5px 15.48px 0;
  background: #f9f4ea; border: .673px solid #ebdbc1; border-radius: 5.385px;
}
.screen__alert-k { font-weight: 600; font-size: 8.077px; color: #a56513; }
.screen__alert-h { margin: 10px 0 6px; font-weight: 600; font-size: 14.808px; }
.screen__alert-p { margin: 0; font-size: 10.769px; color: #526a80; }
.screen__alert hr { margin: 12px 0; border: 0; height: .673px; background: #e4d5be; opacity: 1; }
.screen__alert-f { margin: 0; font-size: 9.423px; color: #526a80; }
.screen__alert-f b { display: block; font-weight: 600; font-size: 10.096px; color: #1b3b58; }

/* ---------- Переходы-разделители ---------- */
.am-signal {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.am-signal::before,
.am-signal::after { content: ""; flex: 1; height: 1px; background: var(--color-dark-line); }
.am-signal i {
  width: 8px; height: 8px; background: var(--color-teal); transform: rotate(45deg); flex: none;
}
@media (max-width: 991.98px) { .am-signal { height: 32px; } }

/* ---------- 02 Problem ---------- */
.problem { background: linear-gradient(180deg, var(--color-ink) 0%, var(--color-navy) 100%); color: #fff; }
.loss-card {
  height: 100%;
  display: flex; flex-direction: column; gap: 17.778px;
  padding: 21.333px 28.444px;
  background: var(--color-navy);
  border-radius: var(--radius-16);
}
.loss-card svg { width: 56.889px; height: 56.889px; }
.loss-card__t { margin: 0; font-weight: 600; font-size: 17.778px; line-height: 1.45; }
.loss-card__d { margin: 0; font-size: 14.222px; line-height: 1.45; color: var(--color-muted); }
.am-climax {
  padding: 22px 42.667px;
  background: var(--color-teal);
  color: var(--color-ink);
  border-radius: 20px;
}
.am-climax__t { margin: 0; font-weight: 600; font-size: clamp(20px, 1.88vw, 24px); line-height: 1.3; letter-spacing: -0.03em; }
.am-climax__s { margin: 0 0 8px; font-weight: 500; font-size: 16px; line-height: 1.45; }
@media (max-width: 991.98px) { .am-climax { padding: 20px 24px; } }

/* ---------- 03 Management questions ---------- */
.questions__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 435.556 / 195.556;
  object-fit: cover;
  border-radius: var(--radius-20);
  background: #cfd6e0;
}
.q-list { margin: 0; padding: 0; list-style: none; }
.q-list li {
  display: flex; gap: 14.222px; align-items: flex-start;
  padding: 21.333px 9px 21.333px 0;
  border-bottom: 1px solid var(--color-line);
}
.q-list li:first-child { padding-top: 0; }
.q-list b { width: 26.667px; flex: none; font-weight: 700; font-size: 10.667px; line-height: 1.45; color: var(--color-teal); }
.q-list span { flex: 1; font-weight: 500; font-size: 17.778px; line-height: 1.45; }
.q-list svg { width: 24.889px; height: 24.889px; flex: none; }

/* ---------- 04 Data convergence ---------- */
.convergence { padding-top: 40px; }
.convergence .am-h2,
.convergence .am-lead { text-align: center; margin-inline: auto; }
.convergence .am-h2 { max-width: 898px; }
.convergence .am-lead { max-width: 800px; color: #fff; font-size: 17.778px; }

.conv { max-width: 960px; aspect-ratio: 960 / 286; }
.conv .am-stage__inner { width: 960px; height: 286px; }
.conv__lines { position: absolute; left: 0; top: 0; width: 960px; height: 330px; }
.conv__box {
  position: absolute; width: 195px; height: 45px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 7.5px; font-weight: 500; font-size: 12.75px; line-height: 1.45;
  background: var(--color-surface); color: #fff;
}
.conv__box--out { width: 210px; left: 750px; background: #fff; color: var(--color-ink); font-weight: 600; font-size: 13.5px; }
.conv__core { position: absolute; left: 480px; top: 137px; transform: translateX(-50%); text-align: center; }
.conv__core b { display: block; font-weight: 700; font-size: 21px; line-height: 1.18; }
.conv__core span { display: block; margin-top: 12px; font-size: 9.75px; line-height: 1.45; }

/* мобильная версия схемы — вертикальный поток */
.conv-m { display: none; }
@media (max-width: 767.98px) {
  .conv { display: none; }
  .conv-m { display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .conv-m__group { width: 100%; display: grid; gap: 10px; }
  .conv-m .conv__box { position: static; width: 100%; }
  .conv-m__core {
    width: 176px; height: 176px; margin: 16px 0;
    border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .6);
    box-shadow: 0 0 0 10px rgba(163, 241, 206, .08), 0 0 0 11px rgba(163, 241, 206, .25), 0 0 0 21px rgba(163, 241, 206, .05), 0 0 0 22px rgba(163, 241, 206, .15);
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  }
  .conv-m__core b { font-size: 21px; }
  .conv-m__core span { margin-top: 8px; font-size: 11px; }
  .conv-m__arrow { width: 2px; height: 24px; background: var(--color-mint); opacity: .7; }
}

/* ---------- 05 Capabilities ---------- */
.capabilities { padding-top: 40px; padding-bottom: 56px; }
.cap-card {
  height: 100%;
  min-height: 424.444px;
  padding: 24.889px;
  background: #fff;
  border-radius: var(--radius-20);
  display: flex;
  flex-direction: column;
  gap: 17.778px;
}
.cap-card--split { justify-content: space-between; gap: 18px; }
.cap-card__t { margin: 0; font-weight: 600; font-size: clamp(20px, 1.94vw, 24.889px); line-height: 1.35; }
.cap-card__k { margin: 0; font-weight: 600; font-size: 14.222px; line-height: 1.35; color: var(--color-body); }
.cap-card__p { margin: 0; font-size: 16px; line-height: 1.35; color: var(--color-body); }
.check-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 28px; }
.check-list li { display: flex; gap: 10.667px; align-items: flex-start; font-size: 16px; line-height: 1.35; color: var(--color-body); }
.check-list svg { width: 19.556px; height: 19.556px; flex: none; }
.signal-box {
  padding: 17.778px;
  background: var(--color-navy);
  border-radius: var(--radius-12);
  display: flex; flex-direction: column; gap: 10.667px; line-height: 1.35;
}
.signal-box small { font-weight: 500; font-size: 10.667px; color: var(--color-muted); }
.signal-box strong { font-weight: 600; font-size: 16.889px; color: #fff; }
.cap-card__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 508.444 / 224;
  object-fit: cover;
  border-radius: var(--radius-12);
  background: #2b3440;
}

.lifecycle { max-width: 508.444px; aspect-ratio: 508.444 / 112; }
.lifecycle .am-stage__inner { width: 508.444px; height: 112px; }
.lifecycle svg { position: absolute; inset: 0; }
.lifecycle__step { position: absolute; width: 169.481px; transform: translateX(-50%); text-align: center; }
.lifecycle__step i {
  display: block; width: 24px; height: 24px; margin: 0 auto 6px;
  border-radius: 50%; background: var(--color-teal);
  font-style: normal; font-weight: 700; font-size: 12px; line-height: 24px; color: var(--color-ink);
}
.lifecycle__step span { font-weight: 500; font-size: 14px; }

/* ---------- 06 Actual cost ---------- */
.strike {
  margin: 0;
  font-size: 17.778px;
  line-height: 1.45;
  color: var(--color-body);
  text-decoration: line-through;
}
.equation {
  padding: 56px 21.333px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.equation__terms { display: flex; align-items: center; gap: 3px; }
.eq-term {
  width: 164.444px; height: 81.778px; padding: 17.78px 14.22px;
  background: #fff; border-radius: var(--radius-12); line-height: 1.35;
}
.eq-term b { display: block; font-weight: 600; font-size: 17.778px; }
.eq-term small { display: block; margin-top: 7px; font-weight: 500; font-size: 9.778px; color: var(--color-body); text-transform: uppercase; }
.eq-plus { width: 21.333px; text-align: center; font-size: 21.333px; color: var(--color-body); }
.eq-arrow { flex: none; width: 43px; height: 16px; }
.eq-result {
  flex: none; width: 273px; min-height: 127px; padding: 28px 18px 18px;
  background: var(--color-navy); border-radius: var(--radius-16);
  display: flex; flex-direction: column; gap: 19px; line-height: 1.35;
}
.eq-result b { font-weight: 600; font-size: 21.333px; color: #fff; }
.eq-result span { font-weight: 500; font-size: 16px; color: var(--color-mint); }

@media (max-width: 1199.98px) {
  .equation { flex-direction: column; align-items: stretch; padding: 24px 0; }
  .equation__terms { flex-wrap: wrap; gap: 8px; }
  .eq-term { flex: 1 1 calc(50% - 20px); width: auto; }
  .eq-plus { display: none; }
  .eq-arrow { align-self: center; transform: rotate(90deg); }
  .eq-result { width: 100%; }
}

/* ---------- 07 Profitability ---------- */
.profitability { padding-top: 40px; }
.metric-card {
  height: 100%;
  padding: 28.444px;
  background: var(--color-surface);
  border-radius: var(--radius-16);
  display: flex; flex-direction: column; gap: 21.333px;
}
.metric-card small { font-weight: 700; font-size: 10.667px; line-height: 1.45; color: var(--color-muted); text-transform: uppercase; }
.metric-card strong { font-weight: 600; font-size: 35.556px; line-height: 1.18; letter-spacing: -0.03em; color: #fff; }
.metric-card strong.is-mint { color: var(--color-mint); }
.am-note { margin: 0; font-size: 10.667px; line-height: 1.45; color: var(--color-muted); }

.margin-bar__total { margin: 0 0 18px; font-weight: 600; font-size: 16px; line-height: 1.45; }
.margin-bar__track {
  position: relative; height: 49.778px;
  background: #fff; border-radius: var(--radius-12); overflow: hidden;
}
.margin-bar__fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 67.93%;                               /* 98 500 / 145 000 */
  background: var(--color-teal);
  border-radius: var(--radius-12);
  transform-origin: left center;
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
.margin-bar.is-pending .margin-bar__fill { transform: scaleX(0); }
.margin-bar__v {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-weight: 700; font-size: 14.222px; line-height: 1.45; color: var(--color-ink);
}
.margin-bar__v--cost { left: 14.22px; }
.margin-bar__v--margin { left: calc(67.93% + 35px); }
.margin-bar__legend { position: relative; height: 18px; margin-top: 19px; font-size: 12.444px; line-height: 1.45; color: var(--color-muted); }
.margin-bar__legend span:last-child { position: absolute; left: calc(67.93% + 35px); color: var(--color-mint); }
@media (prefers-reduced-motion: reduce) { .margin-bar__fill { transition: none; } }

/* ---------- 08 Proactive alerts ---------- */
.radar { width: 100%; max-width: 480px; height: auto; margin-top: 8px; }
.alert-list { display: flex; flex-direction: column; gap: 10.667px; }
.alert-item {
  padding: 21.333px;
  background: var(--color-navy);
  border: .889px solid var(--color-dark-line);
  border-radius: var(--radius-16);
  display: flex; flex-direction: column; gap: 7.111px; line-height: 1.4;
}
.alert-item b { font-weight: 600; font-size: 15.11px; color: #fff; }
.alert-item span { font-size: 11.56px; color: var(--color-muted); }

/* ---------- 09 Forecast ---------- */
.fc-card {
  height: 100%;
  padding: 28.444px;
  background: var(--color-surface);
  border-radius: var(--radius-16);
}
.fc-card__k { margin: 0 0 21.333px; font-weight: 700; font-size: 10.667px; line-height: 1.45; color: var(--color-cyan); text-transform: uppercase; }
.fc-card ul { margin: 0; padding: 0; list-style: none; }
.fc-card li {
  padding: 21.333px 0;
  border-top: 1px solid var(--color-dark-line);
  font-size: 17.778px; line-height: 1.45; color: #fff;
}
.fc-card li:first-child { padding-top: 0; border-top: 0; }
.fc-card li:last-child { padding-bottom: 0; }
.fc-card--scenarios li { font-weight: 500; }

/* ---------- 10 Product dashboard ---------- */
.product { padding-top: 40px; padding-bottom: 56px; }
.dash {
  padding: 28.444px;
  background: var(--color-navy);
  border: .889px solid var(--color-dark-line);
  border-radius: 21.333px;
  color: #fff;
  display: flex; flex-direction: column; gap: 21.333px;
}
.dash__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 21px; }
.dash__bar img { width: 155px; height: auto; }
.dash__bar b { font-weight: 600; font-size: 16px; line-height: 1.45; }
.dash__bar small { justify-self: end; font-size: 10.667px; color: var(--color-muted); }
.dash__kpi {
  height: 100%;
  padding: 17.778px;
  background: var(--color-surface);
  border-radius: var(--radius-8);
  display: flex; flex-direction: column; gap: 10.667px;
}
.dash__kpi small { font-size: 11.556px; line-height: 1.45; color: var(--color-muted); }
.dash__kpi strong { font-weight: 600; font-size: 24.889px; line-height: 1.18; }
.dash__kpi span { font-size: 10.667px; line-height: 1.45; color: var(--color-cyan); }
.dash__panel {
  height: 100%;
  min-height: 256px;
  padding: 20px 22px;
  background: var(--color-surface);
  border-radius: var(--radius-16);
}
.dash__panel-t { margin: 0; font-weight: 600; font-size: 16px; line-height: 1.45; }
.trend { position: relative; height: 160px; margin-top: 16px; }
.trend__grid { position: absolute; left: 0; right: 0; height: 1px; background: var(--color-dark-line); }
.trend svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.trend__months {
  display: flex; gap: 22px; margin-top: 10px;
  font-size: 8.889px; line-height: 1.45; color: var(--color-muted);
}
.donut-wrap { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.donut { position: relative; width: 166px; height: 166px; flex: none; margin-left: -8px; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut b {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 500; font-size: 23px;
}
.donut-legend { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 19px; }
.donut-legend li { display: flex; align-items: center; gap: 11px; font-weight: 500; font-size: 13px; color: var(--color-muted); }
.donut-legend i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
@media (max-width: 575.98px) {
  .dash { padding: 18px; }
  .dash__bar { grid-template-columns: 1fr; gap: 6px; }
  .dash__bar small { justify-self: start; }
  .donut-wrap { flex-direction: column; align-items: flex-start; }
  .donut { margin-left: 0; }
}

/* ---------- 11 Management cycle ---------- */
.cycle-title { text-align: center; }
.cycle {
  position: relative;
  padding: 28px 12px 30px;
  background: var(--color-navy);
  border-radius: 24px;
  color: #fff;
  overflow: hidden;
}
.cycle__logo { display: block; width: 128px; height: auto; margin: 0 auto 28px; }
.cycle__rule { height: 1px; margin: 0 12px 10px; background: var(--color-dark-line); }
.cycle__track { position: relative; max-width: 1113.778px; aspect-ratio: 1113.778 / 220; }
.cycle__track .am-stage__inner { width: 1113.778px; height: 220px; }
.cycle__track .am-stage__inner > svg { position: absolute; inset: 0; }
.cycle__step { position: absolute; top: 0; width: 142.54px; transform: translateX(-50%); text-align: center; }
.cycle__num { display: block; font-weight: 500; font-size: 11px; line-height: 1.35; color: var(--color-cyan); }
.cycle__icon {
  width: 56px; height: 56px; margin: 9px auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-dark-line);
  border-radius: 16px;
}
.cycle__icon svg { width: 26px; height: 26px; }
.cycle__icon--accent { background: var(--color-teal); border-color: var(--color-teal); }
.cycle__name { font-weight: 500; font-size: 17px; line-height: 1.35; }
.cycle__note { margin: 2px 12px 0; text-align: center; font-size: 14px; line-height: 1.35; color: var(--color-muted); }

.cycle-m { display: none; }
@media (max-width: 991.98px) {
  .cycle__track { display: none; }
  .cycle { padding-inline: 20px; }
  .cycle__rule { margin-inline: 0; }
  .cycle__note { margin-top: 16px; }
  .cycle-m { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
  .cycle-m li { position: relative; display: flex; align-items: center; gap: 16px; padding: 10px 0; }
  .cycle-m li:not(:last-child)::after {
    content: ""; position: absolute; left: 28px; top: 66px; bottom: -10px; width: 1px; background: var(--color-teal);
  }
  .cycle-m .cycle__icon { margin: 0; flex: none; }
  .cycle-m .cycle__num { width: 20px; }
  .cycle-m .cycle__name { text-align: left; }
}

/* ---------- 12 Results ---------- */
.results { padding-top: 40px; }
.results-list { border-top: 1px solid var(--color-dark-line); }
.result-row {
  display: grid;
  grid-template-columns: 88.889px 462.222px 1fr;
  gap: 35.556px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-dark-line);
}
.result-row:last-child { border-bottom: 0; padding-bottom: 0; }
.result-row__n { font-weight: 600; font-size: 24px; line-height: 1.3; letter-spacing: -0.03em; color: var(--color-cyan); }
.result-row__t { margin: 0; font-weight: 600; font-size: 20px; line-height: 1.35; color: #fff; }
.result-row__d { margin: 0; font-size: 16px; line-height: 1.45; color: var(--color-muted); }
@media (max-width: 991.98px) {
  .result-row { grid-template-columns: 48px 1fr; gap: 8px 16px; padding: 20px 0; }
  .result-row__d { grid-column: 2; }
}

/* ---------- Двухколоночные раскладки с фиксированной левой колонкой (как в макете) ---------- */
.am-split { display: flex; flex-direction: column; gap: 32px; }
.am-split__aside { display: flex; flex-direction: column; gap: 21.333px; }
.am-split__main { flex: 1 1 auto; min-width: 0; }
@media (min-width: 992px) {
  .am-split { flex-direction: row; align-items: flex-start; gap: 71.111px; }
  .am-split__aside { flex: 0 0 435.556px; }
  .am-split--480 .am-split__aside { flex-basis: 480px; gap: 14.222px; }
  .fc-col { flex: 0 0 auto; width: calc(377px + var(--bs-gutter-x)); }
  .dash-col-chart { flex: 0 0 auto; width: calc(670.222px + var(--bs-gutter-x)); }
}

/* ---------- Мобильные доработки ---------- */
@media (max-width: 575.98px) {
  .dash__kpi strong { font-size: 19px; }

  /* Жизненный цикл запчасти: вместо масштабирования — сетка 3×2 */
  .lifecycle { aspect-ratio: auto; }
  .lifecycle .am-stage__inner { position: static; width: auto; height: auto; transform: none !important;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; }
  .lifecycle svg { display: none; }
  .lifecycle__step { position: static; width: auto; transform: none; }
  .lifecycle__step span { font-size: 13px; }
  .lifecycle__step:nth-of-type(4) { order: 6; }
  .lifecycle__step:nth-of-type(5) { order: 5; }
  .lifecycle__step:nth-of-type(6) { order: 4; }
}

/* ---------- 13 Integrations ---------- */
.int-card {
  height: 100%;
  padding: 28.444px;
  background: #fff;
  border-radius: var(--radius-16);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.45;
  color: var(--color-ink);
}
.int-meaning {
  padding: 28.444px;
  background: var(--color-navy);
  border-radius: 21.333px;
  display: flex;
  flex-direction: column;
  gap: 21.333px;
}
.int-meaning__t { margin: 0; font-weight: 600; font-size: clamp(20px, 1.94vw, 24.889px); line-height: 1.18; color: #fff; }
.int-meaning__d { margin: 0; font-size: 17.778px; line-height: 1.45; color: var(--color-cyan); }
@media (max-width: 991.98px) {
  .int-card, .int-meaning { padding: 22px; }
  .int-meaning__d { font-size: 16px; }
}

/* ---------- 14 Demo CTA ---------- */
.demo { padding-top: 40px; }
.demo .am-lead { font-size: 17.778px; }
.demo__action { margin-top: 6px; }
.demo-steps {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.demo-steps li { display: flex; flex-direction: column; gap: 16px; }
.demo-steps b { font-weight: 700; font-size: 10.667px; line-height: 1.45; color: var(--color-cyan); }
.demo-steps span { font-size: 17.778px; line-height: 1.45; color: #fff; }
.demo__divider { height: 1px; margin: 3px 0 8px; border: 0; opacity: 1; background: rgba(168, 183, 204, .45); }
.demo .am-statement { color: #fff; }
@media (max-width: 767.98px) {
  .demo-steps { grid-template-columns: 1fr; gap: 18px; margin-top: 0; }
  .demo-steps li { flex-direction: row; align-items: baseline; gap: 14px; }
  .demo-steps b { width: 20px; flex: none; }
  .demo__action .am-btn { width: 100%; }
}

/* ---------- 15 Footer ---------- */
.am-footer { padding: 64px 0 32px; }
.am-footer__top {
  display: grid;
  grid-template-columns: 481px 408px 1fr;
  align-items: start;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--color-dark-line);
}
.am-footer__brand img { width: 177.778px; height: auto; }
.am-footer__brand p { margin: 16px 0 0; font-size: 12.444px; line-height: 1.45; color: var(--color-muted); }
.am-footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 2px; }
.am-footer__q { margin: 0; font-weight: 500; font-size: 16px; line-height: 1.45; color: #fff; }
.am-footer__phone { font-weight: 500; font-size: 19.556px; line-height: 1.35; color: #fff; text-decoration: none; }
.am-footer__mail { font-size: 17.778px; line-height: 1.35; color: var(--color-mint); text-decoration: none; }
.am-footer__phone:hover,
.am-footer__mail:hover { color: var(--color-cyan); }
.am-footer__nav ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.am-footer__nav a,
.am-footer__bottom a { font-size: 14.222px; line-height: 1.45; color: var(--color-muted); text-decoration: none; transition: color .2s ease; }
.am-footer__nav a:hover,
.am-footer__bottom a:hover { color: #fff; }
.am-footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding-top: 36px;
  font-size: 11.556px;
  line-height: 1.45;
  color: var(--color-muted);
}
.am-footer__bottom a { font-size: 11.556px; margin-right: 143px; }

@media (max-width: 1199.98px) {
  .am-footer__top { grid-template-columns: 1.4fr 1fr auto; gap: 32px; }
  .am-footer__bottom a { margin-right: 0; }
}
@media (max-width: 767.98px) {
  .am-footer { padding: 48px 0 28px; }
  .am-footer__top { grid-template-columns: 1fr; gap: 32px; padding-bottom: 28px; }
  .am-footer__bottom { grid-template-columns: 1fr; gap: 10px; padding-top: 24px; }
}
