/* Лайфхаки (/lifehacks/): очистка текста от признаков нейросетей.
   26.10.2026, вторая версия по замечаниям Ивана: без свечения, светлее,
   фиолетовые акценты из палитры сайта (как у «цифрового дождя»), первый
   экран в две колонки – текст и пример «до/после», три шага, поле. */
.lh { --lh-violet: #8a6cff; --lh-violet-ink: #c7b8ff; --lh-card: #0f1f45; --lh-card-2: #13285a; --lh-line: rgba(169, 198, 255, .16); }

/* ---------- первый экран ---------- */
.lh-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, calc(5vw / var(--z, 1)), 80px); align-items: center; padding: clamp(40px, calc(5vw / var(--z, 1)), 80px) 0 clamp(40px, calc(5vw / var(--z, 1)), 72px); }
.lh-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 15px; color: var(--muted); }
.lh-crumbs a { color: var(--muted); text-decoration: none; }
.lh-crumbs a:hover { color: var(--ink); }
.lh-crumbs span { color: var(--lh-violet-ink); }
.lh-free { padding: 4px 10px; border-radius: 999px; font-weight: 500; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: linear-gradient(90deg, #4d6bff, var(--lh-violet)); }
.lh-hero h1 { margin-top: 18px; font-size: clamp(34px, calc(3.6vw / var(--z, 1)), 54px); font-weight: 400; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.lh-hero .lead { margin-top: 18px; max-width: 32em; font-size: var(--fs-lead); font-weight: 300; line-height: 1.5; color: var(--soft); }
.lh-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.lh-acts .btn { min-height: 52px; padding: 0 26px; font-size: 17px; }
.lh-privacy { margin-top: 16px; font-size: 14.5px; color: var(--muted); }

/* пример «до/после» */
.lh-demo { position: relative; display: grid; gap: 14px; margin: 0; }
.lh-demo-card { padding: 22px 24px; border-radius: 22px; background: var(--lh-card); border: 1px solid var(--lh-line); }
.lh-demo-card.is-after { margin-left: clamp(24px, calc(4vw / var(--z, 1)), 64px); background: var(--lh-card-2); border-color: rgba(138, 108, 255, .35); }
.lh-demo-k { display: inline-block; margin-bottom: 10px; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--lh-violet-ink); }
.lh-demo-card p { font-size: 18px; line-height: 1.6; color: var(--ink); }
.lh-demo .ct-kinds { margin-top: 14px; }
.lh-demo-ok { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14.5px; color: #8ff0bd; }
.lh-demo-ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #6ee7a8; }

/* ---------- три шага ---------- */
.lh-steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: lh; }
.lh-steps li { counter-increment: lh; display: grid; gap: 8px; align-content: start; padding: 22px 24px; border-radius: 20px; background: rgba(255, 255, 255, .035); border: 1px solid var(--lh-line); }
.lh-steps li::before { content: counter(lh); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 4px; border-radius: 50%; font: 500 15px/1 var(--f-num); color: #fff; background: linear-gradient(135deg, #4d6bff, var(--lh-violet)); }
.lh-steps b { font-size: 18px; font-weight: 500; color: var(--ink); }
.lh-steps span { font-size: 15.5px; font-weight: 300; line-height: 1.5; color: var(--soft); }

/* ---------- поле ---------- */
.lh-h2 { font-size: clamp(28px, calc(2.6vw / var(--z, 1)), 40px); font-weight: 400; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.lh-tool { padding-top: clamp(56px, calc(6vw / var(--z, 1)), 96px); }
.ct { position: relative; display: grid; gap: 16px; margin-top: 24px; padding: clamp(16px, calc(1.8vw / var(--z, 1)), 24px); border-radius: 26px; background: var(--lh-card); border: 1px solid var(--lh-line); overflow: hidden; }
.ct::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #4d6bff, var(--lh-violet), #4d8dff); }
.ct-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.ct-opt { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 300; color: var(--soft); cursor: pointer; }
.ct-opt input { width: 18px; height: 18px; accent-color: var(--lh-violet); }
.ct-demo { padding: 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--lh-violet-ink); text-decoration: underline; text-decoration-color: rgba(199, 184, 255, .4); text-underline-offset: 5px; cursor: pointer; }
.ct-demo:hover { text-decoration-color: currentColor; }
.ct-win { border-radius: 18px; overflow: hidden; background: #0a1838; border: 1px solid rgba(169, 198, 255, .2); transition: border-color .3s var(--ease); }
.ct-win:focus-within { border-color: rgba(138, 108, 255, .7); }
.ct-win-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--lh-line); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ct-badge { padding: 4px 10px; border-radius: 999px; background: rgba(138, 108, 255, .16); color: var(--lh-violet-ink); letter-spacing: .04em; transition: background-color .3s var(--ease), color .3s var(--ease); }
.ct.is-dirty .ct-badge { background: rgba(240, 88, 96, .18); color: #ff9ea4; }
.ct.is-clean .ct-badge { background: rgba(110, 231, 168, .16); color: #8ff0bd; }
.ct-field { min-height: 300px; max-height: 60vh; overflow: auto; padding: 20px 22px; font-size: 17px; line-height: 1.6; color: var(--ink); outline: none; overflow-wrap: anywhere; }
.ct-field:empty::before { content: attr(data-placeholder); font-size: 19px; color: var(--faint); pointer-events: none; }
.ct-field p, .ct-field ul, .ct-field ol, .ct-field blockquote, .ct-field pre, .ct-field table { margin: 0 0 .7em; }
.ct-field ul, .ct-field ol { padding-left: 1.4em; }
.ct-field h1, .ct-field h2, .ct-field h3, .ct-field h4 { margin: .4em 0 .5em; font-weight: 500; line-height: 1.25; color: #fff; }
.ct-field h1 { font-size: 26px; } .ct-field h2 { font-size: 22px; } .ct-field h3, .ct-field h4 { font-size: 18px; }
.ct-field b { font-weight: 600; color: #fff; }
.ct-field a { color: #9cc2ff; }
.ct-field table { border-collapse: collapse; }
.ct-field td, .ct-field th { padding: 4px 10px; border: 1px solid var(--lh-line); }
.ct-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.ct-stats { min-height: 24px; }
.ct-verdict { font-size: 16px; color: var(--soft); }
.ct.is-dirty .ct-verdict { color: #fff; }
.ct.is-clean .ct-verdict { color: #8ff0bd; }
.ct-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.ct-acts .btn { min-height: 48px; padding: 0 22px; font-size: 16px; }
.ct-acts .btn:disabled { opacity: .45; cursor: default; }
.ct-primary { color: #fff; background: linear-gradient(90deg, #3f66ff, var(--lh-violet)); border: 0; }
.ct-primary:not(:disabled):hover { filter: brightness(1.1); }

/* найденный символ: цветной квадратик на его месте, код – во всплывающей подсказке */
.ct-h { display: inline-block; min-width: .55em; height: 1.1em; margin: 0 1px; border-radius: 3px; vertical-align: -.18em; cursor: help; }
.ct-h.ct-marks { background: rgba(240, 88, 96, .75); }
.ct-h.ct-zero { background: rgba(255, 160, 80, .75); }
.ct-h.ct-bidi { background: rgba(176, 140, 255, .85); }
.ct-h.ct-space { background: rgba(255, 214, 102, .55); }
.ct-kinds { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 8px 0 0; padding: 0; list-style: none; }
.ct-kinds li { display: inline-flex; align-items: baseline; gap: 6px; font-size: 14.5px; color: var(--soft); }
.ct-kinds li::before { content: ""; align-self: center; width: 10px; height: 10px; border-radius: 3px; }
.ct-kinds b { font-family: var(--f-num); font-weight: 500; color: #fff; }
.ct-kinds .ct-marks::before, .lh-kinds .ct-marks b::before { background: rgba(240, 88, 96, .85); }
.ct-kinds .ct-zero::before, .lh-kinds .ct-zero b::before { background: rgba(255, 160, 80, .85); }
.ct-kinds .ct-bidi::before, .lh-kinds .ct-bidi b::before { background: rgba(176, 140, 255, .9); }
.ct-kinds .ct-space::before, .lh-kinds .ct-space b::before { background: rgba(255, 214, 102, .7); }

/* ---------- что ищем ---------- */
.lh-how, .lh-read { padding-top: clamp(56px, calc(6vw / var(--z, 1)), 96px); }
.lh-read { padding-bottom: clamp(56px, calc(7vw / var(--z, 1)), 112px); }
.lh-kinds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.lh-kinds li { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, .035); border: 1px solid var(--lh-line); }
.lh-kinds b { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; line-height: 1.25; color: var(--ink); }
.lh-kinds b::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; }
.lh-kinds span { font-size: 15px; font-weight: 300; line-height: 1.5; color: var(--soft); }
.lh-note { margin-top: 16px; font-size: 15px; font-weight: 300; color: var(--muted); }
.lh-cards { margin-top: 28px; }

/* ---------- ширины ---------- */
@media (max-width: 1100px) {
  .lh-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .lh-hero { grid-template-columns: 1fr; }
  .lh-demo { max-width: 620px; }
}
@media (max-width: 760px) {
  .lh-hero { padding-top: 24px; gap: 28px; }
  .lh-hero h1 { font-size: 34px; }
  .lh-hero .lead { font-size: 17px; }
  .lh-acts .btn { flex: 1 1 auto; }
  .lh-demo-card { padding: 18px; }
  .lh-demo-card.is-after { margin-left: 16px; }
  .lh-demo-card p { font-size: 16px; }
  .lh-steps ol, .lh-kinds { grid-template-columns: 1fr; }
  .ct { padding: 12px; border-radius: 22px; }
  .ct-win-bar { padding: 10px 14px; }
  .ct-field { min-height: 240px; padding: 16px; font-size: 16px; }
  .ct-field:empty::before { font-size: 17px; }
  .ct-acts, .ct-acts .btn { flex: 1 1 auto; }
}

/* ---------- третья версия (26.10, Иван) ----------
   Шапка по центру, сразу под ней поле в белой обводке без свечения,
   пример «до/после» и шаги ниже. */
.lh-hero { display: block; max-width: 900px; margin-inline: auto; text-align: center; padding-bottom: clamp(28px, calc(3vw / var(--z, 1)), 44px); }
.lh-hero .lh-crumbs { justify-content: center; }
.lh-hero .lead { margin-inline: auto; max-width: 40em; }
.lh-tool { padding-top: 0; }
.ct { margin-top: 0; border: 1.5px solid rgba(255, 255, 255, .55); }
.ct::before { display: none; }
.ct-win { border-color: rgba(199, 184, 255, .45); }
.lh-example { padding-top: clamp(56px, calc(6vw / var(--z, 1)), 96px); }
.lh-example .lh-demo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.lh-example .lh-demo-card.is-after { margin-left: 0; }
.lh-steps { padding-top: 14px; }
@media (max-width: 760px) {
  .lh-hero { text-align: left; }
  .lh-hero .lh-crumbs { justify-content: flex-start; }
  .lh-example .lh-demo { grid-template-columns: 1fr; }
}

/* видимые признаки: длинное тире и обороты-штампы */
.ct-h.ct-dash { min-width: 0; height: auto; padding: 0 2px; vertical-align: baseline; color: #fff; background: rgba(77, 141, 255, .45); }
.ct-p { padding: 0 1px; border-radius: 3px; color: inherit; background: rgba(255, 214, 102, .14); text-decoration: underline wavy rgba(255, 214, 102, .9); text-decoration-thickness: 1.5px; text-underline-offset: 4px; cursor: help; }
.ct-kinds .ct-dash::before, .lh-kinds .ct-dash b::before { background: rgba(77, 141, 255, .85); }
.ct-kinds .ct-phr::before, .lh-kinds .ct-phr b::before { background: rgba(255, 214, 102, .35); box-shadow: inset 0 -2px 0 rgba(255, 214, 102, .9); }
.lh-kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .lh-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .lh-kinds { grid-template-columns: 1fr; } }

/* ---------- ИИ-детектор: заключение ---------- */
.ct-result { display: grid; gap: 12px; padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid var(--lh-line); }
.ct-res-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.ct-res-head b { font-size: 20px; font-weight: 500; color: #fff; }
.ct-res-head span { font-family: var(--f-num); font-size: 15px; color: var(--soft); }
.ct-meter { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ct-meter i { display: block; height: 100%; border-radius: inherit; background: #6ee7a8; transition: width .6s var(--ease-out), background-color .3s var(--ease); }
.ct.is-maybe .ct-meter i { background: #ffc864; }
.ct.is-ai .ct-meter i { background: linear-gradient(90deg, var(--lh-violet), #f05860); }
.ct.is-ai .ct-res-head b { color: #ffb3b8; }
.ct.is-maybe .ct-res-head b { color: #ffd98f; }
.ct.is-human .ct-res-head b { color: #8ff0bd; }
.ct-why { display: grid; gap: 6px; margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.45; color: var(--soft); }
.ct-note { font-size: 14.5px; color: var(--muted); }
.ct.is-ai .ct-badge { background: rgba(240, 88, 96, .18); color: #ff9ea4; }
.ct.is-maybe .ct-badge { background: rgba(255, 200, 100, .16); color: #ffd98f; }
.ct.is-human .ct-badge { background: rgba(110, 231, 168, .16); color: #8ff0bd; }
.ct-foot { align-items: flex-start; }
.ct-stats { flex: 1 1 520px; }
.ct-kinds .ct-rhythm::before, .lh-kinds .ct-rhythm b::before { background: rgba(160, 200, 255, .6); }
.lh-kinds .ct-rhythm b::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; }

/* ---------- ИИ-детектор как окно приложения (26.10, Иван) ----------
   Тёмное окно в белой обводке: сверху панель, слева текст, справа колонка
   заключения той же высоты. Без свечения. */
.lh .ct { display: block; padding: 0; gap: 0; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 22px; overflow: hidden; background: #0c1a3c; color: var(--ink); box-shadow: none; }
.lh .ct::before { display: none; }
.ct-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 14px 20px; border-bottom: 1px solid var(--lh-line); background: #112452; }
.ct-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: #fff; }
.ct-brand i { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(120deg, #3f66ff, #8a6cff); }
.ct-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.lh .ct-opt { font-size: 14px; }
.lh .ct-demo { font-size: 14px; }
.ct-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); min-height: 460px; }
.ct-edit { display: flex; min-width: 0; border-right: 1px solid var(--lh-line); background: #0a1633; }
.lh .ct-field { flex: 1; min-height: 460px; max-height: 70vh; padding: 24px 26px; font-size: 17px; line-height: 1.65; }
.ct-rail { display: flex; flex-direction: column; gap: 16px; padding: 20px; background: #0f2048; }
.ct-rail-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lh .ct-stats { flex: 1; min-height: 0; }
.lh .ct-verdict { font-size: 15px; line-height: 1.5; }
.lh .ct-result { padding: 0; gap: 12px; border: 0; background: none; }
.lh .ct-res-head { display: grid; gap: 4px; }
.lh .ct-res-head b { font-size: 21px; line-height: 1.25; }
.lh .ct-res-head span { font-size: 14px; }
.lh .ct-why { padding-left: 18px; font-size: 14.5px; }
.lh .ct-note { font-size: 13.5px; line-height: 1.45; }
.lh .ct-rail .ct-kinds { gap: 6px 14px; }
.lh .ct-rail .ct-kinds li { font-size: 13.5px; }
.lh .ct-acts { display: grid; gap: 8px; margin-top: auto; }
.lh .ct-acts .btn { width: 100%; min-height: 46px; font-size: 16px; }
.ct-second { color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .22); }
.ct-second:not(:disabled):hover { border-color: rgba(255, 255, 255, .5); }
.ct-reset { padding: 8px 0 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; }
.ct-reset:hover { color: #fff; }
@media (max-width: 900px) {
  .ct-body { grid-template-columns: 1fr; }
  .ct-edit { border-right: 0; border-bottom: 1px solid var(--lh-line); }
  .lh .ct-field { min-height: 280px; }
}
@media (max-width: 760px) {
  .lh .ct { border-radius: 18px; }
  .ct-bar { padding: 12px 14px; }
  .lh .ct-field { min-height: 240px; padding: 16px; font-size: 16px; }
  .ct-rail { padding: 16px; }
}

/* поле с текстом – белое (26.10, Иван), остальное окно тёмное */
.ct-edit { background: #fff; }
.lh .ct-field { color: #101827; }
.lh .ct-field:empty::before { color: #8a9bb0; }
.lh .ct-field b, .lh .ct-field h1, .lh .ct-field h2, .lh .ct-field h3, .lh .ct-field h4 { color: #081c3a; }
.lh .ct-field a { color: #2f5bff; }
.lh .ct-field td, .lh .ct-field th { border-color: #e3ebf5; }
.lh .ct-field .ct-h.ct-marks { background: rgba(240, 88, 96, .55); }
.lh .ct-field .ct-h.ct-zero { background: rgba(255, 150, 60, .6); }
.lh .ct-field .ct-h.ct-bidi { background: rgba(150, 110, 255, .6); }
.lh .ct-field .ct-h.ct-space { background: rgba(240, 190, 60, .55); }
.lh .ct-field .ct-h.ct-dash { color: #101827; background: rgba(63, 102, 255, .22); }
.lh .ct-field .ct-p { background: rgba(255, 210, 80, .35); text-decoration-color: #d39b00; }
.ct-edit { border-right-color: rgba(255, 255, 255, .5); }

/* ---------- 26.10, вечер: редактор и заключение ----------
   Окно фиксированной высоты: колесо над полем листает текст внутри
   (overscroll-behavior: contain – страница не уезжает), вне поля – сайт.
   Ползунок виден всегда. */
.ct-body { height: clamp(460px, 68vh, 640px); min-height: 0; }
.ct-edit { flex-direction: column; min-height: 0; }
.lh .ct-field { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: scroll; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #b9c6d8 #f1f4f9; }
.lh .ct-field::-webkit-scrollbar { width: 10px; }
.lh .ct-field::-webkit-scrollbar-track { background: #f1f4f9; }
.lh .ct-field::-webkit-scrollbar-thumb { border: 2px solid #f1f4f9; border-radius: 10px; background: #b9c6d8; }
.lh .ct-field::-webkit-scrollbar-thumb:hover { background: #8a9bb0; }
.ct-tb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px 12px; border-bottom: 1px solid #e3ebf5; background: #f7f9fc; }
.ct-tb button { min-width: 34px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 14px; color: #34465c; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.ct-tb button:hover { background: #e8edf6; color: #101827; }
.ct-tb button b, .ct-tb button i, .ct-tb button u { font-size: 15px; }
.ct-tb-sep { width: 1px; height: 20px; margin: 0 6px; background: #dfe6f0; }
.ct-rail { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
/* заключение: крупный индекс, шкала, вывод, причины точками */
.lh .ct-result, .ct-empty { display: grid; gap: 12px; }
.ct-score { display: flex; align-items: flex-end; gap: 12px; }
.ct-score b { font: 500 56px/0.9 var(--f-num); letter-spacing: -.02em; color: #fff; }
.ct-score span { padding-bottom: 4px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.ct.is-ai .ct-score b { color: #ff9ea4; }
.ct.is-maybe .ct-score b { color: #ffd98f; }
.ct.is-human .ct-score b { color: #8ff0bd; }
.ct-empty .ct-score b { color: rgba(255, 255, 255, .3); }
.lh .ct-meter { height: 6px; }
.ct-title { font-size: 19px; font-weight: 500; line-height: 1.3; color: #fff; }
.ct.is-ai .ct-title { color: #ffb3b8; }
.ct.is-maybe .ct-title { color: #ffd98f; }
.ct.is-human .ct-title { color: #8ff0bd; }
.lh .ct-why { display: grid; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; }
.lh .ct-why li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.45; color: var(--soft); }
.lh .ct-why li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 3px; background: rgba(160, 200, 255, .6); }
.lh .ct-why .ct-marks::before { background: rgba(240, 88, 96, .9); }
.lh .ct-why .ct-zero::before { background: rgba(255, 160, 80, .9); }
.lh .ct-why .ct-space::before { background: rgba(255, 214, 102, .8); }
.lh .ct-why .ct-dash::before { background: rgba(77, 141, 255, .9); }
.lh .ct-why .ct-phr::before { background: rgba(255, 214, 102, .45); box-shadow: inset 0 -2px 0 #ffd666; }
.lh .ct-note { font-size: 13.5px; color: var(--muted); }
/* длинное тире – тонкой подсветкой, без плашки */
.lh .ct-field .ct-h.ct-dash { padding: 0; border-radius: 2px; color: #2f5bff; background: rgba(63, 102, 255, .12); box-shadow: inset 0 -2px 0 rgba(63, 102, 255, .55); }
@media (max-width: 900px) {
  .ct-body { height: auto; }
  .ct-edit { height: 420px; }
  .ct-rail { overflow: visible; }
}
@media (max-width: 760px) {
  .ct-edit { height: 360px; }
  .ct-tb { gap: 2px; padding: 6px 8px; overflow-x: auto; flex-wrap: nowrap; }
  .ct-tb button { flex: none; }
  .ct-score b { font-size: 48px; }
}

/* Своя прокрутка – только у поля с текстом; над колонкой заключения,
   панелями и кнопками листается сайт (26.10, Иван). Высота задана полю,
   колонка заключения растягивается по нему. */
.ct-body { height: auto; }
.ct-edit { height: auto; }
.lh .ct-field { flex: 1 0 auto; height: clamp(400px, 60vh, 580px); }
.ct-rail { overflow: visible; overscroll-behavior: auto; }
@media (max-width: 900px) {
  .ct-edit { height: auto; }
  .lh .ct-field { height: 380px; }
}
@media (max-width: 760px) {
  .lh .ct-field { height: 320px; }
}
.lh-hero .lead { max-width: none; }

/* ---------- 28.10: один тёмно-синий блок (Иван) ----------
   Редактор и заключение – одна карточка с перегородкой. Слева значки, белый
   лист, счётчик и кнопки «Исправить», «Скопировать», DOCX, PDF; справа
   заключение и одна настройка. Лист тянется на всю высоту блока – пустого
   низа нет. Колесо мыши над листом листает страницу, пока в текст не нажали
   (класс is-active ставит lifehacks.js). */
.lh .ct { display: block; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.lh .ct-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 370px); gap: 0; height: clamp(580px, 74vh, 740px); min-height: 0;
  border-radius: 28px; background: linear-gradient(180deg, #102452, #0b1a3c); box-shadow: inset 0 0 0 1px rgba(127, 176, 255, .22), 0 30px 80px -40px rgba(0, 0, 0, .8); overflow: hidden; }
.lh .ct-edit { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 16px 22px 20px; border: 0; border-radius: 0; background: none; box-shadow: none; }
.lh .ct-tb { flex-wrap: nowrap; gap: 2px; padding: 2px 0 14px; border: 0; background: none; }
.lh .ct-tb button { display: grid; place-items: center; width: 38px; min-width: 0; height: 36px; padding: 0; border-radius: 10px; color: rgba(220, 230, 255, .78); }
.lh .ct-tb button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.lh .ct-tb svg { width: 21px; height: 21px; }
.lh .ct-tb-sep { height: 22px; margin: 0 8px; background: rgba(255, 255, 255, .16); }
.ct-tb-gap { flex: 1 1 auto; }
.lh .ct-tb .ct-tb-text { display: inline-flex; gap: 7px; width: auto; padding: 0 12px; font: 400 15px var(--f-text); color: rgba(220, 230, 255, .85); }
.lh .ct-tb .ct-tb-text svg { width: 18px; height: 18px; }
.ct-paper { display: flex; flex: 1 1 0; min-height: 0; border-radius: 18px; background: #fff; overflow: hidden; }
.lh .ct-field { flex: 1 1 0; height: auto; min-height: 0; max-height: none; padding: 24px 26px; font-size: 18px; line-height: 1.65; overflow-y: hidden;; overscroll-behavior: auto; }
/* overscroll-behavior: auto обязателен: старое contain у листа глушило колесо,
   и страница не листалась, пока курсор над листом */
/* лист листается сам только после нажатия в текст */
.lh .ct-field.is-active { overflow-y: auto; overscroll-behavior: contain; }
.lh .ct-field blockquote { margin: 0 0 .7em; padding-left: 16px; border-left: 3px solid #b9c8e6; color: #33425e; }
.lh .ct-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 16px; }
.ct-count { font-size: 15px; color: rgba(220, 230, 255, .6); font-variant-numeric: tabular-nums; }
.lh .ct-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.ct-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 14px; background: rgba(255, 255, 255, .04); color: #fff; font: 400 16px var(--f-text); cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease); }
.ct-btn svg { width: 19px; height: 19px; flex: none; }
.ct-btn:not(:disabled):hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); }
.ct-btn.is-primary { border-color: #fff; background: #fff; color: #0b1a3c; font-weight: 500; }
.ct-btn.is-primary:not(:disabled):hover { background: #e8eefc; }
.ct-btn:disabled { opacity: .4; cursor: default; }
/* правая часть: заключение, внизу – одна настройка */
.lh .ct-rail { display: flex; flex-direction: column; gap: 16px; padding: 22px 24px; border: 0; border-left: 1px solid rgba(127, 176, 255, .2); border-radius: 0; background: rgba(255, 255, 255, .025); box-shadow: none; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.lh .ct-rail-head { padding: 0; border: 0; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(220, 230, 255, .6); }
.lh .ct-rail-head b { font-weight: 500; }
.lh .ct-stats { flex: 1 1 auto; }
.lh .ct-rail .ct-opt { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(127, 176, 255, .16); font-size: 14.5px; color: rgba(220, 230, 255, .75); }
.lh .ct-rail .ct-opt input { accent-color: #7fb0ff; }
.ct-try { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px; background: rgba(255, 255, 255, .05); color: #fff; font: 400 15px var(--f-text); cursor: pointer; }
.lh .ct-more { margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: rgba(220, 230, 255, .75); }
.lh .ct-more a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; transition: text-decoration-color .2s var(--ease); }
.lh .ct-more a:hover { text-decoration-color: #fff; }
.ct-try:hover { border-color: rgba(255, 255, 255, .5); }
.ct-try svg { width: 16px; height: 16px; }
@media (max-width: 1000px) {
  .lh .ct-body { grid-template-columns: 1fr; height: auto; }
  .ct-paper { flex: none; }
  .lh .ct-field { flex: 1 1 auto; height: clamp(320px, 55vh, 520px); }
  .lh .ct-rail { overflow: visible; }
  .lh .ct-rail { border-left: 0; border-top: 1px solid rgba(127, 176, 255, .2); }
}
@media (max-width: 760px) {
  .lh .ct-body { border-radius: 22px; }
  .lh .ct-edit { padding: 10px 12px 14px; }
  .lh .ct-tb { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ct-tb-gap { flex: 0 0 8px; }
  .lh .ct-tb .ct-tb-text span { white-space: nowrap; }
  .lh .ct-field { height: clamp(300px, 50vh, 440px); padding: 18px; font-size: 17px; }
  .lh .ct-foot { display: grid; }
  .lh .ct-acts { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-btn { justify-content: center; min-width: 0; padding: 0 12px; }
  .lh .ct-rail { padding: 18px 16px; }
}
/* PDF: печатается только текст поля */
@media print {
  html.ct-printing body > *:not(#ct-print) { display: none !important; }
  html.ct-printing body { background: #fff !important; }
  #ct-print { display: block; color: #000; font: 12pt/1.6 Arial, sans-serif; }
  #ct-print h1, #ct-print h2, #ct-print h3 { margin: 0 0 8pt; font-weight: 700; }
  #ct-print blockquote { margin: 0 0 8pt; padding-left: 12pt; border-left: 2pt solid #999; }
  #ct-print a { color: #000; }
}
#ct-print { display: none; }

/* воздух между блоком детектора и шагами под ним */
.lh-steps { padding-top: 32px; }

/* 28.10, Иван: оговорка про заключение – подзаголовком под «Что проверяет
   детектор», а не строкой после карточек; без большой дыры перед подвалом */
.lh-sub { margin-top: 12px; font-size: 17px; font-weight: 300; line-height: 1.5; color: var(--soft); }
.lh-how .lh-kinds { margin-top: 28px; }
.lh .lh-read { padding-bottom: 0; }

/* «Текст удалён – Вернуть» после очистки */
.ct-paper { position: relative; }
.ct-toast { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 18px; border-radius: 14px; background: #0b1a3c; color: #fff; font-size: 15px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); animation: ct-toast-in .25s var(--ease-out); }
.ct-toast button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 10px; background: #fff; color: #0b1a3c; font: 500 14.5px var(--f-text); cursor: pointer; }
@keyframes ct-toast-in { from { opacity: 0; translate: -50% 8px; } }

/* «Что меняет «Исправить»», строка про Пресс-Офис и вопросы и ответы (01.11.2026, 3.8.28) */
.lh-example .lh-demo-card p + p { margin-top: 10px; }
.lh-press { margin-top: 28px; max-width: 46em; font-size: 18px; font-weight: 300; line-height: 1.55; color: var(--soft); }
.lh-press a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(159, 192, 255, .5); text-underline-offset: .25em; transition: text-decoration-color .2s; }
.lh-press a:hover { text-decoration-color: currentColor; }
.lh-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 64px; padding-top: clamp(56px, calc(6vw / var(--z, 1)), 96px); }
.lh-faq-list { border-bottom: 1px solid var(--lh-line); }
.lh-faq-i { border-top: 1px solid var(--lh-line); }
.lh-faq-i summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; font-size: 19px; font-weight: 400; line-height: 1.35; color: var(--ink); cursor: pointer; list-style: none; }
.lh-faq-i summary::-webkit-details-marker { display: none; }
.lh-faq-i summary:hover { color: #fff; }
.lh-faq-i summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.lh-caret { flex: none; width: 13px; height: 8px; color: var(--muted); transition: transform .2s; }
.lh-faq-i[open] .lh-caret { transform: rotate(180deg); }
.lh-faq-i p { max-width: 44em; padding: 0 40px 22px 0; font-size: 16.5px; font-weight: 300; line-height: 1.6; color: var(--soft); }
@media (max-width: 760px) {
  .lh-faq { grid-template-columns: 1fr; gap: 16px; }
  .lh-faq-i summary { padding: 18px 0; font-size: 17px; }
  .lh-faq-i p { padding-right: 0; font-size: 15.5px; }
  .lh-press { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) { .lh-caret { transition: none; } }

/* Инструмент без панели форматирования (01.11.2026, 3.8.29). За неделю ни
   одного нажатия на 9 кнопок форматирования; «Очистить текст» – тихая ссылка
   у счётчика. Пока текста нет – ни счётчика, ни недоступных кнопок. Карточки
   шагов под инструментом убраны: то же говорят подсказка поля и заключение. */
.lh .ct-edit { padding-top: 20px; }
.lh .ct:not(.is-ai):not(.is-maybe):not(.is-human) .ct-foot { display: none; }
.ct-left { display: inline-flex; align-items: center; gap: 18px; }
.ct-reset { padding: 0; border: 0; background: none; font: 400 15px var(--f-text); color: rgba(220, 230, 255, .75); text-decoration: underline; text-decoration-color: rgba(220, 230, 255, .3); text-underline-offset: .25em; cursor: pointer; transition: color .2s, text-decoration-color .2s; }
.ct-reset:hover { color: #fff; text-decoration-color: currentColor; }
.ct-reset:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.lh .ct-btn { gap: 0; }
.ct-empty { align-content: start; }
.ct-empty .ct-verdict { color: var(--soft); }
.ct-try { gap: 0; }
@media (max-width: 760px) {
  .lh .ct-edit { padding-top: 12px; }
  .ct-left { justify-content: space-between; width: 100%; }
  .lh .ct-foot { grid-template-columns: minmax(0, 1fr); }
  .lh .ct-acts .ct-btn { width: 100%; justify-content: center; }
}
