/* Экран «Честность» (секция #honesty): отдельный блок страницы, не связан со сценой разбора эфира. Логика: js/honesty.js */
.hsec { position: relative; overflow: clip; padding-block: clamp(72px, 12vw, 160px); }
.hsec::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(38% 52% at 78% 46%, rgba(255, 46, 147, .10), transparent 70%), radial-gradient(34% 48% at 70% 82%, rgba(122, 60, 255, .10), transparent 70%); }
.hsec__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.hsec__txt .lead { margin-top: 24px; color: var(--ink-2); max-width: 24em; }
.hsec__note { position: relative; margin: 32px 0 0; padding-left: 18px; max-width: 30em; font-size: 16px; line-height: 1.5; letter-spacing: -0.01em; color: var(--ink-2); text-wrap: pretty; }
.hsec__note::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 3px; border-radius: 2px; background: linear-gradient(180deg, var(--pink), var(--violet)); }
.hsec__more { margin: 32px 0 0; }
.hon__card { width: 100%; max-width: 620px; justify-self: end; padding: 22px 24px 24px; border-radius: 32px; display: grid; gap: 16px;
  background: linear-gradient(150deg, rgba(139, 43, 226, .10), light-dark(rgba(255, 30, 142, .06), rgba(60, 100, 255, .06)) 62%), light-dark(rgba(255, 255, 255, .86), rgba(22, 20, 30, .86)); border: 1px solid light-dark(rgba(255, 255, 255, .95), rgba(255, 255, 255, .08));
  box-shadow: inset 0 1px 0 var(--hl), 0 0 0 1px rgba(139, 43, 226, .12), 0 40px 90px -50px rgba(122, 60, 255, .45); }
