/* ==========================================================================
   DocGen AI · главный блок лендинга: запрос + 3D-моушен «запрос → документ по ГОСТ».
   Ролик рисует js/hero-film.js (одна функция draw(t)); здесь — только внешний вид.
   ========================================================================== */
:root {
    --hx-em: #0b7d57; --hx-em-2: #10b981; --hx-mint: #34d399; --hx-lime: #d9f99d;
    --hx-ink: #0c1410; --hx-ink-2: #27312c; --hx-gray: #5c6862; --hx-line: #dce1db; --hx-paper: #f6f7f4;
}
.hx {
    position: relative; isolation: isolate; overflow: hidden;
    padding: 112px 0 56px;
    background: #fbfcfa;
}
.hx-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hx-bg::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(46% 52% at 76% 34%, rgba(16,185,129,.17), transparent 70%),
        radial-gradient(34% 40% at 8% 12%, rgba(11,125,87,.08), transparent 72%),
        radial-gradient(40% 36% at 52% 104%, rgba(217,249,157,.42), transparent 72%);
}
/* «пол» в перспективе: сетка уходит к горизонту и медленно едет на зрителя */
.hx-floor {
    position: absolute; left: -40%; right: -40%; top: 58%; height: 90%;
    background-image:
        linear-gradient(rgba(11,125,87,.13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11,125,87,.13) 1px, transparent 1px);
    background-size: 72px 72px;
    transform: perspective(620px) rotateX(74deg); transform-origin: 50% 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 38%, #000 62%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 38%, #000 62%, transparent 100%);
    animation: hxFloor 5s linear infinite;
}
@keyframes hxFloor { to { background-position: 0 72px, 0 0; } }

.hx-grid {
    display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 84px; align-items: center;
}
/* компьютер: первый экран — на всю высоту окна, содержимое по центру */
@media (min-width: 1041px) {
    .hx { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 96px 0 48px; }
    .hx > .hx-grid { width: 100%; }
}
@media (min-width: 1500px) {
    .hx > .container.hx-grid { max-width: 1420px; }
}
.hx-copy { position: relative; z-index: 2; min-width: 0; }
.hx-film { min-width: 0; }

.hx-eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 6px 14px 6px 6px; border-radius: 999px;
    background: rgba(255,255,255,.86); border: 1px solid var(--hx-line);
    font-size: 13px; font-weight: 600; color: var(--hx-ink-2);
    box-shadow: 0 6px 18px -10px rgba(12,20,16,.25);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hx-eyebrow .ai {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 8px; border-radius: 999px;
    background: var(--hx-ink); color: var(--hx-lime);
    font: 800 11px/1.2 'Manrope', sans-serif; letter-spacing: .02em; white-space: nowrap; flex: none;
}

