/* ONCO.SIGNAL — Раздел 04 «Интервью с врачом-онкологом» */

/* ---------- видео-заглушка ---------- */
.video-ph__bg { position: absolute; inset: 0; z-index: -1; display: flex; align-items: center; }
.video-ph__bg svg { width: 100%; height: 62%; max-width: none; transform: translateY(-6%); }
.video-ph__bg rect { fill: rgba(240, 170, 200, .38); transform-box: fill-box; transform-origin: 50% 50%; animation: iv-bar 2.4s ease-in-out infinite; }
@keyframes iv-bar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.55); } }
.video-ph::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(20, 8, 14, .78) 100%); }
.video-ph .video-ph__play { padding: 0; color: #fff; cursor: pointer; transform: translateY(-18px); transition: transform .25s var(--ease), background .2s; }
.video-ph .video-ph__play:hover { transform: translateY(-18px) scale(1.06); background: rgba(255,255,255,.26); }
.video-ph .video-ph__play svg { width: 26px; height: 26px; }
.video-ph__msg {
  position: absolute; left: 50%; top: 18px; transform: translate(-50%, -8px);
  margin: 0; padding: 9px 16px; border-radius: 999px; white-space: nowrap;
  background: rgba(255,255,255,.95); color: var(--ink); font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.video-ph__msg.is-shown { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 599px) {
  .video-ph { aspect-ratio: 4 / 3.3; }
  .video-ph__msg { white-space: normal; width: max-content; max-width: calc(100% - 32px); text-align: center; }
}

.iv-video { display: grid; gap: 20px; align-items: stretch; }
.iv-about { display: grid; gap: 14px; align-content: start; }
.iv-about .h3 { margin-top: 4px; }
.iv-about p { margin: 0; }
.iv-meta { margin: 6px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.iv-meta div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.iv-meta dt { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.iv-meta dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; font-size: 15px; }
@media (min-width: 980px) { .iv-video { grid-template-columns: 1.6fr 1fr; gap: 28px; } }

/* ---------- темы ---------- */
.iv-topic { display: flex; flex-direction: column; gap: 12px; padding: 22px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.iv-topic:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.iv-topic__top { display: flex; align-items: center; justify-content: space-between; }
.iv-topic__n { font-family: var(--ff-display); font-weight: 800; font-size: 28px; line-height: 1; color: var(--accent-100); -webkit-text-stroke: 1px var(--accent-300); }
.iv-topic h3 { font-size: 18px; }
.iv-q { list-style: none; display: grid; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.iv-q li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.iv-q li::before {
  content: '?'; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-100); color: var(--accent-600);
  font-family: var(--ff-display); font-weight: 700; font-size: 11px; line-height: 1;
}

/* ---------- форма вопроса ---------- */
.iv-ask { display: grid; gap: 28px; align-items: start; }
.iv-ask__intro .lead { margin-top: 14px; }
.iv-ask__note { margin-top: 20px; }
.iv-ask__privacy { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; }
.iv-ask__privacy svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent); }
@media (min-width: 980px) { .iv-ask { grid-template-columns: 1fr 1.1fr; gap: 48px; } }

.iv-form { display: grid; gap: 18px; }
.iv-field { display: grid; gap: 8px; }
.iv-field label { font-weight: 700; font-size: 15px; color: var(--ink); }
.iv-select { position: relative; }
.iv-select svg { position: absolute; right: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.iv-form select, .iv-form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg-soft); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.iv-form select { appearance: none; -webkit-appearance: none; min-height: 52px; padding: 0 46px 0 16px; cursor: pointer; }
.iv-form textarea { min-height: 150px; padding: 14px 16px; line-height: 1.55; resize: vertical; }
.iv-form select:hover, .iv-form textarea:hover { border-color: var(--accent-300); }
.iv-form select:focus, .iv-form textarea:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-100); }
.iv-form textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-bg); }
.iv-field__foot { display: flex; justify-content: space-between; gap: 12px; min-height: 20px; }
.iv-error { font-size: 13.5px; font-weight: 600; color: var(--danger); }
.iv-draft { margin: -6px 0 0; min-height: 18px; }
.iv-done { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-md); background: var(--ok-bg); color: var(--ok-ink); }
.iv-done .icon-tile { background: #fff; color: var(--ok-ink); }
.iv-done b { display: block; color: #1f4d2e; font-size: 16px; line-height: 1.4; }
.iv-done p { margin: 4px 0 0; font-size: 14.5px; color: var(--ok-ink); }
.iv-done[hidden] { display: none; }
@media (max-width: 420px) { .iv-form .btn-row .btn { flex: 1 1 100%; } }

@media (prefers-reduced-motion: reduce) { .video-ph__bg rect { animation: none; } }

/* узкие экраны */
.iv-video, .iv-ask { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) {
  .iv-video { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .iv-ask { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}
@media (max-width: 479px) { .iv-form.card--pad-lg, .iv-about.card--pad-lg { padding: 22px 18px; } }
.iv-nowrap { white-space: nowrap; }
@media (min-width: 980px) { .iv-video { align-items: stretch; } .iv-video .video-ph { aspect-ratio: auto; min-height: 400px; } }
@media (max-width: 479px) { .page-hero .h1 { font-size: clamp(26px, 8.2vw, 32px); } }
@media (max-width: 599px) {
  .video-ph { aspect-ratio: 4 / 3.6; }
  .video-ph .video-ph__play, .video-ph .video-ph__play:hover { transform: translateY(-40px); }
  .video-ph__bg svg { transform: translateY(-22%); }
}
.iv-done__copy { margin-top: 12px; gap: 8px; }

/* настоящее вертикальное видео */
.iv-player { margin: 0 auto; width: 100%; max-width: 380px; border-radius: var(--r-lg); overflow: hidden; background: #2a1420; box-shadow: var(--shadow-md); }
.iv-player__video { display: block; width: 100%; height: auto; aspect-ratio: 720 / 1282; background: #2a1420; }
.iv-series { margin-top: 4px; }
.iv-series p { font-size: 15px; }
@media (min-width: 720px) {
  .iv-video { grid-template-columns: minmax(0, 380px) minmax(0, 1fr) !important; gap: 32px; align-items: center; }
  .iv-player { margin: 0; }
}
.iv-about > .tag { justify-self: start; }
