/* PrawoFirma — Corporate Legal Styles */
:root {
  --pf-red: #c62828;
  --pf-red-dark: #8e0000;
  --pf-blue: #1565c0;
  --pf-blue-dark: #003c8f;
  --pf-white: #ffffff;
  --pf-gray-50: #f8f9fa;
  --pf-gray-100: #f1f3f5;
  --pf-gray-200: #e9ecef;
  --pf-gray-300: #dee2e6;
  --pf-gray-600: #6c757d;
  --pf-gray-800: #343a40;
  --pf-gray-900: #212529;
  --pf-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --pf-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --pf-radius: 4px;
  --pf-radius-pill: 50px;
  --pf-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pf-max-width: 1200px;
  --pf-header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--pf-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--pf-gray-800);
  background: var(--pf-white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--pf-blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--pf-blue-dark);
}

ul {
  list-style: none;
}

.pf-container {
  max-width: var(--pf-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header — Split Layout */
.pf-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--pf-white);
  border-bottom: 2px solid var(--pf-gray-200);
  height: var(--pf-header-height);
}

.pf-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  max-width: var(--pf-max-width);
  margin: 0 auto;
  padding: 0 24px;
  gap: 16px;
}

.pf-header__logo {
  justify-self: start;
}

.pf-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--pf-gray-900);
  text-decoration: none;
}

.pf-logo:hover {
  color: var(--pf-red);
}

.pf-logo__icon {
  width: 36px;
  height: 36px;
  background: var(--pf-red);
  color: var(--pf-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: var(--pf-radius);
}

.pf-logo__accent {
  color: var(--pf-blue);
}

.pf-nav-pill {
  justify-self: center;
  display: flex;
  align-items: center;
  background: var(--pf-gray-100);
  border: 1px solid var(--pf-gray-200);
  border-radius: var(--pf-radius-pill);
  padding: 4px;
  gap: 2px;
}

.pf-nav-pill__link {
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--pf-gray-800);
  border-radius: var(--pf-radius-pill);
  transition: background 0.2s, color 0.2s;
}

.pf-nav-pill__link:hover,
.pf-nav-pill__link--active {
  background: var(--pf-white);
  color: var(--pf-red);
  box-shadow: var(--pf-shadow);
}

.pf-header__cta {
  justify-self: end;
}

.pf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: var(--pf-radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.pf-btn--primary {
  background: var(--pf-red);
  color: var(--pf-white);
}

.pf-btn--primary:hover {
  background: var(--pf-red-dark);
  color: var(--pf-white);
}

.pf-btn--secondary {
  background: var(--pf-blue);
  color: var(--pf-white);
}

.pf-btn--secondary:hover {
  background: var(--pf-blue-dark);
  color: var(--pf-white);
}

.pf-btn--outline {
  background: transparent;
  color: var(--pf-blue);
  border: 2px solid var(--pf-blue);
}

.pf-btn--outline:hover {
  background: var(--pf-blue);
  color: var(--pf-white);
}

.pf-btn--lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* Mobile menu toggle */
.pf-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--pf-gray-800);
  cursor: pointer;
  padding: 8px;
}

/* Hero */
.pf-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: var(--pf-gray-900);
  overflow: hidden;
}

.pf-hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.pf-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(198, 40, 40, 0.85) 0%, rgba(21, 101, 192, 0.75) 100%);
}

.pf-hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--pf-max-width);
  margin: 0 auto;
  padding: 80px 24px;
  color: var(--pf-white);
}

.pf-hero__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--pf-radius);
  margin-bottom: 20px;
}

.pf-hero__title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 700px;
}

.pf-hero__text {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 560px;
  margin-bottom: 32px;
}

.pf-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.pf-hero__actions .pf-btn--outline {
  border-color: var(--pf-white);
  color: var(--pf-white);
}

.pf-hero__actions .pf-btn--outline:hover {
  background: var(--pf-white);
  color: var(--pf-red);
}

/* Page hero (inner pages) */
.pf-page-hero {
  background: linear-gradient(135deg, var(--pf-red) 0%, var(--pf-blue) 100%);
  color: var(--pf-white);
  padding: 56px 0;
}

.pf-page-hero__title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.pf-page-hero__subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
}

/* Sections */
.pf-section {
  padding: 72px 0;
}

.pf-section--gray {
  background: var(--pf-gray-50);
}

.pf-section__header {
  text-align: center;
  margin-bottom: 48px;
}

.pf-section__label {
  display: inline-block;
  color: var(--pf-red);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.pf-section__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pf-gray-900);
  margin-bottom: 12px;
}

