/* =============================================================================
   ИИ КАРТЫ — публичный сайт
   -----------------------------------------------------------------------------
   Подключается ПОСЛЕ style.css в layouts/main.php и layouts/auth.php.
   Все правила ограничены классом body.site — личный кабинет (lk-accenture.css)
   и админка не затрагиваются.

   Язык оформления единый с ЛК: белый фон, тонкие линии, плотная типографика,
   монохром + navy, синий бренд-акцент и один красный. Никаких градиентов,
   блобов и больших скруглений.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. Токены
   -------------------------------------------------------------------------- */
body.site {
  --s-ink:         #11151C;
  --s-ink-2:       #333B47;
  --s-ink-muted:   #5A6470;
  --s-ink-faint:   #9097A1;

  --s-line:        #DEE2E6;
  --s-line-soft:   #EAEDF0;
  --s-line-strong: #C2C8CF;

  --s-bg:          #FFFFFF;
  --s-bg-alt:      #F5F6F8;
  --s-bg-tint:     #F0F2F5;

  --s-navy:        #0A1F44;
  --s-navy-2:      #0B2755;
  --s-navy-line:   rgba(255,255,255,.16);

  --s-blue:        #1B37C5;
  --s-blue-hover:  #152CA0;
  --s-blue-tint:   #EEF1FC;

  --s-red:         #E5343A;
  --s-red-hover:   #C92C32;

  --s-radius:      3px;
  --s-radius-sm:   2px;
  --s-container:   1200px;
  --s-gutter:      24px;

  --s-ease: cubic-bezier(.2,.6,.3,1);

  background: var(--s-bg);
  color: var(--s-ink);
  font-family: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Фолбэк-шрифт с теми же метриками — чтобы верстка не прыгала до загрузки Inter */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

body.site a { color: var(--s-blue); text-decoration: none; }
body.site a:hover { color: var(--s-blue-hover); text-decoration: underline; }
body.site ::selection { background: var(--s-blue); color: #fff; }

body.site :focus-visible {
  outline: 2px solid var(--s-blue);
  outline-offset: 2px;
}

/* -----------------------------------------------------------------------------
   2. Сетка
   -------------------------------------------------------------------------- */
body.site .container {
  width: 100%;
  max-width: var(--s-container);
  margin: 0 auto;
  padding: 0 var(--s-gutter);
}

body.site .landing-section { padding: 88px 0; position: relative; }
body.site .landing-section--alt {
  background: var(--s-bg-alt);
  border-top: 1px solid var(--s-line);
  border-bottom: 1px solid var(--s-line);
}
body.site .landing-section--tight { padding: 64px 0; }

/* -----------------------------------------------------------------------------
   3. Типографика секций
   -------------------------------------------------------------------------- */
body.site .section-header { max-width: 720px; margin-bottom: 48px; text-align: left; }
body.site .section-header--center { margin-left: auto; margin-right: auto; text-align: center; }

body.site .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--s-blue);
  margin-bottom: 14px;
}
body.site .section-eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--s-red);
}
body.site .section-header--center .section-eyebrow { justify-content: center; }

body.site .section-title {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.022em;
  color: var(--s-ink);
  margin: 0;
}
body.site .section-subtitle {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--s-ink-muted);
}

/* -----------------------------------------------------------------------------
   4. Кнопки
   -------------------------------------------------------------------------- */
body.site .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--s-radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background .16s var(--s-ease), color .16s var(--s-ease), border-color .16s var(--s-ease);
  white-space: nowrap;
}
body.site .btn:hover { text-decoration: none; }
body.site .btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }
body.site .btn-lg { height: 52px; padding: 0 30px; font-size: 15px; }