.hx-h1 {
    margin: 22px 0 0;
    font-size: clamp(32px, 3.7vw, 58px); font-weight: 800;
    letter-spacing: -.048em; line-height: 1.02; color: var(--hx-ink);
    perspective: 700px;
}
.hx-h1 .l1 { white-space: nowrap; }
.hx-h1 .w { display: inline-block; transform-origin: 50% 100%; animation: hxWord .8s cubic-bezier(.2,.85,.25,1) both; animation-delay: calc(var(--i) * 90ms + 80ms); }
@keyframes hxWord { from { opacity: 0; transform: translateY(.42em) rotateX(-82deg); } }
.hx-pill {
    display: inline-flex; align-items: center; gap: .16em;
    margin-top: .1em; padding: .02em .26em .08em .2em; border-radius: .2em;
    background: linear-gradient(135deg, #0b7d57 0%, #12a06e 60%, #2fc58b 100%);
    color: #fff; white-space: nowrap;
    box-shadow: 0 .28em .7em -.25em rgba(11,125,87,.75), inset 0 1px 0 rgba(255,255,255,.25);
    transform: rotate(-2deg);
}
.hx-h1 .hx-pill.w { animation-name: hxPill; animation-duration: .9s; animation-timing-function: cubic-bezier(.3,1.5,.5,1); }
@keyframes hxPill { from { opacity: 0; transform: scale(.4) rotate(-10deg); } to { transform: rotate(-2deg); } }
.hx-pill svg { width: .62em; height: .62em; flex: none; animation: hxSpark 3.2s ease-in-out infinite; }
@keyframes hxSpark { 50% { transform: rotate(90deg) scale(.82); } }

.hx-sub {
    max-width: 540px; margin: 20px 0 0;
    font-size: clamp(16px, 1.25vw, 18px); line-height: 1.55; color: var(--hx-ink-2);
}
.hx-sub b { color: var(--hx-ink); font-weight: 700; }

/* ---- поле запроса ---- */
.hx-form {
    position: relative; margin-top: 26px; max-width: 560px;
    background: #fff; border: 1px solid var(--hx-line); border-radius: 20px; padding: 8px;
    box-shadow: 0 30px 60px -32px rgba(12,20,16,.35), 0 2px 6px rgba(12,20,16,.04);
    transition: border-color .2s, box-shadow .2s;
}
.hx-form::before { /* мягкое свечение за полем */
    content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: 21px;
    background: linear-gradient(120deg, rgba(52,211,153,.55), rgba(217,249,157,.6), rgba(11,125,87,.45));
    filter: blur(14px); opacity: .45; transition: opacity .25s;
}
.hx-form:focus-within { border-color: rgba(11,125,87,.6); box-shadow: 0 0 0 4px rgba(11,125,87,.13), 0 30px 60px -30px rgba(12,20,16,.4); }
.hx-form:focus-within::before { opacity: .8; }
.hx-form label.hx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hx-form textarea {
    display: block; width: 100%; min-height: 78px; max-height: 168px; resize: none;
    border: 0; outline: 0; background: transparent;
    padding: 12px 14px 8px; font: 500 16.5px/1.5 'Manrope', sans-serif; letter-spacing: -.01em; color: var(--hx-ink);
}
.hx-form textarea::placeholder { color: #8a948f; }
.hx-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 4px 2px 10px; }
.hx-fmts { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12.5px; font-weight: 600; color: #8a948f; white-space: nowrap; }
.hx-fmts b { padding: 4px 7px; border-radius: 6px; color: #fff; font: 800 10.5px/1 'Manrope', sans-serif; letter-spacing: .03em; }
.hx-fmts b.docx { background: #2f6fde; } .hx-fmts b.pdf { background: #e5484d; } .hx-fmts b.xlsx { background: #16a34a; }
.hx-fmts span { margin-left: 4px; }
.hx-chips {
    display: flex; flex-wrap: wrap; align-items: center; gap: 7px; max-width: 560px; margin-top: 14px;
}
.hx-chips-l { font-size: 13px; font-weight: 600; color: var(--hx-gray); margin-right: 2px; }
.hx-chips::-webkit-scrollbar { display: none; }
.hx-chip {
    flex: none; border: 1px solid var(--hx-line); border-radius: 999px; padding: 7px 12px;
    background: rgba(255,255,255,.8); color: var(--hx-ink-2); font: 600 12.5px/1 'Manrope', sans-serif; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.hx-chip:hover { background: #e8f4ee; color: #086646; border-color: rgba(11,125,87,.25); }
.hx-chip:active { transform: scale(.96); }
.hx-go {
    flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 50px; padding: 0 20px; border: 0; border-radius: 14px; cursor: pointer;
    background: linear-gradient(180deg, #0f9367 0%, #0b7d57 100%); color: #fff;
    font: 700 15px/1 'Manrope', sans-serif; letter-spacing: -.01em; white-space: nowrap;
    box-shadow: 0 12px 26px -12px rgba(11,125,87,.85), inset 0 1px 0 rgba(255,255,255,.22);
    transition: transform .15s, box-shadow .15s, filter .15s;
}
.hx-go:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 18px 32px -14px rgba(11,125,87,.9), inset 0 1px 0 rgba(255,255,255,.22); }
.hx-go:active { transform: translateY(0) scale(.98); }
.hx-go svg { width: 17px; height: 17px; }

.hx-note { display: none; }
.hx-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 13.5px; color: var(--hx-gray); }
.hx-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hx-trust i {
    width: 18px; height: 18px; flex: none; border-radius: 50%; background: #e8f4ee; color: var(--hx-em);
    display: inline-grid; place-items: center;
}
.hx-trust i svg { width: 11px; height: 11px; }
.hx-trust b { color: var(--hx-ink); font-weight: 700; }

/* ---- сцена ---- */
.hx-film { position: relative; z-index: 1; }
.hx-stage-wrap { position: relative; perspective: 1900px; }
.hx-stage-wrap::after { /* тень-отражение под экраном */
    content: ''; position: absolute; left: 8%; right: 8%; bottom: -26px; height: 40px; z-index: -1;
    background: radial-gradient(closest-side, rgba(12,20,16,.28), transparent); filter: blur(8px);
}
.hx-stage {
    position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; cursor: pointer;
    border-radius: 22px; background: var(--hx-paper);
    box-shadow: 0 60px 120px -50px rgba(12,20,16,.55), 0 30px 60px -36px rgba(11,125,87,.35),
                0 0 0 1px rgba(12,20,16,.07), inset 0 0 0 1px rgba(255,255,255,.6);
    transform-origin: 50% 50%;
    -webkit-tap-highlight-color: transparent;
}
.hx-stage:not(.ready) { background: var(--hx-paper) url('/img/cases/contract.webp') center / contain no-repeat; }
.hx-stage:not(.ready) .hf { visibility: hidden; }
.hx-glare {
    position: absolute; inset: 0; z-index: 30; pointer-events: none; border-radius: inherit;
    background: linear-gradient(115deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,0) 34%, rgba(255,255,255,0) 70%, rgba(255,255,255,.12) 100%);
    mix-blend-mode: soft-light;
}

.hf { position: absolute; left: 0; top: 0; width: 960px; height: 600px; transform-origin: 0 0; overflow: hidden; perspective: 1500px;
      font-family: 'Manrope', system-ui, sans-serif; color: var(--hx-ink); -webkit-font-smoothing: antialiased; }
.hf * { box-sizing: border-box; }
.hf-bg { position: absolute; inset: 0; }
.hf-paper { background: radial-gradient(rgba(12,20,16,.075) 1px, transparent 1.3px) 0 0 / 22px 22px, linear-gradient(180deg, #f8f8f4, #f2f3ee); }
.hf-dark {
    background:
        radial-gradient(52% 60% at 22% 76%, rgba(11,125,87,.55), transparent 70%),
        radial-gradient(40% 46% at 82% 18%, rgba(52,211,153,.22), transparent 72%),
        radial-gradient(36% 40% at 92% 92%, rgba(124,92,255,.22), transparent 72%),
        #06100c;
}
.hf .sc { position: absolute; inset: 0; perspective: 1100px; perspective-origin: 50% 46%; }
.hf .el { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.hf-line { white-space: nowrap; perspective: 600px; font-weight: 800; letter-spacing: -.048em; line-height: 1.05; }
.hf-line .w { display: inline-block; transform-origin: 50% 100%; position: relative; }
.hf .pill { padding: .02em .2em .1em; border-radius: .18em; color: #fff; margin-left: .04em; }
.hf .pill-coral { background: linear-gradient(180deg, #ff6b57, #e5432f); box-shadow: 0 .22em .55em -.18em rgba(229,67,47,.7); }
.hf .pill-em { background: linear-gradient(135deg, #0b7d57, #17b07b); box-shadow: 0 .22em .55em -.18em rgba(11,125,87,.75); }
.hf .strike { position: absolute; left: -3%; top: 54%; width: 106%; height: .085em; border-radius: 99px; transform-origin: 0 50%; transform: scaleX(0); }

/* сцена 1: стопка бумаг */
.hf .s1-l { font-size: 66px; }
.hf .s1-file { display: flex; align-items: center; gap: 8px; font: 500 13px/1 'JetBrains Mono', monospace; color: #8b958f; white-space: nowrap; }
.hf .s1-file svg { width: 15px; height: 15px; }
.hf-line .pill { transform-origin: 50% 55%; }
.hf .sheet .sl { display: block; }
#s4num { z-index: 5; } #s4plus { z-index: 5; } #s4sph { z-index: 3; } #s4l1, #s4cc { z-index: 8; }
.hf .sheet { overflow: hidden; width: 150px; height: 200px; padding: 20px 16px; background: #fff; border-radius: 4px;
         box-shadow: 0 1px 2px rgba(12,20,16,.08), 0 16px 30px -14px rgba(12,20,16,.35); }
.hf .sheet::after { content: ''; position: absolute; right: 0; top: 0; width: 22px; height: 22px;
                background: linear-gradient(225deg, #f2f3ee 50%, #e2e6e1 50%); border-bottom-left-radius: 4px; }
.hf .sheet .sl { height: 5px; border-radius: 3px; background: #dde1dc; margin: 0 0 8px; }
.hf .sheet .sl.h { height: 7px; background: #a9b2ad; margin-bottom: 12px; }
.hf .ftag { display: inline-block; margin-bottom: 12px; padding: 3px 6px; border-radius: 4px; font: 800 9px/1 'Manrope', sans-serif; color: #fff; letter-spacing: .03em; }
.hf .ftag.docx { background: #2f6fde; } .hf .ftag.pdf { background: #e5484d; } .hf .ftag.xlsx { background: #16a34a; }
.hf .stamp { padding: 7px 13px; border: 3px solid #e5484d; border-radius: 9px; color: #e5484d; background: rgba(255,255,255,.72);
         font: 800 21px/1 'Manrope', sans-serif; letter-spacing: .08em; white-space: nowrap; }

/* сцена 2: поле запроса */
.hf-step { display: flex; align-items: center; gap: 8px; font: 800 15px/1 'Manrope', sans-serif; letter-spacing: -.02em; white-space: nowrap; color: var(--hx-ink); }
.hf-step b { display: grid; place-items: center; min-width: 25px; height: 22px; padding: 0 5px; border-radius: 6px; color: #fff; font: 700 11px/1 'JetBrains Mono', monospace; }
.hf-step.st1 b { background: #0c1410; } .hf-step.st2 b { background: #2f6fde; } .hf-step.st3 b { background: #0b7d57; }
.hf .ui-card { width: 600px; padding: 16px 18px 16px; background: #fff; border-radius: 18px;
           box-shadow: 0 40px 70px -30px rgba(12,20,16,.38), 0 0 0 1px rgba(12,20,16,.06); }
.hf .ui-head { display: flex; align-items: center; gap: 8px; font: 700 13px/1 'Manrope', sans-serif; color: #5c6862; }
.hf .ui-head img { width: 20px; height: 20px; }
.hf .ui-head .dots { margin-left: auto; display: flex; gap: 5px; }
.hf .ui-head .dots i { width: 8px; height: 8px; border-radius: 50%; background: #e3e7e2; }
.hf .ui-input { position: relative; margin-top: 12px; min-height: 92px; padding: 14px 16px; border-radius: 12px;
            background: #f6f7f4; border: 1.5px solid #e3e7e2; font: 600 19px/1.45 'Manrope', sans-serif; letter-spacing: -.015em; color: var(--hx-ink); }
.hf .ui-input.focus { border-color: #0b7d57; background: #fff; box-shadow: 0 0 0 4px rgba(11,125,87,.12); }
.hf .ui-ph { position: absolute; left: 16px; top: 14px; color: #a2aaa5; font-weight: 500; }
.hf .caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -.17em; background: #0b7d57; border-radius: 1px; }
.hf .ui-row { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.hf .ui-chip { padding: 7px 10px; border-radius: 999px; background: #f1f4f0; color: #5c6862; font: 700 11.5px/1 'Manrope', sans-serif; white-space: nowrap; }
.hf .ui-chip.on { background: #0c1410; color: #fff; }
.hf .ui-chip.gost { background: #e8f4ee; color: #086646; }
.hf .ui-cost { margin-left: auto; display: flex; align-items: center; gap: 6px; font: 600 12.5px/1 'Manrope', sans-serif; color: #5c6862; white-space: nowrap; }
.coin { width: 15px; height: 15px; border-radius: 50%; flex: none;
        background: radial-gradient(circle at 35% 30%, #fff7c2 0 18%, transparent 19%), linear-gradient(145deg, #fcd34d, #e59a0b);
        box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45), 0 2px 5px -1px rgba(229,154,11,.6); }
.hf .ui-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 12px;
          background: linear-gradient(180deg, #0f9367, #0b7d57); color: #fff; font: 700 14px/1 'Manrope', sans-serif; white-space: nowrap;
          box-shadow: 0 12px 22px -10px rgba(11,125,87,.75); transform-origin: 50% 50%; }
.hf .ui-btn svg { width: 15px; height: 15px; }
.hf .ui-btn .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; display: none; }
.hf .ui-btn.busy .spin { display: block; } .hf .ui-btn.busy svg { display: none; }

/* сцена 3: документ */
.hf .rib { position: absolute; left: 0; top: 0; overflow: visible; }
.hf .rib path { fill: none; stroke: rgba(250,204,21,.78); stroke-width: 16; stroke-linecap: round; }
.hf .doc { width: 330px; height: 466px; padding: 30px 30px 22px; background: #fff; border-radius: 6px;
       box-shadow: 0 50px 90px -40px rgba(12,20,16,.55), 0 0 0 1px rgba(12,20,16,.06); transition: none; }
.hf .doc.ok { box-shadow: 0 50px 90px -40px rgba(12,20,16,.55), 0 0 0 2.5px #0b7d57, 0 0 0 9px rgba(11,125,87,.14); }
.hf .doc::after { content: ''; position: absolute; right: 0; top: 0; width: 30px; height: 30px;
              background: linear-gradient(225deg, #f2f3ee 50%, #e2e6e1 50%); border-bottom-left-radius: 6px; }
.hf .doc-fmt { position: absolute; left: 30px; top: 12px; padding: 3px 6px; border-radius: 4px; background: #2f6fde; color: #fff; font: 800 9px/1 'Manrope', sans-serif; letter-spacing: .04em; }
.hf .d-title { margin-top: 10px; text-align: center; font: 700 12.5px/1.25 'Times New Roman', Georgia, serif; letter-spacing: .02em; }
.hf .d-meta { display: flex; justify-content: space-between; margin: 8px 0 14px; font: 400 10.5px/1 'Times New Roman', Georgia, serif; color: #3c4540; }
.hf .d-h { margin: 11px 0 7px; font: 700 11px/1 'Times New Roman', Georgia, serif; }
.hf .d-row { position: relative; z-index: 0; display: flex; align-items: center; gap: 5px; height: 15px; margin: 4px 0; }
.hf .d-bar { display: block; flex: 0 1 var(--w); height: 5px; border-radius: 3px; background: #dfe3de; transform-origin: 0 50%; }
.hf .d-f { position: relative; flex: none; padding: 1px 3px; font: 700 11px/1.2 'Times New Roman', Georgia, serif; white-space: nowrap; }
.hf .d-f::before { content: ''; position: absolute; inset: -1px -2px; z-index: -1; border-radius: 3px; background: #fde68a;
               transform-origin: 0 50%; transform: scaleX(var(--hl, 0)); }
.hf .d-f b { font-weight: 700; }
.hf .d-sign { position: absolute; left: 30px; right: 30px; bottom: 22px; display: flex; justify-content: space-between; gap: 20px; }
.hf .d-sign > div { flex: 1; border-top: 1px solid #c9cfca; padding-top: 4px; position: relative; font: 400 9.5px/1 'Times New Roman', Georgia, serif; color: #5c6862; }
.hf .d-sign svg { position: absolute; left: 6px; bottom: 10px; width: 78px; height: 26px; overflow: visible; }
.hf .d-sign path { fill: none; stroke: #1e40af; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hf .chk { display: flex; align-items: center; gap: 8px; padding: 9px 14px 9px 9px; border-radius: 12px; background: #fff; white-space: nowrap;
       font: 700 13px/1 'Manrope', sans-serif; color: var(--hx-ink); box-shadow: 0 20px 38px -16px rgba(12,20,16,.4), 0 0 0 1px rgba(12,20,16,.05); }
.hf .chk i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #0b7d57; color: #fff; }
.hf .chk i svg { width: 11px; height: 11px; }
.hf .fmt { width: 62px; height: 78px; padding: 0 0 10px 8px; display: flex; align-items: flex-end; background: #fff; border-radius: 7px;
       box-shadow: 0 22px 36px -16px rgba(12,20,16,.45), 0 0 0 1px rgba(12,20,16,.06); }
.hf .fmt::before { content: ''; position: absolute; left: 10px; right: 14px; top: 14px; height: 30px;
               background: repeating-linear-gradient(180deg, #e3e7e2 0 4px, transparent 4px 9px); }
.hf .fmt::after { content: ''; position: absolute; right: 0; top: 0; width: 16px; height: 16px; background: linear-gradient(225deg, #f2f3ee 50%, #e2e6e1 50%); border-bottom-left-radius: 5px; }
.hf .fmt b { padding: 3px 5px; border-radius: 4px; color: #fff; font: 800 10px/1 'Manrope', sans-serif; letter-spacing: .03em; }
.hf .fmt.docx b { background: #2f6fde; } .hf .fmt.pdf b { background: #e5484d; } .hf .fmt.xlsx b { background: #16a34a; }
.hf .done { display: flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; background: #0b7d57; color: #fff;
        font: 700 12.5px/1 'Manrope', sans-serif; white-space: nowrap; box-shadow: 0 14px 26px -10px rgba(11,125,87,.8); }
.hf .done svg { width: 13px; height: 13px; }

/* сцена 4: 60+ форм */
.hf .s4-num { font: 800 210px/.86 'Manrope', sans-serif; letter-spacing: -.065em; font-variant-numeric: tabular-nums; white-space: nowrap;
          background: linear-gradient(180deg, #ffffff 18%, #c6f6dd 58%, #34d399 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
          padding: 0 .04em .06em 0; }
.hf .s4-sub { font-size: 42px; color: #fff; }
.hf .s4-cc { display: flex; align-items: center; gap: 9px; font: 600 15px/1.2 'Manrope', sans-serif; color: rgba(255,255,255,.85); white-space: nowrap; }
.hf .s4-cc b { padding: 4px 7px; border-radius: 5px; background: #d9f99d; color: #0c1410; font: 800 11px/1 'Manrope', sans-serif; }
.hf .tg { padding: 8px 13px; border-radius: 10px; font: 800 15px/1 'Manrope', sans-serif; letter-spacing: -.01em; white-space: nowrap;
      box-shadow: 0 14px 28px -12px rgba(0,0,0,.6); }
.hf .tg.c1 { background: #0b7d57; color: #fff; } .hf .tg.c2 { background: #fff; color: #0c1410; } .hf .tg.c3 { background: #2f6fde; color: #fff; }
.hf .tg.c4 { background: #ff6b57; color: #fff; } .hf .tg.c5 { background: #d9f99d; color: #0c1410; } .hf .tg.c6 { background: #7c5cff; color: #fff; }

/* сцена 5: дни → секунды */
         font: 700 10.5px/1 'Manrope', sans-serif; color: rgba(255,255,255,.75); }

/* сцена 6: финал */
.hf .glow6 { width: 600px; height: 360px; border-radius: 50%;
         background: radial-gradient(closest-side, rgba(52,211,153,.34), rgba(217,249,157,.22) 55%, transparent 100%); }
.hf .logo6 { display: flex; align-items: center; gap: 14px; font: 800 62px/1 'Manrope', sans-serif; letter-spacing: -.05em; white-space: nowrap; }
.hf .logo6 img { width: 66px; height: 66px; }
.hf .logo6 i { font-style: normal; color: #0b7d57; }
.hf .logo6 span { display: inline-block; }
.hf .s6-l1 { font-size: 40px; color: #9aa39e; }
.hf .s6-l1 .strike { background: #e5432f; top: 56%; height: .075em; }
.hf .s6-l2 { font-size: 56px; }
.hf .s6-cta { display: flex; align-items: center; gap: 16px; font: 700 15px/1 'Manrope', sans-serif; white-space: nowrap; }
.hf .s6-btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px;
          background: linear-gradient(180deg, #0f9367, #0b7d57); color: #fff; box-shadow: 0 16px 30px -12px rgba(11,125,87,.8); transform-origin: 50% 50%; }
.hf .s6-gift { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 9px; border-radius: 999px; background: #fff;
           font: 700 13px/1 'Manrope', sans-serif; white-space: nowrap; box-shadow: 0 14px 30px -14px rgba(12,20,16,.35), 0 0 0 1px rgba(12,20,16,.05); }
.hf .cf { width: 11px; height: 5px; border-radius: 2px; }

/* сцена 4: правки словами (ИИ-агент) */
.hf .hf-step.st4 b { background: #7c5cff; } .hf .hf-step.st5 b { background: #2f6fde; }
.hf .hf-step.st6 b { background: #e59a0b; } .hf .hf-step.st7 b { background: #e5484d; }
.hf .doc.edit { box-shadow: 0 50px 90px -40px rgba(12,20,16,.55), 0 0 0 2.5px #7c5cff, 0 0 0 9px rgba(124,92,255,.15); }
.hf .d-old.del { background: rgba(229,72,77,.10); border-radius: 3px; }
.hf .d-old.del .d-f b { color: #b91c1c; text-decoration: line-through; text-decoration-color: #e5484d; }
.hf .d-x { position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: #e5484d; transform-origin: 0 50%; transform: scaleX(0); }
.hf .d-ins { overflow: hidden; height: 0; }
.hf .d-ins .d-row { background: rgba(52,211,153,.16); border-radius: 3px; }
.hf .d-ins .d-f b { color: #065f46; }
.hf .d-f.g::before { background: #a7f3d0; }
.hf .ag-panel { width: 320px; padding: 14px; border-radius: 18px; background: #fff;
                box-shadow: 0 40px 70px -30px rgba(12,20,16,.42), 0 0 0 1px rgba(12,20,16,.06); }
.hf .ag-head { display: flex; align-items: center; gap: 8px; padding-bottom: 11px; border-bottom: 1px solid #eef1ed; font: 700 14px/1 'Manrope', sans-serif; }
.hf .ag-ai { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-style: normal; font-size: 13px; color: #fff;
             background: linear-gradient(135deg, #7c5cff, #2f6fde); }
.hf .ag-head span { margin-left: auto; font: 500 10.5px/1 'JetBrains Mono', monospace; color: #8a948f; }
.hf .ag-msgs { display: flex; flex-direction: column; gap: 10px; min-height: 262px; padding: 14px 0; }
.hf .ag-b { max-width: 90%; padding: 10px 12px; border-radius: 14px; font: 600 13.5px/1.4 'Manrope', sans-serif; transform-origin: 100% 100%; }
.hf .ag-b.user { align-self: flex-end; background: #0b7d57; color: #fff; border-bottom-right-radius: 4px; }
.hf .ag-b.bot { align-self: flex-start; background: #f3f5f2; color: #27312c; font-weight: 500; border-bottom-left-radius: 4px; transform-origin: 0 100%; }
.hf .ag-ok { display: block; margin-bottom: 3px; color: #0b7d57; font-weight: 800; font-size: 12.5px; }
.hf .ag-b u { color: #7c5cff; font-weight: 700; text-decoration: none; }
.hf .ag-typing { align-self: flex-start; display: flex; gap: 4px; padding: 11px 12px; border-radius: 14px; background: #f3f5f2; }
.hf .ag-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa39e; }
.hf .ag-input { display: flex; align-items: center; justify-content: space-between; padding: 9px 9px 9px 12px; border-radius: 12px;
                background: #f6f7f4; border: 1px solid #e3e7e2; font: 500 12.5px/1 'Manrope', sans-serif; color: #a2aaa5; }
.hf .ag-send { width: 26px; height: 26px; border-radius: 8px; background: #0b7d57; }

/* сцена 5: счёт → акт → УПД */
.hf .ch-card { width: 240px; padding: 18px 18px 16px; border-radius: 14px; background: #fff;
               box-shadow: 0 34px 60px -28px rgba(12,20,16,.45), 0 0 0 1px rgba(12,20,16,.06); }
.hf .ch-card.ghost { box-shadow: 0 40px 70px -26px rgba(12,20,16,.5), 0 0 0 2px #2f6fde; }
.hf .ch-top { display: flex; align-items: center; justify-content: space-between; }
.hf .ch-k { padding: 5px 9px; border-radius: 6px; color: #fff; font: 800 11px/1 'Manrope', sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.hf .ch-k.inv { background: #2f6fde; } .hf .ch-k.act { background: #0b7d57; } .hf .ch-k.upd { background: #7c5cff; }
.hf .ch-n { font: 800 22px/1 'Manrope', sans-serif; letter-spacing: -.03em; white-space: nowrap; }
.hf .ch-d { margin-top: 8px; font: 600 11.5px/1.2 'Manrope', sans-serif; color: #5c6862; white-space: nowrap; }
.hf .ch-parties { display: grid; gap: 6px; margin-top: 12px; }
.hf .ch-parties i { display: block; height: 6px; width: var(--w); border-radius: 3px; background: #e3e7e2; }
.hf .ch-tbl { margin-top: 12px; border: 1px solid #eef1ed; border-radius: 8px; overflow: hidden; }
.hf .ch-tbl i { display: block; height: 18px; border-bottom: 1px solid #eef1ed;
                background: linear-gradient(90deg, #f3f5f2 0 46%, transparent 46% 68%, #f3f5f2 68%); }
.hf .ch-tbl i:last-child { border-bottom: 0; }
.hf .ch-sum { display: flex; align-items: baseline; justify-content: space-between; margin-top: 12px; font: 600 12px/1 'Manrope', sans-serif; color: #5c6862; }
.hf .ch-sum b { font: 800 19px/1 'Manrope', sans-serif; letter-spacing: -.02em; color: #0c1410; }
.hf .ch-btn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; margin-top: 12px; border-radius: 10px;
              background: #0c1410; color: #fff; font: 700 12.5px/1 'Manrope', sans-serif; transform-origin: 50% 50%; }
.hf .ch-btn.done { background: #e8f4ee; color: #0b7d57; }
.hf .ch-btn svg { width: 13px; height: 13px; }
.hf .ch-arr { overflow: visible; }
.hf .ch-arr path { fill: none; stroke: #0b7d57; stroke-width: 2.5; stroke-linecap: round; }
.hf .ch-arr path.ah { stroke-linejoin: round; }
.hf .ch-pill { padding: 5px 10px; border-radius: 999px; background: #0c1410; color: #d9f99d; white-space: nowrap;
               font: 700 11.5px/1 'Manrope', sans-serif; box-shadow: 0 8px 18px -8px rgba(0,0,0,.5); }
.hf .ch-like { padding: 8px 13px; border-radius: 999px; background: #fff; color: #0c1410; white-space: nowrap; font: 700 12.5px/1 'Manrope', sans-serif;
               box-shadow: 0 12px 24px -12px rgba(12,20,16,.4), 0 0 0 1px rgba(12,20,16,.08); transform-origin: 50% 50%; }

/* сцена 6: документы по списку */
.hf .bx-xls, .hf .bx-tpl { width: 360px; overflow: hidden; border-radius: 14px; background: #fff;
                           box-shadow: 0 34px 60px -30px rgba(12,20,16,.42), 0 0 0 1px rgba(12,20,16,.06); }
.hf .bx-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #eef1ed; background: #fafbf9;
            font: 700 12.5px/1 'Manrope', sans-serif; color: #27312c; white-space: nowrap; }
.hf .bx-h i { padding: 3px 6px; border-radius: 5px; background: #16a34a; color: #fff; font: 800 9.5px/1 'Manrope', sans-serif; font-style: normal; }
.hf .bx-h i.docx { background: #2f6fde; }
.hf .bx-r { display: grid; grid-template-columns: 1.65fr 1fr; font: 500 12.5px/1 'Manrope', sans-serif; color: #27312c; transition: none; }
.hf .bx-r span { padding: 9px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-bottom: 1px solid #eef1ed; }
.hf .bx-r span + span { border-left: 1px solid #eef1ed; color: #5c6862; }
.hf .bx-r.hd span { background: #f3f5f2; color: #5c6862; font: 700 10.5px/1 'Manrope', sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.hf .bx-r.on span { background: #e8f4ee; color: #086646; font-weight: 700; }
.hf .bx-more { padding: 8px 12px; font: 600 11.5px/1 'Manrope', sans-serif; color: #8a948f; }
.hf .bx-ph { padding: 12px; font: 500 13px/1.5 'Manrope', sans-serif; color: #27312c; }
.hf .bx-ph b { padding: 1px 6px; border-radius: 5px; background: #fde68a; font-weight: 700; }
.hf .bx-doc { width: 250px; height: 330px; padding: 22px 20px; border-radius: 6px; background: #fff;
              box-shadow: 0 30px 60px -30px rgba(12,20,16,.5), 0 0 0 1px rgba(12,20,16,.06); }
.hf .bx-dt { text-align: center; font: 700 13px/1 'Times New Roman', Georgia, serif; letter-spacing: .03em; }
.hf .bx-dm { margin: 5px 0 14px; text-align: center; font: 400 11px/1 'Times New Roman', Georgia, serif; color: #5c6862; }
.hf .bx-doc i.l { display: block; width: var(--w); height: 5px; margin: 8px 0; border-radius: 3px; background: #dfe3de; }
.hf .bx-name { margin: 12px 0; font: 400 12px/1.5 'Times New Roman', Georgia, serif; color: #27312c; }
.hf .bx-name b { padding: 0 3px; border-radius: 3px; background: #fde68a; font-weight: 700; }
.hf .bx-sig { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font: 400 10px/1 'Times New Roman', Georgia, serif; color: #5c6862; }
.hf .bx-sig i { width: 70px; height: 1px; background: #c9cfca; }
.hf .bx-count { padding: 9px 15px; border-radius: 999px; background: #0c1410; color: #fff; white-space: nowrap; font: 700 13.5px/1 'Manrope', sans-serif;
                box-shadow: 0 12px 26px -12px rgba(0,0,0,.5); }
.hf .bx-count b { color: #d9f99d; font-variant-numeric: tabular-nums; }
.hf .bx-case { padding: 6px 11px; border-radius: 999px; background: #7c5cff; color: #fff; white-space: nowrap; font: 700 12px/1 'Manrope', sans-serif;
               box-shadow: 0 10px 22px -10px rgba(124,92,255,.8); }
.hf .bx-zip { display: flex; align-items: center; gap: 8px; padding: 9px 14px 9px 9px; border-radius: 12px; background: #fff; white-space: nowrap;
              font: 700 13px/1 'Manrope', sans-serif; box-shadow: 0 20px 36px -16px rgba(12,20,16,.45), 0 0 0 1px rgba(12,20,16,.05); }
.hf .bx-zip i { padding: 4px 6px; border-radius: 6px; background: #e59a0b; color: #fff; font: 800 10px/1 'Manrope', sans-serif; font-style: normal; }

/* сцена 7: проверка договора */
.hf .rv-up { position: absolute; right: 36px; top: 12px; font: 600 10px/1 'Manrope', sans-serif; color: #8a948f; }
.hf .rv-hit { border-radius: 3px; }
.hf .rv-hit.f-bad { background: rgba(255,107,87,.13); } .hf .rv-hit.f-warn { background: rgba(251,191,36,.18); }
.hf .rv-hit.f-add { background: rgba(52,211,153,.10); outline: 1px dashed rgba(11,125,87,.5); }
.hf .rv-hit.ok { background: rgba(52,211,153,.18); outline: 0; }
.hf .rv-txt { position: relative; display: block; flex: 1; padding: 0 3px; font: 400 10.5px/15px 'Times New Roman', Georgia, serif; color: #27312c; white-space: nowrap; }
.hf .rv-txt .n { position: absolute; left: 3px; top: 0; color: #065f46; font-weight: 700; opacity: 0; }
.hf .rv-pin { position: absolute; right: -12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%;
              box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(0,0,0,.25); transform-origin: 50% 50%; }
.hf .rv-pin.bad { background: #ff6b57; } .hf .rv-pin.warn { background: #fbbf24; } .hf .rv-pin.add { background: #34d399; }
.hf .rv-pin.ok { background: #0b7d57; }
.hf .rv-scan { position: absolute; left: 0; right: 0; top: 0; height: 46px; pointer-events: none; border-bottom: 2px solid #2f6fde;
               background: linear-gradient(180deg, rgba(47,111,222,0), rgba(47,111,222,.16) 75%, rgba(47,111,222,.4)); }
.hf .rv-lines { overflow: visible; }
.hf .rv-lines path { fill: none; stroke: #b7bfba; stroke-width: 1.5; stroke-linecap: round; }
.hf .rv-card { width: 390px; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 14px; background: #fff;
               box-shadow: 0 24px 44px -22px rgba(12,20,16,.42), 0 0 0 1px rgba(12,20,16,.06); }
.hf .rv-card > i { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.hf .rv-card.bad > i { background: #ff6b57; box-shadow: 0 0 0 3px rgba(255,107,87,.2); }
.hf .rv-card.warn > i { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251,191,36,.22); }
.hf .rv-card.add > i { background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.22); }
.hf .rv-card div { flex: 1; min-width: 0; }
.hf .rv-card b { display: block; font: 700 14px/1.2 'Manrope', sans-serif; color: #0c1410; }
.hf .rv-card span { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 12px/1.2 'Manrope', sans-serif; color: #5c6862; }
.hf .rv-card em { flex: none; padding: 8px 12px; border-radius: 999px; background: #0c1410; color: #fff; font: 700 12px/1 'Manrope', sans-serif; font-style: normal; transform-origin: 50% 50%; }
.hf .rv-card.add em { background: #0b7d57; }
.hf .rv-card.ok { box-shadow: 0 24px 44px -22px rgba(12,20,16,.42), 0 0 0 2px #34d399; }
.hf .rv-card.ok > i { background: #0b7d57; box-shadow: 0 0 0 3px rgba(11,125,87,.2); }
.hf .rv-card.ok em { background: #e8f4ee; color: #0b7d57; }
.hf .rv-verdict { display: flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px; background: #0b7d57; color: #fff; white-space: nowrap;
                  font: 700 13px/1 'Manrope', sans-serif; box-shadow: 0 16px 30px -12px rgba(11,125,87,.8); }
.hf .rv-verdict svg { width: 14px; height: 14px; }

/* финал: перечень возможностей */
.hf .s6-chips { display: flex; gap: 8px; white-space: nowrap; }
.hf .s6-chips span { padding: 7px 12px; border-radius: 999px; background: #fff; color: #27312c; font: 700 12.5px/1 'Manrope', sans-serif;
                     box-shadow: 0 10px 22px -12px rgba(12,20,16,.35), 0 0 0 1px rgba(12,20,16,.07); }
.hf .s6-chips span:first-child { background: #0c1410; color: #d9f99d; }

/* общий слой: курсор, клик, субтитры */
.hf .cur { width: 26px; height: 26px; z-index: 40; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
.hf .cur svg { display: block; width: 26px; height: 26px; }
.hf .rip { width: 46px; height: 46px; border-radius: 50%; border: 2.5px solid #0b7d57; z-index: 39; }
.hf .cap { display: flex; gap: .28em; padding: 9px 15px; border-radius: 11px; z-index: 35; white-space: nowrap;
       background: rgba(12,20,16,.84); font: 700 17px/1 'Manrope', sans-serif; letter-spacing: -.012em; color: rgba(255,255,255,.42);
       box-shadow: 0 16px 30px -16px rgba(0,0,0,.5); }
.hf .cap span { transition: none; }
.hf .cap span.on { color: #fff; }
.hf .cap span.hot { color: #d9f99d; }

/* узкий кадр (телефон): своя раскладка, крупнее шрифты относительно кадра */
.hf.tall .s1-l { font-size: 40px; }
.hf.tall .s1-file { font-size: 10.5px; }
.hf.tall .ui-card { width: 360px; padding: 14px; }
.hf.tall .ui-input { font-size: 16px; min-height: 104px; }
.hf.tall .ui-row { flex-wrap: wrap; row-gap: 10px; }
.hf.tall .ui-chip.gost { display: none; }
.hf.tall .ui-btn { order: 5; width: 100%; justify-content: center; height: 44px; font-size: 15px; }
.hf.tall .hf-step { font-size: 14px; padding: 6px 13px 6px 6px; border-radius: 999px; background: #fff; box-shadow: 0 10px 22px -12px rgba(12,20,16,.4), 0 0 0 1px rgba(12,20,16,.05); }
.hf.tall .chk { font-size: 12px; padding: 8px 12px 8px 8px; }
.hf.tall .fmt { width: 50px; height: 62px; }
.hf.tall .fmt::before { top: 11px; height: 22px; }
.hf.tall .s4-num { font-size: 132px; }
.hf.tall .s4-sub { font-size: 27px; }
.hf.tall .s4-cc { font-size: 12.5px; }
.hf.tall .tg { font-size: 12.5px; padding: 7px 10px; }
.hf.tall .ag-panel { width: 360px; padding: 12px; }
.hf.tall .ag-head span, .hf.tall .ag-input { display: none; }
.hf.tall .ag-msgs { min-height: 0; padding: 10px 0 2px; gap: 8px; }
.hf.tall .ag-b { font-size: 13px; padding: 9px 11px; }
.hf.tall .ch-card { width: 330px; padding: 12px 14px; }
.hf.tall .ch-d, .hf.tall .ch-parties, .hf.tall .ch-tbl { display: none; }
.hf.tall .ch-sum { margin-top: 8px; }
.hf.tall .ch-btn { height: 30px; margin-top: 8px; }
.hf.tall .bx-r:nth-child(n+6), .hf.tall .bx-tpl { display: none; }
.hf.tall .bx-doc { width: 236px; height: 262px; padding: 16px 16px; }
.hf.tall .bx-name { margin: 8px 0; font-size: 11px; }
.hf.tall .rv-card { width: 360px; padding: 9px 10px 9px 12px; }
.hf.tall .rv-card span { display: none; }
.hf.tall .rv-card b { font-size: 13px; }
.hf.tall .rv-card em { padding: 7px 10px; font-size: 11.5px; }
.hf.tall .rv-verdict { font-size: 11.5px; padding: 8px 12px; }
.hf.tall .glow6 { width: 380px; height: 300px; }
.hf.tall .logo6 { font-size: 40px; gap: 10px; }
.hf.tall .logo6 img { width: 44px; height: 44px; }
.hf.tall .s6-l1 { font-size: 25px; }
.hf.tall .s6-l2 { font-size: 33px; }
.hf.tall .s6-cta { flex-direction: column; gap: 12px; font-size: 13px; }
.hf.tall .s6-gift { font-size: 12.5px; }

/* ---- плеер под сценой: главы-сторис ---- */
.hx-player { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 0 2px; }
.hx-pp { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hx-line); background: #fff; color: var(--hx-ink);
         display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 14px -8px rgba(12,20,16,.3); transition: transform .15s, border-color .15s; }
.hx-pp:hover { border-color: rgba(11,125,87,.5); transform: scale(1.05); }
.hx-pp svg { width: 14px; height: 14px; }
.hx-pp .i-play { display: none; } .hx-pp.paused .i-play { display: block; } .hx-pp.paused .i-pause { display: none; }
.hx-ch { flex: 1; min-width: 0; display: grid; gap: 5px;
         grid-template-columns: minmax(62px, 7.4fr) minmax(62px, 4.4fr) minmax(62px, 4.6fr) minmax(62px, 4.1fr) minmax(62px, 4.4fr) minmax(62px, 4.1fr) minmax(62px, 8.8fr); }
.hx-ch button { min-width: 0; padding: 4px 0; border: 0; background: none; cursor: pointer; text-align: left;
                font: 600 12px/1.2 'Manrope', sans-serif; color: #8a948f; transition: color .2s; }
.hx-ch button:hover, .hx-ch button.on { color: var(--hx-ink); }
.hx-ch .bar { display: block; height: 4px; margin-bottom: 8px; border-radius: 9px; background: #e3e7e2; overflow: hidden; }
.hx-ch .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0b7d57, #34d399); transform-origin: 0 50%; transform: scaleX(0); }
.hx-ch .lb { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- липкая кнопка (телефон) ---- */
.hx-sticky { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
             padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px));
             transform: translateY(120%); transition: transform .38s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.hx-sticky.show { transform: none; pointer-events: auto; }
.hx-sticky-in { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 18px;
                background: rgba(12,20,16,.92); color: #fff; -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
                box-shadow: 0 20px 44px -16px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.08); }
.hx-sticky-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12px; line-height: 1.2; color: rgba(255,255,255,.62); }
.hx-sticky-t b { font-size: 14px; color: #fff; font-weight: 700; }
.hx-sticky-btn { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 46px; padding: 0 16px; border-radius: 13px;
                 background: linear-gradient(180deg, #14a673, #0b7d57); color: #fff !important; font-weight: 700; font-size: 14.5px; white-space: nowrap;
                 box-shadow: 0 10px 22px -10px rgba(16,185,129,.8), inset 0 1px 0 rgba(255,255,255,.2); }
@media (max-width: 760px) { .hx-sticky { display: block; } }

/* ---- адаптив ---- */
@media (max-width: 1180px) {
    .hx-grid { gap: 52px; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
}
@media (max-width: 1040px) {
    .hx { padding: 104px 0 48px; }
    .hx-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
    .hx-copy { text-align: center; width: 100%; max-width: 680px; margin: 0 auto; }
    .hx-sub { margin-left: auto; margin-right: auto; }
    .hx-form { margin-left: auto; margin-right: auto; text-align: left; }
    .hx-chips { justify-content: center; margin-left: auto; margin-right: auto; }
    .hx-trust { justify-content: center; }
    .hx-film { max-width: 820px; margin: 0 auto; width: 100%; }
    .hx-h1 { font-size: clamp(34px, 6vw, 56px); }
    .hx-floor { top: 46%; }
}
@media (max-width: 640px) {
    .hx { padding: 90px 0 36px; }
    .hx-eyebrow { font-size: 12px; }
    .hx-h1 { margin-top: 16px; font-size: clamp(30px, 8.8vw, 40px); line-height: 1.06; }
    .hx-sub { font-size: 15.5px; margin-top: 14px; }
    .hx-form { margin-top: 20px; border-radius: 18px; }
    .hx-form textarea { font-size: 16px; min-height: 56px; padding: 8px 10px 4px; line-height: 1.4; }
    .hx-form textarea::placeholder { font-size: 14px; line-height: 1.45; }
    .hx-chips-l, .hx-trust { display: none; }
    .hx-note { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 0 2px;
               font-size: 12.5px; color: var(--hx-gray); }
    .hx-note b { color: var(--hx-ink); font-weight: 700; }
    .hx-note .coin { width: 14px; height: 14px; }
    .hx-chip { padding: 7px 11px; font-size: 12px; }
    .hx-bar { flex-wrap: wrap; padding: 2px; }
    .hx-fmts { display: none; }
    .hx-go { flex: 1 1 100%; height: 52px; border-radius: 13px; font-size: 16px; }
    .hx-chips { display: none !important; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; max-width: none; min-width: 0;
                margin: 10px -20px 0; padding: 2px 20px;
                -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent);
                        mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent); }
    .hx-chips::-webkit-scrollbar { display: none; }
    .hx-trust { gap: 6px 14px; font-size: 12.5px; margin-top: 14px; }
    .hx-film { margin-top: 4px; }
    .hx-stage { border-radius: 18px; }
    .hx-player { gap: 10px; margin-top: 14px; }
    .hx-ch { gap: 4px; }
    .hx-ch button { font-size: 10.5px; }
}
@media (max-width: 400px) {
    .hx-eb-long { display: none; }
}
@media (max-width: 560px) {
    .hx-ch { grid-template-columns: 7.4fr 4.4fr 4.6fr 4.1fr 4.4fr 4.1fr 8.8fr; }
    .hx-ch .lb { visibility: hidden; overflow: visible; }
    .hx-ch button.on .lb { visibility: visible; color: var(--hx-em); }
}
@media (prefers-reduced-motion: reduce) {
    .hx-floor { animation: none; }
    .hx-h1 .w, .hx-pill svg { animation: none; }
}
