/* ==========================================================================
   Страница вопроса: автор, факты, разбор редакции, ветки ответов, форма.
   Плоское справочное оформление (см. analizy-questions.css): рамки вместо
   теней, без градиентов и декоративных значков.
   ========================================================================== */

.aq-author { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.aq-author__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aq-author__text b { font-size: 15.5px; }
.aq-author__text span { font-size: 13px; color: var(--aq-muted); }
.aq-avatar--lg { width: 44px; height: 44px; font-size: 17px; }
.aq-avatar__icon { display: block; }
.aq-avatar--sm { width: 26px; height: 26px; font-size: 11.5px; }
.aq-chip { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--aq-accent); text-decoration: none; border-bottom: 1px solid rgba(11, 99, 209, .35); }
.aq-chip:hover { color: var(--aq-accent); border-bottom-color: var(--aq-accent); text-decoration: none; }

/* Факты — строки «параметр: значение», как в медицинской карте */
.aq-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 20px; padding: 0; list-style: none; border: 1px solid var(--aq-border); border-radius: 8px; background: #fafbfc; overflow: hidden; }
.aq-facts li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--aq-border); font-size: 14px; }
.aq-facts li:nth-last-child(-n+2) { border-bottom: 0; }
.aq-facts li:nth-child(odd) { border-right: 1px solid var(--aq-border); }
.aq-facts span { color: var(--aq-muted); }
.aq-facts b { font-weight: 600; text-align: right; }

.aq-body p { margin: 0 0 16px; }
.aq-body p:last-child { margin-bottom: 0; }

.aq-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--aq-border); font-size: 13.5px; color: var(--aq-muted); }
.aq-stats span { display: inline-flex; align-items: center; gap: 6px; }
.aq-stats a { color: var(--aq-accent); font-weight: 600; text-decoration: none; }
.aq-stats a:hover { text-decoration: underline; }

/* Разбор редакции */
.aq-editorial { margin-top: 20px; padding: 28px 32px; border: 0; border-radius: 14px; background: #eef3f9; }
.aq-editorial__label { margin: 0 0 10px; line-height: 1.3; font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--aq-accent); }
.aq-lead { margin: 0 0 16px; font-size: 18px; line-height: 1.6; font-weight: 600; }
.aq-editorial h3 { margin: 24px 0 8px; font-size: 16px; font-weight: 700; }
.aq-editorial p { line-height: 1.7; }
.aq-note { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid rgba(20, 40, 80, .12); font-size: 12.5px; color: var(--aq-muted); line-height: 1.6; }

