/* =============================================================
   BizBEST — Professional Design System v2
   Paleta: Granat #1B2A4A · Pomarańcz #E8731A
   Fonty: Montserrat + Inter
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

/* ======================== RESET & ZMIENNE ======================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:         #1B2A4A;
  --navy-dark:    #0f1c33;
  --navy-mid:     #243459;
  --orange:       #E8731A;
  --orange-hover: #cf620e;
  --orange-light: #fdf0e6;
  --white:        #FFFFFF;
  --gray-50:      #F8F9FA;
  --gray-100:     #F1F3F5;
  --gray-200:     #E9ECEF;
  --gray-400:     #ADB5BD;
  --gray-600:     #6C757D;
  --gray-800:     #343A40;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:    0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);
  --shadow-navy:  0 8px 32px rgba(27,42,74,.25);
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    32px;
  --max-w:        1180px;
  --pad-section:  96px;
  --transition:   .22s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ======================== TYPOGRAFIA ======================== */
h1,h2,h3,h4,h5 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.375rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

p { color: var(--gray-600); line-height: 1.75; }

.eyebrow, .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.eyebrow::before, .badge::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

/* ======================== LAYOUT ======================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--pad-section) 0; }
.section-sm { padding: 64px 0; }
.section-white { background: var(--white); }
.section-gray { background: var(--gray-50); }
.section-navy { background: var(--navy); }
.section-navy-dark { background: var(--navy-dark); }

.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; max-width: 660px; margin-left: auto; margin-right: auto; }
.section-header p { margin-top: .875rem; font-size: 1.05rem; }

/* Grids */
.grid { display: grid; gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 28px; }

/* ======================== BUTTONS ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .9375rem;
  border-radius: var(--radius-sm);
  padding: 14px 30px;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { flex-shrink: 0; }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  box-shadow: 0 4px 14px rgba(232,115,26,.35);
}
.btn-primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  box-shadow: 0 6px 20px rgba(232,115,26,.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-ghost-white {
  background: rgba(255,255,255,.1);
  color: var(--white);
  border-color: rgba(255,255,255,.35);
  backdrop-filter: blur(8px);
}
.btn-ghost-white:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 22px; font-size: .875rem; }
.btn-lg { padding: 18px 40px; font-size: 1rem; }

.btn-white {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  box-shadow: 0 4px 14px rgba(232,115,26,.35);
}
.btn-white:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* Arrow button link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: .875rem;
  font-weight: 700;
  color: var(--orange);
  transition: gap var(--transition);
}
.link-arrow:hover { gap: 12px; }

/* ======================== NAVBAR ======================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 88px;
  gap: 48px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
/* Nav logo – wycentrowane w pionie, +30% (56 -> 73px), pasek 88px */
.navbar .logo img { height: 73px; max-width: none !important; width: auto; }
/* Footer logo – x2 (44 -> 88px) */
.footer-logo img { height: 88px !important; max-width: none !important; width: auto; }
.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-mark svg { width: 20px; height: 20px; }
.logo-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -.02em;
}
.logo-name span { color: var(--orange); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}
.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: color var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-dropdown > a svg { width: 14px; height: 14px; transition: transform var(--transition); }
.nav-dropdown:hover > a svg { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition);
  transform: translateX(-50%) translateY(-8px);
}
.nav-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: var(--gray-800) !important;
  transition: background var(--transition);
}
.dropdown a::after { display: none !important; }
.dropdown a:hover { background: var(--gray-50); }
.dropdown-icon {
  width: 32px; height: 32px;
  background: var(--orange-light);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dropdown-icon svg { width: 16px; height: 16px; stroke: var(--orange); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.nav-cta { margin-left: auto; flex-shrink: 0; }

/* ===== DROPDOWN NAV ===== */
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 8px 32px rgba(27,42,74,.13);
  border-radius: 10px;
  padding: .5rem 0;
  min-width: 190px;
  z-index: 200;
  border: 1px solid rgba(27,42,74,.08);
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li { list-style: none; }
.nav-dropdown-menu li a {
  display: block;
  padding: .55rem 1.25rem;
  color: var(--navy);
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color .15s, background .15s;
  text-decoration: none;
}
.nav-dropdown-menu li a:hover {
  color: var(--orange);
  background: var(--gray-50);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--gray-200);
  padding: 16px 0;
}
.mobile-menu.open { display: block; }
.mobile-menu > .container > a {
  display: block;
  padding: 10px 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--gray-100);
}
.mobile-menu > .container > a:last-child { border-bottom: none; }
.mobile-menu .sub {
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-600);
  padding-left: 40px;
}

