/* ============ БАЗА ============ */
:root {
  --brand: #0066CC;
  --brand-hover: #0052A3;
  --primary: #2D7FF9;
  --primary-dark: #2D7FF9;
  --primary-light: #E8F1FE;
  --text: #2C3E50;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-gray: #F0F4F8;
  --border: #e2e8f0;
  --ok: #27AE60;
  --ok-bg: #E8F8EE;
  --low: #2563eb;
  --low-bg: #eff6ff;
  --high: #dc2626;
  --high-bg: #fef2f2;
  --attn: #F5A623;
  --attn-bg: #FEF3E0;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(15, 42, 68, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* убирает элемент из видимой раскладки на любом экране, оставляя текст в DOM (для SEO и скринридеров) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Ни один блок не должен растягивать страницу вбок: иначе телефон отдаляет весь сайт,
   и вёрстка выглядит вжатой в левую половину экрана.
   clip, а не hidden — hidden сломал бы «липкую» шапку. */
html, body { overflow-x: clip; max-width: 100%; }

/* картинки и схемы ужимаются под экран, а не раздвигают его */
img, svg, canvas, video { max-width: 100%; }

/* элементы сетки и флексов по умолчанию не сжимаются уже своего содержимого */
.container > *, .report, .example, .plan, .why-card, .review, .howto__col { min-width: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  /* длинное слово или адрес переносится, а не раздвигает экран */
  overflow-wrap: break-word;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow { max-width: 760px; }

/* ============ КНОПКИ ============ */
.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform var(--dur-base) var(--ease-out-soft), box-shadow var(--dur-base) var(--ease-out-soft), background var(--dur-base) var(--ease-out-soft);
}
.btn:active { transform: scale(.97); transition-duration: var(--dur-instant); }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.35);
}
.btn--primary:hover { background: var(--brand-hover); transform: translateY(-1px); }

.btn--white {
  background: #fff;
  color: var(--brand);
}
.btn--white:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }

.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--wide { width: 100%; }

.btn--outline {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn--outline:hover { background: var(--primary-light); transform: translateY(-1px); }

.hero__example-btn, .upload-visual__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 264px; box-sizing: border-box;
}
.hero__example-btn { margin-top: 10px; font-size: 13.5px; white-space: nowrap; }
.upload-visual__cta img, .hero__example-btn img { width: 20px; height: 20px; flex-shrink: 0; }

/* ============ ШАПКА ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--material-header-bg);
  backdrop-filter: var(--material-header-blur);
  border-bottom: 1px solid rgba(226,232,240,.6);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 22px;
  font-weight: 500;
}
.logo__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 22px;
  overflow: hidden;
}
.logo__icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo__text b { color: var(--brand); font-weight: 800; }

.nav { display: flex; gap: 28px; }
.nav__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color .15s;
}
.nav__link:hover { color: var(--primary); }

.burger { display: none; background: none; border: none; cursor: pointer; }
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
}

/* ============ ГЕРОЙ ============ */
.hero {
  background: linear-gradient(160deg, var(--primary-light) 0%, #ffffff 55%, #f0f6fd 100%);
  padding: 64px 0 40px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.hero__title {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  margin-bottom: 18px;
}
.accent { color: var(--primary); }

.hero__subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero__points {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
}
@media (max-width: 640px) {
  .hero__points-item--hide-mobile { display: none; }
}

/* ============ ЗАГРУЗКА: КАРТИНКА ============ */
.upload-visual {
  display: grid;
  justify-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px 28px 24px;
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out-soft), box-shadow var(--dur-base) var(--ease-out-soft);
  user-select: none;
}
.upload-visual:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(15, 42, 68, 0.14);
}

.upload-visual__img { width: 100%; max-width: 340px; height: auto; }
.upload-visual__img--photo {
  max-width: 324px;
  border-radius: 12px;
  opacity: 1;
  transition: opacity 650ms var(--ease-out-soft);
}

.upload-visual__frame { position: relative; display: inline-block; }
.upload-visual__badge {
  position: absolute;
  right: -16px;
  top: -16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--elevation-4);
  border-radius: 100px;
  padding: 7px 16px 7px 7px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 650ms var(--ease-out-soft);
}
.upload-visual__badge-dot {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}
.upload-visual__cta { margin-top: 10px; pointer-events: none; }
.upload-visual__hint { font-size: 13px; color: var(--text-muted); }

.progress {
  height: 8px;
  background: var(--bg-gray);
  border-radius: 100px;
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: 100px;
  transition: width .3s;
}

