/* Popup kontaktowy — strona główna */
.pc-contact-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(99, 102, 241, 0.55);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(16, 185, 129, 0.12));
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pc-contact-header-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(129, 140, 248, 0.75);
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.3);
}

.pc-contact-header-btn:focus-visible {
  outline: 2px solid rgba(129, 140, 248, 0.85);
  outline-offset: 2px;
}

.pc-contact-header-btn__ico {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

html.pc-light .pc-contact-header-btn {
  color: #0f172a;
  border-color: rgba(79, 70, 229, 0.45);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(16, 185, 129, 0.08));
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.12);
}

/* Mobile: wyłącznie ikona koperty — bez drugiego przycisku z napisem */
.pc-contact-header-btn--mobile {
  width: 2.5rem;
  height: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
  gap: 0;
}

@media (max-width: 1023px) {
  #site-header .pc-header-actions .pc-contact-header-btn {
    display: none !important;
  }
}

.pc-contact-popup {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
}

.pc-contact-popup[hidden] {
  display: none !important;
}

.pc-contact-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
}

.pc-contact-popup__dialog {
  position: relative;
  width: min(100%, 28rem);
  max-height: min(92dvh, 640px);
  overflow: auto;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 1.15rem 1.15rem 1rem;
}

html.pc-light .pc-contact-popup__dialog {
  background: linear-gradient(165deg, #ffffff, #f8fafc);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
}

.pc-contact-popup__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.pc-contact-popup__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #f8fafc;
}

html.pc-light .pc-contact-popup__title {
  color: #0f172a;
}

.pc-contact-popup__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}

.pc-contact-popup__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.pc-contact-popup__lead {
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #94a3b8;
}

html.pc-light .pc-contact-popup__lead {
  color: #475569;
}

.pc-contact-popup__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.pc-contact-popup__item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: #e2e8f0;
}

html.pc-light .pc-contact-popup__item {
  color: #1e293b;
}

.pc-contact-popup__item a {
  color: inherit;
  text-decoration: none;
}

.pc-contact-popup__item a:hover {
  color: #a5b4fc;
}

html.pc-light .pc-contact-popup__item a:hover {
  color: #4f46e5;
}

.pc-contact-popup__ico {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
  color: #818cf8;
}

.pc-contact-popup__social {
  margin: 0 0 1rem;
}

.pc-contact-popup__social .subpage-social__title {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.pc-contact-popup__social .subpage-social__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pc-contact-popup__cta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pc-contact-popup__cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.pc-contact-popup__cta-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}

.pc-contact-popup__cta-primary:hover {
  filter: brightness(1.05);
}

.pc-contact-popup__cta-secondary {
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.04);
}

html.pc-light .pc-contact-popup__cta-secondary {
  color: #334155;
  background: #fff;
}