/* Mobile submenu (Usługi → dropdown) */
.mobile-submenu {
  border-bottom: 1px solid var(--gray-100);
}
.mobile-submenu-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-submenu-toggle svg {
  flex-shrink: 0;
  transition: transform var(--transition);
}
.mobile-submenu.open .mobile-submenu-toggle { color: var(--orange); }
.mobile-submenu.open .mobile-submenu-toggle svg { transform: rotate(180deg); }
.mobile-submenu-items { display: none; background: var(--gray-50); }
.mobile-submenu.open .mobile-submenu-items { display: block; }
.mobile-submenu-items a {
  display: block;
  padding: 9px 24px 9px 40px;
  font-family: 'Montserrat', sans-serif;
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
  transition: color var(--transition), background var(--transition);
}
.mobile-submenu-items a:last-child { border-bottom: none; }
.mobile-submenu-items a:hover { color: var(--orange); background: var(--orange-light); }

/* Hamburger animacja → X gdy menu otwarte */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ======================== HERO ======================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center 30%;
  opacity: .22;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(15,28,51,.97) 0%,
    rgba(15,28,51,.85) 45%,
    rgba(15,28,51,.4) 100%
  );
}

/* Geometric accent */
.hero-shape {
  position: absolute;
  right: -80px;
  top: -80px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  border: 120px solid rgba(232,115,26,.06);
  pointer-events: none;
}
.hero-shape-2 {
  position: absolute;
  right: 120px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 60px solid rgba(232,115,26,.05);
  pointer-events: none;
}
.hero-dot-grid {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 360px;
  height: 360px;
  opacity: .12;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.7) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 80px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,115,26,.15);
  border: 1px solid rgba(232,115,26,.3);
  color: #f5922a;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero-lead {
  font-size: 1.125rem;
  color: rgba(255,255,255,.75);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Trust bar */
.hero-trust {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem 2rem;
  align-items: start;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,.72);
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.45;
}
.trust-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.trust-icon svg { width: 16px; height: 16px; stroke: var(--orange); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ======================== PAGE HERO (podstrony) ======================== */
.page-hero {
  background: var(--navy);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  opacity: .08;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 600px; }
.page-hero.center { text-align: center; }
.page-hero.center p { margin: 0 auto; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.5); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb-sep { color: rgba(255,255,255,.3); }
.breadcrumb-current { color: var(--orange); font-weight: 600; }

/* ======================== CARDS ======================== */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Feature card */
.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  transition: all var(--transition);
  border-bottom: 3px solid transparent;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--orange);
}

.icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.icon-wrap.navy { background: var(--navy); }
.icon-wrap.orange { background: var(--orange-light); }
.icon-wrap svg { width: 24px; height: 24px; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-wrap.navy svg { stroke: var(--white); }
.icon-wrap.orange svg { stroke: var(--orange); }

.feature-card h3 { margin-bottom: .5rem; }
.feature-card p { font-size: .9375rem; margin: 0; }

/* Service card */
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.service-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(27,42,74,.1), rgba(27,42,74,.55));
}
.service-card-img-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--orange);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}
.service-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card h3 { margin-bottom: .625rem; }
.service-card p { font-size: .9375rem; flex: 1; margin-bottom: 1.5rem; }

/* ======================== STATS BAND ======================== */
.stats-band {
  background: var(--navy);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -.02em;
  display: block;
}
.stat-number span { color: var(--orange); }
.stat-label {
  margin-top: .5rem;
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  font-weight: 500;
}

/* ======================== FORMULA SECTION ======================== */
.formula-section { background: var(--navy-dark); padding: var(--pad-section) 0; }
.formula-section .section-header h2 { color: var(--white); }
.formula-section .section-header p { color: rgba(255,255,255,.65); }