body.site .btn-primary { background: var(--s-navy); border-color: var(--s-navy); color: #fff; }
body.site .btn-primary:hover { background: var(--s-navy-2); border-color: var(--s-navy-2); color: #fff; }

body.site .btn-accent { background: var(--s-red); border-color: var(--s-red); color: #fff; }
body.site .btn-accent:hover { background: var(--s-red-hover); border-color: var(--s-red-hover); color: #fff; }

body.site .btn-outline { background: transparent; border-color: var(--s-line-strong); color: var(--s-ink); }
body.site .btn-outline:hover { border-color: var(--s-navy); background: var(--s-bg-alt); color: var(--s-ink); }

body.site .btn-ghost { background: transparent; border-color: transparent; color: var(--s-ink-muted); }
body.site .btn-ghost:hover { background: var(--s-bg-alt); color: var(--s-ink); }

body.site .btn-light { background: #fff; border-color: #fff; color: var(--s-navy); }
body.site .btn-light:hover { background: #EDEFF3; border-color: #EDEFF3; color: var(--s-navy); }

body.site .btn-on-dark { background: transparent; border-color: rgba(255,255,255,.34); color: #fff; }
body.site .btn-on-dark:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); color: #fff; }

body.site .btn:disabled, body.site .btn[disabled] { opacity: .55; cursor: not-allowed; }
body.site .btn-block { width: 100%; }

body.site .btn__arrow { transition: transform .18s var(--s-ease); }
body.site .btn:hover .btn__arrow { transform: translateX(3px); }

/* -----------------------------------------------------------------------------
   5. Шапка
   -------------------------------------------------------------------------- */
body.site .site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--s-line);
}
body.site .site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
body.site .site-header__brand { display: inline-flex; align-items: center; }
body.site .site-header__logo-img { height: 30px; width: auto; display: block; }
body.site .site-header__spacer { flex: 1; }

body.site .site-header__menu { display: flex; align-items: center; gap: 26px; }
body.site .site-header__menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--s-ink-muted);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .16s var(--s-ease), border-color .16s var(--s-ease);
}
body.site .site-header__menu a:hover { color: var(--s-ink); border-bottom-color: var(--s-red); text-decoration: none; }

body.site .site-header__nav { display: flex; align-items: center; gap: 10px; }

body.site .site-header__burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius);
  cursor: pointer;
  color: var(--s-ink);
}

/* -----------------------------------------------------------------------------
   6. Герой
   -------------------------------------------------------------------------- */
body.site .hero {
  position: relative;
  text-align: left;
  border-bottom: 1px solid var(--s-line);
  background: var(--s-bg);
  overflow: hidden;
}
body.site .hero__rule {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, var(--s-line-soft) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  opacity: .8;
  pointer-events: none;
}
body.site .hero__container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 64px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 92px;
}
body.site .hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--s-ink-muted);
  border: 1px solid var(--s-line);
  border-radius: 999px;
  padding: 7px 14px 7px 12px;
  background: #fff;
  margin-bottom: 26px;
}
body.site .hero__eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--s-red);
  box-shadow: 0 0 0 3px rgba(229,52,58,.15);
}
body.site .hero__title {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.032em;
  color: var(--s-ink);
  margin: 0 0 22px;
  max-width: 15ch;
}
body.site .hero__title-accent {
  display: inline-block;
  position: relative;
  color: var(--s-navy);
}
body.site .hero__title-accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: .06em;
  height: 3px;
  background: var(--s-red);
}
body.site .hero__subtitle {
  font-size: 17px;
  line-height: 1.62;
  color: var(--s-ink-muted);
  margin: 0 0 32px;
  max-width: 46ch;
}
body.site .hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
body.site .hero__note { font-size: 13px; color: var(--s-ink-faint); }

/* Полоса ключевых фактов под героем */
body.site .kpi-strip {
  position: relative;
  border-top: 1px solid var(--s-line);
  background: var(--s-bg-alt);
}
body.site .kpi-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
body.site .kpi {
  padding: 26px 28px;
  border-right: 1px solid var(--s-line);
}
body.site .kpi:first-child { padding-left: 0; }
body.site .kpi:last-child { border-right: 0; }
body.site .kpi__value {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--s-navy);
  line-height: 1.1;
}
body.site .kpi__label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--s-ink-muted);
  line-height: 1.45;
}

/* -----------------------------------------------------------------------------
   7. Макет «карты» в герое
   -------------------------------------------------------------------------- */
