.qh-lang-form { display: inline-flex; margin: 0; }
.qh-lang { cursor: pointer; }
/* Внутренние страницы сайта (поверх стилей лендинга: home.css, ui-home.css) */
.tq-inner { background: #fcfaf6; }
.tq-main { padding: 120px 0 40px; min-height: 60vh; }
.tq-main.tq-main-wide { padding: 0; }
.tq-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.tq-inner h1 { font-family: Manrope, Inter, sans-serif; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; color: var(--ink, #0a0e1c); margin: 6px 0 10px; }
.tq-inner h2 { font-family: Manrope, Inter, sans-serif; font-size: 20px; color: var(--ink, #0a0e1c); margin: 0 0 14px; }
.tq-inner .g2 { color: var(--g2, #ab6a08); }
.tq-muted { color: var(--mute, #7b746a); }
.tq-muted.small, .small { font-size: 13px; }
.tq-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--g, #834f00); background: #f8efe2; padding: 6px 12px; border-radius: 999px; }

.tq-card { background: #fff; border: 1px solid var(--line2, #ebe8e2); border-radius: 24px; padding: 28px; box-shadow: var(--wshadow, 0 10px 30px rgba(3, 11, 43, .08)); }
.tq-narrow { max-width: 560px; margin: 0 auto; }
.tq-center { text-align: center; }
.tq-code { font: 800 64px/1 Manrope, Inter, sans-serif; color: var(--g3, #dfb678); }
.tq-block { width: 100%; }
.tq-help { font-size: 13px; color: var(--mute, #7b746a); margin-top: 14px; }
.tq-back { display: inline-block; margin-bottom: 14px; color: var(--g, #834f00); font-weight: 600; text-decoration: none; }

/* Формы */
.tq-form label, .tq-dev label { display: block; font-size: 13px; font-weight: 700; color: var(--ink, #0a0e1c); margin-bottom: 14px; }
.tq-form input:not([type=checkbox]), .tq-form select, .tq-dev input, .tq-region select {
    display: block; width: 100%; margin-top: 6px; border: 1px solid #e5ded2; background: #fdfcfb; border-radius: 12px;
    padding: 12px 14px; font: 15px Inter, sans-serif; color: var(--ink, #0a0e1c); box-sizing: border-box;
}
.tq-form input:focus, .tq-form select:focus { outline: 2px solid #dfb678; border-color: transparent; }
.tq-form .tq-ro { background: #f4f1ed; color: #453d32; }
.tq-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.tq-span2 { grid-column: 1 / -1; }
.tq-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; line-height: 1.45; }
.tq-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--g, #834f00); }
.tq-err { display: block; color: #c0392b; font-size: 12.5px; font-weight: 600; margin-top: 4px; }
.tq-err:empty { display: none; }
.tq-dev { margin-top: 22px; padding-top: 18px; border-top: 1px dashed #e5ded2; }
.tq-dev summary { cursor: pointer; font-weight: 700; color: #b26b00; }
.tq-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: tqspin .7s linear infinite; }
.tq-spinner[hidden] { display: none; }
@keyframes tqspin { to { transform: rotate(360deg); } }

/* Сообщения */
.tq-alert { border-radius: 14px; padding: 12px 16px; margin: 0 0 14px; background: #f4f1ed; color: #453d32; font-size: 14px; }
.tq-alert.ok { background: #e9f6ee; color: #146c3c; }
.tq-alert.err { background: #fdecea; color: #a12a1c; }
.tq-alert.warn { background: #fff4dc; color: #7a5200; }
.tq-alert:empty, .tq-alert[hidden] { display: none; }
.tq-alert ul { margin: 0; padding-left: 18px; }
.tq-flash { position: fixed; right: 20px; bottom: 20px; z-index: 300; max-width: 380px; padding: 15px 20px; border-radius: 14px; color: #fff; box-shadow: 0 12px 38px rgba(0, 0, 0, .2); animation: tqflash 6s forwards; }
.tq-flash.ok { background: #011150; }
.tq-flash.err { background: #a12a1c; }
@keyframes tqflash { 0%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(10px); visibility: hidden; } }

/* Заголовки и фильтры */
.tq-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.tq-actions { display: flex; gap: 8px; }
.tq-actions form { margin: 0; }
.tq-filters { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.tq-filters .hx-filters { margin: 0; justify-content: flex-start; }
.tq-filters .chip { text-decoration: none; }
.tq-region select { margin: 0; min-width: 240px; border-radius: 999px; }
.tq-cards { margin-top: 0; }
.tq-empty { text-align: center; padding: 60px 20px; color: var(--mute, #7b746a); background: #fff; border-radius: 24px; }

/* Карточка мероприятия */
.tq-event { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.tq-event-side { position: sticky; top: 110px; }
.tq-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tq-gallery img#tq-main-photo { width: 100%; max-height: 520px; object-fit: cover; border-radius: 24px; display: block; background: #f4f1ed; }
.tq-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.tq-thumb { border: 0; padding: 0; background: none; cursor: pointer; flex: none; }
.tq-thumb img { width: 92px; height: 68px; object-fit: cover; border-radius: 12px; display: block; }
.tq-desc { white-space: pre-line; font-size: 16px; line-height: 1.65; color: #3a3f52; margin-top: 22px; }
.tq-facts { margin: 0 0 18px; }
.tq-facts dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--mute, #7b746a); margin-top: 14px; }
.tq-facts dt:first-child { margin-top: 0; }
.tq-facts dd { margin: 4px 0 0; font-weight: 600; color: var(--ink, #0a0e1c); }
.tq-facts a { color: var(--g, #834f00); }
.tq-note { font-weight: 400; font-size: 13.5px; color: #453d32; background: #f8f3ea; border-radius: 10px; padding: 8px 10px; margin-top: 8px; }

/* Кабинет */
.tq-kpis { display: flex; gap: 12px; margin-bottom: 20px; }
.tq-kpis div { background: #fff; border: 1px solid var(--line2, #ebe8e2); border-radius: 18px; padding: 14px 22px; }
.tq-kpis b { display: block; font: 800 28px/1.1 Manrope, Inter, sans-serif; color: var(--g, #834f00); }
.tq-kpis small { color: var(--mute, #7b746a); }
.tq-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tq-list { list-style: none; margin: 0; padding: 0; }
.tq-list li { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line2, #ebe8e2); }
.tq-list li:first-child { border-top: 0; padding-top: 0; }
.tq-list li.past { opacity: .6; }
.tq-list a { color: var(--ink, #0a0e1c); text-decoration: none; }
.tq-list small { display: block; color: var(--mute, #7b746a); margin-top: 3px; }
.tq-list-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tq-list-side form { margin: 0; }
.tq-pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #f4f1ed; white-space: nowrap; }
.tq-pill.ok { background: #e9f6ee; color: #146c3c; }
.tq-pill.warn { background: #fff4dc; color: #7a5200; }
.tq-link { border: 0; background: none; color: var(--mute, #7b746a); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 0; }

/* Подпись ЭЦП: QR eGov Mobile + NCALayer (компьютер), eGov Mobile (телефон) */
.tq-mid { max-width: 720px; margin: 0 auto; }
.tq-reg-block { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line2, #ebe8e2); }
.tq-reg-block h2 { display: flex; align-items: center; gap: 10px; }
.tq-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f8efe2; color: var(--g, #834f00); font-size: 14px; font-weight: 800; flex: none; }
.tq-sign-desktop { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 22px; align-items: center; }
.tq-sign-desktop[hidden], .tq-sign-mobile[hidden] { display: none; }
.tq-sign-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 200px; }
.tq-qr-box { position: relative; width: 200px; height: 200px; border: 1px solid var(--line2, #ebe8e2); border-radius: 18px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.tq-qr-box img { width: 184px; height: 184px; image-rendering: pixelated; }
.tq-qr-wait { display: grid; place-items: center; }
.tq-qr-wait[hidden], .tq-qr-expired[hidden], .tq-qr-box img[hidden] { display: none; }
.tq-qr-expired { position: absolute; inset: 0; border: 0; background: #f8f3ea; color: #453d32; font-size: 14px; line-height: 1.5; cursor: pointer; }
.tq-qr-expired b { color: var(--g, #834f00); }
.tq-sign-caption { text-align: center; font-size: 13px; color: var(--mute, #7b746a); line-height: 1.4; }
.tq-sign-caption b { display: block; color: var(--ink, #0a0e1c); font-size: 14px; margin-bottom: 2px; }
.tq-sign-or { align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--mute, #7b746a); font-size: 13px; }
.tq-sign-or::before, .tq-sign-or::after { content: ""; flex: 1; width: 1px; background: var(--line2, #ebe8e2); }
.tq-sign-or span { padding: 8px 0; }
.tq-sign-nca .tq-help { margin-top: 10px; }
.tq-sign-mobile .hx-btn { display: flex; justify-content: center; align-items: center; gap: 10px; text-decoration: none; }
.tq-sign-mobile .hx-btn.is-disabled { opacity: .6; pointer-events: none; }
.tq-sign-status { margin: 14px 0 0; font-size: 14px; font-weight: 600; color: var(--g, #834f00); }
.tq-sign-status[hidden] { display: none; }
.tq-spinner.dark { border-color: var(--g3, #dfb678); border-right-color: transparent; width: 28px; height: 28px; }
.tq-signed { display: flex; align-items: center; gap: 14px; background: #e9f6ee; border-radius: 16px; padding: 14px 16px; }
.tq-signed[hidden] { display: none; }
.tq-signed > div { flex: 1; min-width: 0; }
.tq-signed b { display: block; color: #0d4a2a; }
.tq-signed small { color: #146c3c; }
.tq-signed-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #146c3c; color: #fff; font-weight: 800; flex: none; }
.tq-form button:disabled { opacity: .5; cursor: not-allowed; }

/* Карточка мероприятия: набор, задачи, форма заявки */
.tq-recruit { display: inline-block; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; background: #f4f1ed; color: #453d32; }
.tq-recruit.open { background: #e9f6ee; color: #146c3c; }
.tq-tasks { margin-top: 26px; }
.tq-tasks ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tq-tasks li { background: #fff; border: 1px solid var(--line2, #ebe8e2); border-radius: 14px; padding: 12px 16px 12px 42px; position: relative; color: #3a3f52; }
.tq-tasks li::before { content: "✓"; position: absolute; left: 16px; color: var(--g, #834f00); font-weight: 800; }
.tq-apply > summary { list-style: none; cursor: pointer; }
.tq-apply > summary::-webkit-details-marker { display: none; }
.tq-apply[open] > summary { display: none; }
.tq-apply .tq-form { margin-top: 4px; }
.tq-apply textarea { width: 100%; border: 1px solid #e5ded2; background: #fdfcfb; border-radius: 12px; padding: 11px 12px; margin-top: 6px; font: inherit; resize: vertical; }
.tq-apply-who { background: #f8f3ea; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.tq-apply-who small { display: block; color: var(--mute, #7b746a); }
.tq-apply-who a { color: var(--g, #834f00); }
.tq-alert b { display: block; }
body.dark .tq-tasks li { background: #141a2f; border-color: #242c4c; color: #f4ede0; }

/* Подача инициативы: модальное окно на главной */
.dialog.ini { width: min(720px, 100%); max-height: 92vh; overflow-y: auto; padding: 30px; }
.ini h2 { font-family: Manrope, Inter, sans-serif; font-size: 26px; color: var(--ink, #0a0e1c); padding-right: 36px; }
.ini-lead { color: var(--mute, #7b746a); font-size: 14.5px; line-height: 1.5; margin: 0 0 18px; }
.ini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.ini-grid label { display: block; }
.ini-span2 { grid-column: 1 / -1; }
.ini-grid small { display: block; margin: -6px 0 13px; font-weight: 400; font-size: 12.5px; color: var(--mute, #7b746a); }
.ini input[readonly] { background: #f4f1ed; color: #453d32; }
.ini input:focus, .ini select:focus, .ini textarea:focus { outline: 2px solid #dfb678; border-color: transparent; }
.ini textarea { resize: vertical; font: inherit; }
.ini input[type=file] { padding: 9px; }
.ini-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500 !important; line-height: 1.45; margin: 4px 0 18px; }
.ini-check input { width: 18px !important; height: 18px; flex: none; margin: 3px 0 0 !important; padding: 0 !important; accent-color: var(--g, #834f00); }
.ini-submit { width: 100%; }
.ini-submit.busy { opacity: .6; pointer-events: none; }
.ini-err { background: #fdecea; color: #a12a1c; border-radius: 12px; padding: 11px 14px; margin: 0 0 16px; font-size: 14px; font-weight: 600; }
.ini-err[hidden], .ini-done[hidden], #initForm[hidden] { display: none; }
.ini-done { text-align: center; padding: 26px 6px 8px; }
.ini-done p { color: #453d32; line-height: 1.55; margin: 0 0 22px; }
.ini-done-ico { width: 64px; height: 64px; border-radius: 50%; background: #e9f6ee; color: #146c3c; font-size: 30px; font-weight: 800; display: grid; place-items: center; margin: 0 auto 16px; }
body.dark .dialog.ini { background: #141a2f; color: #f4ede0; }
body.dark .ini h2, body.dark .ini label { color: #f4ede0; }
body.dark .ini input, body.dark .ini select, body.dark .ini textarea { background: #0f1426; border-color: #242c4c; color: #f4ede0; }
body.dark .ini-done p { color: #c9c2b4; }
@media (max-width: 600px) {
    .dialog.ini { padding: 22px 18px; border-radius: 20px; }
    .ini-grid { grid-template-columns: 1fr; }
}

/* Анкета волонтёра: навигация по разделам слева, разделы — отдельные карточки */
.tq-progress { height: 8px; border-radius: 999px; background: #f4f1ed; overflow: hidden; margin: 6px 0 10px; }
.tq-progress span { display: block; height: 100%; background: var(--g, #834f00); border-radius: inherit; }
.tq-contacts { margin: 14px 0 0; }
.tq-profile { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.tq-pnav { position: sticky; top: 110px; padding: 22px; }
.tq-pnav-pct { font: 800 30px/1 Manrope, Inter, sans-serif; color: var(--g, #834f00); }
.tq-pnav ol { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: psec; }
.tq-pnav li { counter-increment: psec; }
.tq-pnav a { display: flex; gap: 10px; align-items: center; padding: 7px 0; color: var(--ink, #0a0e1c); text-decoration: none; font-size: 14px; }
.tq-pnav a::before { content: counter(psec); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: #f4f1ed; color: #453d32; }
.tq-pnav li.done a::before { content: "✓"; background: #e9f6ee; color: #146c3c; }
.tq-psecs { display: grid; gap: 20px; }
.tq-psec { scroll-margin-top: 110px; }
.tq-psec-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 20px; margin: 0 0 18px; }
.tq-psec-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: #f8efe2; color: var(--g, #834f00); flex: none; }
.tq-psec-title .tq-pill { margin-left: auto; }
.tq-form [hidden] { display: none !important; }
.tq-photo { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; }
.tq-photo form { margin: 0 0 6px; }
.tq-photo p { margin: 6px 0 0; }
.tq-photo-form label { cursor: pointer; position: relative; }
.tq-photo-form label:focus-within { outline: 2px solid #dfb678; outline-offset: 2px; }
.tq-photo-form input[type=file] { position: absolute; inset: 0; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.tq-avatar { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line2, #ebe8e2); }
.tq-avatar-empty { display: grid; place-items: center; background: #f8efe2; color: var(--g, #834f00); font: 800 30px Manrope, Inter, sans-serif; }
/* Кабинет — цифровой паспорт: шапка и вкладки */
.tq-passport { padding: 24px 28px; margin-bottom: 14px; }
.tq-passport-who { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.tq-passport-who .tq-avatar { width: 84px; height: 84px; text-decoration: none; }
.tq-passport-name { flex: 1; min-width: 220px; }
.tq-passport-name h1 { margin: 8px 0 4px; font-size: 28px; }
.tq-passport-name p { margin: 0; }
.tq-passport-id { display: inline-block; font: 700 13px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em; background: #f4f1ed; color: #453d32; padding: 3px 9px; border-radius: 8px; margin-right: 6px; }
.tq-passport-kpis { margin: 18px 0 0; flex-wrap: wrap; }
.tq-passport-kpis div { flex: 1; min-width: 120px; background: #fdfcfb; }
.tq-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 18px; scrollbar-width: thin; }
.tq-tabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line2, #ebe8e2); background: #fff; color: var(--ink, #0a0e1c); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.tq-tabs a:hover { border-color: #dfb678; }
.tq-tabs a.active { background: var(--g, #834f00); border-color: var(--g, #834f00); color: #fff; }
.tq-tabs small { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #7a5200; background: #fff4dc; padding: 2px 6px; border-radius: 999px; }
.tq-gap { margin-top: 20px; }
.tq-pill.bad { background: #fdecea; color: #a12a1c; }
.tq-soon { text-align: center; padding: 48px 28px; }
.tq-soon h2 { margin: 14px 0 8px; }
.tq-table-wrap { overflow-x: auto; }
.tq-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tq-table th, .tq-table td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line2, #ebe8e2); vertical-align: top; }
.tq-table thead th { border-top: 0; font-size: 12px; color: var(--mute, #7b746a); text-transform: uppercase; letter-spacing: .04em; }
.tq-table tfoot th { font-size: 15px; }
.tq-table .num { text-align: right; white-space: nowrap; }
.tq-table .nowrap { white-space: nowrap; }
.tq-table small { display: block; color: var(--mute, #7b746a); }
.tq-table a { color: var(--ink, #0a0e1c); }
/* «Жасыл ел» — публичная страница */
.je-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-bottom: 24px; }
.je-hero h1 { font-size: 44px; margin: 12px 0 10px; }
.je-hero p { line-height: 1.55; max-width: 560px; margin: 0 0 18px; }
.je-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.je-kpis div { padding: 18px 20px; }
.je-chart { margin-bottom: 28px; }
.je-chart h2 { margin: 0 0 16px; font-size: 20px; }
.je-bars { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; }
.je-bars li { display: grid; grid-template-columns: 210px minmax(0, 1fr) 48px; gap: 12px; align-items: center; font-size: 14px; }
.je-bars b { text-align: right; }
.je-bar { height: 14px; border-radius: 999px; background: #f4f1ed; overflow: hidden; }
.je-bar i { display: block; height: 100%; border-radius: inherit; }
.d1 { --je: #11a76a; } .d2 { --je: #2f7d32; } .d3 { --je: #2770bc; } .d4 { --je: #d19e18; }
.je-bar i { background: var(--je); }
.je-section { margin-bottom: 32px; scroll-margin-top: 100px; }
.je-section-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.je-section-head h2 { margin: 0; font-size: 26px; }
.je-squads, .je-branches { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.je-squad { display: flex; flex-direction: column; gap: 8px; padding: 22px; }
.je-squad h3, .je-branch h3 { margin: 4px 0 0; font-size: 18px; }
.je-squad p { margin: 4px 0 0; color: #453d32; font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.je-squad-top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.je-dir { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: var(--je); background: color-mix(in srgb, var(--je) 12%, transparent); }
.je-squad-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.je-squad-foot [aria-disabled] { cursor: default; opacity: .75; }
.je-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.je-filter input, .je-filter select { flex: 1 1 220px; border: 1px solid #e5ded2; background: #fff; border-radius: 12px; padding: 11px 14px; font: 15px Inter, sans-serif; min-width: 0; }
.je-branch { padding: 22px; }
.je-branch dl { margin: 12px 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; font-size: 14px; }
.je-branch dt { color: var(--mute, #7b746a); }
.je-branch dd { margin: 0; overflow-wrap: anywhere; }
.je-branch a { color: var(--ink, #0a0e1c); }
body.dark .je-bar { background: #242c4c; }
body.dark .je-squad p { color: #c9c2b4; }
body.dark .je-filter input, body.dark .je-filter select { background: #141a2f; border-color: #242c4c; color: #f4ede0; }
body.dark .je-branch a { color: #f4ede0; }
@media (max-width: 900px) {
    .je-hero { grid-template-columns: 1fr; }
    .je-hero h1 { font-size: 34px; }
    .je-bars li { grid-template-columns: minmax(0, 1fr) 40px; }
    .je-bars .je-bar { grid-column: 1 / -1; grid-row: 2; }
}

.je-mine { display: flex; align-items: center; gap: 14px; padding: 16px 20px; margin-bottom: 20px; text-decoration: none; color: var(--ink, #0a0e1c); border-color: #dfb678; }
.je-mine > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.je-mine-go { font-size: 22px; color: var(--g, #834f00); }
.empty-hidden.validation-summary-valid { display: none; }

/* Партнёры: логотипы под тему */
.pt-logo { max-width: 100%; max-height: 72px; object-fit: contain; }
.pt-logo-dark { display: none; }
body.dark .pt-logo-light { display: none; }
body.dark .pt-logo-dark { display: block; }
.pt-logo-text { font: 800 18px Manrope, Inter, sans-serif; text-align: center; }
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.pt-tile { display: grid; place-items: center; height: 120px; padding: 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line2, #ebe8e2); color: var(--ink, #0a0e1c); text-decoration: none; transition: border-color .15s, transform .15s; }
.pt-tile:hover { border-color: #dfb678; transform: translateY(-2px); }
.pt-card { margin-top: 10px; }
.pt-card-logo { display: flex; align-items: center; height: 96px; margin-bottom: 10px; }
.pt-card-logo .pt-logo { max-height: 96px; max-width: 280px; }
.pt-card h1 { margin: 0 0 14px; }
.pt-card h2 { font-size: 18px; margin: 0 0 8px; }
.pt-card-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hx-plogos-partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 22px; }
.hx-plogos-partners a { display: grid; place-items: center; width: 150px; height: 72px; padding: 10px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line2, #ebe8e2); }
.hx-plogos-partners .pt-logo { max-height: 48px; }
body.dark .pt-tile, body.dark .hx-plogos-partners a { background: #141a2f; border-color: #242c4c; color: #f4ede0; }

/* Коалиция: галерея, карточка, анкета */
.co-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.co-filter input, .co-filter select { flex: 1 1 200px; min-width: 0; border: 1px solid #e5ded2; background: #fff; border-radius: 12px; padding: 11px 14px; font: 15px Inter, sans-serif; }
.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.co-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; text-decoration: none; color: var(--ink, #0a0e1c); transition: border-color .15s, transform .15s; }
.co-card:hover { border-color: #dfb678; transform: translateY(-2px); }
.co-card-logo { width: 64px; height: 64px; border-radius: 16px; background: #f8efe2; display: grid; place-items: center; overflow: hidden; margin-bottom: 6px; }
.co-card-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.co-card-logo b { font: 800 22px Manrope, Inter, sans-serif; color: var(--g, #834f00); }
.co-card-name { font-size: 17px; line-height: 1.3; }
.co-card p { margin: 4px 0 0; color: #453d32; font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.co-card-dirs { margin-top: auto; padding-top: 8px; color: #146c3c; font-weight: 600; }
.co-head { display: flex; gap: 18px; align-items: center; margin: 10px 0 22px; }
.co-head h1 { margin: 0 0 6px; }
.co-logo { width: 72px; height: 72px; border-radius: 16px; object-fit: contain; background: #fff; border: 1px solid var(--line2, #ebe8e2); }
.co-logo.lg { width: 96px; height: 96px; }
.co-pre { white-space: pre-line; line-height: 1.6; }
.tq-card h2 + .co-pre, .tq-card .co-tags { margin-top: 0; }
.co-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.co-tags span { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: #e9f6ee; color: #146c3c; }
.co-join h1 { margin: 8px 0 8px; }
.co-join > p { margin: 0 0 18px; line-height: 1.55; }
.co-form .tq-card { margin-bottom: 16px; }
.co-status { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; padding: 18px 22px; }
.co-status div { display: flex; flex-direction: column; gap: 4px; }
.co-logo-row { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.co-logo-row label { flex: 1; }
.co-logo-row small { display: block; font-weight: 400; margin-top: 4px; }
body.dark .co-card { color: #f4ede0; }
body.dark .co-card p { color: #c9c2b4; }
body.dark .co-filter input, body.dark .co-filter select { background: #141a2f; border-color: #242c4c; color: #f4ede0; }
body.dark .co-tags span { background: #143024; color: #8fd6ae; }
@media (max-width: 600px) {
    .co-head { flex-direction: column; align-items: flex-start; }
}

/* Кабинет: «Жасыл ел» и ID-пропуск */
.je-member h2 { margin: 12px 0 14px; font-size: 22px; }
.je-member h3 { margin: 18px 0 10px; font-size: 16px; }
.je-member .tq-kpis div { flex: 1; }
.je-pass h2 { margin: 0 0 14px; font-size: 18px; }
.je-pass-card { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #146c3c, #11a76a); margin-bottom: 12px; }
.je-pass-card div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.je-pass-card small { opacity: .85; font-size: 12px; }
.je-pass-card b { font-size: 16px; line-height: 1.25; }
.je-pass-card .tq-passport-id { align-self: flex-start; background: rgba(255, 255, 255, .2); color: #fff; }
.je-pass-photo { flex: none; width: 76px; height: 96px; border-radius: 12px; object-fit: cover; background: #fff; display: grid; place-items: center; font: 800 26px Manrope, Inter, sans-serif; }
.je-pass .tq-photo-form input[type=file] { position: absolute; inset: 0; width: 1px; height: 1px; opacity: 0; }

/* Кабинет организации */
.org-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.org-photos label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 500; }
.org-photos img { width: 120px; height: 80px; object-fit: cover; border-radius: 10px; }
.org-stage { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.org-stage input[name=hours] { width: 56px; padding: 4px 8px; border: 1px solid #e5ded2; border-radius: 8px; font: 13px Inter, sans-serif; }
.co-status .ms-auto { margin-left: auto; }
.org-vol-reject { margin-top: 6px; }
.org-vol-reject summary { cursor: pointer; font-size: 13px; }
.org-vol-reject[open] summary { margin-bottom: 8px; }
.org-projects { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 14px; }
.org-projects li { padding-left: 14px; border-left: 3px solid var(--g, #834f00); }
.org-projects li > span { display: block; margin: 2px 0 4px; }
.org-projects p { margin: 4px 0 0; }
.org-report-filter { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.org-report-filter label { margin: 0; }
.org-report-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0 8px; }
.org-report-totals div { padding: 14px 16px; border-radius: 14px; background: var(--line2, #f4f1ed); }
.org-report-totals b { display: block; font: 800 26px Manrope, Inter, sans-serif; }
.org-report-totals span { font-size: 13px; color: var(--mute, #7b746a); }
@media (max-width: 640px) { .org-report-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* QR-пропуск и сканер (F1) */
.tq-pass { max-width: 440px; margin: 12px auto 0; text-align: center; }
.tq-pass h1 { font-size: 22px; margin: 6px 0 4px; }
.tq-pass-qr { display: block; width: min(100%, 320px); aspect-ratio: 1; margin: 18px auto 12px; border-radius: 16px; background: #fff; padding: 10px; image-rendering: pixelated; box-shadow: 0 0 0 1px var(--line2, #ebe8e2); }
.tq-pass-name { display: flex; flex-direction: column; gap: 2px; margin: 0 0 8px; }
.tq-pass-name b { font-size: 18px; }
.tq-pass-mini { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 10px; border-radius: 14px; border: 1px solid var(--line2, #ebe8e2); color: inherit; text-decoration: none; }
.tq-pass-mini img { width: 76px; height: 76px; border-radius: 8px; background: #fff; padding: 4px; image-rendering: pixelated; flex: none; }
.tq-pass-mini span { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.tq-pass-mini small { color: var(--mute, #7b746a); font-size: 13px; }
.tq-scan-head { max-width: 560px; margin: 0 auto 12px; }
.tq-scan-head h1 { margin-bottom: 2px; }
.tq-scan-head ~ .tq-card { max-width: 560px; margin-left: auto; margin-right: auto; }
.tq-scanner { text-align: center; }
.tq-scanner-view { position: relative; width: 100%; aspect-ratio: 1; max-height: 70vh; border-radius: 16px; overflow: hidden; background: #111; }
.tq-scanner-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tq-scanner-frame { position: absolute; inset: 18%; border: 3px solid rgba(255, 255, 255, .85); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .28); opacity: 0; transition: opacity .2s; }
.tq-scanner.live .tq-scanner-frame { opacity: 1; }
.tq-scanner:not(.live) .tq-scanner-view { display: none; }
.tq-scanner-status { margin: 12px 0 8px; font-weight: 600; min-height: 1.4em; }
.tq-scan-result.bad { border: 2px solid #e2a59c; }
.tq-scan-result.ok { border: 2px solid #9fd3b1; }
.tq-scan-result > h2 { text-align: center; }
.tq-scan-icon { width: 56px; height: 56px; margin: 4px auto 8px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 800; background: #fdecea; color: #a12a1c; }
.tq-scan-who { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.tq-scan-who h2 { margin: 0; }
.tq-scan-who p { margin: 2px 0 0; }
.tq-scan-photo { width: 72px; height: 90px; object-fit: cover; border-radius: 12px; flex: none; }
.tq-scan-actions { display: grid; gap: 12px; margin-top: 14px; }
.tq-scan-verify { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: end; }
.tq-scan-verify label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.tq-scan-verify input { padding: 10px 12px; border: 1px solid #e5ded2; border-radius: 12px; font: 16px Inter, sans-serif; width: 100%; }
.tq-scan-found + .tq-scan-found { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line2, #ebe8e2); }
/* Сертификаты и проверка (F2) */
.tq-verify { max-width: 620px; margin: 12px auto 0; }
.tq-verify h1 { margin: 6px 0 16px; }
.tq-verify-status { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; margin-bottom: 18px; }
.tq-verify-status b { font-size: 18px; }
.tq-verify-status.ok { background: #e8f6ee; color: #14633a; }
.tq-verify-status.bad { background: #fdecea; color: #a12a1c; }
body.dark .tq-verify-status.ok { background: #12301f; color: #9fe0b8; }
body.dark .tq-verify-status.bad { background: #3a1714; color: #f3aba3; }
.tq-certs .tq-list-side { flex-direction: row; gap: 8px; }

/* ESG (F3.2) */
.tq-green-partner { display: inline-block; text-decoration: none; margin-bottom: 6px; }
.tq-esg-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tq-esg-hero { max-width: 760px; margin: 10px 0 22px; }
.tq-esg-hero h1 { margin: 6px 0 8px; }
.tq-esg-registry { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tq-esg-registry li { display: grid; grid-template-columns: 36px auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 20px; }
.tq-esg-registry li > div small { display: block; margin-top: 2px; }
.tq-esg-registry .co-logo { width: 52px; height: 52px; border-radius: 12px; }
.tq-esg-rank { font: 800 22px Manrope, Inter, sans-serif; color: var(--g, #834f00); text-align: center; }
.tq-esg-count { text-align: right; }
.tq-esg-count b { display: block; font: 800 24px Manrope, Inter, sans-serif; color: #1f8a4c; }
.tq-esg-count small { color: var(--mute, #7b746a); font-size: 12px; }
@media (max-width: 640px) {
    .tq-esg-registry li { grid-template-columns: 28px minmax(0, 1fr) auto; }
    .tq-esg-registry .co-logo { display: none; }
}

/* на телефоне сканера всё важное — на первом экране: подписи слева, компактно */
.tq-scan-head h1 { font-size: clamp(22px, 6vw, 30px); }
.tq-scan-result .je-review, .tq-scan-found .je-review { grid-template-columns: 96px minmax(0, 1fr) !important; gap: 6px 12px; margin-bottom: 12px; }
.tq-scan-result .je-review dt, .tq-scan-found .je-review dt { margin-top: 0 !important; }
.tq-scan-who h2 { font-size: 20px; line-height: 1.25; }
.tq-scan-find { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.tq-scan-find label { margin: 0; }

/* Мастер вступления в отряд */
.je-apply h1 { margin: 8px 0 18px; font-size: 30px; }
.je-apply h2 { margin: 0 0 16px; font-size: 20px; }
.je-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.je-steps li > a, .je-steps li > span { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line2, #ebe8e2); background: #fff; color: var(--mute, #7b746a); font-size: 13px; font-weight: 600; text-decoration: none; height: 100%; box-sizing: border-box; }
.je-steps li span span, .je-steps li a span { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #f4f1ed; font-size: 12px; }
.je-steps li.done > a { color: var(--ink, #0a0e1c); }
.je-steps li.done a span { background: #e9f6ee; color: #146c3c; }
.je-steps li.on > span { border-color: var(--g, #834f00); color: var(--ink, #0a0e1c); }
.je-steps li.on span span { background: var(--g, #834f00); color: #fff; }
.je-who { background: #f8f3ea; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 3px; }
.je-who small { color: #453d32; }
.je-doc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line2, #ebe8e2); }
.je-doc small { display: block; margin-top: 3px; overflow-wrap: anywhere; }
.je-doc.ok small { color: #146c3c; }
.je-doc input[type=file] { font-size: 13px; max-width: 100%; }
.je-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.je-review { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px 14px; margin: 0 0 18px; font-size: 14px; }
.je-review dt { color: var(--mute, #7b746a); }
.je-review dd { margin: 0; overflow-wrap: anywhere; }
.je-pre { white-space: pre-line; }
.je-status h2 { margin: 12px 0 4px; }
body.dark .je-steps li > a, body.dark .je-steps li > span { background: #141a2f; border-color: #242c4c; color: #c9c2b4; }
body.dark .je-who { background: #1a2140; }
body.dark .je-who small { color: #c9c2b4; }
@media (max-width: 600px) {
    .je-steps li > a, .je-steps li > span { flex-direction: column; text-align: center; font-size: 11px; padding: 8px 6px; }
    .je-doc, .je-review { grid-template-columns: 1fr; }
    .je-review dt { margin-top: 6px; }
}

/* «Рекомендуем вам» */
.tq-reco { margin-bottom: 22px; }
.tq-reco-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tq-reco-head h2 { margin: 0; font-size: 20px; }
.tq-reco-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tq-reco-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line2, #ebe8e2); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--ink, #0a0e1c); transition: border-color .15s, transform .15s; }
.tq-reco-card:hover { border-color: #dfb678; transform: translateY(-2px); }
.tq-reco-photo { position: relative; height: 120px; background: #f4f1ed center / cover no-repeat; }
.tq-reco-body { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px 16px; }
.tq-reco-body b { font-size: 15px; line-height: 1.3; }
.tq-reco-body small { color: var(--mute, #7b746a); font-size: 13px; }
.tq-reco-why { align-self: flex-start; margin-top: 4px; font-size: 12px; font-weight: 700; color: #146c3c; background: #e9f6ee; padding: 4px 10px; border-radius: 999px; }
body.dark .tq-reco-card { background: #141a2f; border-color: #242c4c; color: #f4ede0; }
body.dark .tq-reco-why { background: #143024; color: #8fd6ae; }
@media (max-width: 960px) {
    .tq-reco-list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(240px, 80%); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
    .tq-reco-card { scroll-snap-align: start; }
}

body.dark .tq-passport-id { background: #242c4c; color: #f4ede0; }
body.dark .tq-passport-kpis div { background: #0f1426; }
body.dark .tq-tabs a { background: #141a2f; border-color: #242c4c; color: #f4ede0; }
body.dark .tq-tabs a.active { background: #834f00; border-color: #834f00; }
body.dark .tq-table a, body.dark .tq-table tfoot th { color: #f4ede0; }
@media (max-width: 600px) {
    .tq-passport { padding: 16px; }
    .tq-passport-who { gap: 12px; align-items: flex-start; }
    .tq-passport-who .tq-avatar { width: 56px; height: 56px; font-size: 20px; }
    .tq-passport-name { min-width: 0; flex: 1 1 calc(100% - 70px); }
    .tq-passport-name .tq-eyebrow { font-size: 10px; padding: 4px 9px; }
    .tq-passport-name h1 { font-size: 20px; margin: 6px 0 4px; }
    .tq-passport-name p { font-size: 13px; }
    .tq-passport-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
    .tq-passport-kpis div { min-width: 0; padding: 10px 12px; border-radius: 14px; display: flex; align-items: baseline; gap: 6px; }
    .tq-passport-kpis b { font-size: 20px; display: inline; }
    .tq-passport-kpis small { font-size: 12px; line-height: 1.2; }
    .tq-passport-kpis div:last-child:nth-child(odd) { grid-column: span 2; }
    .tq-list li { flex-direction: column; gap: 8px; }
    .tq-list-side { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; }
}
body.dark .tq-avatar-empty { background: #2a2418; color: #dfb678; }
.tq-form textarea { display: block; width: 100%; margin-top: 6px; border: 1px solid #e5ded2; background: #fdfcfb; border-radius: 12px; padding: 11px 14px; font: 15px Inter, sans-serif; color: var(--ink, #0a0e1c); box-sizing: border-box; resize: vertical; }
.tq-form textarea:focus { outline: 2px solid #dfb678; border-color: transparent; }
.tq-opts { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tq-opts legend { font-size: 13px; font-weight: 700; color: var(--ink, #0a0e1c); margin-bottom: 8px; padding: 0; }
.tq-form label.tq-opt { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 14px; border: 1px solid #e5ded2; border-radius: 999px; font-weight: 500; font-size: 14px; cursor: pointer; background: #fdfcfb; }
.tq-form label.tq-opt input { display: inline-block; flex: none; width: 17px; height: 17px; margin: 0; padding: 0; border: 0; accent-color: var(--g, #834f00); }
.tq-opt:has(input:checked) { border-color: #dfb678; background: #f8efe2; }
body.dark .tq-progress, body.dark .tq-pnav a::before { background: #242c4c; color: #f4ede0; }
body.dark .tq-pnav a, body.dark .tq-opts legend, body.dark .tq-form label { color: #f4ede0; }
body.dark .tq-form input:not([type=checkbox]):not([type=radio]), body.dark .tq-form select, body.dark .tq-form textarea, body.dark .tq-form label.tq-opt { background: #0f1426; border-color: #242c4c; color: #f4ede0; }
body.dark .tq-form .tq-ro { background: #1a2140; color: #c9c2b4; }
body.dark .tq-opt:has(input:checked) { background: #2a2418; border-color: #834f00; }
body.dark .tq-psec-num { background: #2a2418; color: #dfb678; }
@media (max-width: 960px) {
    .tq-profile { grid-template-columns: minmax(0, 1fr); }
    .tq-pnav { position: static; }
    .tq-pnav ol { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
    .tq-pnav a { white-space: nowrap; padding: 6px 10px 6px 6px; border: 1px solid var(--line2, #ebe8e2); border-radius: 999px; }
}

body.dark.tq-inner { background: #0b0f20; }
body.dark .tq-card, body.dark .tq-kpis div, body.dark .tq-empty { background: #141a2f; border-color: #242c4c; color: #f4ede0; }
body.dark .tq-inner h1, body.dark.tq-inner h1, body.dark.tq-inner h2, body.dark .tq-facts dd, body.dark .tq-list a { color: #f4ede0; }

@media (max-width: 960px) {
    .tq-event, .tq-cols { grid-template-columns: 1fr; }
    .tq-event-side { position: static; }
}
@media (max-width: 600px) {
    .tq-main { padding-top: 100px; }
    .tq-card { padding: 20px; border-radius: 20px; }
    .tq-grid2 { grid-template-columns: 1fr; }
    .tq-region select { min-width: 0; }
    .tq-region { width: 100%; }
}
@media (max-width: 720px) {
    .tq-sign-desktop { grid-template-columns: 1fr; justify-items: center; }
    .tq-sign-or { flex-direction: row; width: 100%; }
    .tq-sign-or::before, .tq-sign-or::after { width: auto; height: 1px; }
    .tq-sign-or span { padding: 0 10px; }
    .tq-sign-nca { width: 100%; }
}

/* ---------- Страницы ошибок (404 и др.) и «Раздел в разработке» ---------- */
.tq-x { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; background: #fff; border: 1px solid var(--line2, #ebe8e2); border-radius: 32px; padding: 56px; box-shadow: var(--wshadow); overflow: hidden; }
.tq-x.soon { grid-template-columns: 1.1fr .9fr; gap: 40px; }
.tq-x-badge { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; background: #f4ece0; color: var(--g, #834f00); font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.tq-x-dot { width: 8px; height: 8px; border-radius: 50%; background: #d38a1e; animation: tq-x-pulse 1.8s infinite; }
@keyframes tq-x-pulse { 0% { box-shadow: 0 0 0 0 rgba(211, 138, 30, .5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(211, 138, 30, 0); } }
.tq-x h1 { font: 800 44px/1.08 Manrope, Inter, sans-serif; letter-spacing: -.035em; color: var(--ink); margin: 18px 0 14px; }
.tq-x h1 span { color: var(--g2, #ab6a08); }
.tq-x-text { font-size: 17px; line-height: 1.6; color: var(--text); max-width: 480px; margin: 0 0 28px; }
.tq-x-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.tq-x-links { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line2, #ebe8e2); }
.tq-x-links small { display: block; font-size: 13px; color: var(--mute); margin-bottom: 12px; }
.tq-x-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tq-x-chips a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--card2, #f4f1ed); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .2s; }
.tq-x-chips a:hover { background: #ece4d7; }
.tq-x-chips img { width: 22px; }
.tq-x-num { display: flex; align-items: center; justify-content: center; gap: 6px; font: 800 168px/1 Manrope, Inter, sans-serif; letter-spacing: -.06em; color: var(--ink); }
.tq-x-zero { width: 150px; height: 150px; border-radius: 50%; background: #f4efe6; display: grid; place-items: center; box-shadow: inset 0 0 0 10px #fff, 0 0 0 1px var(--line2, #ebe8e2); }
.tq-x-zero img { width: 104px; filter: drop-shadow(0 14px 18px rgba(17, 80, 40, .25)); animation: tq-x-sway 5s ease-in-out infinite; }
@keyframes tq-x-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.tq-x-steps { display: flex; margin: 0 0 30px; padding: 0; list-style: none; max-width: 480px; }
.tq-x-steps li { flex: 1; position: relative; padding-top: 30px; font-size: 13px; font-weight: 600; color: var(--mute); }
.tq-x-steps li::before { content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 4px; background: var(--line2, #ebe8e2); }
.tq-x-steps li::after { content: ""; position: absolute; top: 2px; left: 0; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; background: #fff; border: 3px solid var(--line2, #ebe8e2); }
.tq-x-steps li.done { color: var(--ink); }
.tq-x-steps li.done::before { background: #c99247; }
.tq-x-steps li.done::after { background: #c99247; border-color: #c99247; }
.tq-x-steps li.now { color: var(--g, #834f00); }
.tq-x-steps li.now::before { background: linear-gradient(90deg, #c99247 50%, var(--line2, #ebe8e2) 50%); }
.tq-x-steps li.now::after { border-color: #d38a1e; animation: tq-x-pulse 1.8s infinite; }
.tq-x-stage { position: relative; height: 340px; border-radius: 28px; background: #f6f1e9; }
.tq-x-stage img { position: absolute; filter: drop-shadow(0 18px 22px rgba(60, 40, 10, .18)); }
.tq-x-stage .a { width: 170px; left: 50%; top: 50%; margin: -85px 0 0 -85px; animation: tq-x-float 6s ease-in-out infinite; }
.tq-x-stage .b { width: 92px; left: 9%; top: 12%; animation: tq-x-float 7s ease-in-out -2s infinite; }
.tq-x-stage .c { width: 100px; right: 8%; bottom: 10%; animation: tq-x-float 6.5s ease-in-out -4s infinite; }
.tq-x-gear { position: absolute; right: 12%; top: 12%; width: 64px; height: 64px; border-radius: 20px; background: #fff; display: grid; place-items: center; font-size: 30px; box-shadow: var(--wshadow); animation: tq-x-spin 9s linear infinite; }
@keyframes tq-x-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes tq-x-spin { to { transform: rotate(360deg); } }
.tq-x-note { text-decoration: none; display: flex; gap: 12px; align-items: center; margin-top: 26px; padding: 14px 16px; border-radius: 18px; background: var(--card, #f7f6f4); font-size: 14px; color: var(--text); }
.tq-x-note img { width: 40px; flex: none; }
.tq-x-note b { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .tq-x * { animation: none !important; } }
@media (max-width: 980px) {
    .tq-x-num { order: -1; }
    .tq-x, .tq-x.soon { grid-template-columns: 1fr; padding: 28px; gap: 24px; border-radius: 24px; }
    .tq-x-num { font-size: 110px; }
    .tq-x-zero { width: 100px; height: 100px; }
    .tq-x-zero img { width: 70px; }
    .tq-x h1 { font-size: 32px; }
    .tq-x-stage { height: 240px; order: -1; }
    .tq-x-stage .a { width: 120px; margin: -60px 0 0 -60px; }
}
body.dark .tq-x { background: #141a2f; border-color: #242c4c; }
body.dark .tq-x h1, body.dark .tq-x-num, body.dark .tq-x-chips a, body.dark .tq-x-note b { color: #f4ede0; }
body.dark .tq-x-text, body.dark .tq-x-note { color: #c9c2b5; }
body.dark .tq-x-chips a, body.dark .tq-x-note { background: #1c2340; }
body.dark .tq-x-zero, body.dark .tq-x-stage { background: #1c2340; box-shadow: inset 0 0 0 10px #141a2f, 0 0 0 1px #242c4c; }
body.dark .tq-x-stage { box-shadow: none; }

/* F6: команды, курсы, значки */
.tq-section-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.tq-section-head h2 { margin: 0; }
.tq-team { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line2, #ebe8e2); }
.tq-team details > summary { list-style: none; }
.tq-team details > summary::-webkit-details-marker { display: none; }
.tq-team details[open] > summary { margin-bottom: 12px; }
.tq-team-card { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #fdfcfb; border: 1px solid var(--line2, #ebe8e2); }
.tq-team-card > small { display: block; margin-top: 2px; }
.tq-team-card ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.tq-team-card li { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 14px; }
body.dark .tq-team-card { background: #0f1426; }
.tq-invites { margin-bottom: 20px; border: 2px solid #f0d9a8; }
.tq-invite + .tq-invite { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line2, #ebe8e2); }
.tq-invite-form { margin-top: 10px; }
.tq-courses { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.tq-courses li { scroll-margin-top: 120px; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line2, #ebe8e2); }
.tq-courses li.done { border-color: #9fd3b1; background: #f1faf4; }
body.dark .tq-courses li.done { background: #12301f; border-color: #1f5c39; }
.tq-courses li > div small { display: block; margin-top: 2px; }
.tq-courses li p { margin: 6px 0 0; }
.tq-badges { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tq-badges li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 14px; border-radius: 16px; border: 1px dashed var(--line2, #d9d3c9); }
.tq-badges li:not(.earned) .tq-badge-icon { filter: grayscale(1); opacity: .45; }
.tq-badges li.earned { border-style: solid; border-color: #e7c88a; background: #fffaf0; }
body.dark .tq-badges li.earned { background: #2a2210; border-color: #6b5420; }
.tq-badge-icon { font-size: 38px; line-height: 1.1; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.tq-badge-progress { display: block; width: 100%; height: 6px; margin-top: 6px; border-radius: 99px; background: #efece7; overflow: hidden; }
.tq-badge-progress span { display: block; height: 100%; background: #1f8a4c; border-radius: 99px; }

/* F7: настройки уведомлений */
.tq-notify-table { display: grid; gap: 0; margin: 12px 0; border: 1px solid var(--line2, #ebe8e2); border-radius: 14px; overflow: hidden; }
.tq-notify-row { display: grid; grid-template-columns: minmax(0, 1fr) 72px 96px; gap: 12px; align-items: center; padding: 12px 16px; }
.tq-notify-row + .tq-notify-row { border-top: 1px solid var(--line2, #ebe8e2); }
.tq-notify-row.head { background: #f7f5f1; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--mute, #7b746a); }
body.dark .tq-notify-row.head { background: #0f1426; }
.tq-notify-row > span:not(:first-child) { text-align: center; }
.tq-notify-row small { display: block; margin-top: 2px; }
.tq-notify-row input[type=checkbox] { width: 20px; height: 20px; accent-color: #1f8a4c; }
@media (max-width: 480px) { .tq-notify-row { grid-template-columns: minmax(0, 1fr) 56px 64px; padding: 10px 12px; } }
.tq-push { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin: 12px 0; padding: 14px 16px; border-radius: 14px; background: #f1faf4; border: 1px solid #c9e8d4; }
.tq-push small { display: block; margin-top: 2px; }
body.dark .tq-push { background: #12301f; border-color: #1f5c39; }
.tq-push [hidden] { display: none !important; }

/* F7.4: вход по SMS */
.tq-code { font: 600 26px/1.2 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .4em; text-align: center; }
.tq-sms-again { margin-top: 12px; text-align: center; font-size: 14px; }
.tq-scan-net { margin: 0; padding: 10px 12px; border-radius: 12px; background: #fff4dc; color: #7a5200; font-weight: 600; text-align: center; }