.pf-section__desc {
  color: var(--pf-gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* Cards grid */
.pf-grid {
  display: grid;
  gap: 28px;
}

.pf-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.pf-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.pf-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.pf-card {
  background: var(--pf-white);
  border: 1px solid var(--pf-gray-200);
  border-radius: var(--pf-radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.pf-card:hover {
  box-shadow: var(--pf-shadow-lg);
  transform: translateY(-2px);
}

.pf-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.pf-card__body {
  padding: 24px;
}

.pf-card__icon {
  width: 48px;
  height: 48px;
  background: var(--pf-blue);
  color: var(--pf-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--pf-radius);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.pf-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pf-gray-900);
  margin-bottom: 10px;
}

.pf-card__text {
  color: var(--pf-gray-600);
  font-size: 0.95rem;
}

/* Service card */
.pf-service-card {
  padding: 32px;
  border-left: 4px solid var(--pf-red);
}

.pf-service-card__icon {
  background: var(--pf-red);
}

/* Stats */
.pf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 48px 0;
}

.pf-stat {
  text-align: center;
  padding: 24px;
  background: var(--pf-white);
  border: 1px solid var(--pf-gray-200);
  border-radius: var(--pf-radius);
}

.pf-stat__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--pf-red);
  line-height: 1;
  margin-bottom: 8px;
}

.pf-stat__label {
  font-size: 0.9rem;
  color: var(--pf-gray-600);
  font-weight: 500;
}

/* HR Risk Audit */
.pf-audit {
  background: var(--pf-white);
  border: 2px solid var(--pf-gray-200);
  border-radius: var(--pf-radius);
  overflow: hidden;
}

.pf-audit__header {
  background: linear-gradient(90deg, var(--pf-red), var(--pf-blue));
  color: var(--pf-white);
  padding: 28px 32px;
}

.pf-audit__header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.pf-audit__body {
  padding: 32px;
}

.pf-audit__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.pf-audit__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--pf-gray-50);
  border: 1px solid var(--pf-gray-200);
  border-radius: var(--pf-radius);
  cursor: pointer;
  transition: border-color 0.2s;
}

.pf-audit__item:hover {
  border-color: var(--pf-blue);
}

.pf-audit__item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--pf-red);
  flex-shrink: 0;
  cursor: pointer;
}

.pf-audit__item label {
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.5;
}

.pf-audit__result {
  display: none;
  padding: 24px;
  border-radius: var(--pf-radius);
  margin-top: 8px;
}

.pf-audit__result--visible {
  display: block;
}

.pf-audit__result--low {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
}

.pf-audit__result--medium {
  background: #fff3e0;
  border: 1px solid #ffcc80;
}

.pf-audit__result--high {
  background: #ffebee;
  border: 1px solid #ef9a9a;
}

.pf-audit__score {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.pf-audit__result--low .pf-audit__score {
  color: #2e7d32;
}

.pf-audit__result--medium .pf-audit__score {
  color: #e65100;
}

.pf-audit__result--high .pf-audit__score {
  color: var(--pf-red);
}

.pf-audit__recommendation {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* About block */
.pf-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.pf-about-grid__img {
  border-radius: var(--pf-radius);
  box-shadow: var(--pf-shadow-lg);
}

/* Team */
.pf-team-card {
  text-align: center;
  padding: 32px 24px;
}

.pf-team-card__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid var(--pf-blue);
}

.pf-team-card__name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pf-team-card__role {
  color: var(--pf-red);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* Contact */
.pf-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.pf-contact-info__item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.pf-contact-info__icon {
  width: 44px;
  height: 44px;
  background: var(--pf-blue);
  color: var(--pf-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--pf-radius);
  flex-shrink: 0;
}

.pf-contact-info__label {
  font-size: 0.8rem;
  color: var(--pf-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.pf-contact-info__value {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--pf-gray-900);
}

.pf-contact-info__value a {
  color: var(--pf-gray-900);
}

.pf-contact-info__value a:hover {
  color: var(--pf-red);
}

/* Form */
.pf-form {
  background: var(--pf-white);
  border: 1px solid var(--pf-gray-200);
  border-radius: var(--pf-radius);
  padding: 32px;
}

.pf-form__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--pf-gray-900);
}

.pf-form__group {
  margin-bottom: 20px;
}

.pf-form__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pf-gray-800);
  margin-bottom: 6px;
}

.pf-form__input,
.pf-form__textarea,
.pf-form__select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--pf-gray-300);
  border-radius: var(--pf-radius);
  font-family: var(--pf-font);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.pf-form__input:focus,
