/**
 * OES — hub Kursy prawa jazdy (oes-pj-hub-page)
 * Wymaga: oes-public.css, 06-form.css (CF7)
 * Auto: python3 scripts/build-pj-hub-wp-kod.py
 */

/* Wrapper strony hub */
.oes-pj-hub-page {
  --oes-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --oes-blue: #0054bb;
  --oes-red: #b83d40;
  --oes-ink: #0a0a0a;
  --oes-muted: #5c5c5c;
  --oes-line: #e5e5e5;
  font-family: var(--oes-font);
  color: #0a0a0a;
  line-height: 1.55;
  background: #fff;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(0.35rem, 1vw, 0.65rem) 0.75rem clamp(2rem, 4vw, 2.75rem);
  box-sizing: border-box;
}
.oes-pj-hub-page *, .oes-pj-hub-page *::before, .oes-pj-hub-page *::after {
  box-sizing: border-box;
}
.oes-pj-hub-page .oes-pj-hub-section--soft,
.oes-pj-hub-page .oes-pj-hub-final,
.oes-pj-hub-page .oes-pj-hub-section--form {
  border-radius: 14px;
}
.oes-pj-hub-page .oes-pj-hub-section--soft {
  padding-left: clamp(1rem, 2vw, 1.35rem) !important;
  padding-right: clamp(1rem, 2vw, 1.35rem) !important;
  background: #f4f7fb !important;
  border: 1px solid #e2e8f0 !important;
}
.oes-pj-hub-page .oes-pj-hub-final {
  padding: clamp(1.75rem, 3.5vw, 2.5rem) clamp(1rem, 2vw, 1.25rem) !important;
  margin: 0.85rem 0 !important;
  background: #f4f7fb !important;
  border: 1px solid #e2e8f0 !important;
  text-align: center;
}
.oes-pj-hub-page .oes-pj-hub-final h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0a0a0a !important;
}
.oes-pj-hub-page .oes-pj-hub-final p {
  margin: 0 0 1.25rem !important;
  max-width: 100% !important;
  font-size: 0.95rem;
  color: #5c5c5c !important;
  line-height: 1.6;
}
.oes-pj-hub-page .oes-pj-hub-final .oes-pj-hub-actions {
  justify-content: center;
}

/* Kadence: marginesy i szerokość */
.oes-pj-hub-page .oes-pj-hub-head p,
.oes-pj-hub-page .oes-pj-hub-head h2 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.oes-pj-hub-page .oes-pj-hub-head__lead {
  max-width: 100% !important;
}
.oes-pj-hub-page .oes-pj-hub-prose {
  max-width: 100% !important;
}
.oes-pj-hub-page .oes-pj-hub-prose p,
.oes-pj-hub-page .oes-pj-hub-prose li,
.oes-pj-hub-page .oes-pj-hub-prose h3,
.oes-pj-hub-page .oes-pj-hub-table-footnote,
.oes-pj-hub-page .oes-pj-hub-section p.oes-pj-hub-table-footnote {
  max-width: 100% !important;
}
.oes-pj-hub-page .oes-pj-hub-prose p {
  margin: 0 0 0.75rem !important;
  color: #5c5c5c !important;
}
.oes-pj-hub-page .oes-pj-hub-prose h3 {
  margin: 0 0 0.5rem !important;
  color: #0a0a0a !important;
  font-weight: 800 !important;
}
.oes-pj-hub-page .oes-pj-hub-head h2 {
  color: #0a0a0a !important;
  font-weight: 800 !important;
}

