/* ============================================================
   /continue-project · страница «Продолжающийся проект» в стиле кабинета «Телеметрия»
   + стили карточки витрины (.pdc-*), общие с экспортом PNG.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700&family=Tektur:wght@700;900&family=Unbounded:wght@800;900&family=Golos+Text:wght@400;500;600&display=swap');

#pd-cp, #pd-cp button, #pd-cp input, #pd-cp select, #pd-cp textarea { font-family: "Exo 2", "Ubuntu", Arial, sans-serif; }
#pd-cp [hidden] { display: none !important; }
#pd-cp {
  --bg: #05070f; --text: #eef1ff; --muted: rgba(238, 241, 255, 0.6); --faint: rgba(238, 241, 255, 0.32);
  --blue: #92D5FF; --lilac: #E9C3FF; --green: #34d399; --amber: #ffb703; --red: #ff6b6b;
  position: relative; min-height: 100vh; overflow: hidden; color: var(--text);
  background: radial-gradient(900px 500px at 12% 10%, rgba(61, 107, 255, 0.14), transparent 60%), radial-gradient(700px 500px at 92% 95%, rgba(139, 92, 246, 0.12), transparent 60%), var(--bg);
}
#pd-cp * { box-sizing: border-box; }
#pd-cp::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%); }

/* шапка и крошки — как на /team */
#pd-cp .pd-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 36px; font-size: 13px; color: var(--muted); }
#pd-cp .pd-brand { font-family: "Tektur", sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 0.08em; color: var(--text); }
#pd-cp .pd-brand em { margin: 0 6px; color: var(--blue); font-style: normal; }
#pd-cp .pd-top-actions { display: flex; gap: 8px; }
#pd-cp .pd-outline-button, #pd-cp .pd-outline-link { display: inline-flex; align-items: center; padding: 8px 18px; border: 0; border-radius: 999px; color: var(--text); background: rgba(255, 255, 255, 0.07); font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s ease; }
#pd-cp .pd-outline-button:hover, #pd-cp .pd-outline-link:hover { background: rgba(255, 255, 255, 0.13); }
#pd-cp .pd-shell { position: relative; width: min(100%, 1120px); margin: 0 auto; padding: 6px 36px 72px; }
#pd-cp .pd-crumbs { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
#pd-cp .pd-back-link { color: var(--muted); text-decoration: none; letter-spacing: 0.06em; text-transform: none; font-size: 13px; font-weight: 600; }
#pd-cp .pd-back-link:hover { color: var(--text); }
#pd-cp .pd-crumbs h1 { margin: 0; font: inherit; }
#pd-cp .pd-crumbs h1::before { content: "/"; margin-right: 14px; color: var(--faint); }

/* состояния */
#pd-cp .pd-state { position: relative; width: min(100%, 640px); margin: 12vh auto 0; padding: 24px 28px 30px; border-radius: 20px; color: var(--muted); background: rgba(8, 11, 24, 0.66); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); font-size: 15px; line-height: 1.55; text-align: center; overflow: hidden; }
#pd-cp .pd-state::after { content: ""; position: absolute; left: 28px; right: 28px; bottom: 14px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--blue), transparent) 0 0 / 40% 100% no-repeat, rgba(255, 255, 255, 0.08); animation: pd-cp-scan 1.6s ease-in-out infinite alternate; }
@keyframes pd-cp-scan { from { background-position: 0 0, 0 0; } to { background-position: 100% 0, 0 0; } }
#pd-cp .pd-state-error { color: var(--text); }
#pd-cp .pd-state-error::after { animation: none; background: linear-gradient(90deg, var(--amber), var(--lilac)); }
#pd-cp .pd-state h2 { margin: 0 0 8px; font-family: "Tektur", sans-serif; font-size: 20px; }
#pd-cp .pd-state p { margin: 0; }
#pd-cp .pd-state .pd-primary-button, #pd-cp .pd-state .pd-outline-link { margin-top: 18px; }

