/* =========================================================================
   BizDNAi — страница для бухгалтеров (bizdnai.com/buh/accountants/)
   Палитра и типографика — те же, что на боевом /buh/ (assets/style.css):
   жёлтый 1С + тёмный текст, шрифт Onest. Файл отдельный, чтобы правки этой
   страницы не задевали лендинг для владельцев бизнеса.
   ========================================================================= */

:root {
  /* --- Фирменная гамма (скопирована из /buh/assets/style.css) --- */
  --yellow:        #FFD200;
  --yellow-dark:   #E6BC00;
  --yellow-soft:   #FFF8D6;
  --red:           #DA1F26;
  --red-dark:      #B0181E;
  --ink:           #1A1A1A;
  --ink-soft:      #4A4A4A;
  --ink-mute:      #6E6E6E;
  --bg:            #FFFFFF;
  --card:          #F2F2F2;
  --line:          #E4E4E4;
  --line-soft:     #EFEBDD;   /* линии внутри демо-сводки (из макета) */
  --ok:            #1F8A4C;
  --warn:          #C77700;
  --warn-ink:      #A84B00;
  --brand-dark:    #031018;

  --font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(26, 26, 26, .08);
  --shadow-lg: 0 14px 44px rgba(26, 26, 26, .14);
  --gap: 24px;
}

/* ------------------------------- Сброс ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -.025em; }
h2 { font-size: clamp(25px, 3.2vw, 38px); }
h3 { font-size: clamp(18px, 2vw, 21px); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------ Каркас ---------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 7vw, 92px) 0; }
.section--tint { background: var(--yellow-soft); }

.sec-head { max-width: 780px; margin: 0 0 clamp(28px, 4vw, 44px); }
.sec-sub { font-size: 18px; color: var(--ink-soft); margin: 0; }

/* ------------------------------ Кнопки ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--yellow); color: var(--ink); box-shadow: 0 4px 14px rgba(255, 210, 0, .45); }
.btn--primary:hover { background: var(--yellow-dark); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--lg { padding: 16px 30px; font-size: 17px; }
.btn--sm { padding: 10px 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }
.ico { width: 20px; height: 20px; flex: 0 0 auto; }

.badge {
  display: inline-block; margin: 0 0 16px; padding: 7px 15px;
  border-radius: 999px; background: var(--yellow); color: var(--ink);
  font-size: 14px; font-weight: 700;
}

/* ------------------------------ Шапка ----------------------------------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--yellow);
  border-bottom: 1px solid rgba(22, 21, 15, .12);
}
.header__inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.logo__img { width: 36px; height: 36px; border-radius: 9px; }
.logo__text strong { color: var(--ink); }
.logo__sub { font-size: 14px; font-weight: 500; color: var(--ink-soft); }

.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a, .logo__sub, .header__cta { white-space: nowrap; }
@media (max-width: 1240px) and (min-width: 861px) {
  .nav { gap: 14px; }
  .nav a { font-size: 14px; }
  .logo__sub { display: none; }
}
@media (max-width: 1060px) and (min-width: 861px) {
  .nav a[href="#security"], .nav a[href="#pains"] { display: none; }
}
.nav a {
  text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-soft);
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.header__cta { margin-left: 4px; }

.burger { display: none; margin-left: auto; width: 44px; height: 44px; padding: 11px; background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --------------------------- Переключатель ------------------------------ */
.switch-block { display: flex; flex-direction: column; gap: 12px; padding-top: clamp(20px, 3vw, 32px); }
.switch-label { margin: 0; font-size: 15px; font-weight: 600; }
.switch {
  display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px;
  border-radius: 18px; background: rgba(22, 21, 15, .08); align-self: flex-start;
}
.switch button {
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 13px;
  background: transparent; color: var(--ink);
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.switch button:hover { background: rgba(22, 21, 15, .07); }
.switch button[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }
.switch button[aria-pressed="true"]:hover { background: var(--ink); }

/* --------------------------- Первый экран ------------------------------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -20%, rgba(255, 255, 255, .55), transparent 60%),
    var(--yellow);
  padding-bottom: clamp(40px, 6vw, 76px);
}
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; padding-top: clamp(20px, 4vw, 40px); }
.hero__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero__eyebrow { margin: 0; font-size: 19px; font-weight: 500; color: var(--ink-soft); }
.hero__sub { margin: 0; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; max-width: 40em; color: var(--ink-soft); }
.hero__points { display: grid; gap: 10px; margin: 0; }
.hero__points li { position: relative; padding-left: 30px; font-size: 16px; }
.hero__points li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px;
  border-radius: 5px; background: var(--ink);
}
.hero__points li::after {
  content: ""; position: absolute; left: 5px; top: 10px; width: 8px; height: 4px;
  border-left: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow);
  transform: rotate(-45deg);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin: 0; font-size: 14px; color: rgba(22, 21, 15, .65); }

/* Демо-сводка */
.demo {
  flex: 0 1 440px; min-width: 0; width: 100%;
  background: #fff; border: 1px solid rgba(22, 21, 15, .08); border-radius: 20px;
  padding: 24px 24px 18px;
  box-shadow: 0 1px 0 rgba(22, 21, 15, .06), 0 28px 56px -28px rgba(70, 52, 0, .55);
  font-variant-numeric: tabular-nums;
}
.demo__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.demo__title { margin: 0; font-size: 17px; font-weight: 700; }
.demo__count { margin: 0; font-size: 14px; color: var(--ink-mute); }
.demo__note { margin: 4px 0 8px; font-size: 13px; color: var(--ink-mute); }
.demo__row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--line-soft);
}
.demo__row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.demo__name { font-size: 15px; font-weight: 600; }
.demo__what { font-size: 14px; color: var(--ink-mute); }
.demo__state { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.demo__state--warn { color: var(--warn-ink); }
.demo__state--ok { color: var(--ok); }
.demo__dot { width: 8px; height: 8px; border-radius: 50%; background: #FF7A1A; flex: 0 0 auto; }
.demo__state svg { width: 16px; height: 16px; flex: 0 0 auto; }
.demo__foot { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--ink-mute); }

/* --------------------------- Боли → решения ----------------------------- */
/* Четыре боли — сетка 2×2: одна «сиротская» карточка в ряду выглядит случайной. */
.pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.pain {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow);
}
.pain h3 { font-size: 18px; margin-bottom: .4em; }
.pain p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }

/* ------------------------------ Было/Стало ------------------------------ */
.compare { display: grid; gap: 14px; }
.compare__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.compare__cell { padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.compare__cell + .compare__cell { border-left: 1px solid var(--line); }
.compare__label {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.compare__was .compare__label { color: var(--red); }
.compare__now .compare__label { color: var(--ink); }
.compare__was { background: #FCFCFC; }
.compare__was p { color: var(--ink-mute); }
.compare__now { background: #FFFDF2; }
.compare__now p { font-weight: 600; }
.compare__cell p { margin: 0; font-size: 16px; }

/* ------------------------------- Проверки ------------------------------- */
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); }
.check-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.check-card h3 { font-size: 17px; margin-bottom: .35em; }
.check-card p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.check-card__ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--yellow-soft); color: var(--ink); margin-bottom: 14px;
}
.check-card__ico svg { width: 22px; height: 22px; }

/* --------------------------- Что остаётся ------------------------------- */
.stays { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.stays__text p { color: var(--ink-soft); }
.ticks { display: grid; gap: 11px; margin: 0 0 26px; }
.ticks li { position: relative; padding-left: 30px; font-size: 16px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px;
  border-radius: 5px; background: var(--yellow);
}
.ticks li::after {
  content: ""; position: absolute; left: 5px; top: 10px; width: 8px; height: 4px;
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}
.ticks--no li::before { background: #FBE3E4; }
.ticks--no li::after {
  width: 8px; height: 0; border: 0; border-top: 2px solid var(--red);
  transform: rotate(0); top: 13px; left: 5px;
}
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px); box-shadow: var(--shadow);
}
.panel h3 { font-size: 19px; }
.panel p:last-child { margin-bottom: 0; }