/* ============ МОДАЛЬНЫЕ ОКНА ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  transition: display var(--dur-moderate) allow-discrete;
}
.modal[hidden] {
  display: none;
  transition: display var(--dur-moderate) allow-discrete;
}
.select__menu[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--material-scrim);
  backdrop-filter: var(--material-scrim-blur);
  opacity: 1;
  transition: opacity var(--dur-moderate) var(--ease-out-soft);
}
.modal[hidden] .modal__backdrop {
  opacity: 0;
  transition: opacity var(--dur-moderate) var(--ease-in-soft);
}

.modal__card {
  position: relative;
  background: var(--material-card-bg);
  backdrop-filter: var(--material-card-blur);
  border-radius: 20px;
  border-top: 1px solid var(--hairline-on-material);
  box-shadow: var(--elevation-3);
  padding: 28px;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity var(--dur-moderate) var(--ease-out-soft), transform var(--dur-moderate) var(--ease-out-soft);
}
.modal[hidden] .modal__card {
  opacity: 0;
  transform: translateY(14px) scale(.98);
  transition: opacity var(--dur-moderate) var(--ease-in-soft), transform var(--dur-moderate) var(--ease-in-soft);
}
@starting-style {
  .modal:not([hidden]) .modal__backdrop { opacity: 0; }
  .modal:not([hidden]) .modal__card { opacity: 0; transform: translateY(14px) scale(.98); }
}

/* Спецэффект для мобильной расшифровки: попап «уезжает» вверх и превращается
   в верхний прогресс-бар, вместо обычного мягкого затухания вниз. */
.modal--slide-up .modal__card,
.modal--slide-up .modal__backdrop {
  transition: opacity var(--dur-moderate) var(--ease-in-soft), transform var(--dur-moderate) var(--ease-in-soft);
}
.modal--slide-up[hidden] .modal__card {
  opacity: 0;
  transform: translateY(-140%) scale(.96);
}
.modal--slide-up[hidden] .modal__backdrop { opacity: 0; }
.modal__card--form { max-width: 520px; padding-top: 48px; }
.modal__card.is-dragover {
  outline: 2px dashed var(--primary);
  outline-offset: -2px;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 17px;
  color: var(--text-muted);
  cursor: pointer;
}
.modal__close:hover { color: var(--text); }

.modal__title { font-size: 19px; font-weight: 700; margin-bottom: 6px; padding-right: 28px; }
.modal__subtitle { font-size: 14.5px; color: var(--text-muted); margin-bottom: 20px; }

.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 12px;
  transition: border-color var(--dur-base) var(--ease-out-soft), background var(--dur-base) var(--ease-out-soft), transform var(--dur-base) var(--ease-out-soft);
}
.choice:hover { border-color: var(--primary); transform: translateY(-1px); }

.choice--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.choice--primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }

.choice__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255,255,255,.2);
  font-size: 22px;
}
.choice:not(.choice--primary) .choice__icon { background: var(--primary-light); }

.choice__text { display: grid; gap: 2px; }
.choice__text b { font-size: 15.5px; }
.choice__text small { font-size: 12.5px; opacity: .85; }
.choice:not(.choice--primary) .choice__text small { color: var(--text-muted); }

.modal__legal {
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
  margin: 16px 0;
}
.modal__legal a { color: var(--primary); }

/* переключатель «Стандартная / Комплексная» */
.seg-wrap { margin-bottom: 18px; }

.seg__title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.seg {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
}

.seg__thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 6px);
  height: calc(100% - 8px);
  border-radius: 9px;
  background: var(--primary);
  box-shadow: 0 3px 10px rgba(45, 127, 249, .35);
  transition: transform var(--dur-base) var(--ease-seg);
}
.seg.is-second .seg__thumb { transform: translateX(calc(100% + 4px)); }

.seg__btn {
  position: relative;
  z-index: 1;
  border: none;
  background: none;
  border-radius: 9px;
  padding: 10px 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .18s;
}
.seg__btn.is-active { color: #fff; }

.seg__hint {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 8px;
  min-height: 32px;
}

.modal__cancel {
  width: 100%;
  background: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background .15s;
}
.modal__cancel:hover { background: var(--bg-gray); }

/* ============ АНКЕТА ============ */
.select { position: relative; margin-bottom: 14px; }

.select__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--text);
  cursor: pointer;
}
.select__toggle:hover { border-color: var(--primary); }
.select__arrow { color: var(--text-muted); transition: transform .2s; }
.select.is-open .select__arrow { transform: rotate(180deg); }

.select__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 10;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--elevation-4);
  overflow: hidden;
  transform-origin: top center;
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: opacity var(--dur-fast) var(--ease-out-soft), transform var(--dur-fast) var(--ease-out-soft), display var(--dur-fast) allow-discrete;
}
.select__menu[hidden] {
  opacity: 0;
  transform: scale(.96) translateY(-4px);
  transition: opacity var(--dur-fast) var(--ease-in-soft), transform var(--dur-fast) var(--ease-in-soft), display var(--dur-fast) allow-discrete;
}
@starting-style {
  .select__menu:not([hidden]) { opacity: 0; transform: scale(.96) translateY(-4px); }
}
.select__option {
  padding: 13px 16px;
  font-size: 14.5px;
  cursor: pointer;
  transition: background .1s;
}
.select__option:hover { background: var(--primary-light); }
.select__option.is-active { background: var(--bg-gray); font-weight: 600; }

.form-files {
  font-size: 13px;
  color: var(--ok);
  font-weight: 600;
  margin-bottom: 14px;
}

