/* Блоки живой модели на внутренних страницах паспортов */
.pm { --pm-ink: #111933; --pm-muted: #566079; --pm-cobalt: #2548bd; --pm-line: #e4e8f1; --pm-tint: #f4f7ff; max-width: 1320px; margin: 0 auto; padding: 0 clamp(14px, 3vw, 40px); color: var(--pm-ink); font-family: Onest, "Segoe UI", Arial, sans-serif; }
.pm * { box-sizing: border-box; }
.pm-hero { display: grid; grid-template-columns: minmax(0, 1fr) 346px; gap: 10px 32px; align-items: center; padding-top: 10px; padding-bottom: 12px; }
.pm-kicker .seo-lead-mark { max-width: 100%; white-space: normal; }
.pm-kicker { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--pm-muted); }
.pm-mark { display: inline-flex; gap: 3px; }
.pm-mark i { width: 7px; height: 7px; border-radius: 2px; background: #2548bd; }
.pm-mark i:nth-child(2) { background: #f45f1c; }
.pm-mark i:nth-child(3) { background: #a9cf3f; }
.pm-hero h1 { margin: 0; font-family: Unbounded, Onest, sans-serif; font-size: clamp(23px, 2.4vw, 34px); line-height: 1.16; letter-spacing: -0.02em; font-weight: 700; }
.pm-lead { max-width: 900px; margin: 8px 0 0; font-size: clamp(15px, 1.15vw, 16.5px); line-height: 1.45; color: #2c3550; }
.pm-note { max-width: 760px; margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: var(--pm-muted); }
.pm-actions { display: grid; gap: 6px; }
.pm-action { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 5px 14px; border-radius: 13px; border: 1px solid #d9dfeb; background: #fff; color: var(--pm-ink); font-size: 14px; line-height: 1.22; font-weight: 600; text-align: center; text-decoration: none; }
.pm-action:hover { border-color: #3d66ea; }
.pm-action.main { border: 0; background: linear-gradient(135deg, #c9440f, #f45f1c); color: #fff; font-weight: 700; box-shadow: 0 10px 22px -14px rgba(244, 95, 28, 0.85); }

.pm-stage { --stage-h: min(80vh, 800px); position: relative; display: block; width: 100%; height: var(--stage-h); min-height: 540px; overflow: hidden; border-radius: 22px; background: var(--pm-tint); box-shadow: inset 0 0 0 1px var(--pm-line); }
.pm-stage > .pm-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pm-stage > .pm-fallback { position: absolute; left: 16px; right: 16px; bottom: 16px; max-width: 520px; margin: 0; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.95); font-size: 14px; line-height: 1.45; color: #2c3550; }
.pm-stage[data-passport-ready="ready"] > .pm-fallback { display: none; }

.pm-chapters { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.pm-chapter { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 10px; width: 100%; height: 100%; padding: 11px 12px 12px; border: 1px solid var(--pm-line); border-radius: 14px; background: #fff; color: var(--pm-ink); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.15s ease; }
.pm-chapter:hover { border-color: #3d66ea; }
.pm-chapter b { grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #edf2ff; color: var(--pm-cobalt); font-size: 13px; font-weight: 700; }
.pm-chapter strong { font-size: 14px; font-weight: 600; line-height: 1.3; }
.pm-chapter span { font-size: 13px; line-height: 1.4; color: var(--pm-muted); }

.pm-section { padding-top: clamp(30px, 4vw, 54px); }
.pm-section h2 { margin: 0; font-family: Unbounded, Onest, sans-serif; font-size: clamp(21px, 2.3vw, 32px); line-height: 1.18; letter-spacing: -0.015em; font-weight: 700; }
.pm-section > p, .pm .seo-sources p { max-width: 760px; margin: 10px 0 0; font-size: 15.5px; line-height: 1.5; color: #2c3550; }
.pm-video-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 14px; margin-top: 16px; align-items: start; }
.pm-video-frame { position: relative; border-radius: 20px; overflow: hidden; background: var(--pm-tint); box-shadow: inset 0 0 0 1px var(--pm-line); }
.pm-video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.pm-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.pm-step { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 2px 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--pm-line); border-radius: 13px; background: #fff; color: var(--pm-ink); font: inherit; text-align: left; cursor: pointer; }
.pm-step:hover { border-color: #3d66ea; }
.pm-step[aria-current="true"] { border-color: var(--pm-cobalt); box-shadow: inset 0 0 0 1px var(--pm-cobalt); }
.pm-step b { grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #edf2ff; color: var(--pm-cobalt); font-size: 13px; font-weight: 700; }
.pm-step strong { font-size: 14px; font-weight: 600; line-height: 1.3; }
.pm-step time { font-size: 12.5px; color: var(--pm-muted); font-variant-numeric: tabular-nums; }
.pm-step span { grid-column: 2 / -1; font-size: 13px; line-height: 1.4; color: var(--pm-muted); }

.pm-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.pm-how li { padding: 14px 16px 15px; border-radius: 16px; background: var(--pm-tint); }
.pm-how h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; }
.pm-how p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: #2c3550; }
.pm-how kbd { padding: 1px 6px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--pm-line); font: 600 12.5px Onest, sans-serif; }

#pv-print { display: none; }
@media print {
  body > *:not(#pv-print) { display: none !important; }
  #pv-print, #pv-print * { visibility: visible !important; }
  #pv-print { display: block; color: #000; font-family: Onest, Arial, sans-serif; }
  #pv-print table { width: 100%; border-collapse: collapse; }
  #pv-print th, #pv-print td { padding: 4px 6px; border: 1px solid #888; text-align: left; }
}
@media (max-width: 820px) {
  .pm-hero { grid-template-columns: minmax(0, 1fr); }
  .pm-note { display: none; }
  .pm-actions { display: flex; flex-wrap: wrap; }
  .pm-action { min-height: 40px; padding: 4px 11px; font-size: 13px; }
  .pm-action.main { width: 100%; }
  .pm-stage { --stage-h: min(calc(100dvh - 156px), 720px); min-height: 520px; border-radius: 16px; }
  .pm-video-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pm-video-frame { max-width: 360px; margin: 0 auto; }
  .pm-video-frame video { aspect-ratio: 9 / 16; }
}

.pm-crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; padding-top: 14px; font-size: 13.5px; color: var(--pm-muted); }
.pm-crumbs a { color: var(--pm-cobalt); text-decoration: none; }
.pm-crumbs a:hover { text-decoration: underline; }
.pm-faq { margin-top: 8px; border: 1px solid var(--pm-line); border-radius: 14px; background: #fff; }
.pm-section h2 + .pm-faq { margin-top: 16px; }
.pm-faq summary { padding: 13px 16px; font-size: 15px; font-weight: 600; cursor: pointer; }
.pm-faq p { margin: 0; padding: 0 16px 14px; font-size: 14.5px; line-height: 1.5; color: #2c3550; }
.pm-next nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pm-next a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border: 1px solid var(--pm-line); border-radius: 12px; background: #fff; color: var(--pm-ink); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.pm-next a:hover { border-color: #3d66ea; }
.pm-page { padding-bottom: clamp(30px, 4vw, 54px); }
.pm-office { margin-top: clamp(30px, 4vw, 54px); }
.pm-office > summary { padding: 16px 18px; border: 1px solid var(--pm-line); border-radius: 16px; background: var(--pm-tint); font-size: 16px; font-weight: 700; cursor: pointer; }
.pm-office[open] > summary { margin-bottom: 14px; }
.pm .seo-sources, .pm .seo-faq, .pm .seo-next { display: block; margin: 0; padding: 0; border: 0; background: none; color: inherit; }
.pm .seo-sources a { color: var(--pm-cobalt); font-size: inherit; font-weight: 600; }
.pm .seo-faq h2 { margin: 0 0 14px; font-family: Unbounded, Onest, sans-serif; font-size: clamp(21px, 2.3vw, 32px); line-height: 1.18; letter-spacing: -0.015em; font-weight: 700; }
.pm .seo-faq details.pm-faq { margin: 8px 0 0; padding: 0; border: 1px solid var(--pm-line); border-radius: 14px; background: #fff; }
.pm .seo-faq details.pm-faq::before { content: none; }
.pm .seo-faq .pm-faq summary { padding: 13px 40px 13px 16px; font-size: 15px; font-weight: 600; line-height: 1.35; }
.pm .seo-faq .pm-faq p { margin: 0; padding: 0 16px 14px; font-size: 14.5px; line-height: 1.5; color: #2c3550; }
body.service-deep .pm { display: none; }
.service-landing { display: block; }
.service-landing > .pm + .product-header { margin-top: clamp(24px, 3vw, 40px); }