/* Hero — pełna szerokość */
.oes-pj-hub-page .oes-pj-hub-hero__panel .oes-pj-hub-hero__grid {
  max-width: 100% !important;
}
.oes-pj-hub-page .oes-pj-hub-hero__panel p {
  max-width: 100% !important;
}
.oes-pj-hub-page .oes-pj-hub-hero__panel .oes-pj-hub-hero__lead {
  margin: 0 0 0.65rem !important;
}
.oes-pj-hub-page .oes-pj-hub-hero__panel .oes-pj-hub-hero__sub {
  margin: 0 0 1rem !important;
}
.oes-pj-hub-page .oes-pj-hub-hero__panel .oes-pj-hub-actions {
  margin: 0 0 1.15rem !important;
}
.oes-pj-hub-page .oes-pj-hub-hero__panel .oes-pj-hub-hero__facts {
  margin: 0 !important;
}
.oes-pj-hub-page .oes-pj-hub-hero__panel h1,
.oes-pj-hub-page .oes-pj-hub-hero__panel .oes-pj-hub-hero__title {
  color: #fff !important;
}
.oes-pj-hub-page .oes-pj-hub-hero__panel p,
.oes-pj-hub-page .oes-pj-hub-hero__panel .oes-pj-hub-hero__lead,
.oes-pj-hub-page .oes-pj-hub-hero__panel .oes-pj-hub-hero__sub {
  color: rgba(255, 255, 255, 0.9) !important;
}
.oes-pj-hub-page .oes-pj-hub-hero__panel .oes-pj-hub-hero__lead strong {
  color: #fff !important;
}
.oes-pj-hub-page .oes-pj-hub-hero__panel .oes-pj-hub-hero__facts li {
  color: rgba(255, 255, 255, 0.88) !important;
}

/* ===== HUB: nowy system (oes-pj-hub) ===== */
.oes-pj-hub-page .oes-pj-hub {
  --pj-blue: #0054bb;
  --pj-blue-dark: #003d88;
  --pj-red: #b83d40;
  --pj-ink: #0a0a0a;
  --pj-muted: #5c5c5c;
  --pj-line: #e2e8f0;
  --pj-soft: #f4f7fb;
  --pj-radius: 14px;
  --pj-shadow: 0 10px 36px rgba(10, 20, 40, 0.08);
  --pj-max: min(100%, 70rem);
  background: #fff;
  margin-top: 0;
}

.oes-pj-hub__inner {
  width: 100%;
  max-width: var(--pj-max);
  margin: 0 auto;
  padding: 0;
}

.oes-pj-hub a { color: var(--pj-blue); }
.oes-pj-hub a:hover { color: var(--pj-blue-dark); }

/* Przyciski */
.oes-pj-hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.12s;
  white-space: nowrap;
}
.oes-pj-hub-btn:active { transform: translateY(1px); }
.oes-pj-hub-btn--primary {
  background: var(--pj-blue);
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(0, 84, 187, 0.28);
}
.oes-pj-hub-btn--primary:hover {
  background: var(--pj-blue-dark);
  color: #fff !important;
}
.oes-pj-hub-btn--red {
  background: var(--pj-red);
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(184, 61, 64, 0.28);
}
.oes-pj-hub-btn--red:hover { background: #9e3336; color: #fff !important; }
.oes-pj-hub-btn--outline {
  background: #fff;
  color: var(--pj-blue) !important;
  border-color: rgba(0, 84, 187, 0.35);
}
.oes-pj-hub-btn--outline:hover {
  background: var(--pj-soft);
  border-color: var(--pj-blue);
}
.oes-pj-hub-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.45);
}
.oes-pj-hub-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff !important;
}
.oes-pj-hub-btn--sm {
  padding: 0.48rem 0.9rem;
  font-size: 0.8rem;
}

.oes-pj-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

/* Nagłówki sekcji */
.oes-pj-hub-section {
  padding: clamp(1.75rem, 3.5vw, 2.5rem) 0;
}
.oes-pj-hub-section--soft {
  background: var(--pj-soft);
  padding-left: clamp(1rem, 2vw, 1.35rem);
  padding-right: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--pj-line);
}
.oes-pj-hub-section--line {
  border-top: 1px solid var(--pj-line);
}
.oes-pj-hub-head {
  max-width: 100%;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}