.field { display: block; margin-bottom: 14px; }
.field__label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field__label i { font-style: normal; font-weight: 400; color: var(--text-muted); }
.field__input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field__input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(45,127,249,.15); }
.field__input.is-invalid { border-color: #f59e0b; }

.field__textarea-wrap { position: relative; display: block; }
.field__input--area { min-height: 110px; resize: vertical; }
.field__counter {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 12px;
  color: var(--text-muted);
  pointer-events: none;
  background: #fff;
  padding: 0 4px;
}

.field__hint {
  font-size: 13px;
  font-weight: 600;
  color: #b45309;
  margin: -6px 0 14px;
}
.field__hint--done { color: var(--text-muted); font-weight: 400; }

.field__filled {
  font-size: 12.5px;
  color: var(--ok);
  font-weight: 600;
  margin: -8px 0 14px;
}
.field__filled[hidden] { display: none; }

.switch-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--text-muted);
}
.switch-row a { color: var(--primary); }
.switch-row__text b { color: var(--text); }

.switch {
  flex-shrink: 0;
  width: 42px;
  height: 24px;
  border-radius: 100px;
  background: #d8dee7;
  position: relative;
  transition: background .2s;
  margin-top: 1px;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: left .2s;
}
.switch-input:checked + .switch { background: var(--primary); }
.switch-input:checked + .switch::after { left: 21px; }

.form-note {
  font-size: 13.5px;
  color: var(--text-muted);
  text-align: center;
  margin: 10px 0;
}

.form-free-note {
  margin: 4px 0 2px;
  padding: 11px 14px;
  border-radius: 11px;
  background: var(--primary-light);
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}
.form-free-note b { color: var(--brand); font-weight: 800; }

/* ============ РЕЗУЛЬТАТ РАСШИФРОВКИ ============ */
.result-block {
  background: var(--bg-gray);
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 13.5px;
  color: var(--text);
  margin-bottom: 10px;
}
.result-block--rec { background: var(--low-bg); }
.result-block--warn {
  background: #fff8e6;
  border: 1px solid #fde9b8;
  color: #92650a;
  font-size: 12.5px;
}
#resultRows { margin-bottom: 14px; }
#resultRows .report-row { font-size: 13px; padding: 7px 12px; }
.modal__cancel--result { margin-top: 10px; }

.mail-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 10px;
}
.mail-note--ok { color: var(--ok); font-weight: 600; }
.mail-note--err { color: #b45309; }
.mail-note[hidden] { display: none; }
.btn[hidden] { display: none; }
#resultLink { margin-bottom: 10px; }

.btn:disabled {
  background: #a5c8db;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* ============ СЕКЦИИ ============ */
.section { padding: 80px 0; }
.section--gray { background: var(--bg-gray); }

.section__title {
  font-size: 34px;
  font-weight: 800;
  text-align: left;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.section__subtitle {
  text-align: left;
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 48px;
}

/* ============ ПРИМЕРЫ РАСШИФРОВОК ============ */
.section--examples { padding: 48px 0; }
.section--examples .section__title { margin-bottom: 32px; }

.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 20px;
}

.example {
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out-soft), box-shadow var(--dur-base) var(--ease-out-soft), border-color var(--dur-base) var(--ease-out-soft);
}
.example__zoom-ico {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 15px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  box-shadow: var(--elevation-4);
  opacity: 0;
  transform: scale(.85);
  transition: opacity var(--dur-base) var(--ease-out-soft), transform var(--dur-base) var(--ease-out-soft);
  pointer-events: none;
}
.example:hover .example__zoom-ico { opacity: 1; transform: scale(1); }
.example:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 14px 40px rgba(15, 42, 68, .16);
}

.example__shot {
  display: block;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.example__shot img {
  width: 100%;
  height: auto;
  display: block;
}

.example__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
}
.example__bar b {
  color: var(--primary);
  font-size: 10.5px;
  white-space: nowrap;
}

.example__mock {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 0;
  background: var(--bg-gray);
}
.example__mock--body { padding-bottom: 16px; }
.example__mock .report { flex: 1; }

