/* «Для родителей», блок «Вопросы» (templates/public/parents/faq.html).
   Тот же вид, что «Вопросы» на главной (home/faq.css, там префикс qa-): тот файл
   здесь не грузится, поэтому правила повторены со своим префиксом pq-. */

/* Три карточки по темам с картинкой сверху,
   «Семья» — во всю высоту справа, под первыми двумя — «Остался вопрос?». */
.pq-hd { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 40px; margin-bottom: 36px; }
.pq-hd h2 { margin: 0; font-size: clamp(30px, 4.6vw, 48px); letter-spacing: -.03em; }
.pq-hd .lead { max-width: 440px; color: var(--muted); }
.pq-grid { display: grid; gap: 16px; align-items: start; }
.pq-card, .pq-more { border-radius: 28px; background: var(--surface); box-shadow: 0 0 0 1px var(--border-2), 0 30px 60px -34px rgba(25, 30, 80, .3); overflow: hidden; }
.pq-pic { position: relative; height: 130px; }
.pq-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pq-pic span {
  position: absolute; left: 18px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px; border-radius: var(--pill); font-size: 14px; font-weight: 700;
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.pq-pic span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.pq-pic small { font-weight: 500; color: var(--muted); }
.pq-body { padding: 2px 18px 8px; }
.pq-body details + details { border-top: 1px solid var(--border-2); }
.pq-body summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0;
  list-style: none; cursor: pointer; font-size: 17px; font-weight: 700; letter-spacing: -.01em;
}
.pq-body summary::-webkit-details-marker { display: none; }
.pq-body details p { margin: 0 0 18px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.pq-body details b { color: var(--ink); }
.pq-pm { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); transition: background .2s; }
.pq-pm::before, .pq-pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 2px; margin: -1px 0 0 -6.5px; border-radius: 2px; background: var(--ink-2); transition: transform .2s; }
.pq-pm::after { transform: rotate(90deg); }
details[open] > summary .pq-pm { background: linear-gradient(95deg, #1f7bff, #17bfe0 55%, #2ee59d); }
details[open] > summary .pq-pm::before, details[open] > summary .pq-pm::after { background: #fff; }
details[open] > summary .pq-pm::after { transform: rotate(0); }
.pq-fam { display: grid; gap: 8px; margin: -4px 0 18px; padding: 12px; border-radius: 18px; background: var(--surface-2); }
.pq-fam div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 13px; font-size: 14px; background: #fff; }
.pq-fam i { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; font-style: normal; font-size: 13px; font-weight: 800; color: #fff; }
.pq-fam span b { display: block; font-size: 14px; line-height: 1.3; }
.pq-fam small { display: block; font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.pq-fam em { margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pq-fam .kid { position: relative; margin-left: 22px; }
.pq-fam .kid::before { content: ""; position: absolute; left: -14px; top: -10px; width: 10px; height: 30px; border: solid #cfd2e2; border-width: 0 0 1.5px 1.5px; border-bottom-left-radius: 8px; }
.pq-fam u { flex: none; width: 64px; height: 6px; margin-left: auto; border-radius: 6px; background: #eceef6; overflow: hidden; }
.pq-fam u::after { content: ""; display: block; width: var(--p); height: 100%; border-radius: 6px; background: var(--g); }
.pq-more { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 22px 18px; }
.pq-more > img { position: absolute; left: 0; right: 0; top: 0; z-index: -1; width: 100%; height: 120px; object-fit: cover; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent); }
.pq-more-txt { display: grid; gap: 6px; max-width: 420px; padding-top: 92px; }
.pq-more-txt b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.pq-more-txt p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.pq-more-go { display: flex; flex-wrap: wrap; gap: 10px; }
.pq-more-go .btn { flex: 1 1 auto; }
@media (min-width: 900px) {
  .pq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .pq-fam-card { grid-column: 3; grid-row: 1 / span 2; }
  .pq-more { grid-column: 1 / 3; align-self: stretch; padding: 30px 34px; }
  .pq-more > img { left: auto; width: 62%; height: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
  .pq-more-txt { padding-top: 0; }
  .pq-more-txt b { font-size: 26px; }
  .pq-more-go .btn { flex: none; }
  .pq-pic { height: 170px; }
  .pq-body { padding: 6px 24px 12px; }
  .pq-body summary { font-size: 18px; padding: 20px 0; }
}
