.hq { max-width: 1180px; margin: 0 auto; padding: 0 16px 72px; box-sizing: border-box; font-family: Inter, system-ui, sans-serif; color: #171717; }
.hq *, .hq *::before, .hq *::after { box-sizing: border-box; }
.hq-g { background: #faf7ec; border: 1px solid #ece4c8; border-radius: 14px; padding: 18px; margin: 0 0 22px; }
.hq-g h3 { margin: 0 0 4px; font: 800 18px Manrope, sans-serif; }
.hq-g p { margin: 0 0 14px; font-size: 13px; color: #555; }
.hq-gg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.hq label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; color: #333; }
.hq input[type=number], .hq input[type=text], .hq select { width: 100%; min-height: 46px; border: 1px solid #cfc8b2; border-radius: 10px; padding: 10px 12px; font: 500 15px Inter, sans-serif; background: #fff; color: #171717; }
.hq input:focus, .hq select:focus { outline: 2px solid #9D790C; outline-offset: 1px; }
.hq-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin: 0 0 8px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.hq-tabs button { flex: none; border: 1px solid #d9d2bd; background: #fff; color: #171717; border-radius: 999px; padding: 10px 18px; font: 600 14px Manrope, sans-serif; cursor: pointer; white-space: nowrap; }
.hq-tabs button.on { background: #171717; color: #fff; border-color: #171717; }
.hq-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; align-items: start; }
.hq-p { background: #fff; border: 1px solid #e6e1d2; border-radius: 14px; padding: 22px; }
.hq-p[hidden] { display: none; }
.hq-p h3 { margin: 0; font: 800 22px Manrope, sans-serif; }
.hq-d { margin: 6px 0 14px; color: #555; font-size: 14px; }
.hq-f { list-style: none; margin: 0 0 18px; padding: 14px 16px; background: #171717; color: #e8e8e8; border-radius: 10px; font: 13px/1.7 ui-monospace, Menlo, Consolas, monospace; }
.hq-f li { padding-left: 14px; position: relative; }
.hq-f li::before { content: ">"; position: absolute; left: 0; color: #d9b85a; }
.hq-in { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.hq-bh, .hq-brow { display: grid; grid-template-columns: 1fr 1fr 1fr 70px 40px; gap: 8px; margin-bottom: 8px; }
.hq-bh span { font-size: 12px; font-weight: 600; color: #666; }
.hq-brow input { min-height: 42px !important; padding: 8px !important; }
.hq-x { border: 0; background: #f1ebd6; border-radius: 8px; font-size: 20px; cursor: pointer; color: #171717; }
.hq-add { border: 1.5px dashed #9D790C; background: #fff; color: #9D790C; border-radius: 10px; padding: 10px 16px; font: 700 14px Manrope, sans-serif; cursor: pointer; margin: 4px 0 18px; }
.hq-go { display: block; width: 100%; min-height: 50px; border: 0; border-radius: 10px; background: #9D790C; color: #fff; font: 700 16px Manrope, sans-serif; cursor: pointer; }
.hq-go:hover { background: #866609; }
.hq-out { margin-top: 18px; }
.hq-err { color: #b3261e; font-weight: 600; margin: 0; }
.hq-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.hq-t td { padding: 10px 6px; border-bottom: 1px solid #eee; vertical-align: top; }
.hq-t td:nth-child(2), .hq-t td:nth-child(3) { text-align: right; white-space: nowrap; font-weight: 600; }
.hq-t .i td { color: #777; font-weight: 400 !important; }
.hq-t .tt td { border-top: 2px solid #171717; border-bottom: 0; font-weight: 800; }
.hq-s { position: sticky; top: 130px; background: #171717; color: #fff; border-radius: 16px; padding: 22px; }
.hq-s h3 { margin: 0 0 4px; font: 700 14px Manrope, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #d9b85a; }
.hq-inc { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; font-size: 13px; }
.hq-inc span { background: #ffffff1f; border-radius: 999px; padding: 4px 6px 4px 12px; }
.hq-inc button { border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 16px; padding: 0 6px; }
.hq-inc em { color: #bbb; font-style: normal; }
.hq-s .hq-t td { border-bottom-color: #ffffff22; color: #fff; }
.hq-s .hq-t .tt td { border-top-color: #d9b85a; color: #d9b85a; }
.hq-acts { display: grid; gap: 10px; margin-top: 18px; }
.hq-acts a, .hq-acts button { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 10px; font: 700 15px Manrope, sans-serif; text-decoration: none; cursor: pointer; padding: 8px 14px; }
.hq-acts a { background: #9D790C; color: #fff; border: 0; }
.hq-acts button { background: transparent; color: #fff; border: 1.5px solid #ffffff55; }
.hq-note { font-size: 12px; color: #aaa; margin: 14px 0 0; line-height: 1.5; }
@media (max-width: 960px) { .hq-layout { grid-template-columns: 1fr; } .hq-s { position: static; } .hq-gg { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .hq-in { grid-template-columns: 1fr; } .hq-p { padding: 16px 14px; } .hq-bh, .hq-brow { grid-template-columns: 1fr 1fr 1fr 56px 36px; gap: 6px; } .hq-f { font-size: 12px; } }
@media print { header, footer, .hq-g, .hq-tabs, .hq-layout > div, .hq-acts { display: none !important; } .hq-s { position: static; background: #fff; color: #000; } .hq-s .hq-t td { color: #000; } }