.example__mock--img { padding: 0; background: #fff; }
.example__pic { width: 100%; height: auto; display: block; }

.example__mock--figure {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 24px 0;
}
.example__pic--figure { width: auto; height: 260px; max-width: 80%; }
.example__caption {
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 12px 14px;
}

.example--wide { grid-column: span 2; }

.bodygrid {
  display: grid;
  grid-template-areas: "left figure right";
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}
.bodygrid__col:first-child { grid-area: left; display: grid; gap: 10px; }
.bodygrid__col:last-child { grid-area: right; display: grid; gap: 10px; }
.bodygrid__figure { grid-area: figure; width: 84px; height: auto; justify-self: center; }

.bodygrid__card { border-radius: 10px; padding: 10px 12px; font-size: 11.5px; }
.bodygrid__card--high { background: var(--high-bg); }
.bodygrid__card--ok { background: var(--ok-bg); }

.bodygrid__head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.bodygrid__head b { font-size: 12px; font-weight: 700; color: var(--text); }

.bodygrid__badge {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.bodygrid__badge--high { background: var(--high); }

.bodygrid__row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 3px; font-size: 11px; color: var(--text-muted); }
.bodygrid__row:last-child { margin-bottom: 0; }
.bodygrid__tag {
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 100px;
  color: #fff;
  flex-shrink: 0;
}
.bodygrid__tag--high { background: var(--high); }
.bodygrid__tag--attn { background: var(--attn); }

.bodygrid__note { font-size: 11px; color: var(--ok); font-weight: 600; }

@media (max-width: 640px) {
  .bodygrid {
    grid-template-areas: "figure figure" "left right";
    grid-template-columns: 1fr 1fr;
  }
  .bodygrid__figure { margin-bottom: 6px; }
}

/* карточка-отчёт */
.report {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px 16px 16px;
  font-size: 12px;
  height: 100%;
}

/* мини-график сравнения: синий — ваш результат, красный — граница нормы */
.report__chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 56px;
  margin-bottom: 10px;
}
.report__chart-group {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 100%;
}
.report__chart-bar { width: 9px; border-radius: 3px 3px 0 0; }
.report__chart-bar--value { background: var(--primary); }
.report__chart-bar--norm { background: var(--high); opacity: .55; }

.tagcat-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.tagcat-legend__dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.tagcat-legend__dot--value { background: var(--primary); }
.tagcat-legend__dot--norm { background: var(--high); opacity: .55; }

/* тело-диаграмма в широкой карточке */
.body-diagram { width: 100%; height: auto; margin: 6px 0 4px; font-family: inherit; }

/* ============ ИИ-ПОМОЩНИК ============ */
.aidoc {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.aidoc__text .section__title { margin-bottom: 10px; }
.aidoc__text .section__subtitle { margin-bottom: 28px; }

.aidoc__list {
  list-style: none;
  display: grid;
  gap: 18px;
  margin-bottom: 32px;
}
.aidoc__list li { position: relative; padding-left: 22px; }
.aidoc__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--brand);
}
.aidoc__list b { display: block; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.aidoc__list p { font-size: 14.5px; color: var(--text-muted); line-height: 1.55; }

.aidoc__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
  overflow: hidden;
}
.aidoc__blob {
  position: absolute;
  border-radius: 50%;
  background: var(--primary-light);
}
.aidoc__blob--1 { width: 320px; height: 320px; top: 0; right: 10%; }

.aidoc__phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  background: #fff;
  border-radius: 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 20px 18px;
}
.aidoc__status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.aidoc__legend {
  display: flex;
  gap: 14px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.aidoc__legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.aidoc__legend-dot--user { background: var(--brand); }
.aidoc__legend-dot--ai { background: var(--text-muted); }

.aidoc__chatlog {
  height: 300px;
  overflow-y: hidden;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
}
.aidoc__chatlog > .aidoc__msg:first-child { margin-top: auto; }
.aidoc__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-bg);
}

.aidoc__msg { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 12px; max-width: 94%; }
.aidoc__msg--user { margin-left: auto; flex-direction: row-reverse; }
.aidoc__msg--ai { margin-right: auto; }

.aidoc__avatar {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
}

.aidoc__bubble {
  border-radius: 14px;
  padding: 11px 14px;
  font-size: 13px;
  line-height: 1.5;
}
.aidoc__bubble--q {
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.aidoc__bubble-tag {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  opacity: .85;
  margin-bottom: 3px;
}
.aidoc__bubble--a {
  background: var(--bg-gray);
  color: var(--text);
  border-bottom-left-radius: 4px;
  white-space: pre-line;
  min-height: 1.5em;
}
.aidoc__bubble--q { white-space: pre-line; }
.aidoc__bubble.is-typing::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .6;
  animation: aidocCaret 0.9s steps(1) infinite;
  vertical-align: middle;
}
@keyframes aidocCaret { 50% { opacity: 0; } }

@media (max-width: 900px) {
  .aidoc { grid-template-columns: 1fr; gap: 40px; }
  .aidoc__visual { min-height: 320px; }
}

/* увеличение примера по клику */
.example-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 24px;
}
.example-zoom-overlay.is-open { display: grid; }
.example-zoom-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: var(--material-scrim);
  backdrop-filter: var(--material-scrim-blur);
  opacity: 0;
  transition: opacity var(--dur-moderate) var(--ease-out-soft);
}
.example-zoom-overlay.is-open .example-zoom-overlay__backdrop { opacity: 1; }
.example-zoom-overlay__inner {
  position: relative;
  width: 100%;
  max-width: min(640px, 92vw);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  transform: scale(.94);
  transition: opacity var(--dur-moderate) var(--ease-out-soft), transform var(--dur-moderate) var(--ease-out-soft);
}
.example-zoom-overlay.is-open .example-zoom-overlay__inner { opacity: 1; transform: scale(1); }
.example-zoom-overlay__inner .example__mock {
  border-radius: var(--radius);
  box-shadow: var(--elevation-3);
  overflow: hidden;
}
.example-zoom-overlay__inner .example__pic { width: 100%; height: auto; display: block; }
.example-zoom-overlay__close {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  box-shadow: var(--elevation-3);
  transition: transform var(--dur-instant) var(--ease-out-soft);
}
.example-zoom-overlay__close:hover { transform: scale(1.08); }

