/* ==========================================================================
   KPKB — Modern Studio & Bento-Box Design System
   Paleta: Biel, Czerń & #F4743B (Electric Orange / Modern Tangerine)
   Typografia: Outfit & Plus Jakarta Sans (Sentence Case)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

/* ── Tokeny Projektowe (Biel, Czerń & #F4743B) ── */
:root {
  /* Tło i Pudełka */
  --bg:           #ffffff;
  --bg-page:      #fafafa;
  --bg-card:      #ffffff;
  --bg-subtle:    #f4f4f5;
  --bg-dark:      #09090b;

  /* Granice i Cienie Pudełkowe */
  --border:       rgba(9, 9, 11, 0.08);
  --border-hover: rgba(244, 116, 59, 0.4);
  --border-orange:rgba(244, 116, 59, 0.35);
  
  --shadow-sm:    0 2px 8px rgba(9, 9, 11, 0.04);
  --shadow-card:  0 10px 30px -5px rgba(9, 9, 11, 0.05), 0 0 0 1px rgba(9, 9, 11, 0.06);
  --shadow-hover: 0 20px 40px -10px rgba(244, 116, 59, 0.2), 0 0 0 1px var(--orange-accent);
  --shadow-btn:   0 10px 24px -6px rgba(244, 116, 59, 0.45);

  /* Kolor Akcentujący: #F4743B */
  --orange-accent: #F4743B;
  --orange-dark:   #db581e;
  --orange-light:  #f79262;
  --orange-dim:    rgba(244, 116, 59, 0.08);
  --orange-gradient: linear-gradient(135deg, #F4743B 0%, #db581e 100%);
  --orange-glow:   radial-gradient(circle, rgba(244, 116, 59, 0.2) 0%, rgba(244, 116, 59, 0) 70%);

  /* Czerń & Szarości */
  --text:         #09090b;
  --text-sub:     #52525b;
  --text-muted:   #a1a1aa;

  /* Fonty */
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --sans:         'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Zaokrąglenia Pudełkowe */
  --r-sm:   8px;
  --r:      12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);

  accent-color: var(--orange-accent);
  color-scheme: light;
}

/* ── Reset & Modern Scrollbar ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-color: var(--orange-accent) var(--bg-subtle);
  scrollbar-width: thin;
}

body {
  font-family: var(--sans);
  background: var(--bg-page);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Typografia (Nowoczesna & Sentence Case) ── */
h1, h2, h3, h4, .hero-title, .section-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  text-wrap: balance;
  letter-spacing: -0.02em;
}

p {
  text-wrap: pretty;
}

.accent-orange { color: var(--orange-accent); }

/* ── Section Tag / Pill Badge ── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--orange-accent);
  background: var(--orange-dim);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(244, 116, 59, 0.2);
  margin-bottom: 16px;
}

/* ── Section Header ── */
.section-header {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-header h2 {
  font-size: clamp(2.1rem, 3.4vw, 2.9rem);
  margin-bottom: 16px;
  font-weight: 800;
}
.section-header p {
  color: var(--text-sub);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── Przyciski (#F4743B & Black Outline) ── */
.btn, .btn-orange, .btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  padding: 13px 26px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
  text-align: center;
}

.btn-orange {
  background: var(--orange-gradient);
  color: #ffffff;
  border: none;
  box-shadow: var(--shadow-btn);
}
.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(244, 116, 59, 0.55);
  color: #ffffff;
}
.btn-orange:active {
  transform: translateY(0);
}

.btn-outline-dark {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--text);
  box-shadow: var(--shadow-sm);
}
.btn-outline-dark:hover {
  background: var(--text);
  color: #ffffff;
  border-color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(9, 9, 11, 0.2);
}


/* ==========================================================================
   HEADER & NAWIGACJA
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.main-header.scrolled {
  box-shadow: 0 10px 30px -10px rgba(9, 9, 11, 0.08);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

/* Logo: Napis Kancelaria Prawna Karolina Bogusławska w dwóch rzędach czarnym fontem */
.brand-logo {
  display: inline-flex;
  text-decoration: none;
  transition: opacity 0.2s;
}
.brand-logo:hover {
  opacity: 0.85;
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.logo-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.logo-subtitle {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Nav Links */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.2s;
  padding: 6px 0;
  position: relative;
}
.nav-link:hover {
  color: var(--orange-accent);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--orange-accent);
  transition: width 0.3s var(--ease);
  border-radius: 2px;
}
.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-cta-item { display: none; }

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-toggle {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.35rem;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: var(--r);
}