body.site .map-mock {
  border: 1px solid var(--s-line);
  background: #fff;
  border-radius: var(--s-radius);
  box-shadow: 0 1px 2px rgba(10,31,68,.04), 0 12px 32px -18px rgba(10,31,68,.28);
}
body.site .map-mock__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--s-navy);
  border-radius: var(--s-radius) var(--s-radius) 0 0;
}
body.site .map-mock__bar-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.28); }
body.site .map-mock__bar-title {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
body.site .map-mock__head {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--s-line);
}
body.site .map-mock__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--s-ink-faint);
}
body.site .map-mock__org {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--s-ink);
  letter-spacing: -.01em;
}
body.site .map-mock__meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--s-ink-muted);
}
body.site .map-mock__route { padding: 20px 24px 8px; }
body.site .map-mock__step {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 20px;
}
body.site .map-mock__step:last-child { padding-bottom: 6px; }
body.site .map-mock__step::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 18px;
  bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(to bottom, var(--s-line-strong) 0 3px, transparent 3px 7px);
}
body.site .map-mock__step:last-child::before { display: none; }
body.site .map-mock__dot {
  width: 21px; height: 21px;
  border-radius: 50%;
  border: 1px solid var(--s-line-strong);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  color: var(--s-ink-muted);
  position: relative;
  z-index: 1;
}
body.site .map-mock__step--done .map-mock__dot { border-color: var(--s-navy); background: var(--s-navy); color: #fff; }
body.site .map-mock__step--pin .map-mock__dot { border-color: var(--s-red); background: var(--s-red); color: #fff; }
body.site .map-mock__body { display: block; min-width: 0; }
body.site .map-mock__step-title { display: block; font-size: 14px; font-weight: 600; color: var(--s-ink); line-height: 1.35; }
body.site .map-mock__step-text { display: block; margin-top: 3px; font-size: 12.5px; color: var(--s-ink-muted); line-height: 1.45; }
body.site .map-mock__tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--s-ink-muted);
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius-sm);
  padding: 3px 7px;
  white-space: nowrap;
  background: var(--s-bg-alt);
}
body.site .map-mock__tag--accent { color: var(--s-red); border-color: rgba(229,52,58,.3); background: rgba(229,52,58,.06); }
body.site .map-mock__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  border-top: 1px solid var(--s-line);
  background: var(--s-bg-alt);
  border-radius: 0 0 var(--s-radius) var(--s-radius);
  font-size: 12px;
  color: var(--s-ink-muted);
}
body.site .map-mock__foot strong { color: var(--s-ink); font-weight: 600; }
body.site .map-mock__caption {
  margin-top: 12px;
  font-size: 12px;
  color: var(--s-ink-faint);
  text-align: right;
}

/* -----------------------------------------------------------------------------
   8. Как это работает
   -------------------------------------------------------------------------- */
body.site .how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--s-line);
}
body.site .how-step {
  padding: 28px 28px 8px;
  border-right: 1px solid var(--s-line);
  position: relative;
}
body.site .how-step:first-child { padding-left: 0; }
body.site .how-step:first-child::before { left: 0; }
body.site .how-step:last-child { border-right: 0; padding-right: 0; }
body.site .how-step::before {
  content: '';
  position: absolute;
  top: -1px; left: 28px;
  width: 34px; height: 2px;
  background: var(--s-red);
}
body.site .how-step__num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--s-ink-faint);
  margin-bottom: 14px;
}
body.site .how-step__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--s-ink);
  margin: 0 0 10px;
}
body.site .how-step__text { font-size: 14.5px; line-height: 1.6; color: var(--s-ink-muted); margin: 0; }

/* -----------------------------------------------------------------------------
   9. Сценарии
   -------------------------------------------------------------------------- */
body.site .scenarios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
body.site .scenario-card {
  background: #fff;
  border: 1px solid var(--s-line);
  border-left: 3px solid var(--s-navy);
  border-radius: var(--s-radius);
  padding: 32px 32px 30px;
  display: flex;
  flex-direction: column;
}
body.site .scenario-card--accent { border-left-color: var(--s-red); }
body.site .scenario-card__badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--s-ink-muted);
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius-sm);
  padding: 4px 9px;
  margin-bottom: 18px;
  background: var(--s-bg-alt);
}
body.site .scenario-card__title {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--s-ink);
  margin: 0 0 12px;
}
body.site .scenario-card__desc { font-size: 15px; line-height: 1.65; color: var(--s-ink-muted); margin: 0 0 22px; }
body.site .scenario-card__features { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--s-line-soft); }
body.site .scenario-feature {
  position: relative;
  padding: 11px 0 11px 20px;
  font-size: 14.5px;
  color: var(--s-ink-2);
  border-bottom: 1px solid var(--s-line-soft);
}
body.site .scenario-feature:last-child { border-bottom: 0; }
body.site .scenario-feature::before {
  content: '';
  position: absolute;
  left: 0; top: 19px;
  width: 9px; height: 1px;
  background: var(--s-line-strong);
}

