/* «Исполнители и портфолио» (18.11.2026): /pokazat-raboty (мастер, черновик, кабинет, предпросмотр) и /ispolniteli/{slug}.
   Основа — блоки «Стать партнёром» (ptr-*, stan-partnerom.css, ViewData CssPage), выпадающие списки — ads-dd.
   Своё — префикс pf-. Ширины: компьютер / ≤1199 / ≤767 (как на всём сайте). Блоки не вплотную — зазоры от 20px. */
@import url("../components/ads-dd.css");

.pf-page { padding-bottom: 8px; }
@media (max-width: 1199px) { .pf-page .ptr-wrap { padding: 0 28px; } }
@media (max-width: 767px) { .pf-page .ptr-wrap { padding: 0 16px; } }

.pf-muted { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.pf-ok, .pf-err, .pf-dev { margin: 0 0 20px; padding: 12px 16px; border-radius: 12px; font-size: 14.5px; line-height: 1.5; }
.pf-ok { background: var(--green-50); color: var(--green-700); font-weight: 600; }
.pf-err { background: #fdecea; color: #a12a20; font-weight: 600; }
.pf-dev { background: #fff6d6; color: #6b5300; border: 1px dashed #d6b54a; }
.pf-dev b { font-size: 18px; letter-spacing: .12em; }
.pf-linkbtn { padding: 0; border: 0; background: none; color: var(--green-700); font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.pf-linkbtn--danger { color: #a12a20; }
.pf-btn-ghost { background: #fff; border: 1px solid var(--green-600); color: var(--green-700); }
.pf-btn-danger { background: #fff; border: 1px solid #d9a29c; color: #a12a20; }
.pf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pf-inline { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }

/* textarea: 3–10 строк, тянуть только по вертикали в этих пределах */
.pf-page textarea, .pf-textarea { min-height: calc(3 * 1.5em + 4px); max-height: calc(10 * 1.5em + 4px); resize: vertical; line-height: 1.5; }

/* Прогресс «Данные → Готовая страница → Проверка» */
.pf-progress { display: flex; gap: 20px; margin: 0 0 28px; padding: 0; list-style: none; counter-reset: none; }
.pf-progress__step { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 600; }
.pf-progress__step + .pf-progress__step::before { content: ""; width: 32px; height: 2px; margin-right: 0; background: var(--line); }
.pf-progress__num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--line); color: var(--muted); font-size: 13px; }
.pf-progress__step.is-on { color: var(--ink); }
.pf-progress__step.is-on .pf-progress__num { border-color: var(--green-700); background: var(--green-700); color: #fff; }
.pf-progress__step.is-done .pf-progress__num { border-color: var(--green-600); color: var(--green-700); background: var(--green-50); }

/* Мастер и кабинет */
.pf-wiz { padding-top: 20px; }
.pf-wiz__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.pf-wiz__card, .pf-wiz__aside { padding: 28px; }
.pf-wiz__title { margin: 0 0 10px; font-family: 'Lora', Georgia, serif; font-size: clamp(26px, 2.4vw, 36px); font-weight: 600; line-height: 1.15; color: var(--ink); }
.pf-wiz__alt { margin-top: 20px; }
.pf-form { display: grid; gap: 4px; margin-top: 20px; }
.pf-form .ptr-form__btn { margin-top: 12px; }
.pf-code { font-size: 22px; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.pf-specs { margin: 0 0 14px; padding: 0; border: 0; }
.pf-specs__list { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-pill { position: relative; cursor: pointer; }
.pf-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pf-pill span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: background .15s, border-color .15s; }
.pf-pill input:checked + span { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.pf-pill input:focus-visible + span { outline: 2px solid var(--green-500); outline-offset: 2px; }
.pf-specs__other { margin-top: 10px; }
.pf-contact { margin: 6px 0 10px; padding: 0; border: 0; }
.pf-contact__note { margin: 6px 0 10px; }
.pf-switch { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 10px; border-radius: 12px; background: #eef2ef; }
.pf-switch__opt { position: relative; cursor: pointer; }
.pf-switch__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pf-switch__opt span { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pf-switch__opt span :is(i, svg) { width: 16px; height: 16px; }
.pf-switch__opt input:checked + span { background: #fff; color: var(--green-700); box-shadow: 0 1px 4px rgba(20,24,26,.12); }
.pf-switch__opt input:focus-visible + span { outline: 2px solid var(--green-500); }
.pf-switch__opt.is-off span { opacity: .45; cursor: not-allowed; }
.pf-consent { align-items: flex-start; margin: 10px 0; line-height: 1.45; }
.pf-consent .ptr-check__box { margin-top: 1px; }
.pf-city .ads-dd__menu { padding: 8px; }
.pf-city__search { width: 100%; box-sizing: border-box; min-height: 42px; margin-bottom: 6px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.pf-city__list { max-height: 260px; overflow: auto; margin: 0; padding: 0; list-style: none; }
.pf-city__empty { padding: 10px 12px; color: var(--muted); font-size: 13.5px; }
.pf-next { display: grid; gap: 18px; margin: 0 0 22px; padding: 0; list-style: none; }
.pf-next li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.pf-next .ptr-round { width: 40px; height: 40px; font-weight: 700; }
.pf-next b { display: block; color: var(--ink); font-size: 15px; }
.pf-facts { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.pf-facts li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.pf-facts--small { margin-bottom: 20px; }

/* Черновик */
.pf-step__head { margin-bottom: 20px; }
.pf-step__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; }
.pf-banner { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 20px; padding: 14px 16px; border-radius: 12px; font-size: 14.5px; line-height: 1.5; }
.pf-banner :is(i, svg) { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; }
.pf-banner--info { background: #eef4fb; color: #1f4a73; }
.pf-banner--warn { background: #fff4e0; color: #7a4a00; }
.pf-drop { position: relative; display: grid; justify-items: center; gap: 8px; padding: 36px 20px; border: 2px dashed #b9cfc0; border-radius: 18px; background: #fff; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.pf-drop:hover, .pf-drop.is-over, .pf-drop:focus-within { border-color: var(--green-600); background: var(--green-50); }
.pf-drop__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.pf-drop__ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--green-50); color: var(--green-700); }
.pf-drop__ico :is(i, svg) { width: 30px; height: 30px; }
.pf-drop__title { font-size: 18px; font-weight: 700; color: var(--ink); }
.pf-drop__hint { font-size: 13.5px; color: var(--muted); }
.pf-queue { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.pf-queue__item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; grid-template-areas: "img name a b" "img bar bar bar" "img msg msg msg"; column-gap: 12px; row-gap: 4px; align-items: center; padding: 10px; border-radius: 12px; background: #fff; box-shadow: var(--ptr-shadow); }
.pf-queue__item img { grid-area: img; width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: #eef2ef; }
.pf-queue__name { grid-area: name; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.pf-queue__bar { grid-area: bar; height: 6px; border-radius: 3px; background: #e6ece8; overflow: hidden; }
.pf-queue__bar span { display: block; height: 100%; background: var(--green-600); transition: width .2s; }
.pf-queue__msg { grid-area: msg; font-size: 13px; color: var(--muted); }
.pf-queue__item.is-error .pf-queue__msg { color: #a12a20; font-weight: 600; }
.pf-queue__item.is-error .pf-queue__bar span { background: #d9a29c; }
.pf-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; padding: 18px 20px; border-radius: 16px; background: var(--green-50); }
.pf-ask p { flex: 1 1 100%; margin: 0; }
.pf-worklist { display: grid; gap: 20px; margin: 24px 0 0; padding: 0; list-style: none; }
.pf-wcard { padding: 20px; }
.pf-wcard__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 14px; }
.pf-wcard__title { margin: 0; font-size: 18px; font-weight: 700; }
.pf-wcard__title small { color: var(--muted); font-weight: 500; font-size: 14px; }
.pf-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.pf-thumb { position: relative; display: grid; gap: 6px; }
.pf-thumb > img { width: 100%; aspect-ratio: 4 / 3; height: auto; border-radius: 12px; object-fit: cover; background: #eef2ef; }
.pf-thumb__flag { position: absolute; top: 6px; left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(255,244,224,.95); color: #7a4a00; font-size: 12px; font-weight: 700; }
.pf-thumb__tools { display: flex; gap: 6px; justify-content: space-between; }
.pf-icobtn { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink-2); cursor: pointer; }
.pf-icobtn :is(i, svg) { width: 17px; height: 17px; }
.pf-icobtn:disabled { opacity: .35; cursor: default; }
.pf-icobtn--danger { color: #a12a20; }
.pf-thumb__dd { position: relative; }
.pf-thumb__dd .ads-dd__menu { left: auto; right: -40px; min-width: 220px; }
.pf-thumb--add label { position: relative; display: grid; place-items: center; align-content: center; gap: 6px; aspect-ratio: 4 / 3; border: 2px dashed #b9cfc0; border-radius: 12px; color: var(--green-700); font-size: 13px; font-weight: 600; text-align: center; cursor: pointer; }
.pf-thumb--add label:hover { background: var(--green-50); }

.pf-aibar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 20px; padding: 14px 16px; border-radius: 12px; background: #f3f6f4; font-size: 14.5px; line-height: 1.5; }
.pf-aibar.is-ai_generating { background: #eef4fb; color: #1f4a73; }
.pf-aibar.is-ai_failed { background: #fff4e0; color: #7a4a00; }
.pf-aibar__ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--green-700); }
.pf-aibar__ico :is(i, svg) { width: 17px; height: 17px; }
.pf-aibar.is-ai_generating .pf-aibar__ico { animation: pf-pulse 1.2s ease-in-out infinite; }
@keyframes pf-pulse { 50% { transform: scale(.85); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .pf-aibar.is-ai_generating .pf-aibar__ico { animation: none; } }

.pf-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-flow: dense; gap: 20px; align-items: start; }
.pf-edit__form { padding: 22px; }
.pf-edit__form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.pf-edit__form .ptr-card__title small { color: var(--muted); font-weight: 500; font-size: 14px; }
.pf-edit__workhead { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.pf-edit__workhead img { width: 96px; height: 72px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.pf-edit__workhead .ptr-card__title { margin: 0; }
.pf-seo summary, .pf-rules summary { cursor: pointer; font-weight: 600; color: var(--green-700); margin: 6px 0 12px; }
.pf-preview { grid-column: 2; grid-row: 1 / span 20; position: sticky; top: calc(var(--header-height, 72px) + 16px); display: grid; gap: 14px; padding: 18px; }
.pf-preview__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pf-preview__bar .pf-switch { margin: 0; }
.pf-preview__stage { position: relative; height: min(72vh, 760px); overflow: hidden; border-radius: 14px; background: #e9eeeb; }
.pf-preview__frame { display: block; border: 0; background: #fff; transform-origin: 0 0; }
.pf-preview__stage.is-phone .pf-preview__frame { border-radius: 18px; }
.pf-submit { display: grid; gap: 16px; max-width: 760px; padding: 26px; }
.pf-rules ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.pf-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: #eef2ef; color: var(--ink-2); font-size: 12.5px; font-weight: 700; }
.pf-badge--draft { background: #fff4e0; color: #7a4a00; }
.pf-badge--platform, .pf-badge--published { background: var(--green-50); color: var(--green-700); }
.pf-badge--blocked, .pf-badge--suspended { background: #fdecea; color: #a12a20; }

/* Кабинет */
.pf-cab__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 20px; }
.pf-status__list { display: grid; gap: 10px; margin: 0 0 20px; }
.pf-status__list > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; font-size: 14.5px; }
.pf-status__list dt { color: var(--muted); }
.pf-status__list dd { margin: 0; font-weight: 600; }
.pf-history { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.pf-history li { display: grid; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pf-history li:last-child { border-bottom: 0; padding-bottom: 0; }
.pf-history span { color: var(--muted); }
.pf-history em { color: #7a4a00; font-style: normal; }
.pf-danger { margin-top: 20px; }
.pf-logout { margin-top: 20px; }

/* Страница исполнителя */
.pf-draftmark { position: sticky; top: var(--header-height, 72px); z-index: 5; display: flex; justify-content: center; align-items: center; gap: 8px; margin: 0; padding: 8px 16px; background: #fff4e0; color: #7a4a00; font-size: 14px; font-weight: 700; }
.pf-draftmark :is(i, svg) { width: 17px; height: 17px; }
.pf-hero { padding-top: 20px; }
.pf-hero__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.pf-hero__title { max-width: none; overflow-wrap: anywhere; }
.pf-hero__place { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--ink-2); font-weight: 600; }
.pf-hero__place :is(i, svg) { width: 18px; height: 18px; color: var(--green-700); flex: 0 0 auto; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.pf-chips :is(a, span) { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--green-50); color: var(--green-700); font-size: 14px; font-weight: 600; text-decoration: none; }
.pf-chips a:hover { background: #d9eadb; }
.pf-hero__intro { margin: 0 0 24px; max-width: 64ch; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); white-space: pre-line; }
.pf-hero__card { padding: 24px; }
.pf-empty { padding: 24px; border-radius: 16px; background: #fff; color: var(--muted); }
.pf-works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.pf-work { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.pf-work__pic { position: relative; display: block; aspect-ratio: 4 / 3; width: 100%; padding: 0; border: 0; background: #e9eeeb; overflow: hidden; cursor: zoom-in; }
.pf-work__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pf-work__pic:hover img { transform: scale(1.03); }
.pf-work__pic:focus-visible { outline: 3px solid var(--green-500); outline-offset: -3px; }
.pf-work__count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(20,24,26,.7); color: #fff; font-size: 13px; font-weight: 700; }
.pf-work__count :is(i, svg) { width: 15px; height: 15px; }
.pf-work__body { display: grid; gap: 8px; align-content: start; flex: 1 1 auto; padding: 18px 20px 20px; }
.pf-work__body .pf-badge { justify-self: start; }
.pf-work__title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.pf-work__meta { margin: 0; font-size: 14px; color: var(--muted); }
.pf-work__text { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.pf-work__cta { margin-top: 4px; font-size: 14px; font-weight: 600; }
.pf-order__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.pf-steps { display: grid; gap: 16px; margin: 24px 0; padding: 0; list-style: none; }
.pf-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.pf-steps .ptr-round { width: 44px; height: 44px; font-weight: 700; color: #fff; }
.pf-terms { padding: 20px; border-radius: 16px; background: #f3f6f4; }
.pf-terms h3 { margin: 0 0 10px; font-size: 16px; }
.pf-terms p { margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.pf-terms p:last-child { margin-bottom: 0; }
.pf-order__form { padding: 26px; }
.pf-note { margin: 0; padding: 16px; border-radius: 12px; background: #fff4e0; color: #7a4a00; font-size: 14.5px; line-height: 1.5; }

.pf-lightbox { width: min(96vw, 1100px); max-height: 94vh; padding: 0; border: 0; border-radius: 18px; background: #111; color: #fff; }
.pf-lightbox::backdrop { background: rgba(10,12,12,.75); }
.pf-lightbox__box { position: relative; display: grid; gap: 12px; padding: 16px; }
.pf-lightbox__close { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; }
.pf-lightbox__fig { margin: 0; display: grid; gap: 8px; }
.pf-lightbox__fig img { width: 100%; max-height: 72vh; object-fit: contain; }
.pf-lightbox__fig figcaption { font-size: 14px; color: #ddd; }
.pf-lightbox__nav { display: flex; align-items: center; justify-content: center; gap: 20px; }
.pf-lightbox__nav .ptr-btn { min-height: 40px; padding: 0 14px; background: rgba(255,255,255,.15); color: #fff; }
.pf-lightbox__pos { font-size: 14px; color: #ddd; }
.pf-report { padding: 12px 14px; border-radius: 12px; background: #fff; color: var(--ink); }
.pf-report summary { cursor: pointer; font-size: 14px; font-weight: 600; color: #a12a20; }
.pf-report__form { display: grid; gap: 10px; margin-top: 12px; }
.pf-report__reasons { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.pf-report__reasons legend { margin-bottom: 6px; font-weight: 600; }
.pf-report__msg { margin: 0; font-size: 14px; color: var(--green-700); }

@media (max-width: 1199px) {
    .pf-wiz__grid, .pf-hero__grid, .pf-order__grid, .pf-cab__grid { grid-template-columns: minmax(0, 1fr); }
    .pf-works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .pf-edit { grid-template-columns: minmax(0, 1fr); }
    .pf-preview { grid-column: auto; grid-row: auto; position: static; }
}
@media (max-width: 767px) {
    .pf-progress { gap: 8px; margin-bottom: 20px; }
    .pf-progress__step { gap: 6px; font-size: 12.5px; }
    .pf-progress__step + .pf-progress__step::before { width: 12px; }
    .pf-progress__step:not(.is-on) .pf-progress__label { display: none; }
    .pf-wiz__card, .pf-wiz__aside, .pf-edit__form, .pf-submit, .pf-order__form { padding: 20px; }
    .pf-works { grid-template-columns: minmax(0, 1fr); }
    .pf-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pf-status__list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .pf-step__foot { flex-direction: column-reverse; align-items: stretch; }
    .pf-step__foot .ptr-btn { width: 100%; }
    .pf-preview__stage { height: 70vh; }
    .pf-lightbox__box { padding: 10px; }
}