/* ==========================================================================
   HERO SECTION (Biel, Czerń, #F4743B)
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(244, 116, 59, 0.1) 0%, rgba(250, 250, 250, 0) 60%);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(9, 9, 11, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-orange);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--orange-dark);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-accent);
  box-shadow: 0 0 0 3px rgba(244, 116, 59, 0.25);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

.hero-title {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.14;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.hero-accent {
  font-style: normal;
  color: var(--orange-accent);
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.stat-label {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ── Bento-box Hero Visual ── */
.hero-visual {
  position: relative;
}
.hero-bento-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-bento-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.hero-bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange-glow);
  opacity: 0;
  transition: opacity 0.3s;
}
.hero-bento-card:hover {
  transform: translateX(6px);
  border-color: var(--border-orange);
  box-shadow: var(--shadow-hover);
}
.hero-bento-card:hover::before {
  opacity: 1;
}

.bento-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-accent);
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(9, 9, 11, 0.15);
}
.bento-icon-wrap svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.bento-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.bento-text strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.bento-text span {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-top: 2px;
}
.bento-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--orange-dim);
  color: var(--orange-dark);
  white-space: nowrap;
}

.hero-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}
.hero-glow-orb--1 {
  width: 320px;
  height: 320px;
  background: rgba(244, 116, 59, 0.18);
  top: -10%;
  right: -10%;
}
.hero-glow-orb--2 {
  width: 260px;
  height: 260px;
  background: rgba(9, 9, 11, 0.08);
  bottom: -10%;
  left: 10%;
}

/* ==========================================================================
   SPECJALIZACJE (5 Pudełkowych Zakładek)
   ========================================================================== */