/* -----------------------------------------------------------------------------
   10. Колонки-фичи (для кого / что даёт)
   -------------------------------------------------------------------------- */
body.site .features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--s-line);
}
body.site .feature-card {
  padding: 32px 32px 8px;
  border-right: 1px solid var(--s-line);
  background: transparent;
  border-radius: 0;
}
body.site .feature-card:first-child { padding-left: 0; }
body.site .feature-card:last-child { border-right: 0; padding-right: 0; }
body.site .feature-card__icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius);
  color: var(--s-navy);
  background: #fff;
  margin-bottom: 18px;
}
body.site .landing-section--alt .feature-card__icon { background: #fff; }
body.site .feature-card__title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--s-ink);
  margin: 0 0 10px;
}
body.site .feature-card__text { font-size: 14.5px; line-height: 1.62; color: var(--s-ink-muted); margin: 0; }

/* -----------------------------------------------------------------------------
   11. CTA-баннер
   -------------------------------------------------------------------------- */
body.site .cta-section {
  background: var(--s-navy);
  color: #fff;
  padding: 76px 0;
}
body.site .cta-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}
body.site .cta-section__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 12px;
}
body.site .cta-section__title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.12;
  color: #fff;
  margin: 0;
  max-width: 20ch;
}
body.site .cta-section__subtitle {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,.72);
  max-width: 52ch;
}
body.site .cta-section__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* -----------------------------------------------------------------------------
   12. Формы
   -------------------------------------------------------------------------- */
body.site .form-card {
  background: #fff;
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius);
  padding: 36px;
  max-width: 720px;
  margin: 0 auto;
}
body.site .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
body.site .form-group { margin: 0; }
body.site .form-group--full { grid-column: 1 / -1; }

body.site .form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--s-ink-muted);
  margin-bottom: 8px;
}
body.site .form-label.required::after { content: ' *'; color: var(--s-red); }

body.site .form-input,
body.site .form-textarea,
body.site select.form-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--s-ink);
  background: #fff;
  border: 1px solid var(--s-line-strong);
  border-radius: var(--s-radius);
  transition: border-color .15s var(--s-ease), box-shadow .15s var(--s-ease);
}
body.site .form-textarea { height: auto; min-height: 112px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
body.site .form-input::placeholder, body.site .form-textarea::placeholder { color: var(--s-ink-faint); }
body.site .form-input:focus, body.site .form-textarea:focus {
  outline: none;
  border-color: var(--s-blue);
  box-shadow: 0 0 0 3px rgba(27,55,197,.12);
}
body.site .form-hint { display: block; margin-top: 7px; font-size: 12px; color: var(--s-ink-faint); }

body.site .form-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
body.site .form-check-input {
  width: 17px; height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--s-blue);
}
body.site .form-check-label { font-size: 13.5px; line-height: 1.55; color: var(--s-ink-muted); }

