/* Документы, «Связаться», окно согласия, плашка cookie */

/* ── Страницы документов ── */
.lg-wrap { max-width: 780px; }
.lg-title { margin-bottom: 14px; }
.lg-lead { font-size: 1.02rem; color: var(--text2); line-height: 1.6; margin: 0 0 24px; }
.lg-docs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.lg-docs a { font-size: .82rem; font-weight: 700; color: var(--text2); text-decoration: none; padding: 6px 12px; border: 1.5px solid var(--border); border-radius: 999px; transition: border-color .2s, color .2s; }
.lg-docs a:hover { border-color: var(--accent); color: var(--accent); }
.lg-docs a.is-current { background: var(--accent); border-color: var(--accent); color: #fff; }
.lg-body table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: .92rem; }
.lg-body th, .lg-body td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.lg-body th { background: var(--bg2); font-weight: 700; }
.lg-body a { color: var(--accent); }
.lg-help { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; padding: 14px 16px; border-radius: 12px; background: rgba(212,124,15,.08); border: 1px solid rgba(212,124,15,.25); font-size: .9rem; color: var(--text2); line-height: 1.5; }
.lg-help a { color: var(--accent); font-weight: 700; }
.lg-help__ico { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

/* ── «Связаться» ── */
.lg-channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.lg-channel { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.lg-channel:hover { border-color: var(--accent); transform: translateY(-2px); }
.lg-channel__ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(212,124,15,.12); color: var(--accent); flex-shrink: 0; font-weight: 800; font-size: .9rem; }
.lg-channel__ico svg { width: 22px; height: 22px; }
.lg-channel__ico--vk { background: #4680C2; color: #fff; }
.lg-channel__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lg-channel__name { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.lg-channel__value { font-family: var(--font-display); font-size: 1rem; font-weight: 700; overflow-wrap: anywhere; }
.lg-channel__desc { font-size: .84rem; color: var(--text2); line-height: 1.4; }
.lg-tips, .lg-docs-list { padding: 18px 20px; border: 1.5px solid var(--border); border-radius: 14px; margin-bottom: 18px; background: var(--surface); }
.lg-tips__title { font-family: var(--font-display); font-weight: 700; font-size: .95rem; margin-bottom: 10px; color: var(--text); }
.lg-tips ul { margin: 0; padding-left: 20px; color: var(--text2); font-size: .92rem; line-height: 1.6; }
.lg-tips li + li { margin-top: 6px; }
.lg-more { font-size: .92rem; color: var(--text2); margin-bottom: 18px; }
.lg-more a, .lg-docs-list a { color: var(--accent); font-weight: 700; text-decoration: none; }
.lg-docs-list a { display: block; padding: 4px 0; font-size: .92rem; }
@media (max-width: 640px) { .lg-channels { grid-template-columns: 1fr; } }

/* ── Окно согласия ── */
.cp-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(26,26,46,.55); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 24px 16px; box-sizing: border-box; }
.cp-card { width: 100%; max-width: 540px; margin: auto; background: var(--surface); border-radius: 18px; padding: 26px 24px 20px; box-sizing: border-box; box-shadow: 0 20px 60px rgba(0,0,0,.25); color: var(--text); }
.cp-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cp-mascot { width: 54px; height: auto; flex-shrink: 0; }
.cp-title { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; line-height: 1.3; margin: 0; }
.cp-text { font-size: .92rem; line-height: 1.55; color: var(--text2); margin: 0 0 12px; }
.cp-text strong { color: var(--text); }
.cp-data { list-style: none; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--bg2); display: grid; gap: 6px; font-size: .9rem; }
.cp-data li { display: flex; gap: 10px; }
.cp-data span { color: var(--muted); min-width: 92px; }
.cp-data b { color: var(--text); overflow-wrap: anywhere; }
.cp-data__wide { color: var(--text2); }
.cp-more { margin: 0 0 16px; font-size: .86rem; color: var(--text2); }
.cp-more summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.cp-more p { margin: 8px 0 0; line-height: 1.5; }
.cp-more a, .cp-check a, .cp-small a { color: var(--accent); }
.cp-check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px; margin-bottom: 8px; font-size: .9rem; line-height: 1.45; cursor: pointer; }
.cp-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); flex-shrink: 0; }
.cp-hint { font-size: .84rem; color: var(--text2); line-height: 1.5; margin: 12px 0 16px; }
.cp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.cp-actions .btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.cp-link-btn { background: none; border: none; padding: 6px 0; font-family: inherit; font-size: .88rem; font-weight: 700; color: var(--accent); cursor: pointer; }
.cp-link-btn:disabled { opacity: .45; cursor: not-allowed; }
.cp-later { color: var(--muted); margin-left: auto; }
.cp-small { font-size: .76rem; color: var(--muted); line-height: 1.5; margin: 14px 0 0; }