/* бенто */
#pd-cp .pd-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
#pd-cp .pd-tile { position: relative; padding: 26px 26px 24px; border-radius: 22px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
#pd-cp .pd-span-2 { grid-column: span 2; }
#pd-cp .pd-span-4 { grid-column: 1 / -1; }
#pd-cp .pd-section-kicker { margin: 0 0 8px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
#pd-cp .pd-tile h2 { margin: 0; font-family: "Tektur", sans-serif; font-size: 20px; font-weight: 700; line-height: 1.2; }
#pd-cp .pd-tile-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
#pd-cp .pd-section-description { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.55; }
#pd-cp .pd-status-badge { flex: 0 0 auto; padding: 7px 12px; border-radius: 999px; color: var(--lilac); background: rgba(233, 195, 255, 0.12); font-size: 12px; font-weight: 700; white-space: nowrap; }

/* форма */
#pd-cp .pd-form { display: grid; gap: 14px; }
#pd-cp .pd-field { display: grid; gap: 7px; color: var(--faint); font-size: 12px; font-weight: 500; }
#pd-cp .pd-field > span { padding-left: 16px; display: flex; justify-content: space-between; gap: 10px; }
#pd-cp .pd-field > span i { font-style: normal; color: var(--faint); font-variant-numeric: tabular-nums; }
#pd-cp .pd-field-hint { padding-left: 16px; font-size: 12px; color: var(--faint); line-height: 1.45; }
#pd-cp input[type="text"], #pd-cp select, #pd-cp textarea {
  width: 100%; padding: 0 16px; border: 0; border-radius: 999px; outline: none; color: var(--text); background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); font: inherit; font-size: 14px; font-weight: 500; height: 46px; transition: box-shadow .2s ease;
}
#pd-cp textarea { height: auto; min-height: 120px; padding: 12px 16px; border-radius: 18px; resize: vertical; line-height: 1.5; }
#pd-cp select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23eef1ff' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
#pd-cp select option { color: #0a0e1e; background: #fff; }
#pd-cp input:focus, #pd-cp select:focus, #pd-cp textarea:focus { box-shadow: inset 0 0 0 1px rgba(146, 213, 255, 0.9), 0 0 24px rgba(146, 213, 255, 0.18); }
#pd-cp .pd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#pd-cp .pd-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 4px; }
#pd-cp .pd-chip { padding: 8px 14px; border: 0; border-radius: 999px; color: var(--text); background: rgba(255, 255, 255, 0.07); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
#pd-cp .pd-chip:hover { background: rgba(255, 255, 255, 0.13); }
#pd-cp .pd-chip[aria-pressed="true"] { color: #04060f; background: var(--blue); }
#pd-cp .pd-chip-custom { padding-right: 10px; background: rgba(233, 195, 255, 0.12); color: var(--lilac); }
#pd-cp .pd-chip-custom[aria-pressed="true"] { color: #04060f; background: var(--lilac); }
#pd-cp .pd-chip-x { display: inline-block; margin-left: 8px; padding: 0 2px; font-weight: 700; opacity: .7; }
#pd-cp .pd-chip-x:hover { opacity: 1; }
#pd-cp .pd-tag-add { display: flex; gap: 8px; align-items: center; padding-left: 4px; margin-top: 2px; }
#pd-cp .pd-tag-add input { flex: 1 1 auto; min-width: 0; }
#pd-cp .pd-chip-add { flex: none; height: 46px; padding: 0 16px; color: var(--blue); background: rgba(146, 213, 255, 0.12); }
#pd-cp .pd-chip-add:hover { background: rgba(146, 213, 255, 0.22); }
#pd-cp .pd-inline-message--tag { min-height: 0; margin: 0; padding-left: 16px; }
#pd-cp .pd-inline-message--tag:empty { display: none; }
#pd-cp .pd-stars { display: flex; gap: 6px; padding-left: 8px; }
#pd-cp .pd-stars button { border: 0; background: none; padding: 2px; font-size: 26px; line-height: 1; color: rgba(238, 241, 255, 0.2); cursor: pointer; transition: color .15s ease; }
#pd-cp .pd-stars button.on { color: var(--amber); text-shadow: 0 0 12px rgba(255, 183, 3, 0.5); }
#pd-cp .pd-drop { display: grid; gap: 6px; place-items: center; padding: 18px; border: 1px dashed rgba(146, 213, 255, 0.35); border-radius: 18px; color: var(--muted); font-size: 13px; text-align: center; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
#pd-cp .pd-drop:hover, #pd-cp .pd-drop.is-over { border-color: var(--blue); background: rgba(146, 213, 255, 0.06); }
#pd-cp .pd-drop b { color: var(--text); font-weight: 600; }
#pd-cp .pd-drop input { display: none; }
#pd-cp .pd-art-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-left: 4px; }
#pd-cp .pd-drop-file { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(52, 211, 153, 0.1); color: var(--green); font-size: 13px; }
#pd-cp .pd-drop-file button { border: 0; border-radius: 999px; padding: 6px 12px; background: rgba(255, 107, 107, 0.12); color: #ffb3b3; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
#pd-cp .pd-inline-message { min-height: 20px; margin: 4px 0 0; color: #ffb3b3; font-size: 13px; line-height: 1.45; }
#pd-cp .pd-inline-message.is-success { color: var(--green); }
#pd-cp .pd-inline-message.is-warn { color: var(--amber); }
#pd-cp .pd-primary-button { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px; color: #04060f; background: linear-gradient(90deg, var(--blue), var(--lilac)); font: inherit; font-size: 14px; font-weight: 700; letter-spacing: 0.03em; cursor: pointer; box-shadow: 0 10px 36px rgba(146, 213, 255, 0.24); text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease; }
#pd-cp .pd-primary-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 46px rgba(146, 213, 255, 0.38); }
#pd-cp .pd-primary-button:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