body.site .alert {
  display: flex;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid var(--s-line);
  border-left: 3px solid var(--s-line-strong);
  border-radius: var(--s-radius);
  font-size: 14px;
  line-height: 1.55;
  color: var(--s-ink-2);
  background: var(--s-bg-alt);
}
body.site .alert__icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
body.site .alert-info { border-left-color: var(--s-blue); background: var(--s-blue-tint); color: var(--s-ink-2); }
body.site .alert-error { border-left-color: var(--s-red); background: #FDECEC; color: #8E1B1F; }
body.site .alert-success { border-left-color: #1B5E20; background: #E8F4EC; color: #1B5E20; }

/* Успешная отправка заявки */
body.site .form-done { text-align: center; padding: 48px 32px; }
body.site .form-done__mark {
  width: 52px; height: 52px;
  margin: 0 auto 18px;
  border: 1px solid var(--s-line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #1B5E20;
}
body.site .form-done__title { font-size: 20px; font-weight: 600; margin: 0 0 8px; color: var(--s-ink); }
body.site .form-done__text { font-size: 15px; color: var(--s-ink-muted); margin: 0; }

/* -----------------------------------------------------------------------------
   13. Партнёры
   -------------------------------------------------------------------------- */
body.site .partners-grid {
  display: grid;
  /* Верхняя граница ширины ячейки — чтобы один-два логотипа не растягивались на всю строку */
  grid-template-columns: repeat(auto-fit, minmax(200px, 260px));
  justify-content: center;
  border-top: 1px solid var(--s-line);
  border-left: 1px solid var(--s-line);
}
body.site .partners-grid__item {
  border-right: 1px solid var(--s-line);
  border-bottom: 1px solid var(--s-line);
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #fff;
}
body.site .partner-logo-link {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  text-decoration: none;
}
body.site .partner-logo-img {
  max-height: 44px; max-width: 100%;
  width: auto;
  filter: grayscale(1);
  opacity: .68;
  transition: filter .2s var(--s-ease), opacity .2s var(--s-ease);
}
body.site .partner-logo-link:hover .partner-logo-img { filter: none; opacity: 1; }
body.site .partner-logo-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--s-ink-muted);
  text-align: center;
  letter-spacing: .01em;
}

/* -----------------------------------------------------------------------------
   14. Подвал
   -------------------------------------------------------------------------- */
body.site .site-footer {
  background: var(--s-navy);
  color: rgba(255,255,255,.72);
  padding: 56px 0 26px;
  font-size: 14px;
}
body.site .site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
body.site .site-footer a:hover { color: #fff; text-decoration: none; }

body.site .site-footer__partner-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  border: 1px solid var(--s-navy-line);
  border-left: 3px solid var(--s-red);
  border-radius: var(--s-radius);
  margin-bottom: 48px;
  transition: background .18s var(--s-ease);
}
body.site .site-footer__partner-cta:hover { background: rgba(255,255,255,.05); }
body.site .site-footer__partner-cta-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 7px;
}
body.site .site-footer__partner-cta-title { font-size: 16px; font-weight: 600; color: #fff; line-height: 1.4; }
body.site .site-footer__partner-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: var(--s-radius);
  font-size: 13px; font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

body.site .site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--s-navy-line);
}
body.site .site-footer__logo-img { height: 28px; width: auto; margin-bottom: 16px; }
body.site .site-footer__desc { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.6); max-width: 40ch; margin: 0; }
body.site .site-footer__heading {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 16px;
}
body.site .site-footer__links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
body.site .site-footer__link { font-size: 14px; }
body.site .site-footer__org-title { display: block; font-size: 14px; font-weight: 600; color: #fff; line-height: 1.45; }
body.site .site-footer__org-divider { height: 1px; background: var(--s-navy-line); margin: 18px 0; }
body.site .site-footer__org-logo { height: 34px; width: auto; opacity: .85; }

body.site .site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

/* -----------------------------------------------------------------------------
   15. Страницы входа / регистрации
   -------------------------------------------------------------------------- */
body.site.site--auth { background: var(--s-bg); }

body.site .auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
}
body.site .auth-aside {
  background: var(--s-navy);
  color: #fff;
  padding: 44px 56px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
body.site .auth-aside__logo { height: 30px; width: auto; }
body.site .auth-aside__body { margin-top: auto; padding-bottom: 28px; }
body.site .auth-aside__eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: 14px;
}
body.site .auth-aside__title {
  font-size: 30px; font-weight: 600; letter-spacing: -.025em; line-height: 1.18;
  color: #fff; margin: 0 0 16px; max-width: 16ch;
}
body.site .auth-aside__text { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.68); max-width: 40ch; margin: 0; }
body.site .auth-aside__list { list-style: none; margin: 26px 0 0; padding: 0; }
body.site .auth-aside__list li {
  position: relative;
  padding: 10px 0 10px 22px;
  font-size: 14px;
  color: rgba(255,255,255,.78);
  border-top: 1px solid var(--s-navy-line);
}
body.site .auth-aside__list li:last-child { border-bottom: 1px solid var(--s-navy-line); }
body.site .auth-aside__list li::before {
  content: '';
  position: absolute; left: 0; top: 19px;
  width: 10px; height: 1px; background: var(--s-red);
}
body.site .auth-aside__foot { font-size: 12px; color: rgba(255,255,255,.4); }

body.site .auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--s-bg);
}
body.site .auth-main__inner { width: 100%; max-width: 400px; }
body.site .auth-main__logo { display: none; margin-bottom: 28px; }
body.site .auth-card { background: transparent; border: 0; padding: 0; box-shadow: none; }
body.site .auth-card__title {
  font-size: 27px; font-weight: 600; letter-spacing: -.025em;
  color: var(--s-ink); margin: 0 0 8px;
}
body.site .auth-card__subtitle { font-size: 15px; line-height: 1.55; color: var(--s-ink-muted); margin: 0 0 26px; }
body.site .auth-form .form-group { margin-bottom: 20px; }
body.site .auth-form .btn { margin-top: 4px; }
body.site .auth-footer { text-align: center; margin-top: 26px; font-size: 14px; color: var(--s-ink-muted); }
body.site .auth-footer a { color: var(--s-blue); }
body.site .auth-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--s-ink-muted); text-decoration: none;
}
body.site .auth-back:hover { color: var(--s-ink); text-decoration: none; }