.formula-steps {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr 48px 1fr;
  align-items: center;
  gap: 8px;
}
.formula-step {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
}
.formula-step:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.formula-step.highlight {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 8px 32px rgba(232,115,26,.4);
}
.formula-step-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius-md);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.formula-step-icon svg { width: 28px; height: 28px; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; stroke: var(--white); }
.formula-step:not(.highlight) .formula-step-icon { background: rgba(255,255,255,.08); }
.formula-step.highlight .formula-step-icon { background: rgba(255,255,255,.2); }

.formula-step h3 { color: var(--white); font-size: 1rem; margin-bottom: .375rem; }
.formula-step p { color: rgba(255,255,255,.65); font-size: .8125rem; margin: 0; line-height: 1.5; }
.formula-step.highlight p { color: rgba(255,255,255,.85); }

.formula-op {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: rgba(255,255,255,.3);
}
.formula-op.eq { color: var(--orange); font-size: 1.75rem; }

.formula-footer {
  margin-top: 3rem;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.formula-footer p { color: rgba(255,255,255,.6); font-size: .9375rem; }

/* ======================== TESTIMONIALS ======================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  position: relative;
  transition: all var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -8px;
  left: 24px;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--orange);
  opacity: .2;
}
.stars { color: var(--orange); font-size: 1rem; letter-spacing: 1px; margin-bottom: 1rem; }
.testimonial-text { color: var(--gray-600); font-size: .9375rem; font-style: italic; line-height: 1.75; margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: .875rem;
  color: var(--white);
  flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: .9375rem; color: var(--navy); line-height: 1.2; }
.author-role { font-size: .8125rem; color: var(--gray-600); }

/* ======================== CTA SECTION ======================== */
.cta-section {
  background: var(--navy);
  padding: var(--pad-section) 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-section::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,115,26,.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; position: relative; }
.cta-section > .container > p { color: rgba(255,255,255,.72); max-width: 540px; margin: 0 auto 2.5rem; font-size: 1.05rem; position: relative; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; margin-top: 2rem; }
.cta-content { position: relative; z-index: 1; }
.cta-meta {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  position: relative;
}
.cta-meta-item { color: rgba(255,255,255,.55); font-size: .875rem; }
.cta-meta-item a { color: rgba(255,255,255,.7); }
.cta-meta-item a:hover { color: var(--orange); }

/* ======================== BLOG ======================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.blog-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.blog-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.5));
}

.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: .75rem; }
.blog-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-light);
  padding: 3px 10px;
  border-radius: 100px;
}
.blog-card h3 { font-size: 1.0625rem; margin-bottom: .625rem; line-height: 1.4; }
.blog-card p { font-size: .875rem; flex: 1; color: var(--gray-600); margin-bottom: 1.25rem; }
.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
  margin-top: auto;
}
.blog-meta { font-size: .8125rem; color: var(--gray-400); }

/* ======================== CONTACT ======================== */
.contact-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }

.contact-aside h2 { margin-bottom: 1rem; }
.contact-aside > p { color: var(--gray-600); margin-bottom: 2rem; }

.contact-details { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.contact-detail-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-detail-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 20px; height: 20px; stroke: var(--orange); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-detail-item h4 { font-size: .8125rem; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.contact-detail-item p { color: var(--navy); font-weight: 600; margin: 0; font-size: .9375rem; }
.contact-detail-item a { color: var(--navy); }
.contact-detail-item a:hover { color: var(--orange); }

.contact-process {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.contact-process h4 { margin-bottom: 1rem; }
.process-steps { display: flex; flex-direction: column; gap: .875rem; }
.process-step { display: flex; align-items: flex-start; gap: 12px; }
.process-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: .75rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.process-step p { margin: 0; font-size: .875rem; color: var(--gray-600); }

/* Contact form card */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  border: 1px solid var(--gray-200);
}
.contact-form-card h3 { margin-bottom: .375rem; }
.contact-form-card > p { font-size: .9375rem; margin-bottom: 2rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 1.125rem; }
.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: .3px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: .9375rem;
  color: var(--navy);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(232,115,26,.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }
.form-group textarea { resize: vertical; min-height: 130px; }

.form-checkbox { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 1.5rem; }
.form-checkbox input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--orange);
  cursor: pointer;
}
.form-checkbox label { font-size: .8125rem; color: var(--gray-600); line-height: 1.6; cursor: pointer; }
.form-checkbox a { color: var(--orange); text-decoration: underline; }