.report__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.report__brand { font-weight: 800; color: var(--brand); font-size: 11px; white-space: nowrap; }
.report__doc { color: var(--text-muted); font-size: 10px; text-align: right; }

.report__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: var(--primary-light);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.report__meta h4 { font-size: 13px; color: var(--brand); margin-bottom: 4px; }
.report__meta p { font-size: 11px; margin: 1px 0; }
.report__meta p span { color: var(--text-muted); }
.report__qr { width: 44px; height: 44px; flex-shrink: 0; background: #fff; border-radius: 6px; padding: 4px; }

.report__label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.report__type { font-weight: 700; font-size: 12.5px; margin-bottom: 8px; }

.report__rows { display: grid; gap: 4px; margin-bottom: 10px; }
.report-row {
  background: var(--bg-gray);
  border-radius: 8px;
  padding: 6px 10px 8px;
  font-size: 11.5px;
}
.report-row__main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto minmax(48px, auto) 78px;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.report-row__main > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* шкала низко/норма/высоко с маркером результата */
.range-scale {
  position: relative;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg,
    var(--attn) 0%, var(--attn) 18%,
    var(--ok) 30%, var(--ok) 70%,
    var(--high) 82%, var(--high) 100%);
  opacity: .8;
}
.range-scale__marker {
  position: absolute;
  top: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--ok);
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.range-scale__marker--attn { border-color: var(--attn); }
.range-scale__marker--high { border-color: var(--high); }
.report-row b { white-space: nowrap; text-align: right; }
.report-row i {
  font-style: normal;
  color: var(--text-muted);
  font-size: 10.5px;
  white-space: nowrap;
  text-align: right;
}
.report-row .tag { font-size: 9.5px; padding: 2px 7px; white-space: nowrap; justify-self: end; }
.report-row .tag--ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.report-row .tag--attn { background: var(--attn-bg); color: var(--attn); border-color: transparent; }
.report-row .tag--high { background: var(--high-bg); color: var(--high); border-color: transparent; }

.report-row--head {
  background: none;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
}
.report-row--head b, .report-row--head i { font-weight: 600; font-size: 10px; color: var(--text-muted); }

.report__sum {
  font-size: 11px;
  color: var(--text-muted);
  background: #fff8e6;
  border: 1px solid #fde9b8;
  border-radius: 8px;
  padding: 8px 10px;
}

/* ============ ПРОСМОТР ПРИМЕРА ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  transition: display var(--dur-moderate) allow-discrete;
}
.lightbox[hidden] {
  display: none;
  transition: display var(--dur-moderate) allow-discrete;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: var(--material-scrim);
  backdrop-filter: var(--material-scrim-blur);
  opacity: 1;
  transition: opacity var(--dur-moderate) var(--ease-out-soft);
}
.lightbox[hidden] .lightbox__backdrop {
  opacity: 0;
  transition: opacity var(--dur-moderate) var(--ease-in-soft);
}

.lightbox__card {
  position: relative;
  max-width: min(760px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity var(--dur-moderate) var(--ease-out-soft), transform var(--dur-moderate) var(--ease-out-soft);
}
.lightbox[hidden] .lightbox__card {
  opacity: 0;
  transform: translateY(10px) scale(.985);
  transition: opacity var(--dur-moderate) var(--ease-in-soft), transform var(--dur-moderate) var(--ease-in-soft);
}
@starting-style {
  .lightbox:not([hidden]) .lightbox__backdrop { opacity: 0; }
  .lightbox:not([hidden]) .lightbox__card { opacity: 0; transform: translateY(10px) scale(.985); }
}
.lightbox__card img {
  max-width: 100%;
  max-height: calc(100vh - 110px);
  width: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.lightbox__card figcaption {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  transition: transform .15s;
}
.lightbox__close:hover { transform: scale(1.08); }

/* ============ КАК ЭТО РАБОТАЕТ ============ */
#how .section__title { margin-bottom: 32px; }

.howto {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 44px 20px;
}

.howto__col {
  display: flex;
  flex-direction: column;
  padding: 0 32px;
  border-right: 1px dashed #cfe0f3;
}
.howto__col:last-child { border-right: none; }

.howto__badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}
.howto__num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0;
}

