/* Plikomat — pomoc. Kompletna warstwa widoku, bez klas wizualnych Tailwind. */
.ph-page {
  --ph-text: var(--text);
  --ph-muted: var(--muted);
  --ph-line: var(--border);
  --ph-surface: var(--surface);
  --ph-field: color-mix(in srgb, var(--bg) 75%, var(--surface));
  --ph-action: #397c2d;
  --ph-hover: #306b26;
  --ph-green: #316c27;
  --ph-tint: color-mix(in srgb, var(--accent) 10%, var(--surface));
  --ph-radius: 20px;
  --ph-pad: 28px;
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 28px 20px 44px;
  color: var(--ph-text);
  container: ph-help / inline-size;
}
.dark .ph-page { --ph-green: #a7df99; color-scheme: dark; }
.ph-page *, .ph-page *::before, .ph-page *::after { box-sizing: border-box; }
.ph-page :is(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Intro — wspólny rytm typografii z cennikiem. */
.ph-intro { text-align: center; margin: 0 0 28px; }
.ph-eyebrow { margin: 0 0 8px; color: var(--ph-muted); font-size: 11px; font-weight: 700; line-height: 1.4; letter-spacing: .09em; text-transform: uppercase; }
.ph-intro h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.16; letter-spacing: -.045em; }
.ph-intro > p:last-child { max-width: 700px; margin: 0 auto; color: var(--ph-muted); font-size: 14px; line-height: 1.6; }
.ph-dot { display: inline-block; width: .43em; height: .43em; border-radius: 50%; margin-left: .22em; vertical-align: .12em; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 15%, transparent); }

/* Layout — dwie krawędzie na jednej wysokości. */
.ph-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.ph-panel { min-width: 0; margin: 0; border: 1px solid var(--ph-line); border-radius: var(--ph-radius); background: var(--ph-surface); box-shadow: 0 5px 20px var(--shadow); }
.ph-heading, .ph-side-heading { padding: var(--ph-pad); border-bottom: 1px solid var(--ph-line); }
.ph-heading h2, .ph-side-heading h2 { margin: 0; font-size: 22px; font-weight: 750; line-height: 1.3; letter-spacing: -.025em; }
.ph-heading > p:last-child { margin: 8px 0 0; color: var(--ph-muted); font-size: 13px; line-height: 1.6; }

/* Pola i zgoda — geometria checkoutu, bez cieni wewnętrznych. */
.ph-form { margin: 0; padding: var(--ph-pad); }
.ph-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ph-field { min-width: 0; }
.ph-wide { grid-column: 1 / -1; }
.ph-field label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 650; line-height: 1.45; }
.ph-page .ph-input { display: block; width: 100%; min-width: 0; min-height: 44px; margin: 0; padding: 10px 12px; border: 1px solid var(--ph-line); border-radius: 9px; background: var(--ph-field); color: var(--ph-text); font: inherit; font-size: 14px; line-height: 1.5; }
.ph-input::placeholder { color: var(--ph-muted); opacity: .8; }
.ph-page select.ph-input { appearance: auto; }
.ph-page .ph-message { min-height: 140px; resize: vertical; }
.ph-message-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-top: 6px; color: var(--ph-muted); font-size: 12px; line-height: 1.5; }
.ph-message-meta p { margin: 0; }
.ph-counter { flex: none; font-variant-numeric: tabular-nums; }
.ph-submit-area { display: grid; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ph-line); }
.ph-consent { display: flex; align-items: flex-start; gap: 9px; color: var(--ph-muted); font-size: 13px; line-height: 1.6; cursor: pointer; }
.ph-consent input { flex: none; width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--ph-action); }
.ph-turnstile { min-width: 0; }
.ph-turnstile .cf-turnstile { max-width: 100%; }
.ph-actions { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 10px; }
.ph-submit, .ph-email-action { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--ph-line); border-radius: 9px; font-size: 14px; font-weight: 700; line-height: 1.4; text-decoration: none; text-align: center; transition: background-color .15s, border-color .15s; }
.ph-submit { border-color: var(--ph-action); background: var(--ph-action); color: #fff; cursor: pointer; }
.ph-submit:hover:not(:disabled) { background: var(--ph-hover); border-color: var(--ph-hover); }
.ph-submit:disabled { opacity: .6; cursor: not-allowed; }
.ph-email-action { background: var(--ph-surface); color: var(--ph-text); }
.ph-email-action:hover { border-color: var(--accent); background: var(--ph-tint); }

/* Panel kontaktu i bezpieczeństwa. */
.ph-aside { display: grid; gap: 16px; min-width: 0; }
.ph-contact-body, .ph-safety { padding: var(--ph-pad); }
.ph-email-box { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px; border: 1px solid var(--ph-line); border-radius: 10px; background: var(--ph-field); }
.ph-mail-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--ph-tint); color: var(--ph-green); }
.ph-mail-icon svg, .ph-safety-heading svg { display: block; width: 20px; height: 20px; }
.ph-email-box > div { min-width: 0; }
.ph-email-box p { margin: 0 0 3px; color: var(--ph-muted); font-size: 12px; }
.ph-email-box a { color: var(--ph-green); font-size: 14px; font-weight: 700; overflow-wrap: anywhere; text-decoration: none; }
.ph-email-box a:hover { text-decoration: underline; }
.ph-tips { margin-top: 20px; }
.ph-tips h3, .ph-safety h2 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.4; }
.ph-tips ul { display: grid; gap: 9px; margin: 12px 0 0; padding: 0; list-style: none; }
.ph-tips li { display: flex; gap: 9px; align-items: baseline; color: var(--ph-muted); font-size: 13px; line-height: 1.55; }
.ph-tips li::before { content: '✓'; flex: none; color: var(--ph-green); font-weight: 700; }
.ph-safety { background: var(--ph-tint); border-color: color-mix(in srgb, var(--accent) 35%, var(--ph-line)); }
.ph-safety-heading { display: flex; gap: 9px; align-items: center; }
.ph-safety-heading svg { flex: none; color: var(--ph-green); }
.ph-safety p { margin: 10px 0 0; color: var(--ph-muted); font-size: 13px; line-height: 1.65; }

@container ph-help (max-width: 850px) {
  .ph-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@container ph-help (max-width: 520px) {
  .ph-fields, .ph-actions { grid-template-columns: minmax(0, 1fr); }
  .ph-wide { grid-column: auto; }
}
@media (max-width: 600px) {
  .ph-page { --ph-pad: 18px; padding: 22px 12px 32px; }
  .ph-intro { margin-bottom: 22px; }
  .ph-heading h2, .ph-side-heading h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-submit, .ph-email-action { transition: none; }
}