.oes-pj-hub-head--center {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  text-align: center;
}
.oes-pj-hub-head__eyebrow {
  display: inline-block;
  margin: 0;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--pj-blue);
  background: rgba(0, 84, 187, 0.09);
}
.oes-pj-hub-head__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.oes-pj-hub-head__lead {
  margin: 0;
  max-width: 100%;
  font-size: 0.95rem;
  color: var(--pj-muted);
  line-height: 1.6;
}

/* HERO — białe tło strony, niebieski panel w środku (nie nachodzi na menu WP) */
.oes-pj-hub-hero {
  padding: clamp(0.35rem, 1vw, 0.65rem) 0 clamp(1.25rem, 2.5vw, 1.75rem);
  background: #fff;
  color: var(--pj-ink);
}
.oes-pj-hub-hero__panel {
  padding: clamp(2rem, 4.5vw, 3.25rem) clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--pj-radius);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(184, 61, 64, 0.18), transparent 55%),
    linear-gradient(155deg, #003d88 0%, #0054bb 42%, #1a6fd4 100%);
  color: #fff;
  box-shadow: var(--pj-shadow);
}
.oes-pj-hub-hero__grid {
  max-width: 100%;
}
.oes-pj-hub-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #fff;
}
.oes-pj-hub-hero__lead {
  margin: 0 0 0.65rem;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 100%;
}
.oes-pj-hub-hero__lead strong { color: #fff !important; font-weight: 700; }
.oes-pj-hub-hero__sub {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 100%;
}
.oes-pj-hub-hero .oes-pj-hub-actions {
  margin: 0 0 1.15rem;
}
.oes-pj-hub-hero + .oes-pj-hub-section {
  padding-top: clamp(0.5rem, 1.2vw, 0.85rem);
}
.oes-pj-hub-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.75rem;
  margin: 0;
  padding: 0;
  border-top: 0;
  list-style: none;
}
.oes-pj-hub-hero__facts li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.84rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  max-width: none;
}
.oes-pj-hub-hero__facts li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  margin-top: 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  flex-shrink: 0;
}

/* Grupy kategorii */
.oes-pj-hub-group {
  margin-bottom: 2rem;
}
.oes-pj-hub-group:last-child { margin-bottom: 0; }
.oes-pj-hub-group__head {
  margin: 0 0 1rem;
  padding: 0 0 0.55rem 0.75rem;
  border-bottom: 2px solid var(--pj-line);
  border-left: 4px solid var(--pj-blue);
}
.oes-pj-hub-group--auto .oes-pj-hub-group__head { border-left-color: #0d7a48; }
.oes-pj-hub-group--truck .oes-pj-hub-group__head { border-left-color: var(--pj-red); }
.oes-pj-hub-group--agri .oes-pj-hub-group__head { border-left-color: #b47814; }
.oes-pj-hub-group__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.oes-pj-hub-group__grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
}

.oes-pj-hub-cat {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.05rem;
  border-radius: var(--pj-radius);
  border: 1px solid var(--pj-line);
  background: #fff;
  box-shadow: var(--pj-shadow);
  transition: border-color 0.15s, transform 0.12s;
}
.oes-pj-hub-cat:hover {
  border-color: rgba(0, 84, 187, 0.35);
  transform: translateY(-2px);
}
.oes-pj-hub-cat__top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}
.oes-pj-hub-cat__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.1rem;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 900;
  text-align: center;
  line-height: 1;
  color: #fff;
  background: var(--pj-blue);
}
.oes-pj-hub-group--moto .oes-pj-hub-cat__badge { background: var(--pj-blue); }
.oes-pj-hub-group--auto .oes-pj-hub-cat__badge { background: #0d7a48; }
.oes-pj-hub-group--truck .oes-pj-hub-cat__badge { background: var(--pj-red); }
.oes-pj-hub-group--agri .oes-pj-hub-cat__badge { background: #b47814; }
.oes-pj-hub-cat__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}
.oes-pj-hub-cat__desc {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  color: var(--pj-muted);
  line-height: 1.5;
  flex-grow: 1;
}
.oes-pj-hub-cat__meta {
  margin: 0 0 0.85rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: var(--pj-soft);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--pj-muted);
}
.oes-pj-hub-cat__meta strong {
  display: block;
  color: var(--pj-ink);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}