/* Шаги регистрации */
body.site .auth-steps { display: flex; align-items: center; gap: 0; margin-bottom: 28px; }
body.site .auth-step { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--s-ink-faint); }
body.site .auth-step__num {
  width: 24px; height: 24px;
  border: 1px solid var(--s-line-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: var(--s-ink-faint);
  background: #fff;
}
body.site .auth-step--active { color: var(--s-ink); font-weight: 600; }
body.site .auth-step--active .auth-step__num { background: var(--s-navy); border-color: var(--s-navy); color: #fff; }
body.site .auth-step__line { flex: 1; height: 1px; background: var(--s-line); margin: 0 14px; }

/* Ввод кода */
body.site .code-inputs { display: flex; gap: 10px; }
body.site .code-input {
  width: 50px; height: 58px;
  text-align: center;
  font-size: 22px; font-weight: 600;
  color: var(--s-ink);
  border: 1px solid var(--s-line-strong);
  border-radius: var(--s-radius);
  background: #fff;
}
body.site .code-input:focus {
  outline: none;
  border-color: var(--s-blue);
  box-shadow: 0 0 0 3px rgba(27,55,197,.12);
}

/* -----------------------------------------------------------------------------
   16. Юридические страницы
   -------------------------------------------------------------------------- */
body.site .legal-page { padding: 64px 0 88px; }
body.site .legal-page__inner { max-width: 780px; margin: 0 auto; padding: 0 var(--s-gutter); }
body.site .legal-page__back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--s-ink-muted); text-decoration: none; margin-bottom: 30px;
}
body.site .legal-page__back:hover { color: var(--s-ink); text-decoration: none; }
body.site .legal-page__title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600; letter-spacing: -.025em; line-height: 1.15;
  color: var(--s-ink); margin: 0 0 10px;
}
body.site .legal-page__updated {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--s-ink-faint);
  padding-bottom: 26px; margin-bottom: 34px;
  border-bottom: 1px solid var(--s-line);
}
body.site .legal-page__body h2 {
  font-size: 19px; font-weight: 600; letter-spacing: -.01em;
  color: var(--s-ink); margin: 40px 0 14px;
  padding-top: 26px; border-top: 1px solid var(--s-line-soft);
}
body.site .legal-page__body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
body.site .legal-page__body p { font-size: 15.5px; line-height: 1.75; color: var(--s-ink-2); margin: 0 0 16px; }
body.site .legal-page__body ul { padding-left: 20px; margin: 0 0 16px; list-style: none; }
body.site .legal-page__body li {
  position: relative;
  padding-left: 18px;
  font-size: 15.5px; line-height: 1.75; color: var(--s-ink-2); margin-bottom: 8px;
}
body.site .legal-page__body li::before {
  content: ''; position: absolute; left: 0; top: 13px;
  width: 8px; height: 1px; background: var(--s-line-strong);
}
body.site .legal-page__body strong { color: var(--s-ink); font-weight: 600; }
body.site .legal-page__requisites {
  margin-top: 44px; padding: 26px 28px;
  background: var(--s-bg-alt);
  border: 1px solid var(--s-line);
  border-left: 3px solid var(--s-navy);
  border-radius: var(--s-radius);
}
body.site .legal-page__requisites p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--s-ink-2); }