.aq-ref { margin: 22px 0 4px; border: 1px solid var(--aq-border); border-radius: 8px; background: #fff; overflow: hidden; }
.aq-ref summary { padding: 12px 16px; cursor: pointer; font-size: 14.5px; font-weight: 600; list-style: none; background: #fafbfc; }
.aq-ref summary::-webkit-details-marker { display: none; }
.aq-ref summary::after { content: '▾'; float: right; color: var(--aq-muted); }
.aq-ref[open] summary::after { content: '▴'; }
.aq-ref__wrap { overflow-x: auto; }
.aq-ref table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.aq-ref th { padding: 9px 14px; text-align: left; font-size: 12px; font-weight: 600; color: var(--aq-muted); border-top: 1px solid var(--aq-border); border-bottom: 1px solid var(--aq-border); white-space: nowrap; }
.aq-ref td { padding: 10px 14px; border-bottom: 1px solid #eef1f5; vertical-align: top; line-height: 1.5; }
.aq-ref td:first-child { font-weight: 600; white-space: nowrap; }
.aq-ref tr:last-child td { border-bottom: 0; }
.aq-ref tr.is-hl td { background: #fff8dc; }
.aq-ref tr.is-hl td:first-child { box-shadow: inset 3px 0 0 #d99a1e; }
.aq-ref__more { display: block; padding: 11px 16px; font-size: 13.5px; font-weight: 600; color: var(--aq-accent); text-decoration: none; border-top: 1px solid var(--aq-border); }
.aq-ref__more:hover { text-decoration: underline; }

.aq-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 24px; border-top: 1px solid var(--aq-border); }
.aq-col { padding: 18px 22px 4px 0; }
.aq-col + .aq-col { padding-left: 22px; border-left: 1px solid var(--aq-border); }
.aq-col h3 { margin: 0 0 10px; font-size: 14.5px; font-weight: 700; }
.aq-col ul { margin: 0; padding: 0 0 0 18px; font-size: 14px; line-height: 1.6; }
.aq-col li { margin-bottom: 8px; }
.aq-col--do h3 { color: #1d6b3a; }
.aq-col--doctor h3 { color: #a8321f; }
.aq-col--ask h3 { color: var(--aq-accent); }

/* Ответы */
.aq-h2 span { margin-left: 8px; color: var(--aq-muted); font-size: 17px; font-weight: 500; }
.aq-thread { display: grid; gap: 12px; }
.aq-thread { gap: 0; }
.aq-answer { margin: 0; padding: 22px 0; border: 0; border-bottom: 1px solid var(--aq-border); border-radius: 0; background: none; }
.aq-answer:last-child { border-bottom: 0; }
.aq-answer.is-expert { margin: 0 0 6px; padding: 22px 26px; border: 0; border-radius: 14px; background: #eef3f9; }
.aq-answer.is-expert .aq-avatar { background: var(--aq-accent); color: #fff; }
.aq-answer__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; padding: 0 !important; min-height: 0 !important; border: 0 !important; background: none !important; }
.aq-answer__head time { margin-left: auto; font-size: 12.5px; color: var(--aq-muted); }
.aq-city { font-size: 13px; color: var(--aq-muted); }
.aq-answer__body { font-size: 15.5px; line-height: 1.65; }
.aq-answer__body p { margin: 0 0 10px; }
.aq-answer__body p:last-child { margin-bottom: 0; }
.aq-answer__foot { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.aq-like, .aq-reply-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--aq-muted); font: 500 13px Inter, sans-serif; cursor: pointer; }
.aq-like i { font-style: normal; font-weight: 600; }
.aq-like:hover, .aq-reply-btn:hover { color: var(--aq-accent); }
.aq-like.is-on { color: var(--aq-accent); cursor: default; }
.aq-replies { margin: 16px 0 0 24px; padding: 4px 0 0; border: 0; display: grid; gap: 14px; }
.aq-reply { padding: 14px 18px; border-radius: 12px; background: #f4f6f9; }
.aq-answer.is-expert .aq-reply { background: #fff; }
.aq-empty { padding: 22px; border: 1px dashed var(--aq-border); border-radius: 10px; text-align: center; color: var(--aq-muted); }

/* Форма ответа */
.aq-form { margin-top: 18px; padding: 22px 24px; border: 1px solid var(--aq-border); border-radius: 10px; background: #fff; }
.aq-form h3 { margin: 0 0 12px; font-size: 17px; font-weight: 700; }
.aq-form textarea { display: block; width: 100%; min-height: 110px; padding: 12px 14px; border: 1px solid #ccd3de; border-radius: 8px; font: 15px/1.55 Inter, sans-serif; color: var(--aq-text); background: #fff; resize: vertical; box-shadow: none; }
.aq-form textarea:focus { outline: none; border-color: var(--aq-accent); box-shadow: 0 0 0 2px rgba(11, 99, 209, .15); }
.aq-form__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.aq-form__hint { flex: 1 1 260px; font-size: 12.5px; color: var(--aq-muted); line-height: 1.5; }
.aq-send { padding: 11px 22px; border: 0; border-radius: 8px; background: var(--aq-accent); color: #fff; font: 600 14.5px Inter, sans-serif; cursor: pointer; }
.aq-send:hover { background: #0a55b4; }
.aq-send:disabled { opacity: .6; cursor: progress; }
.aq-form__msg { margin-top: 12px; font-size: 14px; }
.aq-form__msg.is-ok { color: #1d6b3a; }
.aq-form__msg.is-err { color: #a8321f; }
.aq-form__to { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 4px 8px 4px 12px; border: 1px solid var(--aq-border); border-radius: 6px; background: var(--aq-soft); color: var(--aq-text); font-size: 13px; }
.aq-form__to[hidden] { display: none; }
.aq-form__to button { width: 20px; height: 20px; border: 0; background: none; color: var(--aq-muted); cursor: pointer; font-size: 16px; line-height: 1; }
.aq-form__login { margin: 0; font-size: 15px; }
.aq-form__login a { color: var(--aq-accent); font-weight: 600; }
.aq-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 820px) {
	.aq-facts { grid-template-columns: 1fr; }
	.aq-facts li:nth-child(odd) { border-right: 0; }
	.aq-facts li:nth-last-child(2) { border-bottom: 1px solid var(--aq-border); }
	.aq-cols { grid-template-columns: 1fr; }
	.aq-col, .aq-col + .aq-col { padding: 16px 0 4px; border-left: 0; }
	.aq-col + .aq-col { border-top: 1px solid var(--aq-border); }
	.aq-editorial { padding: 20px 18px; }
	.aq-answer { padding: 18px 0; }
	.aq-answer.is-expert { padding: 18px 16px; }
	.aq-lead { font-size: 16.5px; }
	.aq-replies { margin-left: 8px; }
}