.hon__sec { display: grid; gap: 10px; }
.hon__sec + .hon__sec { padding-top: 16px; border-top: 1px solid rgba(139,43,226,.14); }
.hon__step { margin: 0; display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; line-height: 1.38; color: light-dark(#3f3a52, #d6d1e4); }
.hon__step i { flex: none; width: 24px; height: 24px; margin-top: -1px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 "JetBrains Mono", ui-monospace, monospace; font-style: normal; color: #fff; background: linear-gradient(135deg, var(--pink), var(--violet)); }
.hon__doc { border-radius: 20px; overflow: hidden; background: #15101f; color: #ece9f7; box-shadow: 0 0 0 1px rgba(255,255,255,.04); }
.hon__file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.hon__file > svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 11px; fill: none; stroke: #c9a4ff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; background: rgba(255,255,255,.07); }
.hon__file b { display: block; font-size: .95rem; font-weight: 700; } .hon__file div span { display: block; margin-top: 1px; font: 500 .74rem/1.2 "JetBrains Mono", ui-monospace, monospace; color: #9a93b4; }
.hon__file div { flex: 1; min-width: 0; }
.hon__dl { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px; font: 700 .86rem/1 inherit; font-family: inherit; color: #15101f; background: #fff; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.hon__dl svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hon__dl:hover { background: #ffe3f1; } .hon__dl:active { transform: scale(.97); }
.hon__tw { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .45s cubic-bezier(.2,.7,.2,1); } .hon__tw > div { overflow: hidden; min-height: 0; }
.hon__card.has-res .hon__tw { grid-template-rows: 0fr; }      /* когда есть результат проверки, таблица сворачивается: карточка не растёт и не ползёт под шапку */
.hon__tbl { width: 100%; border-collapse: collapse; font: 500 .76rem/1 "JetBrains Mono", ui-monospace, monospace; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.hon__tbl th { padding: 9px 14px 6px; text-align: left; font-weight: 500; font-size: .7rem; color: #8d86a8; }
.hon__tbl td { padding: 6px 14px; color: #ddd8ee; border-top: 1px solid rgba(255,255,255,.05); white-space: nowrap; }
.hon__tbl td:first-child, .hon__tbl th:first-child { width: 2.6em; color: #8d86a8; }
.hon__tbl td:nth-child(3) { color: #ffb3d9; } .hon__tbl em { font-style: normal; color: #ff5fae; letter-spacing: .08em; }
.hon__tbl tbody tr:nth-child(n+7) { display: none; }
.hon__seal { padding: 11px 14px 13px; background: linear-gradient(90deg, light-dark(rgba(255,30,142,.20), rgba(122,60,255,.26)), light-dark(rgba(139,43,226,.20), rgba(40,110,255,.18))); border-top: 1px solid rgba(255,255,255,.08); }
.hon__seal small { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; font-size: .74rem; color: #d7c9f5; }
.hon__seal small svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hon__seal code, .hon__g { display: grid; font: 600 .8rem/1.3 "JetBrains Mono", ui-monospace, monospace; }
.hon__seal code { grid-template-columns: repeat(8, 1fr); gap: 4px 6px; font-size: .7rem; }
.hon__seal code span { color: #ff8cc6; } .hon__seal code span:nth-child(even) { color: #ffd0e9; }
.hon__drop { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 18px; border: 1.5px dashed rgba(139,43,226,.42); background: rgba(139,43,226,.05); font-size: .92rem; line-height: 1.3; color: light-dark(#5b5470, #b6b0c8); cursor: pointer; transition: border-color .15s ease, background .15s ease; word-break: break-word; }
.hon__drop svg { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 50%; fill: none; stroke: var(--violet); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; background: #fff; box-shadow: inset 0 0 0 1px rgba(139,43,226,.18); }
.hon__drop:hover, .hon__drop.is-over { border-color: var(--pink); background: light-dark(rgba(255,30,142,.07), rgba(122,60,255,.10)); }
.hon__drop.has-file { border-style: solid; color: var(--ink); font-weight: 600; }
.hon__drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.hon__go { padding: 14px 22px; border: 0; border-radius: 999px; font: 700 1rem/1 inherit; font-family: inherit; color: #fff; cursor: pointer; background: linear-gradient(90deg, var(--pink), var(--violet)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); transition: transform .15s ease, filter .15s ease; }
.hon__go:hover { filter: brightness(1.06); } .hon__go:active { transform: scale(.985); }
.hon__res:empty { display: none; }
.hon__res { display: grid; gap: 10px; }
.hon__msg { margin: 0; font-size: .92rem; color: light-dark(#c8174f, #ff6b8e); }
.hon__row { display: grid; gap: 5px; } .hon__row small { font-size: .72rem; color: light-dark(#7a7490, #a49eb9); }
.hon__g span { padding: 4px 0; border-radius: 8px; text-align: center; background: light-dark(rgba(20,16,30,.05), rgba(255,255,255,.06)); color: light-dark(#4b4658, #cfcadd); transition: background .25s ease, color .25s ease; }
.hon__g { font-size: .72rem; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.hon__g span.is-ok { background: rgba(14,122,67,.14); color: light-dark(#0b6b3b, #4ade8f); } .hon__g span.is-bad { background: rgba(200,23,79,.13); color: light-dark(#b3123f, #ff6b8e); }
.hon__g span.is-roll { color: #9a93b4; }
.hon__verdict { margin: 0; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; padding: 11px 14px; border-radius: 16px; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.hon__verdict.is-in { opacity: 1; transform: none; }
.hon__verdict svg { grid-row: span 2; width: 30px; height: 30px; padding: 6px; border-radius: 50%; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hon__verdict b { font-size: .96rem; } .hon__verdict span { font-size: .8rem; opacity: .85; line-height: 1.3; }
.hon__verdict.is-ok { background: rgba(18,160,90,.15); color: light-dark(#0b6b3b, #4ade8f); } .hon__verdict.is-ok svg { background: #12a05a; }
.hon__verdict.is-bad { background: rgba(200,23,79,.09); color: light-dark(#b3123f, #ff6b8e); } .hon__verdict.is-bad svg { background: #e0245e; }

@media (min-width: 721px) and (max-width: 1340px) { .hon__seal code, .hon__g { grid-template-columns: repeat(4, 1fr); } }     /* карточка уже: 64 знака кода не помещаются в одну строку, ломаем на две */
@media (max-width: 900px) { .hsec__grid { grid-template-columns: 1fr; } .hon__card { justify-self: stretch; max-width: none; } .hsec__txt .lead { max-width: 30em; } }
@media (max-width: 720px) {
  .hsec__note { font-size: 14px; margin-top: 22px; } .hsec__more { margin-top: 22px; }
  .hon__card { padding: 14px; gap: 10px; border-radius: 24px; }
  .hon__sec { gap: 8px; } .hon__sec + .hon__sec { padding-top: 10px; } .hon__step { font-size: .8rem; line-height: 1.34; } .hon__step i { width: 20px; height: 20px; font-size: 10px; }
  .hon__file { padding: 9px 10px; gap: 9px; } .hon__file > svg { width: 30px; height: 30px; padding: 6px; } .hon__file b { font-size: .86rem; } .hon__dl { padding: 8px 12px; font-size: .8rem; }
  .hon__tbl tbody tr:nth-child(n+5) { display: none; } .hon__tbl td, .hon__tbl th { padding-left: 10px; padding-right: 6px; } .hon__tbl { font-size: .68rem; }
  .hon__seal { padding: 8px 10px 9px; } .hon__seal code { grid-template-columns: repeat(4, 1fr); font-size: .64rem; gap: 3px 6px; } .hon__drop { padding: 10px 12px; font-size: .86rem; } .hon__go { padding: 13px; font-size: .95rem; }
  .hon__res .hon__row:first-child { display: none; }
  .hon__g { grid-template-columns: repeat(4, 1fr); font-size: .64rem; gap: 4px; } .hon__verdict { padding: 9px 11px; } .hon__verdict b { font-size: .86rem; } .hon__verdict span { font-size: .74rem; }
}
@media (prefers-reduced-motion: reduce) { .hon__tw { transition: none; } }

/* Шаг 3: пересчёт победителя этого же списка (js/honesty.js). */
.hon__calc { display: grid; gap: 10px; }
.hon__in { display: grid; grid-template-columns: 1.6fr .6fr .8fr 1.3fr; gap: 6px; }
.hon__in > * { display: grid; gap: 3px; min-width: 0; padding: 8px 10px; border-radius: 14px; background: light-dark(rgba(255,255,255,.7), rgba(255,255,255,.06)); box-shadow: inset 0 0 0 1px rgba(139,43,226,.14); }
.hon__in small { font-size: .68rem; color: light-dark(#7a7490, #a49eb9); }
.hon__in code { font: 600 .78rem/1.2 "JetBrains Mono", ui-monospace, monospace; color: light-dark(#2b2533, #ece9f7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hon__in input { width: 100%; min-width: 0; padding: 0; border: 0; background: none; font: 600 .78rem/1.2 "JetBrains Mono", ui-monospace, monospace; color: var(--violet); outline: none; }
.hon__in label { cursor: text; box-shadow: inset 0 0 0 1.5px rgba(139,43,226,.42); }
.hon__in label:focus-within { box-shadow: inset 0 0 0 2px var(--pink); }
.hon__win:empty { display: none; }
.hon__win { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: stretch; animation: honIn .35s ease both; }
.hon__win .hon__msg { grid-column: 1 / -1; }
.hon__ticket, .hon__who { display: grid; align-content: center; padding: 10px 14px; border-radius: 16px; }
.hon__ticket { grid-template-columns: auto auto; column-gap: 4px; align-items: baseline; color: #fff; background: linear-gradient(135deg, var(--pink), var(--violet)); }
.hon__ticket small { grid-column: 1 / -1; font-size: .68rem; opacity: .85; }
.hon__ticket b { font: 800 1.9rem/1 inherit; font-family: inherit; letter-spacing: -0.03em; } .hon__ticket span { font-size: .8rem; opacity: .85; }
.hon__who { background: rgba(18,160,90,.13); color: light-dark(#0b6b3b, #4ade8f); }
.hon__who small { font-size: .68rem; opacity: .8; } .hon__who b { font-size: 1.05rem; } .hon__who span { font: 500 .74rem/1.2 "JetBrains Mono", ui-monospace, monospace; opacity: .85; }
.hon__rnd { grid-column: 1 / -1; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: .7rem; color: light-dark(#7a7490, #a49eb9); }
.hon__rnd code { font: 500 .7rem/1.2 "JetBrains Mono", ui-monospace, monospace; color: light-dark(#5b5470, #b6b0c8); }
.hon__hint { margin: 0; font-size: .78rem; color: light-dark(#7a7490, #a49eb9); } .hon__hint a { color: var(--violet); font-weight: 600; }
@keyframes honIn { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 720px) {
  .hon__in { grid-template-columns: .7fr .9fr 1.4fr; } .hon__in > *:first-child { grid-column: 1 / -1; }
  .hon__ticket b { font-size: 1.6rem; } .hon__hint { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) { .hon__win { animation: none; } }