/* -----------------------------------------------------------------------------
   17. Адаптив
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  body.site .hero__container { grid-template-columns: 1fr; gap: 44px; padding-top: 64px; padding-bottom: 72px; }
  body.site .hero__title { max-width: 20ch; }
  body.site .map-mock__caption { text-align: left; }
  body.site .cta-section__inner { grid-template-columns: 1fr; gap: 28px; }
  body.site .cta-section__title { max-width: none; }
}

@media (max-width: 900px) {
  body.site .site-header__menu { display: none; }
  body.site .how-steps, body.site .features-grid { grid-template-columns: repeat(2, 1fr); }
  body.site .how-step, body.site .feature-card { border-bottom: 1px solid var(--s-line); padding-bottom: 24px; }
  body.site .how-step:nth-child(2n), body.site .feature-card:nth-child(2n) { border-right: 0; padding-right: 0; }
  body.site .how-step:nth-child(2n+1), body.site .feature-card:nth-child(2n+1) { padding-left: 0; padding-right: 28px; }
  body.site .how-step:nth-child(2n+1)::before { left: 0; }
  body.site .scenarios-grid { grid-template-columns: 1fr; }
  body.site .auth-shell { grid-template-columns: 1fr; min-height: 0; }
  body.site .auth-aside { display: none; }
  body.site .auth-main { min-height: 100vh; }
  body.site .auth-main__logo { display: block; }
  body.site .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  body.site .site-footer__org { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body.site { --s-gutter: 18px; }
  body.site .landing-section { padding: 56px 0; }
  body.site .hero__container { padding-top: 48px; padding-bottom: 56px; }
  body.site .hero__rule { display: none; }
  body.site .hero__subtitle { font-size: 16px; }
  body.site .hero__actions .btn { width: 100%; }
  body.site .kpi-strip__grid { grid-template-columns: 1fr 1fr; }
  body.site .kpi { padding: 20px 18px 20px 0; border-bottom: 1px solid var(--s-line); }
  body.site .kpi:nth-child(2n) { border-right: 0; padding-right: 0; }
  body.site .kpi:nth-child(2n+1) { padding-left: 0; }
  body.site .kpi:nth-last-child(-n+2) { border-bottom: 0; }
  body.site .how-steps, body.site .features-grid { grid-template-columns: 1fr; }
  body.site .how-step, body.site .feature-card { border-right: 0; padding-left: 0; padding-right: 0; }
  body.site .how-step::before { left: 0; }
  body.site .how-step:last-child, body.site .feature-card:last-child { border-bottom: 0; }
  body.site .scenario-card { padding: 26px 22px; }
  body.site .form-card { padding: 24px 20px; }
  body.site .form-grid { grid-template-columns: 1fr; gap: 18px; }
  body.site .cta-section { padding: 56px 0; }
  body.site .cta-section__actions .btn { width: 100%; }
  body.site .site-footer__partner-cta { flex-direction: column; align-items: flex-start; gap: 16px; }
  body.site .site-footer__grid { grid-template-columns: 1fr; }
  body.site .site-footer__bottom { flex-direction: column; gap: 8px; }
  body.site .code-input { width: 44px; height: 52px; font-size: 19px; }
  body.site .auth-main { padding: 36px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  body.site *, body.site *::before, body.site *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* -----------------------------------------------------------------------------
   18. Гашение легаси-оформления из style.css
   -----------------------------------------------------------------------------
   style.css остаётся подключённым (в нём базовый reset, тосты и утилиты),
   но его декоративные правила для публичных секций здесь снимаются, чтобы
   не смешивать два оформления.
   -------------------------------------------------------------------------- */

/* Шаги «Как это работает» — номер текстом, без плашки */
body.site .how-step__num {
  display: block;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--s-ink-faint);
  white-space: nowrap;
}

/* Колонки-фичи — без коробок, теней и подпрыгивания */
body.site .feature-card {
  border: 0;
  border-right: 1px solid var(--s-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  gap: 0;
}
body.site .feature-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--s-line);
  border-right-color: var(--s-line);
}
body.site .features-grid .feature-card:last-child { border-right: 0; }
body.site .feature-card__icon { width: 40px; height: 40px; border-radius: var(--s-radius); }

/* Карточки сценариев — без градиентной полосы и смещения на hover */
body.site .scenario-card { transition: border-color .16s var(--s-ease); gap: 0; overflow: visible; }
body.site .scenario-card::before { display: none; }
body.site .scenario-card:hover { transform: none; box-shadow: none; border-color: var(--s-line-strong); }
body.site .scenario-card:hover { border-left-color: var(--s-navy); }
body.site .scenario-card--accent:hover { border-left-color: var(--s-red); }

/* CTA — плоский navy вместо градиента */
body.site .cta-section {
  background: var(--s-navy);
  background-image: none;
  text-align: left;
  isolation: auto;
}
body.site .cta-section__bg { display: none; }
body.site .cta-section__subtitle { margin: 14px 0 0; }
body.site .cta-section__actions { justify-content: flex-start; }