/* ======================== CONTACT FORM 7 ======================== */
.cf7-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.cf7-field { margin-bottom: 1rem; }
.cf7-field label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .5rem;
}

/* CF7 pola formularza */
.cf7-field .wpcf7-form-control:not(.wpcf7-submit),
.cf7-field input[type="text"],
.cf7-field input[type="email"],
.cf7-field input[type="tel"],
.cf7-field select,
.cf7-field textarea {
  width: 100%;
  padding: .875rem 1rem;
  border: 2px solid #dde3ec;
  border-radius: 8px;
  font-size: .95rem;
  font-family: 'Inter', sans-serif;
  color: var(--navy);
  background: #fff;
  box-sizing: border-box;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.cf7-field .wpcf7-form-control:focus,
.cf7-field input:focus,
.cf7-field select:focus,
.cf7-field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(232,115,26,.12);
}
.cf7-field input::placeholder,
.cf7-field textarea::placeholder { color: var(--gray-400); }
.cf7-field select { appearance: auto; }
.cf7-field textarea { resize: vertical; min-height: 130px; }

/* CF7 - span wrappers (CF7 opakowuje inputy w span) */
.cf7-field .wpcf7-form-control-wrap { display: block; }

/* RODO checkbox */
.cf7-rodo {
  margin-bottom: 1.5rem;
  font-size: .825rem;
  color: var(--gray-600);
  line-height: 1.5;
}
.cf7-rodo .wpcf7-list-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin: 0;
}
.cf7-rodo .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.cf7-rodo input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
  cursor: pointer;
}

/* CF7 przycisk submit */
.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem;
  background: var(--orange);
  color: var(--white);
  border: 2px solid var(--orange);
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(232,115,26,.35);
  transition: all var(--transition);
}
.wpcf7-submit:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  box-shadow: 0 6px 20px rgba(232,115,26,.45);
  transform: translateY(-2px);
}

/* CF7 komunikaty odpowiedzi */
.wpcf7-response-output {
  border-radius: 12px !important;
  padding: 1rem 1.5rem !important;
  margin: 1rem 0 0 !important;
  font-size: .9rem;
}
.wpcf7 form.sent .wpcf7-response-output {
  background: #e8f5e9;
  border-color: #4caf50 !important;
  color: #2e7d32;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  background: #fff3e0;
  border-color: var(--orange) !important;
  color: #e65100;
}
.wpcf7 form.failed .wpcf7-response-output {
  background: #fce4ec;
  border-color: #e53935 !important;
  color: #b71c1c;
}

