/* «Вопросы врачу»: видеоответы врачей — /voprosy/ и блоки на страницах услуг.
   Переменные цвета — из smile-refresh.css. */

.qv-section { background: var(--bg-tint, #f2f8fb); }
.qv-page { padding-top: 2.5em; }

.qv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: center;
  gap: 24px;
  align-items: start;
}

.qv {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--r, 18px);
  box-shadow: var(--sh-1);
  overflow: hidden;
  scroll-margin-top: 90px;
}
.qv.is-target { box-shadow: 0 0 0 3px var(--brand, #1a97c7), var(--sh-2); }
.qv[hidden] { display: none; }

.qv__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: var(--ink, #16303a);
  cursor: pointer;
  overflow: hidden;
}
.qv--portrait .qv__media { aspect-ratio: 9 / 16; max-height: 560px; }
.qv__media:focus-visible { outline: 3px solid var(--brand, #1a97c7); outline-offset: -3px; }
.qv__poster,
.qv__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qv__video { object-fit: contain; background: #000; }

.qv__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  transform: translate(-50%, -50%);
  transition: transform .2s ease, background-color .2s ease;
}
.qv__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--brand, #1a97c7);
}
.qv__media:hover .qv__play { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.qv__time {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(8, 22, 28, .75);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
}
.qv.is-playing .qv__play,
.qv.is-playing .qv__time,
.qv.is-playing .qv__poster { display: none; }
.qv.is-playing .qv__media { cursor: default; }

.qv__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}
.qv__q {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.35;
  color: var(--ink, #16303a);
}
.qv__doc { margin: 0 0 10px; font-size: 14px; color: var(--muted, #8a97a0); }
.qv__doc a { color: var(--brand-strong, #127aa3); }
.qv__text { margin: 0 0 14px; font-size: 15px; color: var(--body, #54646c); }
.qv__book { align-self: flex-start; margin-top: auto; padding: 10px 22px; }
.qv__warn {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted, #8a97a0);
  text-transform: uppercase;
  letter-spacing: .02em;
}

.qv-all { font-weight: 600; color: var(--brand-strong, #127aa3); }

.qv-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.qv-chip {
  padding: 7px 16px;
  border: 1px solid var(--line, #e4edf1);
  border-radius: 999px;
  background: #fff;
  color: var(--ink, #16303a);
  font-size: 15px;
  cursor: pointer;
}
.qv-chip:hover { border-color: var(--brand, #1a97c7); }
.qv-chip.is-active { background: var(--brand, #1a97c7); border-color: var(--brand, #1a97c7); color: #fff; }

@media (max-width: 575.98px) {
  .qv-grid { grid-template-columns: 1fr; gap: 18px; }
  .qv--portrait .qv__media { max-height: 78vh; }
  .qv__q { font-size: 17px; }
}

.qv__q a { color: inherit; }
.qv__q a:hover { color: var(--brand-strong, #127aa3); }

/* --- Страница одного ролика: /<адрес>/ --- */
.qv-video-page { padding-top: 2em; }
.qv-crumbs { font-size: 14px; color: var(--muted, #8a97a0); margin-bottom: 10px; }
.qv-crumbs a { color: var(--brand-strong, #127aa3); }
.qv-video-page__h1 { margin-bottom: 24px; }

.qv-video-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 28px;
  align-items: start;
}
.qv-video-page__grid.is-portrait { grid-template-columns: minmax(0, 400px) minmax(260px, 360px); justify-content: center; }
.qv--page { box-shadow: var(--sh-2); }
.qv--page .qv__media { aspect-ratio: 16 / 9; }
.qv--page.qv--portrait .qv__media { aspect-ratio: 9 / 16; max-height: 80vh; }

.qv-side {
  padding: 22px;
  border-radius: var(--r, 18px);
  background: var(--bg-tint, #f2f8fb);
}
.qv-side__doc { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.qv-side__photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top center; flex: none; background: #fff; }
.qv-side__label { margin: 0; font-size: 13px; color: var(--muted, #8a97a0); }
.qv-side__name { margin: 0; font-weight: 600; color: var(--ink, #16303a); line-height: 1.3; }
.qv-side__name a { color: inherit; }
.qv-side__role { margin: 2px 0 0; font-size: 14px; color: var(--body, #54646c); }
.qv-side__book { display: block; width: 100%; text-align: center; }
.qv-side__tel { display: block; margin-top: 10px; text-align: center; font-weight: 600; color: var(--ink, #16303a); }

.qv-article { max-width: 780px; margin: 32px auto 0; font-size: 17px; line-height: 1.6; }
.qv-article ul { padding-left: 1.2em; }
.qv-article li { margin-bottom: 4px; }
.qv-transcript {
  margin: 24px 0;
  padding: 14px 18px;
  border: 1px solid var(--line, #e4edf1);
  border-radius: 14px;
  background: #fff;
}
.qv-transcript summary { cursor: pointer; font-weight: 600; color: var(--ink, #16303a); }
.qv-transcript[open] summary { margin-bottom: 10px; }
.qv-transcript p { font-size: 15px; color: var(--body, #54646c); }
.qv-note { margin-top: 24px; font-size: 13px; color: var(--muted, #8a97a0); }

@media (max-width: 767.98px) {
  .qv-video-page__grid,
  .qv-video-page__grid.is-portrait { grid-template-columns: 1fr; }
  .qv--page.qv--portrait .qv__media { max-height: 75vh; }
  .qv-article { font-size: 16px; }
}