/* предпросмотр */
#pd-cp .pd-preview { position: sticky; top: 16px; }
#pd-cp .pd-preview-frame { position: relative; width: 100%; min-width: 0; height: 240px; overflow: hidden; border-radius: 18px; background: rgba(5, 7, 15, 0.5); padding: 14px; }
#pd-cp .pd-preview-scale { position: absolute; left: 14px; top: 14px; width: 948px; transform-origin: top left; }
#pd-cp .pd-preview-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--faint); }
#pd-cp .pd-preview-meta b { color: var(--muted); font-weight: 600; }

/* отправление */
#pd-cp .pd-tile--submit { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
#pd-cp .pd-tile--submit h2 { margin-bottom: 8px; }
#pd-cp .pd-tile--submit .pd-section-description { margin: 0; max-width: 680px; }
#pd-cp .pd-steps { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; padding: 0; list-style: none; color: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
#pd-cp .pd-steps li::before { content: "·"; margin-right: 8px; color: var(--faint); }
#pd-cp .pd-steps li.is-done { color: var(--green); }
#pd-cp .pd-steps li.is-now { color: var(--amber); }

#pd-cp .pd-bento > * { min-width: 0; max-width: 100%; }
@media screen and (max-width: 900px) {
  #pd-cp .pd-bento { grid-template-columns: minmax(0, 1fr); }
  #pd-cp .pd-span-2, #pd-cp .pd-span-4 { grid-column: auto; }
  #pd-cp .pd-preview { position: static; }
  #pd-cp .pd-tile--preview { order: -1; }
}
@media screen and (max-width: 640px) {
  #pd-cp .pd-top { padding: 16px 18px; flex-wrap: wrap; } #pd-cp .pd-top-mid { display: none; } #pd-cp .pd-shell { padding: 4px 14px 48px; }
  #pd-cp .pd-tile { padding: 22px 18px; } #pd-cp .pd-row { grid-template-columns: 1fr; } #pd-cp .pd-tile--submit { flex-direction: column; align-items: stretch; }
  #pd-cp .pd-primary-button { width: 100%; }
  #pd-cp .pd-tile-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  #pd-cp .pd-preview-frame { padding: 10px; } #pd-cp .pd-preview-scale { left: 10px; top: 10px; }
  #pd-cp .pd-tag-add { flex-wrap: wrap; } #pd-cp .pd-tag-add input { flex-basis: 100%; }
  #pd-cp .pd-field > span { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { #pd-cp .pd-state::after { animation: none; } }

/* ============================================================
   Карточка витрины · координаты макета 948 × 1860, всегда светлая
   ============================================================ */
/* box-sizing задан самой карточке: при экспорте она лежит вне #pd-cp, и без этого ширина была бы 948 + отступы */
.pdc-card { position: relative; box-sizing: border-box; width: 948px; height: 1860px; overflow: hidden; background: #FFFFFF; color: #2B2B2B; font-family: "Golos Text", "Inter", Arial, sans-serif; padding: 56px 56px 0 56px; border-radius: 0; margin: 0; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; line-height: 1.3; }
.pdc-card * { box-sizing: border-box; }
.pdc-head { display: flex; align-items: flex-start; gap: 18px; }
.pdc-title { flex: 1 1 auto; min-width: 0; font-family: "Unbounded", "Arial Black", sans-serif; font-weight: 900; font-size: 92px; line-height: 0.92; text-transform: uppercase; letter-spacing: -0.01em; color: #2B2B2B; }
.pdc-word { display: block; width: max-content; max-width: none; white-space: nowrap; line-height: 0.92; }
.pdc-title .pdc-q { color: var(--cat); }
.pdc-stars { display: flex; gap: 4px; flex: none; margin-top: 26px; }
.pdc-stars svg { width: 30px; height: 30px; display: block; }
.pdc-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.pdc-chip { height: 54px; padding: 0 22px; border-radius: 27px; display: inline-flex; align-items: center; font-size: 30px; font-weight: 500; border: 2px solid #2B2B2B; color: #2B2B2B; line-height: 1; white-space: nowrap; }
.pdc-chip-cat { background: var(--cat); border-color: var(--cat); color: #fff; font-weight: 600; }
.pdc-chip-lock { border-style: dashed; color: #6B7280; border-color: #9AA3B2; font-size: 26px; gap: 10px; }
.pdc-chip-lock svg { width: 26px; height: 26px; }
.pdc-bubble { position: relative; margin-top: 60px; }
.pdc-outline { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.pdc-text { position: relative; padding: 58px 56px 44px 40px; font-size: 38px; line-height: 1.3; font-weight: 400; color: #222; }
.pdc-text p { margin: 0; }
.pdc-text p + p { margin-top: 26px; }
.pdc-text em { font-style: normal; font-weight: 600; color: var(--cat); }
.pdc-author { position: relative; display: flex; justify-content: flex-end; align-items: center; gap: 30px; padding: 30px 70px 56px 0; min-height: 190px; }
.pdc-who { text-align: right; max-width: 560px; }
.pdc-name { font-size: 34px; font-weight: 500; color: #2B2B2B; line-height: 1.2; }
.pdc-role { font-size: 24px; color: #4B5563; line-height: 1.3; margin-top: 4px; }
.pdc-chev { display: flex; flex: none; }
.pdc-chev svg { width: 104px; height: 64px; display: block; }
.pdc-art { position: absolute; left: 74px; right: 74px; top: 1200px; height: 600px; display: flex; align-items: center; justify-content: center; }
.pdc-art svg, .pdc-art-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pdc-captain { position: absolute; right: 56px; bottom: 0; width: 440px; height: 200px; }
.pdc-captain-line { position: absolute; inset: 0; width: 440px; height: 200px; }
.pdc-captain-text { position: absolute; right: 44px; top: 44px; text-align: right; }
.pdc-captain-name { font-size: 30px; font-weight: 500; color: #2B2B2B; line-height: 1.2; }
.pdc-captain-role { margin-top: 4px; font-size: 20px; color: #4B5563; line-height: 1.3; }
.pdc-chip-cont { background: #2B2B2B; border-color: #2B2B2B; color: #fff; font-family: "Unbounded", sans-serif; font-weight: 800; font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase; }