.howto__title {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.howto__text {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.howto__mock {
  margin-top: auto;
  background: var(--bg-gray);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 8px;
}

/* шаг 1 — зона загрузки */
.mock-drop {
  display: grid;
  justify-items: center;
  gap: 3px;
  border: 1.5px dashed var(--primary);
  border-radius: 12px;
  background: var(--primary-light);
  padding: 18px 12px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.mock-drop:hover, .mock-drop.is-dragover { background: #dbe9fd; }
.mock-drop__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  margin-bottom: 4px;
}
.mock-drop b { font-size: 13.5px; }
.mock-drop small { font-size: 11.5px; color: var(--text-muted); }

.mock-file {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 12.5px;
}
.mock-file__ico { font-size: 13px; }
.mock-file__name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-file__size { color: var(--text-muted); font-size: 11px; white-space: nowrap; }
.mock-file__ok { color: var(--ok); font-weight: 700; }

/* шаг 2 — этапы обработки */
.mock-step {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 12.5px;
}
.mock-step b { margin-left: auto; color: var(--ok); }
.mock-step__wait { color: var(--text-muted); letter-spacing: .1em; }
.mock-step__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.mock-step__dot--wait { background: #cbd5e1; }

/* шаг 3 — отчёт */
.mock-report {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.mock-report__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
}
.mock-report__chip {
  color: var(--text-muted);
  font-size: 11px;
}
.mock-report__body {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.mock-report__btn {
  display: block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  text-align: center;
  border-radius: 10px;
  padding: 11px;
  font-size: 12.5px;
  font-weight: 700;
  transition: background .15s;
}
.mock-report__btn:hover { background: var(--brand-hover); }

/* ============ ПОЧЕМУ ЛАБРАЗБОР ============ */
.section--why { background: var(--bg-gray); }

.why-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
}
.why-ico svg { width: 21px; height: 21px; }

.why-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}
.why-stat { display: flex; align-items: center; gap: 14px; }
.why-stat__text { display: grid; }
.why-stat__text b { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.why-stat__text small { font-size: 13px; color: var(--text-muted); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.why-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: transform var(--dur-base) var(--ease-out-soft), box-shadow var(--dur-base) var(--ease-out-soft);
}
.why-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.why-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.why-card p { font-size: 14.5px; color: var(--text-muted); }

.why-notes {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.why-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.why-note svg { width: 18px; height: 18px; color: var(--primary); }

/* ============ АНАЛИЗЫ ============ */
/* ============ ЧТО МЫ РАСШИФРОВЫВАЕМ ============ */
.section__title--center { text-align: center; }
.section__subtitle--center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.services__toggle-wrap { text-align: center; margin-top: 32px; }
.services__toggle {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 100px;
  padding: 12px 26px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  transition: border-color var(--dur-base) var(--ease-out-soft), background var(--dur-base) var(--ease-out-soft);
}
.services__toggle:hover { border-color: var(--primary); background: var(--primary-light); }

.service-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  color: inherit;
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-out-soft), box-shadow var(--dur-base) var(--ease-out-soft), border-color var(--dur-base) var(--ease-out-soft);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 14px 34px rgba(15, 42, 68, .1);
}
.service-card__ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 18px;
  transition: background var(--dur-base) var(--ease-out-soft), transform var(--dur-base) var(--ease-out-soft);
}
.service-card__ico svg { width: 24px; height: 24px; }
.service-card__ico--img img { width: 28px; height: 28px; object-fit: contain; display: block; }
.service-card:hover .service-card__ico { background: var(--primary); color: #fff; transform: scale(1.06); }
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.service-card p { font-size: 14px; line-height: 1.6; color: var(--text-muted); }

.service-card__feats {
  list-style: none;
  display: grid;
  gap: 9px;
  margin-top: 14px;
}
.service-card__feats li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
}
.service-card__feats li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}
.service-card__feats a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--dur-base) var(--ease-out-soft);
}
.service-card__feats a:hover { color: var(--primary); }

/* ============ ПОПУЛЯРНЫЕ ЗАПРОСЫ ============ */
.section--tags { background: #fff; }
.tags__label {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.tags__title { max-width: 820px; margin: 0 auto 40px; line-height: 1.2; }

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.tag {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 11px 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  user-select: none;
  transition: transform var(--dur-base) var(--ease-out-soft), background var(--dur-base) var(--ease-out-soft), border-color var(--dur-base) var(--ease-out-soft), box-shadow var(--dur-base) var(--ease-out-soft), color var(--dur-base) var(--ease-out-soft);
}
.tag:hover {
  transform: translateY(-2px);
  background: var(--primary-light);
  border-color: var(--primary);
  box-shadow: 0 8px 18px rgba(45, 127, 249, .16);
}

/* ============ ТАРИФЫ ============ */
.section--pricing { background: #fff; }

.pricing__label {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.pricing__title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 16px;
}

.pricing__sub {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
  font-size: 15.5px;
  color: var(--text-muted);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px 26px 26px;
  box-shadow: var(--shadow);
}

.plan__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.plan__tag {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.plan__title { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 10px; }
.plan__desc { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.plan__figure { display: block; height: 130px; width: auto; margin: 0 auto 16px; }

.plan__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.plan__price b { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan__price span { font-size: 13.5px; color: var(--text-muted); }

.plan__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.plan__chips span {
  background: var(--primary-light);
  color: var(--brand);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
}

.plan__feats { list-style: none; display: grid; gap: 11px; margin-bottom: 24px; }
.plan__feats li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
}
.plan__feats li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--primary);
  font-weight: 700;
}

.plan__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--dur-base) var(--ease-out-soft), background var(--dur-base) var(--ease-out-soft), transform var(--dur-base) var(--ease-out-soft);
}
.plan__btn:hover { border-color: var(--brand); background: var(--primary-light); transform: translateY(-1px); }
a.plan__btn { text-decoration: none; }

.nav__link--account { font-weight: 600; color: var(--primary); }

.plan__note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
}
.plan__note a { color: var(--primary); }