/* ── Галочки на странице входа ── */
.au-consent { margin: 0 0 16px; }
.au-consent .cp-check { font-size: .85rem; }
.au-btn.is-locked { opacity: .45; pointer-events: none; }
.au-consent-hint { font-size: .78rem; color: var(--muted); margin: 6px 2px 0; line-height: 1.45; }
.au-consent-hint a { color: var(--accent); }

/* ── Плашка cookie ── */
.ck-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9000; max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--border); box-shadow: 0 8px 30px rgba(0,0,0,.12); font-size: .84rem; color: var(--text2); line-height: 1.45; box-sizing: border-box; }
.ck-banner[hidden] { display: none; }
.ck-banner a { color: var(--accent); }
.ck-ok { flex-shrink: 0; background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 8px 14px; font-family: inherit; font-weight: 700; font-size: .84rem; cursor: pointer; }
@media (max-width: 560px) { .ck-banner { flex-direction: column; align-items: stretch; text-align: left; } }

/* ── Ссылки в футере ── */
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* ── Кабинет: «Ваши согласия» ── */
.consent-box { margin-top: 1.4rem; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 12px; }
.consent-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; font-size: .9rem; line-height: 1.4; }
.consent-row a { color: var(--text); font-weight: 700; text-decoration: none; }
.consent-row a:hover { color: var(--accent); }
.consent-row span { display: block; color: var(--muted); font-size: .82rem; }
.consent-ico { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--muted); }
.consent-ico.is-on { color: var(--accent3); }
.consent-note { margin: 10px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.consent-note a { color: var(--accent); }

/* ── Обращения: форма на «Связаться», «Мои обращения», переписка ── */
.lg-channel__ico--tg { background: #229ED9; color: #fff; }
.lg-form { padding: 18px 20px; border: 1.5px solid var(--accent); border-radius: 14px; margin-bottom: 18px; background: var(--surface); scroll-margin-top: 90px; }
.lg-form__label { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 12px 0 6px; }
.lg-form__input { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font-family: inherit; font-size: .95rem; line-height: 1.5; }
.lg-form__input:focus { outline: none; border-color: var(--accent); }
textarea.lg-form__input { resize: vertical; min-height: 120px; }
.lg-form__foot { display: flex; align-items: center; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.lg-form__foot a, .lg-form__guest a, .lg-form__puzzle a { color: var(--accent); font-weight: 700; }
.lg-form__guest { margin: 0; font-size: .92rem; color: var(--text2); line-height: 1.55; }
.lg-form__puzzle { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--text2); }
.lg-form__puzzle svg { width: 16px; height: 16px; color: var(--accent); }
.sp-report { display: flex; flex-direction: column; gap: 10px; }
.sp-report__text { display: flex; align-items: flex-start; gap: 8px; font-size: .88rem; color: var(--text2); line-height: 1.4; }
.sp-report__ico { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.sp-report__btn { display: block; text-align: center; padding: 9px 12px; border: 1.5px solid var(--accent); border-radius: 10px; color: var(--accent); font-weight: 700; font-size: .86rem; text-decoration: none; transition: background .2s, color .2s; }
.sp-report__btn:hover { background: var(--accent); color: #fff; }
.sp-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 800; text-decoration: none; }
.sp-badge svg { width: 13px; height: 13px; }
.sp-list { display: flex; flex-direction: column; gap: 10px; }
.sp-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--text); transition: border-color .2s; }
.sp-item:hover { border-color: var(--accent); }
.sp-item__main { flex: 1; min-width: 0; }
.sp-item__title { font-weight: 700; font-size: .95rem; }
.sp-item__meta { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.sp-status { font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.sp-status--new { background: rgba(212,124,15,.12); color: var(--accent); }
.sp-status--answered { background: rgba(26,158,110,.12); color: var(--accent3); }
.sp-status--closed { background: var(--bg2); color: var(--muted); }
.sp-thread { display: flex; flex-direction: column; gap: 12px; margin: 18px 0; }
.sp-msg { max-width: 85%; padding: 12px 14px; border-radius: 14px; font-size: .94rem; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.sp-msg--user { align-self: flex-end; background: rgba(212,124,15,.1); border: 1px solid rgba(212,124,15,.25); }
.sp-msg--admin { align-self: flex-start; background: var(--surface); border: 1.5px solid var(--border); }
.sp-msg__meta { display: block; font-size: .74rem; color: var(--muted); margin-top: 6px; white-space: normal; }
.sp-empty { padding: 24px; text-align: center; color: var(--muted); border: 1.5px dashed var(--border); border-radius: 12px; }
.lg-form .field-error { color: var(--accent2); font-size: .82rem; margin: 6px 0 0; }

/* ── Шапка: вход в админку ── */
.user-menu__admin { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; color: var(--muted); text-decoration: none; padding: 5px 10px; border: 1.5px solid var(--border); border-radius: 8px; transition: color .2s, border-color .2s; }
.user-menu__admin:hover { color: var(--accent); border-color: var(--accent); }
.user-menu__admin svg { width: 14px; height: 14px; }
.adm-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