/* Кнопка в партнёрском блоке подвала */
body.site .site-footer__partner-cta-btn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: var(--s-radius);
  padding: 0 18px;
  height: 40px;
}
body.site .site-footer__partner-cta:hover .site-footer__partner-cta-btn {
  background: rgba(255,255,255,.12);
  color: #fff;
}

/* Партнёрская сетка — таблица логотипов вместо flex-ленты */
body.site .partners-grid__item { flex: initial; }

/* Утилиты, которые используют шаблоны авторизации */
body.site .hidden { display: none !important; }
body.site .w-full { width: 100%; }
body.site .mb-4 { margin-bottom: 20px; }
body.site .mb-6 { margin-bottom: 28px; }
body.site .form-input.is-invalid { border-color: var(--s-red); box-shadow: 0 0 0 3px rgba(229,52,58,.1); }
body.site .form-error { display: block; margin-top: 7px; font-size: 12.5px; color: var(--s-red); }

/* -----------------------------------------------------------------------------
   19. Блоки страниц авторизации
   -------------------------------------------------------------------------- */
body.site .auth-options { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
body.site .auth-option {
  border: 1px solid var(--s-line);
  border-left: 3px solid var(--s-navy);
  border-radius: var(--s-radius);
  padding: 20px 22px;
  background: #fff;
}
body.site .auth-option:last-child { border-left-color: var(--s-red); }
body.site .auth-option__title { font-size: 15px; font-weight: 600; color: var(--s-ink); margin-bottom: 6px; }
body.site .auth-option__text { font-size: 14px; line-height: 1.55; color: var(--s-ink-muted); margin: 0 0 16px; }

/* Карточка компании по ИНН (рисуется из app.js) */
body.site .company-card {
  border: 1px solid var(--s-line);
  border-left: 3px solid var(--s-navy);
  border-radius: var(--s-radius);
  background: var(--s-bg-alt);
  padding: 16px 18px;
  box-shadow: none;
}
body.site .company-card__name { font-size: 15px; font-weight: 600; color: var(--s-ink); line-height: 1.4; }
body.site .company-card__meta { font-size: 13px; color: var(--s-ink-muted); margin-top: 5px; line-height: 1.5; }
body.site .company-card__inn {
  display: inline-block;
  margin-top: 8px;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 12px;
  color: var(--s-ink-muted);
  background: #fff;
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius-sm);
  padding: 2px 7px;
}

/* Select — тот же вид, что у текстовых полей */
body.site .form-select {
  width: 100%;
  height: 46px;
  padding: 0 38px 0 14px;
  font-size: 15px;
  color: var(--s-ink);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%235A6470' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border: 1px solid var(--s-line-strong);
  border-radius: var(--s-radius);
  appearance: none;
}
body.site .form-select:focus {
  outline: none;
  border-color: var(--s-blue);
  box-shadow: 0 0 0 3px rgba(27,55,197,.12);
}
body.site .form-select.is-invalid { border-color: var(--s-red); }

/* Вторичная кнопка из легаси-разметки */
body.site .btn-secondary {
  background: transparent;
  border-color: var(--s-line-strong);
  color: var(--s-ink);
}
body.site .btn-secondary:hover { background: var(--s-bg-alt); border-color: var(--s-navy); color: var(--s-ink); }

/* -----------------------------------------------------------------------------
   20. Страницы ошибок
   -------------------------------------------------------------------------- */
body.site .error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px var(--s-gutter);
  background: var(--s-bg);
}
body.site .error-page__inner {
  width: 100%;
  max-width: 520px;
  border-top: 3px solid var(--s-red);
  padding-top: 34px;
}
body.site .error-page__brand { display: inline-block; margin-bottom: 40px; }
body.site .error-page__code {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--s-ink-faint);
  margin-bottom: 12px;
}
body.site .error-page__title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--s-ink);
  margin: 0 0 14px;
}
body.site .error-page__text { font-size: 16px; line-height: 1.65; color: var(--s-ink-muted); margin: 0 0 26px; max-width: 46ch; }
body.site .error-page__url {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 12.5px;
  color: var(--s-ink-muted);
  background: var(--s-bg-alt);
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius);
  padding: 10px 14px;
  margin-bottom: 26px;
  word-break: break-all;
}
body.site .error-page__actions { display: flex; flex-wrap: wrap; gap: 12px; }