/* акцентный тариф */
.plan--dark {
  background: #0f2437;
  border-color: #0f2437;
  color: #fff;
}
.plan--dark .plan__tag { color: var(--primary); }
.plan--dark .plan__desc { color: #cbd5e1; }
.plan--dark .plan__price span { color: #94a3b8; }
.plan--dark .plan__chips span { background: rgba(45,127,249,.22); color: #9dc4fd; }
.plan--dark .plan__feats li::before { color: var(--primary); }
.plan--dark .plan__btn {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.plan--dark .plan__btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.plan--dark .plan__note { color: #94a3b8; }
.plan--dark .plan__note a { color: #7fe3e2; }

/* ============ ОТЗЫВЫ ============ */
.section--reviews { background: var(--bg-gray); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
}

.review__stars { font-size: 13px; letter-spacing: 2px; color: var(--primary); }
.review__stars .off { color: #cbd5e1; }

.review__quote {
  display: block;
  font-size: 34px;
  line-height: 1;
  color: var(--primary);
  margin: 10px 0 2px;
}

.review blockquote { font-size: 14.5px; line-height: 1.55; margin-bottom: 20px; }

.review__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.review__ava {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 700;
}
.review__who { display: grid; }
.review__who b { font-size: 14.5px; }
.review__who small { font-size: 12.5px; color: var(--text-muted); }

/* акцентная тёмная карточка */
.review--dark {
  background: #0f2437;
  border-color: #0f2437;
  color: #fff;
}
.review--dark blockquote { font-weight: 600; }
.review--dark .review__author { border-top-color: rgba(255,255,255,.15); }
.review--dark .review__ava { background: var(--brand); color: #fff; }
.review--dark .review__who small { color: #94a3b8; }

/* ============ FAQ ============ */
/* вопросы идут подряд сверху вниз и переливаются во вторую колонку */
.faq-cols {
  column-count: 2;
  column-gap: 24px;
  margin-top: 40px;
}

.faq { display: block; }

.faq__item {
  break-inside: avoid;
  margin-bottom: 12px;
}

.faq__group {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 26px 0 12px;
  break-inside: avoid;
  break-after: avoid;
}
.faq-cols > .faq__group:first-child { margin-top: 0; }

/* вторая колонка начинается с нового блока, чтобы вопросы не отрывались от заголовка */
.faq__group--break { break-before: column; margin-top: 0; }

.faq__item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 22px;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  position: relative;
  padding-right: 32px;
}
.faq__item summary .faq__q {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--primary);
  transition: transform var(--dur-fast) var(--ease-out-soft);
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding: 0 0 18px; color: var(--text-muted); font-size: 15px; }
.faq__item p a { color: var(--primary); text-decoration: none; }

/* ============ CTA ============ */
.cta {
  background: linear-gradient(135deg, var(--brand) 0%, #004a99 100%);
  color: #fff;
  padding: 72px 0;
}
.cta__inner { text-align: left; }
.cta h2 { font-size: 32px; font-weight: 800; margin-bottom: 10px; }
.cta p { font-size: 17px; opacity: .9; margin-bottom: 28px; }

/* ============ ПОДВАЛ ============ */
.footer {
  background: #0f2437;
  color: #cbd5e1;
  padding: 56px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.logo--footer { color: #fff; }

.footer__about { margin-top: 14px; font-size: 14px; color: #94a3b8; max-width: 300px; }

.footer__col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
}
.footer__col a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color .15s;
}
.footer__col a:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 13px;
  color: #64748b;
}
.footer__req { margin-top: 8px; font-size: 12.5px; color: #64748b; }

.footer__login-toggle {
  display: inline-block; margin-top: 14px;
  background: none; border: none; padding: 0;
  font-size: 12px; color: #64748b; text-decoration: underline;
  cursor: pointer; opacity: .7; transition: opacity .15s;
}
.footer__login-toggle:hover { opacity: 1; }
.footer__login-err { margin-top: 8px; font-size: 13px; color: #f87171; }

.admin-login {
  display: flex; flex-wrap: wrap; gap: 8px;
  max-width: 380px; margin: 10px 0 0;
}
.admin-login .field__input { flex: 1 1 120px; }
.admin-login .btn { flex: 0 0 auto; }

/* ============ АДАПТИВ ============ */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .services { grid-template-columns: 1fr 1fr; }
  .howto { grid-template-columns: 1fr; gap: 32px; padding: 32px 16px; }
  .howto__col { padding: 0 16px; border-right: none; border-bottom: 1px dashed #cfe0f3; padding-bottom: 32px; }
  .howto__col:last-child { border-bottom: none; padding-bottom: 0; }
  .howto__title { font-size: 23px; }
  .examples-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; gap: 28px; }
  .pricing__title { font-size: 30px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .header .btn { display: none; }
  .burger { display: block; }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    gap: 16px;
  }

  .hero { padding: 40px 0 56px; }
  .hero__subtitle { display: none; }
  .howto__lead-extra { display: none; }
  .section { padding: 56px 0; }
  .section__title { font-size: 26px; }
  .services { grid-template-columns: 1fr; }
  .section__subtitle--center { font-size: 15px; }
  .tags { gap: 9px; }
  .tag { padding: 9px 15px; font-size: 13.5px; }
  .reviews-grid { grid-template-columns: 1fr; gap: 12px; }
  .review { padding: 18px; }
  .faq-cols { column-count: 1; }
  .pricing__title { font-size: 26px; }
  .pricing__sub { font-size: 14px; margin-bottom: 32px; }
  .plan { padding: 26px 20px 22px; }
  .plan__price b { font-size: 38px; }
  .why-stats { grid-template-columns: 1fr; gap: 14px; margin-bottom: 26px; }
  .why-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
  .why-card { padding: 18px; }
  .why-grid { display: none; }
  .why-notes { gap: 16px; flex-direction: column; align-items: center; }
  .howto { padding: 24px 10px; gap: 26px; }
  .howto__col { padding: 0 10px; padding-bottom: 26px; }
  .howto__title { font-size: 21px; }
  .howto__text { font-size: 14px; margin-bottom: 18px; }
  .footer__inner { grid-template-columns: 1fr; }


  /* примеры: слайдер со свайпом */
  .examples-grid {
    display: flex;
    grid-template-columns: unset;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin: 0 -20px;
    padding: 4px 20px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .examples-grid::-webkit-scrollbar { display: none; }
  .examples-grid .example {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }
  .example__bar { flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 10px; font-size: 11px; }
  .example__bar b { font-size: 10px; }
  .report { padding: 14px 14px 16px; }
  .report-row__main { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
  .report-row { font-size: 12px; padding: 6px 10px 8px; }
  .report-row i { display: none; }
  .report-row .tag { font-size: 9.5px; }

  /* компактная анкета на мобильных */
  .modal { padding: 10px; }
  .modal__card--form { padding: 42px 16px 16px; max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
  .select { margin-bottom: 10px; }
  .select__toggle { padding: 10px 12px; font-size: 12.5px; }
  .select__option { padding: 10px 12px; font-size: 13.5px; }
  .form-files { margin-bottom: 10px; font-size: 12px; }
  .field { margin-bottom: 10px; }
  .field__label { font-size: 12.5px; margin-bottom: 4px; }
  .field__input { padding: 10px 12px; font-size: 14px; }
  .field__input--area { min-height: 76px; }
  .field__counter { font-size: 11px; bottom: 8px; right: 10px; }
  .field__hint { font-size: 12px; margin: -4px 0 10px; }
  .switch-row { font-size: 12px; gap: 10px; margin-bottom: 8px; }
  .switch { width: 36px; height: 20px; }
  .switch::after { width: 14px; height: 14px; }
  .switch-input:checked + .switch::after { left: 19px; }
  .form-note { font-size: 12px; margin: 6px 0; }
  .modal__card--form .btn { padding: 12px 20px; font-size: 15px; }

  .upload-visual__img--photo { max-width: 220px; }
  .upload-visual__badge {
    top: -10px;
    right: 0;
    max-width: calc(100vw - 88px);
    padding: 6px 14px 6px 6px;
    font-size: 12.5px;
  }
  .upload-visual__badge-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .upload-visual__badge-dot { width: 20px; height: 20px; font-size: 13px; }
}

/* ============ ВКЛАДКА "КОНСУЛЬТАЦИЯ" ============ */
.consult-tab {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #0ea5a4;
  color: #fff;
  padding: 16px 10px;
  border-radius: 10px 0 0 10px;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: background var(--dur-base) var(--ease-out-soft), padding var(--dur-base) var(--ease-out-soft);
}
.consult-tab__icon { flex-shrink: 0; color: #fff; }
.consult-tab__text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
}
.consult-tab:hover { background: #0b8a89; padding-right: 14px; }
.consult-tab:active { transform: translateY(-50%) scale(.96); transition-duration: var(--dur-instant); }

@media (max-width: 640px) {
  .consult-tab { padding: 12px 8px; }
  .consult-tab__text { font-size: 12.5px; }
  .consult-tab__icon { width: 14px; height: 14px; }
}

/* ============ ВЕРХНИЙ ПРОГРЕСС-БАР РАСШИФРОВКИ (мобильная версия) ============ */
.top-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(15, 42, 68, .08);
  padding: 10px 16px 9px;
}
.top-progress__bar {
  height: 8px;
  border-radius: 4px;
  background: #0ea5a4;
  width: 4%;
  transition: width .4s var(--ease-out-soft);
  margin-bottom: 8px;
}
.top-progress__label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}