.practices-section {
  padding: 100px 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Segmented Tabs Nav */
.practice-tabs-nav {
  display: flex;
  gap: 8px;
  background: var(--bg-subtle);
  padding: 6px;
  border-radius: 100px;
  margin-bottom: 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.practice-tabs-nav::-webkit-scrollbar { display: none; }

.practice-tab-btn {
  flex: 1;
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: var(--text-sub);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.practice-tab-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.practice-tab-btn:hover {
  color: var(--text);
}
.practice-tab-btn.active {
  background: var(--bg-dark);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(9, 9, 11, 0.2);
}
.practice-tab-btn.active svg {
  fill: var(--orange-accent);
}

.practice-tab-pane {
  display: none;
  animation: fadeUp 0.35s var(--ease);
}
.practice-tab-pane.active {
  display: block;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.practice-details-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 56px;
  box-shadow: var(--shadow-card);
}

.practice-main-info h3 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.practice-main-info p {
  color: var(--text-sub);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 32px;
}

.practice-checklist {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  margin-bottom: 36px;
}
.practice-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}
.practice-checklist li svg {
  width: 18px;
  height: 18px;
  fill: var(--orange-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.practice-sidebar-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: var(--shadow-sm);
}
.sidebar-box-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.sidebar-box-desc {
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.6;
}
.case-metric {
  background: var(--orange-dim);
  border-left: 3px solid var(--orange-accent);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 12px 16px;
}
.case-metric-val {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--orange-dark);
  display: block;
}
.case-metric-label {
  font-size: 0.775rem;
  font-weight: 500;
  color: var(--text-sub);
  margin-top: 2px;
}

/* ==========================================================================
   NAWIGATOR PRAWNY
   ========================================================================== */
.assistant-section {
  padding: 100px 0;
  background: var(--bg-page);
}

.assistant-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 48px;
  box-shadow: var(--shadow-card);
}

.assistant-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.assistant-left h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.assistant-left p {
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 28px;
}

.case-selector-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-option-radio {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.case-option-radio:hover {
  border-color: var(--border-orange);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}
.case-option-radio.selected {
  background: #ffffff;
  border-color: var(--orange-accent);
  box-shadow: 0 6px 18px -2px rgba(244, 116, 59, 0.2);
}
.case-radio-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.case-radio-tag {
  font-size: 0.725rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--orange-dim);
  color: var(--orange-dark);
}

/* Prawy Panel Asystenta */
.assistant-right-panel {
  background: var(--bg-page);
  border: 1px solid var(--border-orange);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.panel-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange-dark);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.panel-header-badge svg { fill: var(--orange-accent); }

.path-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.path-details-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}
.path-detail-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.path-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-accent);
  flex-shrink: 0;
}
.path-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.path-value {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

/* ==========================================================================
   O KANCELARII
   ========================================================================== */
.about-section {
  padding: 100px 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.lawyer-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  box-shadow: var(--shadow-card);
  align-items: stretch;
}
.lawyer-photo-wrap {
  position: relative;
  min-height: 420px;
  background: var(--bg-subtle);
}
.lawyer-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.lawyer-details {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lawyer-title-group h3 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.lawyer-role {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--orange-accent);
  margin-bottom: 8px;
}
.lawyer-credentials-tag span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.lawyer-bio {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.75;
  margin-top: 20px;
}

/* ==========================================================================
   PROCES WSPÓŁPRACY & BEZPIECZEŃSTWO
   ========================================================================== */
.process-section {
  padding: 100px 0;
  background: var(--bg-page);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.process-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: all 0.3s var(--ease);
}
.process-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-orange);
  box-shadow: var(--shadow-hover);
}
.step-badge {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--orange-accent);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}
.process-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.process-card p {
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* Pasek bezpieczeństwa */
.security-banner {
  background: #ffffff;
  border: 1px solid var(--border-orange);
  border-radius: var(--r-lg);
  padding: 32px 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.security-icon-large {
  color: var(--orange-accent);
}
.security-text h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.security-text p {
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.6;
}
.security-badges-list {
  display: flex;
  gap: 10px;
}
.sec-pill {
  font-size: 0.775rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--orange-dim);
  color: var(--orange-dark);
  border: 1px solid rgba(244, 116, 59, 0.2);
  white-space: nowrap;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-section {
  padding: 100px 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0 24px;
  transition: all 0.25s var(--ease);
}
.faq-item.active {
  background: #ffffff;
  border-color: var(--border-orange);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--orange-accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  font-size: 0.9375rem;
  color: var(--text-sub);
  line-height: 1.75;
  padding: 0;
}
.faq-item.active .faq-answer {
  padding: 0 0 24px 0;
}

/* ==========================================================================
   KONTAKT & FORMULARZ
   ========================================================================== */
.contact-section {
  padding: 100px 0;
  background: var(--bg-page);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-info-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.contact-info-card h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.contact-intro {
  color: var(--text-sub);
  margin-top: 10px;
  margin-bottom: 28px;
  font-size: 0.95rem;
  line-height: 1.65;
}

.contact-direct-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.direct-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.direct-item:hover {
  border-color: var(--border-orange);
  box-shadow: var(--shadow-card);
}
.direct-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  background: var(--orange-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #09090b;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(244, 116, 59, 0.3);
}
.direct-icon svg { width: 20px; height: 20px; fill: #09090b; }
.direct-content h4 {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.direct-content a, .direct-content p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.direct-content a:hover {
  color: var(--orange-accent);
}

/* Karta z Mapą Google */
.contact-map-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 240px;
}
.contact-map-card:hover {
  border-color: var(--border-orange);
  box-shadow: var(--shadow-card);
}
.map-card-header {
  padding: 14px 20px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}
.map-card-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.map-card-header span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.map-iframe-wrap {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 180px;
  background: var(--bg-subtle);
}
.map-iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.map-card-footer {
  padding: 12px 20px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.map-directions-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.map-directions-link:hover {
  color: var(--orange-accent);
}

/* Pudełkowy Formularz */
.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 44px;
  box-shadow: var(--shadow-card);
}
.form-header { margin-bottom: 28px; }
.form-header h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.form-header p { font-size: 0.9rem; color: var(--text-sub); }

.form-group { margin-bottom: 18px; }
.form-group:has(.form-control:focus) .form-label { color: var(--orange-accent); }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.form-control {
  width: 100%;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.925rem;
  font-weight: 500;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--orange-accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(244, 116, 59, 0.18);
}
.form-control:user-invalid {
  border-color: #ef4444;
  background-color: rgba(239, 68, 68, 0.04);
}
.form-control:user-valid:not(:placeholder-shown) {
  border-color: #22c55e;
}
.form-control::placeholder { color: var(--text-muted); }

select.form-control { cursor: pointer; }
textarea.form-control {
  resize: vertical;
  min-height: 90px;
  field-sizing: content;
  max-height: 280px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.file-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--r);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 18px;
  background: var(--bg-page);
}
.file-upload-zone:hover, .file-upload-zone.dragover {
  border-color: var(--orange-accent);
  background: var(--orange-dim);
}
.file-upload-zone svg { width: 24px; height: 24px; color: var(--orange-accent); margin-bottom: 8px; }
.file-upload-text { font-size: 0.85rem; color: var(--text-sub); }
.file-upload-text span { color: var(--orange-dark); font-weight: 700; }
.file-list-preview { margin-top: 8px; font-size: 0.8rem; color: var(--orange-dark); display: none; font-weight: 600; }

.recaptcha-wrapper {
  margin: 18px 0;
  display: flex;
  justify-content: flex-start;
}

.form-consent-box {
  margin: 18px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.consent-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--text-sub);
  line-height: 1.55;
}
.consent-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--orange-accent);
  cursor: pointer;
  flex-shrink: 0;
}
.consent-text strong { color: var(--text); }
.consent-text a {
  color: var(--orange-accent);
  text-decoration: underline;
  font-weight: 600;
}
.consent-text a:hover {
  color: var(--orange-dark);
}
.gdpr-info-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 28px;
}

