/* ===== Партнёрская программа: промо /partner, вход и кабинет ===== */
.pp { --pp-green: #10b981; --pp-green-dark: #059669; --pp-gold: #f59e0b; }

/* ---------- промо: первый экран ---------- */
.pp-hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(16, 185, 129, .35), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(37, 99, 235, .45), transparent 60%),
              linear-gradient(160deg, #0b1930 0%, #0f2347 55%, #0b1930 100%);
  padding: 72px 0 88px;
}
.pp-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
}
.pp-hero .container { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .pp-hero .container { grid-template-columns: 1.15fr .85fr; } }
.pp-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: rgba(16, 185, 129, .16); color: #6ee7b7; border: 1px solid rgba(110, 231, 183, .3);
}
.pp-chip i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .25); }
.pp-hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.05; letter-spacing: -.03em; margin: 20px 0 18px; font-weight: 800; }
.pp-hero h1 em { font-style: normal; background: linear-gradient(90deg, #34d399, #60a5fa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pp-hero .lead { font-size: 19px; color: #cbd5e1; max-width: 560px; margin: 0 0 28px; }
.pp-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.pp-hero__facts { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 34px; }
.pp-hero__facts div { min-width: 120px; }
.pp-hero__facts b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.pp-hero__facts span { color: #94a3b8; font-size: 14px; }
.btn-green { background: linear-gradient(135deg, #10b981, #059669); color: #fff; box-shadow: 0 14px 30px -10px rgba(16, 185, 129, .7); }
.btn-green:hover { box-shadow: 0 18px 36px -10px rgba(16, 185, 129, .85); }
.btn-glass { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn-glass:hover { background: rgba(255,255,255,.14); }
.btn-lg { padding: 16px 26px; font-size: 17px; border-radius: 14px; }

/* карточка-калькулятор */
.pp-calc {
  background: linear-gradient(165deg, rgba(255,255,255,.12), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px; padding: 28px; backdrop-filter: blur(14px); box-shadow: 0 30px 60px -25px rgba(0,0,0,.6);
}
.pp-calc h3 { margin: 0 0 4px; font-size: 18px; }
.pp-calc p.sub { margin: 0 0 22px; color: #94a3b8; font-size: 14px; }
.pp-calc label { display: flex; justify-content: space-between; font-size: 14px; color: #cbd5e1; margin-bottom: 8px; }
.pp-calc label b { color: #fff; font-size: 16px; }
.pp-calc input[type=range] { width: 100%; accent-color: #10b981; margin: 0 0 20px; }
.pp-calc__result { border-top: 1px dashed rgba(255,255,255,.2); padding-top: 18px; display: grid; gap: 10px; }
.pp-calc__row { display: flex; justify-content: space-between; align-items: baseline; color: #cbd5e1; font-size: 15px; }
.pp-calc__row b { color: #fff; }
.pp-calc__big { font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: #34d399; line-height: 1.1; }
.pp-calc__note { font-size: 12px; color: #94a3b8; margin-top: 6px; }

/* ---------- промо: секции ---------- */
.pp-section { padding: 80px 0; }
.pp-section--alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pp-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.pp-head .eyebrow { color: var(--pp-green-dark); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.pp-head h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.02em; margin: 10px 0 12px; line-height: 1.15; }
.pp-head p { color: var(--text-muted); margin: 0; font-size: 17px; }
.pp-grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .pp-grid--2 { grid-template-columns: repeat(2, 1fr); } .pp-grid--3 { grid-template-columns: repeat(3, 1fr); } .pp-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .pp-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.pp-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.pp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pp-card h3 { margin: 14px 0 8px; font-size: 19px; }
.pp-card p { margin: 0; color: var(--text-muted); font-size: 15px; }
.pp-ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 26px; background: linear-gradient(135deg, #ecfdf5, #dbeafe); }
.pp-step { position: relative; padding-top: 30px; }
.pp-step__n { position: absolute; top: -18px; left: 26px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #10b981, #2563eb); box-shadow: var(--shadow-glow); }

.pp-split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .pp-split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.pp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pp-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.pp-list li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; background: var(--pp-green); margin-top: 1px; }
.pp-mock { background: linear-gradient(160deg, #0b1930, #13294d); border-radius: 24px; padding: 22px; color: #fff; box-shadow: var(--shadow-xl); }
.pp-mock__bar { display: flex; gap: 6px; margin-bottom: 16px; }
.pp-mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); }
.pp-mock__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.pp-mock__stats div { background: rgba(255,255,255,.07); border-radius: 14px; padding: 12px; }
.pp-mock__stats b { display: block; font-size: 22px; }
.pp-mock__stats span { font-size: 12px; color: #94a3b8; }
.pp-mock__chart { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding: 10px; background: rgba(255,255,255,.05); border-radius: 14px; }
.pp-mock__chart i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #34d399, #2563eb); opacity: .9; }
.pp-mock__row { display: flex; justify-content: space-between; padding: 10px 4px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14px; }
.pp-mock__row:last-child { border-bottom: 0; }
.pp-mock__row b { color: #34d399; }

.pp-compare { display: grid; gap: 18px; }
@media (min-width: 820px) { .pp-compare { grid-template-columns: 1fr 1fr; } }
.pp-plan { border-radius: 22px; padding: 30px; border: 1px solid var(--border); background: var(--surface); }
.pp-plan--hot { border: 2px solid var(--pp-green); background: linear-gradient(180deg, #ecfdf5, #fff 45%); position: relative; }
.pp-plan--hot::before { content: "Деньги на карту"; position: absolute; top: -13px; left: 26px; background: var(--pp-green); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.pp-plan h3 { margin: 0 0 6px; font-size: 22px; }
.pp-plan .muted { color: var(--text-muted); margin: 0 0 18px; }

/* блок о маркировке — крупно и заметно */
.pp-law {
  border-radius: 24px; padding: 32px; border: 2px solid #f59e0b; background: linear-gradient(160deg, #fffbeb, #fff7ed);
  display: grid; gap: 22px;
}
@media (min-width: 900px) { .pp-law { grid-template-columns: auto 1fr; padding: 40px; } }
.pp-law__icon { width: 72px; height: 72px; border-radius: 20px; background: #f59e0b; color: #fff; display: grid; place-items: center; font-size: 38px; }
.pp-law h2, .pp-law h3 { margin: 0 0 10px; font-size: clamp(22px, 2.8vw, 30px); letter-spacing: -.02em; }
.pp-law p { margin: 0 0 12px; color: #78350f; font-size: 16px; }
.pp-law a { color: #b45309; font-weight: 600; text-decoration: underline; }
.pp-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; background: #fff; border: 1px dashed #f59e0b;
  border-radius: 12px; padding: 14px 16px; color: #0f172a; word-break: break-word; display: flex; gap: 10px; justify-content: space-between; align-items: center;
}

.pp-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.pp-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px; }
.pp-faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.pp-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--pp-green-dark); transition: transform .2s; }
.pp-faq details[open] summary::after { transform: rotate(45deg); }
.pp-faq details p { color: var(--text-muted); margin: 12px 0 0; }

.pp-final { text-align: center; color: #fff; border-radius: 28px; padding: 56px 24px; background: linear-gradient(135deg, #059669, #2563eb); box-shadow: var(--shadow-xl); }
.pp-final h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 12px; letter-spacing: -.02em; }
.pp-final p { margin: 0 auto 26px; max-width: 560px; color: #e0f2fe; font-size: 17px; }

/* ---------- вход ---------- */
.pp-auth { min-height: calc(100vh - 140px); display: grid; place-items: center; padding: 48px 16px; background: radial-gradient(800px 400px at 50% -10%, #dbeafe, transparent 70%), var(--bg); }
.pp-auth__box { width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 34px; box-shadow: var(--shadow-xl); }
.pp-auth__box h1 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.02em; }
.pp-auth__box .sub { color: var(--text-muted); margin: 0 0 24px; }
.pp-field { display: grid; gap: 6px; margin-bottom: 16px; }
.pp-field label { font-weight: 600; font-size: 14px; }
.pp-field input, .pp-field select, .pp-field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.pp-field textarea { min-height: 110px; resize: vertical; }
.pp-field input:focus, .pp-field select:focus, .pp-field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.pp-field .hint { font-size: 13px; color: var(--text-faint); }
.pp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.pp-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--pp-green); flex: none; }
.pp-check a { color: var(--primary); text-decoration: underline; }
.pp-auth__alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--text-muted); }
.pp-auth__alt a { color: var(--primary); font-weight: 600; }
.pp-code { font-size: 46px; font-weight: 800; letter-spacing: .18em; text-align: center; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, #ecfdf5, #eff6ff); border: 1px solid var(--border); margin: 8px 0 18px; font-variant-numeric: tabular-nums; }
.pp-steps-mini { counter-reset: s; list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.pp-steps-mini li { counter-increment: s; display: flex; gap: 12px; font-size: 15px; }
.pp-steps-mini li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--primary-light); color: var(--primary); }
.pp-qr { display: none; text-align: center; margin: 4px 0 16px; }
.pp-qr svg { width: 170px; height: 170px; margin: 0 auto; }
@media (min-width: 760px) { .pp-qr { display: block; } }
.pp-status { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 12px; border-radius: 12px; background: var(--surface-alt); font-size: 14px; color: var(--text-muted); }
.pp-status--error { background: var(--danger-bg); color: var(--danger); }
.pp-status--ok { background: var(--success-bg); color: var(--success); }
.pp-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: pp-spin .8s linear infinite; }
@keyframes pp-spin { to { transform: rotate(360deg); } }

/* ---------- кабинет ---------- */
.pc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 64px; }
@media (min-width: 1000px) { .pc { grid-template-columns: 240px minmax(0, 1fr); align-items: start; } }
.pc-side { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 14px; position: sticky; top: 84px; }
.pc-side__me { padding: 10px 10px 14px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.pc-side__me b { display: block; font-size: 16px; }
.pc-side__me span { font-size: 13px; color: var(--text-muted); }
.pc-nav { display: grid; gap: 2px; }
.pc-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-weight: 500; color: var(--text-muted); font-size: 15px; }
.pc-nav a:hover { background: var(--surface-alt); color: var(--text); }
.pc-nav a.on { background: linear-gradient(135deg, #ecfdf5, #eff6ff); color: var(--text); font-weight: 700; }
.pc-nav .badge { margin-left: auto; }
.pc-side form { margin-top: 8px; border-top: 1px solid var(--border); padding-top: 8px; }
.pc-side form button { width: 100%; text-align: left; background: none; border: 0; font: inherit; color: var(--text-faint); padding: 10px 12px; cursor: pointer; border-radius: 12px; }
.pc-side form button:hover { background: var(--surface-alt); color: var(--danger); }
@media (max-width: 999px) {
  .pc-side { position: static; padding: 8px; }
  .pc-side__me { display: none; }
  .pc-nav { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .pc-nav a { white-space: nowrap; }
  .pc-side form { display: none; }
}
.pc-main { min-width: 0; display: grid; gap: 20px; }
.pc-title { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.pc-title h1 { margin: 0; font-size: 28px; letter-spacing: -.02em; }
.pc-title p { margin: 4px 0 0; color: var(--text-muted); }
.pc-box { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-sm); min-width: 0; }
.pc-box h2 { margin: 0 0 14px; font-size: 19px; }
.pc-box h2 small { font-weight: 500; color: var(--text-faint); font-size: 14px; margin-left: 6px; }
.pc-kpis { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .pc-kpis { grid-template-columns: repeat(4, 1fr); } }
.pc-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px; }
.pc-kpi span { font-size: 13px; color: var(--text-muted); display: block; }
.pc-kpi b { display: block; font-size: 26px; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.pc-kpi small { color: var(--text-faint); font-size: 12px; }
.pc-kpi--main { background: linear-gradient(135deg, #059669, #2563eb); color: #fff; border: 0; }
.pc-kpi--main span, .pc-kpi--main small { color: rgba(255,255,255,.8); }
.pc-progress { height: 10px; border-radius: 999px; background: var(--surface-alt); overflow: hidden; margin: 10px 0 6px; }
.pc-progress i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #10b981, #2563eb); }
.pc-chart { width: 100%; height: 220px; }
.pc-legend { display: flex; gap: 16px; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; flex-wrap: wrap; }
.pc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.pc-table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.pc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pc-table th { text-align: left; font-weight: 600; color: var(--text-faint); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 0 10px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.pc-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.pc-table tr:last-child td { border-bottom: 0; }
.pc-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-table a.name { font-weight: 600; color: var(--text); }
.pc-table a.name:hover { color: var(--primary); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge--ok { background: var(--success-bg); color: var(--success); }
.badge--warn { background: var(--warning-bg); color: var(--warning); }
.badge--bad { background: var(--danger-bg); color: var(--danger); }
.badge--wait { background: var(--primary-light); color: var(--primary); }
.badge--muted { background: var(--surface-alt); color: var(--text-muted); }
.pc-empty { text-align: center; padding: 34px 16px; color: var(--text-muted); }
.pc-empty b { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; }

.pc-copy { display: flex; gap: 8px; align-items: stretch; }
.pc-copy input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-alt); color: var(--text); }
.pc-copy button, .pc-btn-sm { flex: none; border: 0; border-radius: 12px; padding: 0 16px; font: inherit; font-weight: 600; cursor: pointer; background: var(--primary); color: #fff; min-height: 42px; }
.pc-copy button.done { background: var(--success); }
.pc-links { display: grid; gap: 14px; }
.pc-links label { font-size: 13px; font-weight: 600; color: var(--text-muted); display: block; margin-bottom: 6px; }
.pc-qr { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.pc-qr img { width: 150px; height: 150px; border-radius: 14px; border: 1px solid var(--border); background: #fff; }
.pc-qr div { display: grid; gap: 8px; }
.pc-qr a { color: var(--primary); font-weight: 600; font-size: 14px; }

.pc-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); font-size: 14px; color: var(--text-muted); background: var(--surface); }
.pc-tabs a.on { background: var(--text); color: #fff; border-color: var(--text); }

.pc-choice { display: grid; gap: 14px; }
@media (min-width: 760px) { .pc-choice { grid-template-columns: 1fr 1fr; } }
.pc-choice label.opt { display: block; cursor: pointer; border: 2px solid var(--border); border-radius: 18px; padding: 18px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.pc-choice input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.pc-choice input[type=radio]:checked + label.opt { border-color: var(--pp-green, #10b981); box-shadow: 0 0 0 4px rgba(16, 185, 129, .14); }
.pc-choice label.opt b { display: block; font-size: 17px; margin-bottom: 4px; }
.pc-choice label.opt span { color: var(--text-muted); font-size: 14px; }
.pc-form-row { display: grid; gap: 0 16px; }
@media (min-width: 760px) { .pc-form-row { grid-template-columns: 1fr 1fr; } }
.pc-hidden { display: none; }

.pc-steps { display: grid; gap: 12px; counter-reset: st; }
.pc-steps > div { display: flex; gap: 14px; padding: 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.pc-steps > div::before { counter-increment: st; content: counter(st); flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--surface-alt); color: var(--text-muted); }
.pc-steps > div.done::before { content: "✓"; background: var(--success); color: #fff; }
.pc-steps > div.now { border-color: #f59e0b; background: #fffbeb; }
.pc-steps > div.now::before { background: #f59e0b; color: #fff; }
.pc-steps h3 { margin: 4px 0 6px; font-size: 16px; }
.pc-steps p { margin: 0 0 8px; color: var(--text-muted); font-size: 14px; }

.pc-alert { border-radius: 16px; padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.pc-alert--warn { background: var(--warning-bg); border: 1px solid var(--warning-border); color: #92400e; }
.pc-alert--info { background: var(--primary-light); border: 1px solid #bfdbfe; color: #1e3a8a; }
.pc-alert--ok { background: var(--success-bg); border: 1px solid var(--success-border); color: #166534; }
.pc-alert a { text-decoration: underline; font-weight: 600; }
.pc-material { border: 1px solid var(--border); border-radius: 16px; padding: 16px; background: var(--surface-alt); }
.pc-material pre { white-space: pre-wrap; font: inherit; font-size: 15px; margin: 0 0 12px; }
.pc-material h3 { margin: 0 0 8px; font-size: 16px; }

/* окно о маркировке */
.pc-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 42, .6); backdrop-filter: blur(4px); }
.pc-modal.open { display: flex; }
.pc-modal__box { width: 100%; max-width: 680px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border-radius: 24px; padding: 30px; box-shadow: var(--shadow-xl); border-top: 8px solid #f59e0b; }
.pc-modal__box h2 { margin: 0 0 12px; font-size: 26px; letter-spacing: -.02em; }
.pc-modal__box ol { padding-left: 20px; margin: 12px 0 16px; display: grid; gap: 8px; }
.pc-modal__fine { background: var(--danger-bg); border: 1px solid var(--danger-border); color: #991b1b; border-radius: 14px; padding: 14px 16px; font-size: 14px; margin: 14px 0; }
.pc-modal__box a { color: var(--primary); text-decoration: underline; }
.pc-steps > div { min-width: 0; }
.pc-steps > div > div { min-width: 0; flex: 1; }
.pc-steps code, .pc-title p a { word-break: break-all; }
.pc-copy input { width: 0; }
.pc-links > div { min-width: 0; }
/* выбор картинки поста и галерея баннеров */
.pc-pics { display: grid; gap: 12px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 640px) { .pc-pics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
.pc-pic { position: relative; cursor: pointer; display: flex; flex-direction: column; gap: 8px; padding: 8px; border: 2px solid var(--border);
  border-radius: 16px; background: var(--surface); transition: border-color .15s, box-shadow .15s; min-width: 0; }
.pc-pic:hover { border-color: #a7f3d0; }
.pc-pic input { position: absolute; opacity: 0; pointer-events: none; }
.pc-pic__box { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #0b1930; }
.pc-pic__box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-pic__empty { background: var(--surface-alt); border: 1px dashed var(--border); }
.pc-pic__ico { font-size: 26px; font-weight: 800; color: var(--text-faint); }
.pc-pic__cap { font-size: 13px; line-height: 1.25; color: var(--text-muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-pic:has(input:checked) { border-color: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); }
.pc-pic:has(input:checked) .pc-pic__cap { color: var(--text); font-weight: 700; }
.pc-pic:has(input:checked)::after { content: "✓"; position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; border-radius: 50%;
  background: #10b981; color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.pc-pic:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.pc-pic__hint { display: block; margin-top: 10px; }
@media (max-width: 640px) {
  .pc-pic { padding: 6px; gap: 6px; }
  .pc-pic__cap { white-space: normal; font-size: 12px; min-height: 2.5em; display: flex; align-items: center; justify-content: center; }
}
.pc-gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.pc-gallery figure { margin: 0; border: 1px solid var(--border); border-radius: 16px; padding: 10px; background: var(--surface); display: grid; gap: 8px; }
.pc-gallery img { width: 100%; height: 220px; object-fit: contain; border-radius: 10px; background: #0b1930; }
.pc-gallery figcaption { font-size: 13px; color: var(--text-muted); display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.pc-gallery a { color: var(--primary); font-weight: 600; white-space: nowrap; }
