/* Портфолио и 10 тем оформления */
.pf {
  --bg: #fff; --card: #f4f4f2; --text: #111; --muted: #6b6b6b; --line: rgba(0,0,0,.1);
  --accent: #111; --on-accent: #fff; --r: 14px; --r-btn: 999px;
  --f-head: 'Manrope', system-ui, sans-serif; --f-body: 'Manrope', system-ui, sans-serif;
  --h-weight: 700; --h-case: none; --h-size: 24px;
  background: var(--bg); color: var(--text); font-family: var(--f-body);
  min-height: 100vh; display: flex; flex-direction: column; font-size: 15px; line-height: 1.5;
}
.pf[data-theme=beige] { --bg:#efe7dc; --card:#e4d9ca; --text:#3b2f25; --muted:#7d6c5c; --line:rgba(59,47,37,.14); --accent:#7a5c43; --on-accent:#fff7ee; --r:18px; --f-head:'Jost',sans-serif; --f-body:'Jost',sans-serif; --h-weight:500; }
.pf[data-theme=milk] { --bg:#faf6ef; --card:#f0e9dd; --text:#2a2622; --muted:#7a7268; --line:rgba(42,38,34,.14); --accent:#2a2622; --on-accent:#faf6ef; --r:4px; --r-btn:4px; --f-head:'Cormorant Garamond',serif; --h-weight:600; --h-size:32px; }
.pf[data-theme=dark] { --bg:#0e0e0f; --card:#1a1a1c; --text:#f3f3f1; --muted:#9a9a97; --line:rgba(255,255,255,.12); --accent:#f3f3f1; --on-accent:#0e0e0f; --r:10px; --r-btn:10px; }
.pf[data-theme=graphite] { --bg:#1c1f24; --card:#272b32; --text:#eef0f3; --muted:#9aa1ab; --line:rgba(255,255,255,.1); --accent:#c8f169; --on-accent:#1c1f24; --r:16px; --f-head:'Onest',sans-serif; --f-body:'Onest',sans-serif; }
.pf[data-theme=choco] { --bg:#2a1d17; --card:#3a2a22; --text:#f4e7da; --muted:#bda58f; --line:rgba(244,231,218,.14); --accent:#e0a878; --on-accent:#2a1d17; --r:20px; --f-head:'Playfair Display',serif; --h-weight:600; --h-size:28px; }
.pf[data-theme=pink] { --bg:#fdeef2; --card:#fbdbe4; --text:#5a2a3a; --muted:#a06a7c; --line:rgba(90,42,58,.12); --accent:#e0668c; --on-accent:#fff; --r:24px; --f-head:'Nunito',sans-serif; --f-body:'Nunito',sans-serif; --h-weight:800; }
.pf[data-theme=lavender] { --bg:#f1eefb; --card:#e3ddf6; --text:#33295c; --muted:#7a70a6; --line:rgba(51,41,92,.12); --accent:#7b61d9; --on-accent:#fff; --r:20px; --f-head:'Onest',sans-serif; --f-body:'Onest',sans-serif; }
.pf[data-theme=sage] { --bg:#e9efe6; --card:#d9e3d5; --text:#26352a; --muted:#66786a; --line:rgba(38,53,42,.14); --accent:#4f7358; --on-accent:#f3f8f1; --r:12px; --r-btn:12px; --f-head:'Jost',sans-serif; --f-body:'Jost',sans-serif; --h-weight:500; }
.pf[data-theme=gloss] { --bg:#0b0a0d; --card:rgba(255,255,255,.07); --text:#fbf6f9; --muted:#b3a6b0; --line:rgba(255,255,255,.12); --accent:#ff5aa8; --on-accent:#fff; --r:22px; --f-head:'Unbounded',sans-serif; --h-weight:800; --h-size:22px;
  background: radial-gradient(60vmax 60vmax at 100% -10%, rgba(255,45,149,.3), transparent 60%), radial-gradient(50vmax 50vmax at -10% 100%, rgba(170,30,120,.26), transparent 60%), #0b0a0d; }
.pf[data-theme=gloss] h1 { background: linear-gradient(100deg, #fff 0%, #ffb3d8 40%, #ff4fa3 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pf[data-theme=gloss] .pf-cta { background: linear-gradient(120deg, #ff7ac0, #ff2d95); box-shadow: 0 8px 28px rgba(255,45,149,.45); }
.pf[data-theme=gloss] .pf-thumb, .pf[data-theme=gloss] .pf-ava { border: 1px solid rgba(255,255,255,.1); }
.pf[data-theme=bold] { --bg:#fff34d; --card:#fff; --text:#111; --muted:#4a4a2a; --line:#111; --accent:#111; --on-accent:#fff34d; --r:0px; --r-btn:0px; --f-head:'Unbounded',sans-serif; --h-weight:800; --h-case:uppercase; --h-size:26px; }

.pf[data-theme=custom] { --muted: color-mix(in srgb, var(--text) 62%, var(--bg)); --line: color-mix(in srgb, var(--text) 16%, transparent); }

.pf * { box-sizing: border-box; }
.pf-in { width: 100%; max-width: 560px; margin: 0 auto; padding: 28px 18px 32px; display: flex; flex-direction: column; gap: 26px; flex: 1; }
.pf-head { display: flex; gap: 14px; align-items: center; }
.pf-ava { width: 72px; height: 72px; flex: none; border-radius: 50%; background: var(--card); color: var(--muted); display: flex; align-items: center; justify-content: center; font-family: var(--f-head); font-weight: 700; font-size: 22px; overflow: hidden; }
.pf[data-theme=bold] .pf-ava, .pf[data-theme=milk] .pf-ava { border-radius: var(--r); }
.pf-ava img { width: 100%; height: 100%; object-fit: cover; }
.pf h1 { margin: 0; font-family: var(--f-head); font-weight: var(--h-weight); font-size: var(--h-size); line-height: 1.15; text-transform: var(--h-case); overflow-wrap: anywhere; }
.pf-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.pf-bio { margin: 0; white-space: pre-line; }
.pf h2 { margin: 0 0 12px; font-family: var(--f-head); font-weight: var(--h-weight); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pf section { margin: 0; }
.pf-ghost { opacity: .35; }
.pf-cta { width: 100%; height: 52px; border: 0; border-radius: var(--r-btn); background: var(--accent); color: var(--on-accent); font: 600 16px var(--f-body); cursor: pointer; }
.pf-cta:active { transform: scale(.985); }
.pf-chips, .pf-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-filters { margin-bottom: 14px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.pf-chip { padding: 6px 14px; border-radius: var(--r-btn); border: 1px solid var(--line); background: transparent; color: var(--text); font: 500 13px var(--f-body); white-space: nowrap; }
button.pf-chip { cursor: pointer; }
.pf-chip.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
.pf-work { display: block; min-width: 0; }
.pf-work[hidden] { display: none; }
.pf-thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; color: inherit; font: inherit; aspect-ratio: 9 / 16; border-radius: var(--r); overflow: hidden; background: var(--card); }
.pf[data-theme=bold] .pf-thumb { border: 2px solid #111; }
.pf-thumb img, .pf-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-ph { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 8px; }
.pf-plat { font-size: 11px; color: var(--muted); }
.pf-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: flex; align-items: center; justify-content: center; padding-left: 2px; }
.pf-cap { display: block; margin-top: 6px; font-size: 12px; line-height: 1.3; color: var(--muted); }
.pf-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--r-btn); color: var(--text); font-size: 12px; font-weight: 600; text-decoration: none; }
.pf-link:hover { border-color: var(--accent); }
button.pf-thumb { cursor: pointer; }
.pf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pf-stat { background: var(--card); border-radius: var(--r); padding: 12px; }
.pf[data-theme=bold] .pf-stat, .pf[data-theme=bold] .pf-review { border: 2px solid #111; }
.pf-stat b { display: block; font-family: var(--f-head); font-size: 18px; line-height: 1.2; }
.pf-stat span { font-size: 12px; color: var(--muted); }
.pf-socials { display: flex; flex-direction: column; gap: 14px; }
.pf-social { display: block; color: var(--text); text-decoration: none; }
.pf-social b { display: block; font-weight: 500; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.pf-social span { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.pf-review { margin: 0 0 10px; background: var(--card); border-radius: var(--r); padding: 14px; }
.pf-review img { width: 100%; border-radius: calc(var(--r) / 2); margin-bottom: 10px; display: block; }
.pf-review blockquote { margin: 0; }
.pf-review figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); }
.pf-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.pf-row b { white-space: nowrap; }
.pf-note { margin: 0; color: var(--muted); }

/* «Сделано в UGC Card»: тёмная полоса, буквы слабо светятся */
.pf-made { background: #0b0a10; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; font-family: 'Manrope', system-ui, sans-serif; }
.pf-neon { margin: 0; font-weight: 600; font-size: 15px; letter-spacing: .04em; color: #f4dfae; text-shadow: 0 0 5px rgba(246,206,120,.5), 0 0 16px rgba(240,180,80,.28), 0 0 34px rgba(240,170,70,.14); animation: pf-breathe 5s ease-in-out infinite; }
.pf-made-sub { margin: 2px 0 0; font-size: 12px; color: #6d6a75; }
.pf-made-btn { color: #f4dfae; text-decoration: none; font-weight: 600; font-size: 13px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(244,223,174,.35); transition: background .2s, border-color .2s; }
.pf-made-btn:hover { background: rgba(244,223,174,.1); border-color: rgba(244,223,174,.7); }
@keyframes pf-breathe { 0%, 100% { opacity: .82; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pf-neon { animation: none; } }

.pf-sheet, .pf-modal { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.5); display: flex; }
.pf-sheet[hidden], .pf-modal[hidden] { display: none; }
.pf-sheet { align-items: flex-end; justify-content: center; }
.pf-sheet-in { width: 100%; max-width: 560px; background: var(--bg); color: var(--text); border-radius: 20px 20px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.pf-sheet-t { margin: 0 0 4px; font-family: var(--f-head); font-weight: 700; font-size: 17px; }
.pf-contact { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); color: var(--text); text-decoration: none; }
.pf-contact span { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; text-align: right; }
.pf-close { height: 46px; border: 0; background: none; color: var(--muted); font: 500 15px var(--f-body); cursor: pointer; }
.pf-modal { align-items: center; justify-content: center; background: rgba(0,0,0,.9); }
.pf-modal-in { width: min(92vw, 420px); max-height: 88vh; display: flex; }
.pf-modal-in video, .pf-modal-in img { width: 100%; max-height: 88vh; object-fit: contain; border-radius: 12px; }
.pf-modal-in iframe { width: 100%; height: min(88vh, 740px); border: 0; border-radius: 12px; background: #000; }
.pf-x { position: absolute; top: 10px; right: 14px; width: 44px; height: 44px; border: 0; background: none; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }

/* кнопки «Связаться» и «Обсудить ролик» */
.pf-ctas { display: flex; gap: 10px; }
.pf-ctas .pf-cta { flex: 1; min-width: 0; }
.pf-cta-alt { background: transparent; color: var(--text); border: 1.5px solid var(--accent); }
/* подборка для бренда по личной ссылке */
.pf-for { padding: 14px 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.pf-for b { display: block; font-family: var(--f-head); font-weight: var(--h-weight); font-size: 16px; }
.pf-for p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
/* видеовизитка */
.pf-intro { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--text); font: 600 14px var(--f-body); cursor: pointer; text-align: left; }
.pf-intro video { width: 54px; height: 72px; object-fit: cover; border-radius: calc(var(--r) * .6); background: var(--line); flex: none; }
.pf-intro .pf-play { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); }
/* цифры у ролика */
.pf-res { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--accent); line-height: 1.3; }
/* форма заявки */
.pf-ask label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.pf-ask input:not([type=checkbox]), .pf-ask select, .pf-ask textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: calc(var(--r) * .6 + 4px); background: var(--card); color: var(--text); font: 16px var(--f-body); }
.pf-ask textarea { min-height: 76px; resize: vertical; }
.pf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-agree { flex-direction: row !important; align-items: flex-start; gap: 8px !important; font-size: 12px !important; }
.pf-agree input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.pf-agree a { color: inherit; }
.pf-err { color: #d4384f; font-size: 13px; }
.pf-sheet-in { max-height: 92dvh; overflow-y: auto; }

/* PDF-медиакит: печать страницы */
.pf-qr { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.pf-qr svg { width: 96px; height: 96px; flex: none; }
.pf-qr span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.pf-print .pf-in { max-width: 760px; }
.pf-print .pf-grid { grid-template-columns: repeat(4, 1fr); }
.pf-print .pf-play, .pf-print .pf-link, .pf-print .pf-ctas, .pf-print .pf-made, .pf-print .pf-sheet, .pf-print .pf-modal { display: none !important; }
@media print {
  @page { margin: 12mm; }
  html, body { background: var(--bg) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pf { min-height: 0; }
  .pf-in { padding: 0; gap: 18px; }
  section, .pf-work, .pf-review, .pf-row { break-inside: avoid; }
  .pf-print-tip { display: none !important; }
}
.pf-print-tip { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50; background: #111; color: #fff; padding: 10px 16px; border-radius: 999px; font: 600 13px 'Manrope', sans-serif; display: flex; gap: 10px; align-items: center; }
.pf-print-tip button { border: 0; background: #ff5aa8; color: #fff; padding: 6px 12px; border-radius: 999px; font: inherit; cursor: pointer; }