/* CF7 walidacja inline */
.wpcf7-not-valid { border-color: #e53935 !important; }
.wpcf7-not-valid-tip {
  color: #e53935;
  font-size: .8rem;
  margin-top: .25rem;
  display: block;
}

/* CF7 spinner */
.wpcf7-spinner { display: none; }

/* CF7 notatka */
.cf7-note {
  font-size: .8rem;
  color: var(--gray-600);
  margin-top: 1rem;
  text-align: center;
}

/* ======================== FOOTER ======================== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.6);
}

.footer-top {
  padding: 72px 0 56px;
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1.75fr;
  gap: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand {}
.footer-logo { margin-bottom: 1.25rem; }
.footer-brand p {
  font-size: .9rem;
  color: rgba(255,255,255,.45);
  line-height: 1.75;
  max-width: 280px;
  margin-bottom: 1.5rem;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: all var(--transition);
  font-size: .8125rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}
.footer-social a:hover { background: var(--orange); color: var(--white); }

.footer-col h5 {
  font-size: .75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: .625rem; }
.footer-links a { font-size: .9rem; color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-links a:hover { color: var(--orange); }

.footer-contact-list { display: flex; flex-direction: column; gap: 1rem; }
.footer-contact-item { display: flex; flex-direction: column; gap: .2rem; }
.footer-contact-item-icon {
  width: 32px; height: 32px;
  border-radius: 7px;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-contact-item-icon svg { width: 14px; height: 14px; stroke: var(--orange); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-contact-label { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.45); font-family: 'Montserrat', sans-serif; }
.footer-contact-item span:not(.footer-contact-label) { font-size: .9rem; color: rgba(255,255,255,.85); }
.footer-contact-item a { color: rgba(255,255,255,.85); font-size: .9rem; }
.footer-contact-item a:hover { color: var(--orange); }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8125rem;
  color: rgba(255,255,255,.3);
}
.footer-bottom a { color: rgba(255,255,255,.35); }
.footer-bottom a:hover { color: var(--orange); }
.footer-bottom-links { display: flex; gap: 24px; }

/* ======================== UTILITY ======================== */
.text-orange { color: var(--orange); }
.text-white { color: var(--white); }
.text-muted { color: var(--gray-400); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }

/* Separator */
.divider { width: 56px; height: 4px; background: var(--orange); border-radius: 4px; margin: 1.25rem 0; }
.divider.center { margin-left: auto; margin-right: auto; }

/* Blockquote */
blockquote {
  border-left: 4px solid var(--orange);
  padding: 1rem 1.5rem;
  background: var(--orange-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--gray-600);
  margin: 1.5rem 0;
}

/* Check list */
.check-list { display: flex; flex-direction: column; gap: .625rem; margin: 1rem 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9375rem;
  color: var(--gray-600);
  line-height: 1.6;
}
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 1px;
  background: var(--orange);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
}
.check-list li strong { color: var(--navy); }

/* Styled table */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  font-size: .9375rem;
}
.styled-table thead { background: var(--navy); }
.styled-table thead th {
  padding: 14px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--white);
  text-align: left;
}
.styled-table tbody tr { border-bottom: 1px solid var(--gray-200); }
.styled-table tbody tr:last-child { border-bottom: none; }
.styled-table tbody tr:hover { background: var(--gray-50); }
.styled-table tbody td { padding: 13px 20px; color: var(--gray-600); }
.styled-table tbody td:first-child { color: var(--navy); font-weight: 600; }

/* FAQ Accordion */
.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  margin-bottom: 12px;
}
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--orange);
  flex-shrink: 0;
  font-weight: 400;
  transition: transform var(--transition);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item[open] { border-color: var(--orange); }
.faq-body { padding: 0 1.5rem 1.25rem; color: var(--gray-600); font-size: .9375rem; line-height: 1.75; }

/* Newsletter */
.newsletter-box {
  background: var(--navy);
  border-radius: var(--radius-md);
  padding: 3rem;
  text-align: center;
  margin-top: 3rem;
}
.newsletter-box h3 { color: var(--white); margin-bottom: .625rem; }
.newsletter-box p { color: rgba(255,255,255,.65); margin-bottom: 1.75rem; }
.newsletter-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
  gap: 10px;
}
.newsletter-form input {
  flex: 1;
  padding: 13px 18px;
  border: 2px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: .9375rem;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form input:focus { border-color: var(--orange); }
.newsletter-note { font-size: .75rem; color: rgba(255,255,255,.35); margin-top: .75rem; }

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1024px) {
  :root { --pad-section: 72px; }
  .formula-steps { grid-template-columns: 1fr 36px 1fr 36px 1fr 36px 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.1); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  .formula-steps {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .formula-op { transform: rotate(90deg); height: 36px; }
  .formula-op.eq { transform: rotate(90deg); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --pad-section: 56px; }

  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .grid-2, .grid-3, .grid-4, .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cf7-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }
  .newsletter-form { flex-direction: column; }
  .cta-actions, .cta-buttons, .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-trust { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-bg { opacity: .15; }
  .hero-dot-grid { display: none; }
}

@media (max-width: 480px) {
  .page-hero { padding: 48px 0 40px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 2rem; }
  .contact-form-card { padding: 1.5rem; }
}