.oes-pj-hub-cat__note {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--pj-muted);
  line-height: 1.45;
}

/* Tabela wyboru */
.oes-pj-hub-table-wrap {
  overflow-x: auto;
  border-radius: var(--pj-radius);
  border: 1px solid var(--pj-line);
  box-shadow: var(--pj-shadow);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.oes-pj-hub-table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.oes-pj-hub-table th,
.oes-pj-hub-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--pj-line);
}
.oes-pj-hub-table th {
  background: var(--pj-soft);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pj-blue);
}
.oes-pj-hub-table tr:last-child td { border-bottom: 0; }
.oes-pj-hub-table td:first-child { font-weight: 600; min-width: 11rem; }
.oes-pj-hub-table .cat-pill {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.78rem;
  background: rgba(0, 84, 187, 0.1);
  color: var(--pj-blue);
}
.oes-pj-hub-table-footnote {
  margin: 0.85rem 0 0;
  max-width: 100%;
  font-size: 0.82rem;
  color: var(--pj-muted);
  line-height: 1.55;
}

/* CTA box */
.oes-pj-hub-callout {
  display: grid;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--pj-radius);
  background: linear-gradient(135deg, rgba(0, 84, 187, 0.07), rgba(184, 61, 64, 0.06));
  border: 1px solid rgba(0, 84, 187, 0.18);
}
@media (min-width: 720px) {
  .oes-pj-hub-callout {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.oes-pj-hub-callout h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
}
.oes-pj-hub-callout p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--pj-muted);
}

/* Kroki */
.oes-pj-hub-steps {
  display: grid;
  gap: 1rem;
  counter-reset: pj-step;
}
@media (min-width: 800px) {
  .oes-pj-hub-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.oes-pj-hub-step {
  position: relative;
  padding: 1.1rem 1.15rem 1.15rem 1.15rem;
  border-radius: var(--pj-radius);
  border: 1px solid var(--pj-line);
  background: #fff;
  box-shadow: var(--pj-shadow);
}
.oes-pj-hub-step::before {
  counter-increment: pj-step;
  content: counter(pj-step);
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.65rem;
  border-radius: 999px;
  background: var(--pj-blue);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}
.oes-pj-hub-step h3 {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
  font-weight: 800;
}
.oes-pj-hub-step p,
.oes-pj-hub-step ul {
  margin: 0;
  font-size: 0.86rem;
  color: var(--pj-muted);
  line-height: 1.55;
}
.oes-pj-hub-step ul {
  margin-top: 0.45rem;
  padding-left: 1.1rem;
}
.oes-pj-hub-step li + li { margin-top: 0.25rem; }

/* Lista punktowana sekcji */
.oes-pj-hub-list {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  color: var(--pj-muted);
}
.oes-pj-hub-list li + li { margin-top: 0.3rem; }

/* Dlaczego OES — siatka */
.oes-pj-hub-why {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}
.oes-pj-hub-why-item {
  padding: 1rem 1.05rem;
  border-radius: var(--pj-radius);
  border: 1px solid var(--pj-line);
  background: #fff;
}
.oes-pj-hub-why-item h3 {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--pj-blue);
}
.oes-pj-hub-why-item p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--pj-muted);
  line-height: 1.5;
}

/* Raty */
.oes-pj-hub-raty {
  display: grid;
  gap: 0.55rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.oes-pj-hub-raty li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--pj-muted);
}
.oes-pj-hub-raty li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: var(--pj-red);
  flex-shrink: 0;
}