.pf-form__textarea:focus,
.pf-form__select:focus {
  outline: none;
  border-color: var(--pf-blue);
}

.pf-form__textarea {
  min-height: 120px;
  resize: vertical;
}

.pf-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--pf-gray-600);
}

.pf-form__checkbox input {
  margin-top: 3px;
  accent-color: var(--pf-red);
}

.pf-form__success {
  display: none;
  padding: 16px;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: var(--pf-radius);
  color: #2e7d32;
  font-weight: 500;
  margin-top: 16px;
}

.pf-form__success--visible {
  display: block;
}

/* Privacy content */
.pf-privacy {
  max-width: 800px;
  margin: 0 auto;
}

.pf-privacy h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pf-gray-900);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--pf-red);
}

.pf-privacy h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--pf-blue);
}

.pf-privacy p,
.pf-privacy li {
  margin-bottom: 12px;
  color: var(--pf-gray-800);
}

.pf-privacy ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.pf-privacy__updated {
  font-size: 0.9rem;
  color: var(--pf-gray-600);
  margin-bottom: 24px;
}

/* Footer */
.pf-footer {
  background: var(--pf-gray-900);
  color: var(--pf-gray-300);
  padding: 56px 0 24px;
}

.pf-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.pf-footer__brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--pf-white);
  margin-bottom: 12px;
}

.pf-footer__text {
  font-size: 0.9rem;
  line-height: 1.7;
}

.pf-footer__heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pf-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.pf-footer__links li {
  margin-bottom: 8px;
}

.pf-footer__links a {
  color: var(--pf-gray-300);
  font-size: 0.9rem;
}

.pf-footer__links a:hover {
  color: var(--pf-white);
}

.pf-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* Cookie banner */
.pf-cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--pf-gray-900);
  color: var(--pf-white);
  padding: 20px 24px;
  display: none;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.pf-cookie--visible {
  display: block;
}

.pf-cookie__inner {
  max-width: var(--pf-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.pf-cookie__text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
  min-width: 280px;
}

.pf-cookie__text a {
  color: var(--pf-blue);
  text-decoration: underline;
}

.pf-cookie__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.pf-cookie__btn {
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  border-radius: var(--pf-radius);
  cursor: pointer;
}

.pf-cookie__btn--accept {
  background: var(--pf-red);
  color: var(--pf-white);
}

.pf-cookie__btn--decline {
  background: transparent;
  color: var(--pf-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* CTA banner */
.pf-cta-banner {
  background: linear-gradient(90deg, var(--pf-red), var(--pf-blue));
  color: var(--pf-white);
  padding: 56px 0;
  text-align: center;
}

.pf-cta-banner__title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.pf-cta-banner__text {
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Process steps */
.pf-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pf-step {
  text-align: center;
  padding: 24px 16px;
}

.pf-step__number {
  width: 48px;
  height: 48px;
  background: var(--pf-red);
  color: var(--pf-white);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--pf-radius);
  margin: 0 auto 16px;
}

.pf-step__title {
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--pf-gray-900);
}

.pf-step__text {
  font-size: 0.9rem;
  color: var(--pf-gray-600);
}

/* Map placeholder */
.pf-map {
  width: 100%;
  height: 300px;
  background: var(--pf-gray-200);
  border-radius: var(--pf-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pf-gray-600);
  font-size: 0.95rem;
  border: 1px solid var(--pf-gray-300);
}

/* Responsive */
@media (max-width: 1024px) {
  .pf-grid--3,
  .pf-grid--4,
  .pf-stats,
  .pf-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .pf-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pf-header__inner {
    grid-template-columns: 1fr auto;
  }

  .pf-nav-pill {
    display: none;
    position: absolute;
    top: var(--pf-header-height);
    left: 0;
    right: 0;
    background: var(--pf-white);
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--pf-gray-200);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--pf-shadow-lg);
  }

  .pf-nav-pill--open {
    display: flex;
  }

  .pf-nav-pill__link {
    width: 100%;
    text-align: center;
    border-radius: var(--pf-radius);
  }

  .pf-header__cta {
    display: none;
  }

  .pf-menu-toggle {
    display: block;
    justify-self: end;
  }

  .pf-hero__title {
    font-size: 2rem;
  }

  .pf-grid--2,
  .pf-grid--3,
  .pf-grid--4,
  .pf-about-grid,
  .pf-contact-grid,
  .pf-stats,
  .pf-steps {
    grid-template-columns: 1fr;
  }

  .pf-footer__grid {
    grid-template-columns: 1fr;
  }

  .pf-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}