/* ------------------------------ Безопасность ---------------------------- */
/* Четыре карточки — 2×2: третья в ряду оставляла «сироту» на втором ряду. */
.security { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.sec-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow);
}
.sec-card h3 { font-size: 17px; margin-bottom: .4em; }
.sec-card p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.sec-card--accent { border-color: var(--yellow); background: linear-gradient(180deg, #FFFDF2, #fff); }
.security__note {
  margin: 26px 0 0; padding: 16px 20px; border-radius: var(--radius-sm);
  background: rgba(22, 21, 15, .05); font-size: 15px; color: var(--ink-soft);
}

/* -------------------------------- Шаги ---------------------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--gap); counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px 22px; box-shadow: var(--shadow);
}
.step__num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 19px; margin-bottom: 14px;
}
.step h3 { font-size: 18px; margin-bottom: .35em; }
.step p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* -------------------------------- Цена ---------------------------------- */
.price { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.price__text p { color: var(--ink-soft); }
.price__big {
  margin: 8px 0 14px; padding: 22px 24px; border-radius: var(--radius);
  background: #fff; border: 1.5px dashed var(--yellow-dark);
  font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; line-height: 1.3;
}
.price__big small { display: block; font-size: 14px; font-weight: 500; color: var(--ink-mute); margin-top: 6px; }
.price__list { display: grid; gap: 12px; margin: 0; }
.price__list li {
  position: relative; padding: 14px 16px 14px 46px;
  background: var(--card); border-radius: var(--radius-sm); font-size: 15.5px;
}
.price__list li::before {
  content: ""; position: absolute; left: 16px; top: 19px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--yellow); box-shadow: inset 0 0 0 2px var(--ink);
}

/* --------------------------------- FAQ ---------------------------------- */
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 17px; text-align: left; color: var(--ink);
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { background: #FFFDF2; }
.faq__ico {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow);
  display: grid; place-items: center; font-size: 19px; font-weight: 800; line-height: 1;
  transition: transform .2s;
}
.faq__item[open] .faq__ico { transform: rotate(45deg); }
.faq__a { padding: 0 20px 20px; color: var(--ink-soft); font-size: 16px; }
.faq__a p { margin: 0; }

/* ------------------------------- Заявка --------------------------------- */
.pilot { background: linear-gradient(160deg, var(--yellow-soft) 0%, #fff 55%); }
.pilot__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.pilot__text p { color: var(--ink-soft); }
.pilot__tagline {
  margin: 24px 0 0; padding-left: 16px; border-left: 3px solid var(--yellow);
  font-size: 15px; font-style: italic; color: var(--ink-mute);
}
.contacts { display: grid; gap: 14px; margin: 0 0 26px; }
.contacts li { display: grid; gap: 2px; }
.contacts__label { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute); font-weight: 700; }
.contacts a { font-size: 20px; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--yellow); width: fit-content; }
.contacts a:hover { border-bottom-color: var(--red); }

.form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-lg);
  display: grid; gap: 15px;
}
.form__title { margin: 0 0 4px; font-size: 22px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--yellow-dark); box-shadow: 0 0 0 3px rgba(255, 210, 0, .35);
}
.field input::placeholder, .field textarea::placeholder { color: #9A9A9A; }
.field--error input, .field--error select, .field--error textarea {
  border-color: var(--red); box-shadow: 0 0 0 3px rgba(218, 31, 38, .12);
}
.field__err { font-size: 13.5px; color: var(--red); }
.field__err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__hint { margin: 0; font-size: 13.5px; color: var(--ink-mute); }
.form__hint a { color: var(--red); }
.form__status { margin: 0; font-size: 15px; font-weight: 600; }
.form__status--err { color: var(--red); }
.form--sent { text-align: center; }
.form--sent .form__title { color: var(--ok); }

/* ------------------------------- Подвал --------------------------------- */
.footer { background: var(--brand-dark); color: #E8E8E8; padding: clamp(36px, 5vw, 56px) 0 24px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer .logo { color: #fff; }
.footer .logo__text strong { color: var(--yellow); }
.footer__brand p { margin: 14px 0 0; font-size: 15px; color: #B8B8B8; max-width: 36ch; }
.footer__col h4 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--yellow); margin-bottom: 14px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { text-decoration: none; font-size: 15px; color: #D8D8D8; }
.footer__col a:hover { color: var(--yellow); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid #333;
  font-size: 13.5px; color: #9A9A9A;
}
.footer__bottom p { margin: 0; }

/* --------------------------- Плавающая кнопка --------------------------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--ink); color: #fff; display: none; place-items: center;
  box-shadow: var(--shadow-lg);
}
.fab svg { width: 30px; height: 30px; }
.fab:hover { background: #000; }
.fab--hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }
.fab { transition: opacity .2s, transform .2s; }

/* ---------------------- Переключение «Кто вы» --------------------------- */
/* Невыбранный вариант скрыт. Без JS показывается вариант «Веду много компаний». */
html[data-view="many"] [data-persona="one"],
html[data-view="one"]  [data-persona="many"] { display: none !important; }

/* ------------------------------- Адаптив -------------------------------- */
@media (max-width: 1024px) {
  .stays, .price, .pilot__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 8px 20px 16px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a:last-child { border-bottom: 0; }
  .burger { display: flex; }
  .header__cta { display: none; }
  .fab { display: grid; }
  .compare__row { grid-template-columns: 1fr; }
  .compare__cell + .compare__cell { border-left: 0; border-top: 1px solid var(--line); }
  .footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .footer__bottom { flex-direction: column; }
  .logo__sub { display: none; }
}

@media (max-width: 760px) {
  .pains, .security { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section { padding: 44px 0; }
  .hero__actions .btn { width: 100%; }
  .btn { white-space: normal; text-align: center; }
  .switch { width: 100%; }
  .switch button { flex: 1 1 100%; }
  .demo { padding: 20px 18px 14px; }
  .demo__row { gap: 10px; }
  .demo__state { font-size: 13px; }
  .pains, .checks, .security { grid-template-columns: 1fr; }
  .sec-card, .check-card, .pain { padding: 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}