/* Lokalizacje */
.oes-pj-hub-locs {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}
.oes-pj-hub-loc {
  padding: 1rem 1.05rem;
  border-radius: var(--pj-radius);
  border: 1px solid var(--pj-line);
  background: #fff;
  box-shadow: var(--pj-shadow);
}
.oes-pj-hub-loc h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
}
.oes-pj-hub-loc p {
  margin: 0 0 0.85rem;
  font-size: 0.84rem;
  color: var(--pj-muted);
  line-height: 1.5;
}

/* FAQ */
.oes-pj-hub-faq {
  display: grid;
  gap: 0.55rem;
}
.oes-pj-hub-faq details {
  border: 1px solid var(--pj-line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.oes-pj-hub-faq summary {
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.oes-pj-hub-faq summary::-webkit-details-marker { display: none; }
.oes-pj-hub-faq summary::after {
  content: "+";
  float: right;
  font-weight: 800;
  color: var(--pj-blue);
}
.oes-pj-hub-faq details[open] summary::after { content: "−"; }
.oes-pj-hub-faq details[open] summary {
  border-bottom: 1px solid var(--pj-line);
  background: var(--pj-soft);
}
.oes-pj-hub-faq__a {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  font-size: 0.88rem;
  color: var(--pj-muted);
  line-height: 1.55;
}

/* CTA — jasna sekcja */
.oes-pj-hub-final {
  padding: clamp(1.75rem, 3.5vw, 2.5rem) clamp(1rem, 2vw, 1.25rem);
  margin: 0.85rem 0;
  background: var(--pj-soft);
  border: 1px solid var(--pj-line);
  text-align: center;
  color: var(--pj-ink);
}
.oes-pj-hub-final h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--pj-ink);
}
.oes-pj-hub-final p {
  margin: 0 auto 1.25rem;
  max-width: 100%;
  font-size: 0.95rem;
  color: var(--pj-muted);
  line-height: 1.6;
}
.oes-pj-hub-final .oes-pj-hub-actions {
  justify-content: center;
}

/* Prose bloki — pełna szerokość szablonu */
.oes-pj-hub-prose {
  max-width: 100%;
  font-size: 0.92rem;
  line-height: 1.65;
}
.oes-pj-hub-prose p {
  margin: 0 0 0.75rem;
  color: var(--pj-muted);
}
.oes-pj-hub-prose p:last-child { margin-bottom: 0; }
.oes-pj-hub-prose h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pj-ink);
}
.oes-pj-hub-prose h3:first-child { margin-top: 0; }

/* Formularz — styl jak na stronie Kontakt (wariant B) */
.oes-pj-hub-section--form {
  background: #fff;
  border-top: 1px solid var(--pj-line);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.oes-pj-hub-contact {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .oes-pj-hub-contact {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}
.oes-pj-hub-contact__form {
  padding: 1.15rem 1.2rem;
  background: #fff;
  border: 1px solid var(--pj-line);
  border-radius: var(--pj-radius);
  box-shadow: 0 2px 12px rgba(10, 20, 40, 0.04);
}
.oes-pj-hub-contact__side {
  padding: 1rem 1.1rem;
  background: var(--pj-soft);
  border: 1px solid var(--pj-line);
  border-radius: var(--pj-radius);
}
.oes-pj-hub-contact__side-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--pj-ink);
}
.oes-pj-hub-contact__list {
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.oes-pj-hub-contact__list li {
  position: relative;
  padding-left: 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--pj-muted);
}
.oes-pj-hub-contact__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pj-blue);
}
.oes-pj-hub-contact__list strong {
  color: var(--pj-ink);
  font-weight: 700;
}
.oes-pj-hub-contact__list a {
  color: var(--pj-blue);
  font-weight: 600;
  text-decoration: none;
}
.oes-pj-hub-contact__list a:hover {
  text-decoration: underline;
}
.oes-pj-hub-contact__note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--pj-muted);
  line-height: 1.45;
}

