/* ==========================================================================
   Главный Бухгалтер — стили макета
   Палитра: кислотный лайм + чёрный + светло-серая бумага
   ========================================================================== */

:root {
  --lime: #C9F24C;
  --lime-hi: #D8F87E;
  --lime-lo: #B2DC2E;
  --black: #0B0B0B;
  --ink: #101010;
  --grey: #EFEFED;
  --grey-2: #E5E5E1;
  --white: #FFFFFF;
  --lilac: #DCD8FC;

  --text: #1A1A1A;
  --muted: #6B6B6B;
  --line: #E2E2DE;

  /* на тёмных секциях */
  --d-text: #F2F2F0;
  --d-muted: #9C9C98;
  --d-line: #262624;
  --d-card: #161614;

  --ok: #2E7D4F;
  --ok-bg: #E4F3E9;
  --warn: #9A6B00;
  --warn-bg: #FBF0D6;
  --crit: #B23227;
  --crit-bg: #FAE6E4;

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --r-pill: 999px;
  --container: 1240px;
  --gutter: 24px;
}

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

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--grey);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4 {
  margin: 0; color: var(--ink); font-weight: 800;
  line-height: 1.06; letter-spacing: -0.035em;
}
h1 { font-size: clamp(36px, 5vw, 64px); }
h2 { font-size: clamp(30px, 3.8vw, 48px); }
h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; }
h4 { font-size: 17px; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

mark {
  background: var(--lilac); color: var(--black);
  padding: .04em .16em; border-radius: 6px; box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
/* Заголовок с подсветкой: фон строки выше текста, иначе строки наезжают */
h1.has-mark { line-height: 1.16; }
h2.has-mark { line-height: 1.22; }

:focus-visible { outline: 3px solid var(--lime-lo); outline-offset: 3px; border-radius: 4px; }
.section--dark :focus-visible { outline-color: var(--lime); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

/* Плейсхолдеры */
.todo { border-radius: 4px; }
body.show-todos .todo { outline: 2px dashed #E0218A; outline-offset: 2px; background: rgba(224, 33, 138, .08); }

/* --------------------------------------------------------------------------
   Кнопки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--r-pill);
  border: 1.5px solid transparent; cursor: pointer;
  font-weight: 700; font-size: 16px; line-height: 1.1; letter-spacing: -0.01em;
  white-space: nowrap; text-align: center;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--lime); color: var(--black); }
.btn--primary:hover { background: var(--lime-hi); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: #262624; }
.btn--secondary { background: transparent; color: var(--ink); border-color: #C9C9C4; }
.btn--secondary:hover { border-color: var(--ink); background: rgba(0,0,0,.03); }
.section--dark .btn--secondary { color: var(--d-text); border-color: #3A3A38; }
.section--dark .btn--secondary:hover { border-color: var(--lime); color: var(--lime); background: transparent; }
.btn--small { padding: 11px 18px; font-size: 15px; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   Шапка
   -------------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(239, 239, 237, .85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -0.03em; font-size: 17px; white-space: nowrap; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--black); color: var(--lime);
  display: grid; place-items: center; font-weight: 800; font-size: 13px; letter-spacing: 0;
}
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { font-size: 14px; font-weight: 600; color: #4A4A48; white-space: nowrap; transition: color 150ms ease; }
.nav a:hover { color: var(--ink); }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1.5px solid #C9C9C4;
  border-radius: var(--r-pill); padding: 9px 16px; cursor: pointer; font-weight: 600;
}

/* --------------------------------------------------------------------------
   Секции
   -------------------------------------------------------------------------- */
.section { padding: 104px 0; }
.section--surface { background: var(--white); }
.section--dark { background: var(--black); color: var(--d-text); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--d-text); }
.section--dark .deck { color: var(--d-muted); }

.section__head { display: grid; grid-template-columns: 6fr 6fr; gap: 48px; align-items: end; margin-bottom: 52px; }
.section__head h2 { max-width: 15ch; }
.section__head .deck { font-size: 19px; color: var(--muted); max-width: 52ch; }
.section__head--single { grid-template-columns: 1fr; }
.section__head--single h2 { max-width: 22ch; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding: 76px 0 84px; }
.hero h1 { max-width: 20ch; }
.hero .deck { font-size: 19px; color: #3D3D3B; max-width: 62ch; margin-top: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.hero__facts > div {
  display: inline-flex; align-items: baseline; gap: 7px;
  background: var(--white); border-radius: var(--r-pill); padding: 10px 18px; font-size: 14.5px; color: var(--muted);
}
.hero__facts strong { color: var(--ink); font-weight: 800; }

/* --------------------------------------------------------------------------
   Шкала масштаба
   -------------------------------------------------------------------------- */
.scale { margin-top: 64px; }
.scale__caption { font-size: 15px; color: var(--muted); margin-bottom: 22px; }
.scale__track { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); }
.scale__track::before { content: ""; position: absolute; left: 10%; right: 10%; top: 10px; height: 2px; background: var(--grey-2); }
.scale__stop {
  position: relative; background: none; border: 0; padding: 0 8px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; color: var(--muted);
}
.scale__dot {
  width: 22px; height: 22px; border-radius: 50%; background: var(--grey);
  border: 2px solid var(--grey-2); display: grid; place-items: center;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}
.scale__dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: transparent; transition: background-color 180ms ease; }
.scale__stop:hover .scale__dot { border-color: var(--ink); }
.scale__stop.is-active { color: var(--ink); }
.scale__stop.is-active .scale__dot { border-color: var(--black); background: var(--lime); transform: scale(1.18); }
.scale__stop.is-active .scale__dot::after { background: var(--black); }
.scale__label { font-weight: 700; font-size: 15px; line-height: 1.25; letter-spacing: -0.015em; }
.scale__sub { font-size: 13px; color: var(--muted); }

.scale__panel { margin-top: 30px; display: grid; grid-template-columns: 1.15fr 1.15fr .85fr; gap: 12px; }
.scale__col { background: var(--white); border-radius: var(--r-lg); padding: 30px 30px 32px; }
.scale__col:last-child { background: var(--lime); display: flex; flex-direction: column; }
.scale__col h3 { font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: .01em; text-transform: none; margin-bottom: 16px; }
.scale__col:last-child h3 { color: rgba(11,11,11,.62); }
.scale__col ul li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.scale__col ul li:first-child { border-top: 0; padding-top: 0; }
.scale__price { font-size: clamp(26px, 2.4vw, 34px); font-weight: 800; color: var(--black); letter-spacing: -0.035em; line-height: 1.05; }
.scale__pricenote { color: rgba(11,11,11,.66); font-size: 14px; margin: 12px 0 auto; padding-bottom: 20px; }
.scale__col:last-child .btn--secondary { border-color: rgba(11,11,11,.3); color: var(--black); }
.scale__col:last-child .btn--secondary:hover { border-color: var(--black); background: rgba(11,11,11,.06); }
.scale__panel.is-switching .scale__col > *:not(h3) { opacity: 0; }
.scale__col > * { transition: opacity 140ms ease; }

/* --------------------------------------------------------------------------
   Карта компетенций
   -------------------------------------------------------------------------- */
.legend { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.legend span { display: inline-flex; align-items: center; gap: 9px; }
.legend em { font-style: normal; }

.matrix-wrap { overflow-x: auto; border-radius: var(--r-lg); background: var(--grey); padding: 8px; }
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 900px; }
.matrix th, .matrix td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.matrix th:first-child, .matrix td:first-child { text-align: left; position: sticky; left: 0; background: var(--grey); z-index: 1; min-width: 320px; }
.matrix thead th {
  position: sticky; top: 76px; background: var(--grey); z-index: 2;
  font-weight: 700; font-size: 13px; color: var(--muted); padding: 18px 14px; border-bottom: 2px solid var(--grey-2);
}
.matrix thead th:first-child { z-index: 3; }
.matrix thead th strong { display: block; color: var(--ink); font-weight: 800; font-size: 15px; letter-spacing: -0.02em; }
.matrix thead th span { font-weight: 500; }
.matrix .group td { background: transparent; font-weight: 800; color: var(--ink); font-size: 15px; padding: 24px 14px 10px; text-align: left; letter-spacing: -0.02em; border-bottom: 1px solid var(--grey-2); }
.matrix tbody tr:last-child td { border-bottom: 0; }
.matrix td.row-label { font-size: 15px; }
.matrix th.is-active, .matrix td.is-active { background: var(--lime); }
.matrix th.is-active { border-radius: var(--r-md) var(--r-md) 0 0; }
.matrix tbody tr:last-child td.is-active { border-radius: 0 0 var(--r-md) var(--r-md); }
.matrix th.is-active strong, .matrix th.is-active span { color: var(--black); }

.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; }
.dot--full { background: var(--ink); }
.dot--half { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); border: 1.5px solid var(--ink); box-sizing: border-box; }
.dot--none { width: 12px; height: 2px; border-radius: 1px; background: #BFBFBA; }

.matrix-seg.field { display: none; margin-bottom: 18px; max-width: 460px; }
.matrix-note { margin-top: 20px; font-size: 14.5px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Отрасли — бенто
   -------------------------------------------------------------------------- */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.industry { background: var(--white); border-radius: var(--r-lg); padding: 28px 26px 30px; }
.industry h3 { font-size: 19px; margin-bottom: 12px; }
.industry p { font-size: 15px; color: var(--muted); }
.industry:nth-child(2) { background: var(--lime); }
.industry:nth-child(2) p { color: rgba(11,11,11,.7); }
.industry:nth-child(5) { background: var(--black); }
.industry:nth-child(5) h3 { color: var(--d-text); }
.industry:nth-child(5) p { color: var(--d-muted); }

/* --------------------------------------------------------------------------
   Как работаем
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: step; }
.step { background: var(--grey); border-radius: var(--r-lg); padding: 28px 26px 30px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 20px;
  border-radius: 50%; background: var(--lime); color: var(--black); font-weight: 800; font-size: 15px;
}
.step h3 { margin-bottom: 12px; }
.step p { font-size: 15.5px; }
.step__meta { margin-top: 14px; font-size: 14px; color: var(--muted); }

.deadlines {
  margin-top: 12px; background: var(--black); border-radius: var(--r-lg); padding: 34px 36px;
  display: grid; grid-template-columns: 1fr 2fr; gap: 44px; align-items: start; color: var(--d-text);
}
.deadlines h3 { color: var(--d-text); margin-bottom: 10px; }
.deadlines > div > p { font-size: 15px; color: var(--d-muted); }
.deadlines table { width: 100%; border-collapse: collapse; font-size: 15px; }
.deadlines td { padding: 13px 0; border-top: 1px solid var(--d-line); vertical-align: top; }
.deadlines tr:first-child td { border-top: 0; padding-top: 0; }
.deadlines td:first-child { width: 210px; color: var(--d-text); font-weight: 600; padding-right: 16px; }
.deadlines td:last-child { text-align: right; white-space: nowrap; padding-left: 16px; }

.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.status--ok { color: var(--lime); }
.status--warn { color: #E8B33C; }
.status--crit { color: #E8695C; }
.status--muted { color: var(--d-muted); }

/* --------------------------------------------------------------------------
   Финансовый пульс
   -------------------------------------------------------------------------- */
.pulse { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.pulse__intro .deck { font-size: 19px; color: var(--d-muted); margin-top: 18px; max-width: 44ch; }
.pulse__intro ul { margin-top: 30px; }
.pulse__intro li { padding: 13px 0; border-top: 1px solid var(--d-line); font-size: 15.5px; color: var(--d-text); }

.quiz { background: var(--white); border-radius: var(--r-lg); padding: 36px; color: var(--text); }
.quiz__progress { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.quiz__bar { height: 4px; background: var(--grey-2); border-radius: 2px; overflow: hidden; margin-bottom: 30px; }
.quiz__bar i { display: block; height: 100%; background: var(--lime-lo); width: 0; transition: width 260ms ease; }
.quiz__q { font-size: 23px; font-weight: 800; color: var(--ink); letter-spacing: -0.025em; margin-bottom: 22px; line-height: 1.2; }
.quiz__options { display: grid; gap: 10px; }
.quiz__opt {
  text-align: left; background: #F4F4F2; border: 1.5px solid transparent; border-radius: var(--r-md);
  padding: 16px 18px; cursor: pointer; font-size: 16px; font-weight: 500;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.quiz__opt:hover { border-color: var(--black); background: var(--lime); }
.quiz__nav { display: flex; justify-content: space-between; margin-top: 24px; }
.quiz__back { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; font-size: 15px; font-weight: 600; }
.quiz__back:hover { color: var(--ink); }
.quiz__back[disabled] { visibility: hidden; }

.result__title { font-size: 23px; font-weight: 800; color: var(--ink); letter-spacing: -0.025em; margin-bottom: 6px; }
.result__sub { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.result__list { display: grid; gap: 10px; }
.result__item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: var(--r-md); }
.result__item strong { display: block; color: var(--ink); font-weight: 700; font-size: 16px; }
.result__item span { font-size: 14px; color: var(--muted); }
.result__item--ok { background: var(--ok-bg); }
.result__item--warn { background: var(--warn-bg); }
.result__item--crit { background: var(--crit-bg); }
.result__item .status--ok { color: var(--ok); }
.result__item .status--warn { color: var(--warn); }
.result__item .status--crit { color: var(--crit); }
.result__actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 26px; }
.result__actions .btn--primary { background: var(--black); color: var(--white); }
.result__actions .btn--primary:hover { background: #262624; }
.result__note { font-size: 14px; color: var(--muted); margin-top: 24px; }

/* --------------------------------------------------------------------------
   Цифры и кейсы
   -------------------------------------------------------------------------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.number { background: var(--white); border-radius: var(--r-lg); padding: 30px 26px; }
.number:nth-child(2) { background: var(--lime); }
.number:nth-child(3) { background: var(--black); }
.number:nth-child(3) strong { color: var(--d-text); }
.number:nth-child(3) span { color: var(--d-muted); }
.number strong { display: block; font-size: clamp(38px, 4vw, 54px); font-weight: 800; color: var(--ink); letter-spacing: -0.045em; line-height: 1; }
.number span { display: block; margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.number:nth-child(2) span { color: rgba(11,11,11,.68); }

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.case { background: var(--white); border-radius: var(--r-lg); padding: 30px 28px; display: flex; flex-direction: column; gap: 14px; }
.case__seg { font-size: 13px; font-weight: 700; display: inline-block; align-self: flex-start; background: var(--grey); border-radius: var(--r-pill); padding: 7px 14px; }
.case h3 { font-size: 20px; }
.case p { font-size: 15.5px; color: var(--muted); }
.case dl { margin: auto 0 0; padding-top: 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 15px; }
.case dt { color: var(--muted); }
.case dd { margin: 0; color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   Команда
   -------------------------------------------------------------------------- */
.team { display: grid; grid-template-columns: 5fr 7fr; gap: 52px; align-items: start; }
.lead { display: grid; grid-template-columns: 170px 1fr; gap: 26px; align-items: start; }
.lead__photo {
  aspect-ratio: 4 / 5; border-radius: var(--r-lg); background: var(--lime);
  display: grid; place-items: center; color: rgba(11,11,11,.55); font-weight: 700; font-size: 14px; text-align: center; padding: 14px;
}
.lead h3 { font-size: 24px; margin-bottom: 5px; }
.lead .role { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.lead p { font-size: 15.5px; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-item { background: var(--grey); border-radius: var(--r-md); padding: 22px 22px 24px; }
.role-item h4 { margin-bottom: 8px; }
.role-item p { font-size: 14.5px; color: var(--muted); }
.team__note { grid-column: 1 / -1; font-size: 15px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Стоимость: формула, калькулятор, тарифы
   -------------------------------------------------------------------------- */
.formula { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 28px; }
.formula__item {
  background: var(--d-card); border: 1px solid var(--d-line); color: var(--d-text);
  border-radius: var(--r-pill); padding: 11px 20px; font-size: 15px; font-weight: 600;
}
.formula__plus { color: var(--lime); font-weight: 800; font-size: 18px; }

.calc { display: grid; grid-template-columns: 7fr 5fr; gap: 12px; align-items: start; }
.calc__form { background: var(--d-card); border-radius: var(--r-lg); padding: 34px 36px; display: grid; gap: 34px; }
.calc__group h3 { font-size: 18px; margin-bottom: 6px; }
.calc__hint { font-size: 14px; color: var(--d-muted); margin-bottom: 18px; }

.calc__form .field label { color: var(--d-muted); }
.calc__form .field select, .calc__form select, .calc__form input[type="number"] {
  font: inherit; font-size: 16px; padding: 13px 15px; border-radius: var(--r-sm);
  border: 1.5px solid #333330; background: #0F0F0E; color: var(--d-text); width: 100%;
}
.calc__form .field select:focus, .calc__form select:focus, .calc__form input:focus { border-color: var(--lime); outline: none; }

.calc__vars { display: grid; gap: 10px; }
.calc__row { display: grid; grid-template-columns: 1fr 108px; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--d-line); }
.calc__row:first-child { border-top: 0; padding-top: 0; }
.calc__row label { display: grid; gap: 3px; cursor: pointer; }
.calc__rowname { font-size: 15.5px; font-weight: 600; color: var(--d-text); }
.calc__rowprice { font-size: 13.5px; color: var(--d-muted); white-space: nowrap; }
.calc__rowhint { font-size: 13.5px; color: var(--d-muted); }

.calc__addons { display: grid; gap: 8px; }
.calc__addon {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: var(--r-md); border: 1.5px solid var(--d-line); cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.calc__addon:hover { border-color: #3D3D3A; }
.calc__addon:has(input:checked) { border-color: var(--lime); background: rgba(201,242,76,.07); }
.calc__addon input { width: 20px; height: 20px; accent-color: var(--lime-lo); cursor: pointer; }
.calc__addontext { display: grid; gap: 3px; }

.calc__result { position: relative; }
.calc__sticky { position: sticky; top: 96px; background: var(--lime); color: var(--black); border-radius: var(--r-lg); padding: 34px 32px 32px; }
.calc__label { font-size: 14px; font-weight: 700; color: rgba(11,11,11,.62); }
.calc__sum { font-size: clamp(40px, 4.4vw, 58px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.05; margin: 8px 0 24px; }
.calc__breakdown { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 0 0 26px; font-size: 15px; padding-top: 22px; border-top: 1.5px solid rgba(11,11,11,.18); }
.calc__breakdown dt { color: rgba(11,11,11,.68); }
.calc__breakdown dd { margin: 0; font-weight: 700; text-align: right; }
.calc__note { font-size: 13.5px; color: rgba(11,11,11,.66); margin-top: 18px; }

.rates { margin-top: 12px; background: var(--d-card); border-radius: var(--r-lg); padding: 4px 36px; }
.rates summary { cursor: pointer; list-style: none; padding: 26px 0; font-size: 17px; font-weight: 700; position: relative; }
.rates summary::-webkit-details-marker { display: none; }
.rates summary::after { content: "+"; position: absolute; right: 0; top: 20px; font-size: 26px; font-weight: 400; color: var(--lime); transition: transform 180ms ease; }
.rates[open] summary::after { transform: rotate(45deg); }
.rates__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 48px; padding: 8px 0 36px; }
.rates__block h3 { font-size: 17px; margin-bottom: 4px; }
.rates__note { font-size: 13.5px; color: var(--d-muted); margin-bottom: 14px; }
.rates__table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rates__table th { text-align: left; font-weight: 600; font-size: 13px; color: var(--d-muted); padding: 0 12px 10px 0; border-bottom: 1px solid var(--d-line); }
.rates__table th:last-child, .rates__table td:last-child { text-align: right; padding-right: 0; }
.rates__table td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--d-line); vertical-align: top; color: var(--d-text); }
.rates__table tr:last-child td { border-bottom: 0; }
.rates__num { white-space: nowrap; color: var(--d-muted) !important; }
.rates__table td.rates__num:last-child { color: var(--d-text) !important; font-weight: 700; }

.pricing-note { margin-top: 24px; font-size: 14.5px; color: var(--d-muted); max-width: 84ch; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--grey-2); }
.faq details:last-child { border-bottom: 1px solid var(--grey-2); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 48px 24px 0; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  background: var(--white); font-size: 20px; font-weight: 400; transition: transform 180ms ease, background-color 180ms ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--lime); }
.faq details p { padding: 0 0 26px; font-size: 16px; max-width: 72ch; color: var(--muted); }

/* --------------------------------------------------------------------------
   Заявка
   -------------------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.contact__intro .deck { font-size: 19px; color: var(--muted); margin-top: 18px; max-width: 44ch; }
.contact__intro ul { margin-top: 30px; }
.contact__intro li { padding: 13px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.contact__details { margin-top: 36px; display: grid; gap: 16px; font-size: 16px; }
.contact__details a, .contact__details b { color: var(--ink); font-weight: 700; }
.contact__details a:hover { color: var(--lime-lo); }
.contact__details span { display: block; color: var(--muted); font-size: 14px; font-weight: 400; }

.form { background: var(--grey); border-radius: var(--r-lg); padding: 36px; display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 14px 16px; border: 1.5px solid var(--grey-2); border-radius: var(--r-sm);
  background: var(--white); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--black); }
.field textarea { min-height: 104px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--black); }
.consent a { text-decoration: underline; }
.form__sent { display: none; padding: 16px 18px; background: var(--lime); border-radius: var(--r-md); color: var(--black); font-weight: 700; }
.form.is-sent .form__sent { display: block; }
.form.is-sent .field,
.form.is-sent .form__row,
.form.is-sent .consent,
.form.is-sent button[type="submit"] { display: none; }

/* --------------------------------------------------------------------------
   Подвал
   -------------------------------------------------------------------------- */
.footer { background: var(--black); color: var(--d-muted); padding: 60px 0 44px; font-size: 14px; }
.footer .logo { color: var(--d-text); }
.footer .logo__mark { background: var(--lime); color: var(--black); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; align-items: center; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--d-line); }
.footer a:hover { color: var(--lime); }
.footer details { margin-top: 24px; }
.footer summary { cursor: pointer; color: var(--lime); font-weight: 600; }
.footer .req { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 40px; margin-top: 16px; max-width: 780px; }
.footer .req span { display: block; color: var(--d-muted); font-size: 13px; }
.footer .req b { color: var(--d-text); font-weight: 500; }

/* --------------------------------------------------------------------------
   Переключатель заглушек (служебное)
   -------------------------------------------------------------------------- */
.todo-toggle {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; font-size: 13px; font-weight: 700; padding: 10px 16px;
  background: var(--black); color: var(--lime); border: 0; border-radius: var(--r-pill); cursor: pointer; opacity: .9;
}
.todo-toggle:hover { opacity: 1; }

/* --------------------------------------------------------------------------
   Адаптив
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0;
    background: var(--grey); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 18px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-top: 1px solid var(--line); font-size: 16px; }
  .nav-toggle { display: inline-block; }
  .header .btn { display: none; }
}

@media (max-width: 1100px) {
  .industries { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .cases { grid-template-columns: 1fr; }
  .team, .pulse, .contact, .calc { grid-template-columns: 1fr; gap: 36px; }
  .calc__sticky { position: static; }
  .rates__grid { grid-template-columns: 1fr; }
  .section__head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .section__head h2 { max-width: 20ch; }
  .scale__panel { grid-template-columns: 1fr 1fr; }
  .scale__col:last-child { grid-column: 1 / -1; }
  .deadlines { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --r-lg: 22px; }
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .hero { padding: 40px 0 60px; }
  .hero .deck { font-size: 17px; }
  .header__inner { height: 64px; }
  .scale__track { grid-template-columns: 1fr; }
  .scale__track::before { left: 10px; right: auto; top: 14px; bottom: 14px; width: 2px; height: auto; }
  .scale__stop { display: grid; grid-template-columns: 22px 1fr; column-gap: 16px; row-gap: 2px; text-align: left; padding: 11px 0; justify-items: start; }
  .scale__stop .scale__dot { grid-row: 1 / span 2; }
  .scale__label, .scale__sub { grid-column: 2; }
  .scale__panel { grid-template-columns: 1fr; }
  .scale__col { padding: 24px 22px; }

  .matrix-seg.field { display: grid; }
  .matrix-wrap { padding: 4px; }
  .matrix { min-width: 0; }
  .matrix th:first-child, .matrix td:first-child { min-width: 0; position: static; }
  .matrix thead th { top: 0; position: static; }
  .matrix th[data-seg]:not(.is-active), .matrix td[data-seg]:not(.is-active) { display: none; }
  .matrix th.is-active, .matrix td.is-active { width: 92px; }

  .industries, .steps, .numbers { grid-template-columns: 1fr; }
  .deadlines { padding: 24px 22px; }
  .deadlines td { display: block; }
  .deadlines td:first-child { width: auto; padding-bottom: 2px; font-size: 14px; }
  .deadlines td:last-child { text-align: left; padding: 6px 0 13px; }
  .deadlines tr td:not(:first-child) { border-top: 0; }
  .roles { grid-template-columns: 1fr; }
  .lead { grid-template-columns: 130px 1fr; gap: 20px; }
  .quiz, .form, .calc__form { padding: 24px; }
  .rates { padding: 4px 20px; }
  .rates__block { overflow-x: auto; }
  .rates__table { min-width: 420px; font-size: 13.5px; }
  .hero__actions { display: grid; }
  .hero__actions .btn { white-space: normal; }
  .formula { gap: 8px; }
  .formula__item { font-size: 14px; padding: 9px 16px; }
  .calc__row { grid-template-columns: 1fr 92px; gap: 12px; }
  .calc__addon { grid-template-columns: auto 1fr; row-gap: 6px; }
  .calc__addon .calc__rowprice { grid-column: 2; }
  .form__row { grid-template-columns: 1fr; }
  .result__actions { grid-template-columns: 1fr; }
  .footer .req { grid-template-columns: 1fr; }
  .faq summary { font-size: 17px; padding-right: 44px; }
}