.form-status-alert {
  display: none;
  padding: 14px 16px;
  border-radius: var(--r);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 20px;
  align-items: center;
  gap: 10px;
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

/* ==========================================================================
   STOPKA
   ========================================================================== */
.main-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand p {
  color: var(--text-sub);
  font-size: 0.875rem;
  line-height: 1.65;
  margin: 18px 0;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange-accent); }
.footer-col li { font-size: 0.875rem; color: var(--text-sub); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.ethics-disclaimer {
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.6;
  font-size: 0.775rem;
}

/* ==========================================================================
   RESPONSYWNOŚĆ (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .practice-details-card { grid-template-columns: 1fr; padding: 32px; }
  .assistant-grid { grid-template-columns: 1fr; }
  .lawyer-card { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }
  .container {
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
  }


  /* Header & Mobilne Menu */
  .nav-content { height: 64px; position: relative; }
  .brand-logo { max-width: calc(100% - 50px); gap: 10px; }
  .logo-symbol { width: 38px; height: 38px; }
  .logo-title { font-size: 0.9rem; }
  .logo-subtitle { font-size: 0.75rem; }

  .header-cta-group .header-desktop-cta,
  .header-cta-group .btn-orange {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .main-nav { display: none; }
  .main-nav.mobile-active {
    display: block;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #ffffff;
    border-bottom: 2px solid var(--orange-accent);
    box-shadow: 0 16px 36px rgba(9, 9, 11, 0.12);
    padding: 20px 20px 24px;
    z-index: 1000;
  }
  .main-nav.mobile-active ul {
    flex-direction: column;
    gap: 10px;
  }
  .main-nav.mobile-active .nav-link {
    font-size: 0.95rem;
    padding: 8px 0;
    display: block;
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }
  .mobile-menu-cta-item {
    display: block;
    margin-top: 10px;
  }
  .mobile-menu-cta-item .btn-orange {
    display: flex !important;
  }

  /* Hero */
  .hero-section { padding: 36px 0 48px; }
  .hero-title { font-size: clamp(1.85rem, 6.8vw, 2.4rem); line-height: 1.18; }
  .hero-subtitle { font-size: 0.95rem; line-height: 1.65; margin-bottom: 24px; }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 28px;
  }
  .hero-actions .btn-orange,
  .hero-actions .btn-outline-dark {
    width: 100%;
    padding: 12px 16px;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 16px;
    text-align: center;
  }
  .stat-number { font-size: 1.45rem; }
  .stat-label { font-size: 0.68rem; }
  .stat-divider { display: none; }

  /* Specjalizacje */
  .practices-section { padding: 56px 0; }
  .practice-tabs-nav {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    border-radius: var(--r);
    padding: 4px;
    margin-bottom: 24px;
  }
  .practice-tab-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
  .practice-details-card { padding: 24px 16px; border-radius: var(--r-lg); }
  .practice-main-info h3 { font-size: 1.45rem; }
  .practice-checklist { grid-template-columns: 1fr; gap: 10px; margin-bottom: 24px; }
  .practice-sidebar-box { padding: 20px 16px; }

  /* Nawigator */
  .assistant-section { padding: 56px 0; }
  .assistant-card { padding: 20px 14px; border-radius: var(--r-lg); }
  .case-option-radio {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 14px;
  }
  .case-radio-tag { align-self: flex-start; }
  .assistant-right-panel { padding: 20px 14px; }
  .path-title { font-size: 1.25rem; }

  /* O Kancelarii */
  .about-section { padding: 56px 0; }
  .lawyer-photo-wrap { min-height: 260px; height: 260px; }
  .lawyer-details { padding: 20px 16px; }
  .vcard-btn { width: 100%; justify-content: center; }

  /* Proces & Bezpieczeństwo */
  .process-section { padding: 56px 0; }
  .process-grid { grid-template-columns: 1fr; gap: 12px; }
  .security-banner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px 16px;
    gap: 16px;
  }
  .security-icon-large { margin: 0 auto; }
  .security-badges-list { flex-direction: column; align-items: center; }
  .sec-pill { width: 100%; max-width: 280px; text-align: center; }

  /* FAQ */
  .faq-section { padding: 56px 0; }
  .faq-question { font-size: 0.95rem; }

  /* Kontakt */
  .contact-section { padding: 56px 0; }
  .contact-grid { gap: 32px; }
  .contact-form-card { padding: 24px 16px; border-radius: var(--r-lg); }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Stopka */
  .main-footer { padding: 48px 0 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ==========================================================================
   PERFORMANCE & ACCESSIBILITY (Google Modern Web Guidance)
   ========================================================================== */
.practices-section,
.assistant-section,
.about-section,
.process-section,
.faq-section,
.contact-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