/* CF7 w hubie */
.oes-pj-hub-contact .wpcf7 { margin: 0; }
.oes-pj-hub-contact .wpcf7-form { margin: 0; }
.oes-pj-hub-contact .wpcf7-form p { margin: 0 0 0.85rem; }
.oes-pj-hub-contact .wpcf7-form br { display: none; }
.oes-pj-hub-contact .wpcf7-form-control-wrap { display: block; margin-top: 0.3rem; }
.oes-pj-hub-contact .hidden-fields-container,
.oes-pj-hub-contact fieldset.hidden-fields-container,
.oes-pj-hub-contact .wpcf7-honeypot,
.oes-pj-hub-contact .hp-message {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}
.oes-pj-hub-contact label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pj-ink);
}
.oes-pj-hub-contact .oes-form__req { color: var(--pj-red); }
.oes-pj-hub-contact .oes-form__optional {
  font-weight: 500;
  color: var(--pj-muted);
  font-size: 0.78rem;
}
.oes-pj-hub-contact .oes-form__row {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 560px) {
  .oes-pj-hub-contact .oes-form__row--2 { grid-template-columns: 1fr 1fr; }
}
.oes-pj-hub-contact input[type="text"],
.oes-pj-hub-contact input[type="email"],
.oes-pj-hub-contact input[type="tel"],
.oes-pj-hub-contact select,
.oes-pj-hub-contact textarea {
  width: 100%;
  padding: 0.58rem 0.7rem;
  border: 1px solid var(--pj-line);
  border-radius: 10px;
  font: inherit;
  font-size: 0.9rem;
  color: var(--pj-ink);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.oes-pj-hub-contact select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--pj-blue) 50%),
    linear-gradient(135deg, var(--pj-blue) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% + 2px), calc(100% - 11px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}
.oes-pj-hub-contact input:focus,
.oes-pj-hub-contact select:focus,
.oes-pj-hub-contact textarea:focus {
  outline: none;
  border-color: rgba(0, 84, 187, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 84, 187, 0.12);
}
.oes-pj-hub-contact textarea { min-height: 6.5rem; resize: vertical; }
.oes-pj-hub-contact .oes-form__field--rodo .wpcf7-list-item { margin: 0; }
.oes-pj-hub-contact .oes-form__field--rodo label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-weight: 500;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--pj-muted);
}
.oes-pj-hub-contact .oes-form__field--rodo input { margin-top: 0.2rem; flex-shrink: 0; }
.oes-pj-hub-contact .oes-form__field--rodo a {
  color: var(--pj-blue);
  font-weight: 600;
}
.oes-pj-hub-contact .wpcf7-submit,
.oes-pj-hub-contact input.oes-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--pj-red) !important;
  color: #fff !important;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(184, 61, 64, 0.28);
}
.oes-pj-hub-contact .wpcf7-submit:hover,
.oes-pj-hub-contact input.oes-form__submit:hover {
  background: #9e3336 !important;
}
.oes-pj-hub-contact .wpcf7-not-valid-tip {
  margin-top: 0.25rem;
  font-size: 0.76rem;
  color: var(--pj-red);
}
.oes-pj-hub-contact .wpcf7-response-output {
  margin: 0.85rem 0 0;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  font-size: 0.84rem;
}
.oes-pj-hub-contact .wpcf7 form.sent .wpcf7-response-output {
  border: 1px solid rgba(13, 122, 72, 0.35);
  background: rgba(13, 122, 72, 0.08);
  color: #0d5c3a;
}
.oes-pj-hub-contact .wpcf7 form.invalid .wpcf7-response-output,
.oes-pj-hub-contact .wpcf7 form.failed .wpcf7-response-output {
  border: 1px solid rgba(184, 61, 64, 0.35);
  background: rgba(184, 61, 64, 0.08);
  color: #8a2b2e;
}
.oes-pj-hub-contact .wpcf7-spinner { margin-left: 0.5rem; }
