/* ============================================
   NA BŁYSK 24 — Design System
   Firma sprzątająca · Katowice
   ============================================ */

/*
 * Font „Inter" jest self-hostowany i rejestrowany w theme.json
 * (settings.typography.fontFamilies[].fontFace → src: file:./assets/fonts/...).
 * WordPress sam drukuje @font-face na froncie i w edytorze (wp_print_font_faces),
 * dlatego nie deklarujemy go tutaj. Brak @import / brak Google Fonts CDN
 * (zgodnie z RODO, bez render-blockingu).
 */

/* Fallback o metryce zbliżonej do Inter — eliminuje skok układu (CLS) przy swapie fontu. */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Helvetica');
  ascent-override: 90.00%;
  descent-override: 22.43%;
  line-gap-override: 0.00%;
  size-adjust: 107.40%;
}

/* ---------- CSS Variables ---------- */
:root {
  /* Primary palette */
  --blue-50:  #EBF5FF;
  --blue-100: #D6EBFF;
  --blue-200: #ADD6FF;
  --blue-300: #75B8FF;
  --blue-400: #4A9CFF;
  --blue-500: #2B7AE6;
  --blue-600: #1D5DBF;
  --blue-700: #164899;
  --blue-800: #103573;
  --blue-900: #0A224D;

  /* Neutrals */
  --gray-50:  #F7F9FB;
  --gray-100: #EEF2F6;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  /* Pastels / accents */
  --pastel-blue:   #E8F4FD;
  --pastel-green:  #E6F7ED;
  --pastel-amber:  #FFF8E1;
  --pastel-rose:   #FFF0F3;
  --pastel-violet: #F0EAFF;

  /* Semantic */
  --primary:     var(--blue-500);
  --primary-light: var(--blue-100);
  --primary-dark:  var(--blue-700);
  --surface:     #FFFFFF;
  --background:  var(--gray-50);
  --text:        var(--gray-800);
  --text-light:  var(--gray-500);
  --text-muted:  var(--gray-400);
  --border:      var(--gray-200);
  --border-light:var(--gray-100);

  /* Night service special */
  --night-bg:    #1A1F36;
  --night-blue:  #3D7BFF;
  --night-text:  #C8D6E5;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Typography */
  --font-sans: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  /* Radius */
  --radius-sm:  0.375rem;
  --radius-md:  0.5rem;
  --radius-lg:  0.75rem;
  --radius-xl:  1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.08);
  --shadow-xl:  0 12px 40px rgba(0,0,0,0.1);
  --shadow-blue: 0 4px 20px rgba(43,122,230,0.15);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1200px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text);
  background: var(--background);
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--gray-900);
}

h1 { font-size: var(--text-5xl); letter-spacing: -0.025em; }
h2 { font-size: var(--text-4xl); letter-spacing: -0.02em; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); font-weight: 600; }

p {
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--text-lg);
  color: var(--gray-600);
  line-height: 1.8;
}

.label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: 800px;
}

.container--wide {
  max-width: 1400px;
}

/* ---------- Header / Navigation ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--gray-900);
  text-decoration: none;
}

.logo__icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-lg);
}

.logo__text span {
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav__link {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--primary);
  background: var(--blue-50);
}

.nav__link--dropdown {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link--dropdown::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--transition-fast);
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-base);
  z-index: 100;
}

.nav__link--dropdown:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--gray-600);
  transition: all var(--transition-fast);
}

.nav__dropdown-item:hover {
  background: var(--blue-50);
  color: var(--primary);
}

.nav__dropdown-item .icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.nav__dropdown-item:hover .icon {
  background: var(--blue-100);
}

.nav__cta {
  margin-left: var(--space-sm);
}

/* Hamburger / mobile */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.hamburger:hover { background: var(--gray-100); }

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.625rem 1.5rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.5;
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: white;
  box-shadow: var(--shadow-blue);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  box-shadow: 0 6px 24px rgba(43,122,230,0.25);
  transform: translateY(-1px);
  color: white;
}

.btn--secondary {
  background: var(--surface);
  color: var(--gray-700);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  color: var(--gray-900);
}

.btn--ghost {
  background: transparent;
  color: var(--primary);
}

.btn--ghost:hover {
  background: var(--blue-50);
}

.btn--lg {
  padding: 0.875rem 2rem;
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn--sm {
  padding: 0.375rem 1rem;
  font-size: var(--text-xs);
}

.btn--icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ---------- Sections ---------- */
.section {
  padding: var(--space-4xl) 0;
}

.section--sm {
  padding: var(--space-3xl) 0;
}

.section--bg {
  background: var(--surface);
}

.section--blue {
  background: var(--pastel-blue);
}

.section--dark {
  background: var(--night-bg);
  color: var(--night-text);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #FFFFFF;
}

.section--dark p {
  color: var(--night-text);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}

.section__header .label {
  margin-bottom: var(--space-sm);
  display: block;
}

.section__header h2 {
  margin-bottom: var(--space-md);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--header-height) + var(--space-4xl));
  padding-bottom: var(--space-4xl);
  background: linear-gradient(175deg, var(--gray-50) 0%, var(--pastel-blue) 50%, var(--blue-50) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(43,122,230,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--surface);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.hero__badge .dot {
  width: 6px;
  height: 6px;
  background: var(--blue-400);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  margin-bottom: var(--space-lg);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .lead {
  margin-bottom: var(--space-2xl);
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
}

.hero__image-wrapper {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/3;
  background: var(--gray-200);
}

.hero__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__float-card {
  position: absolute;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  animation: float 6s ease-in-out infinite;
}

.hero__float-card--top {
  top: -36px;
  right: -16px;
}

.hero__float-card--bottom {
  bottom: -16px;
  left: -16px;
  animation-delay: -3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float-card__value {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--gray-900);
}

.float-card__label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- Stats bar ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
}

.stat {
  text-align: center;
  padding: var(--space-lg);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

.stat:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
}

.stat__number {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat__label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* ---------- Service Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-400), var(--blue-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-card:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

.service-card__icon--blue   { background: var(--pastel-blue); }
.service-card__icon--green  { background: var(--pastel-green); }
.service-card__icon--amber  { background: var(--pastel-amber); }
.service-card__icon--rose   { background: var(--pastel-rose); }
.service-card__icon--violet { background: var(--pastel-violet); }

.service-card h4 {
  margin-bottom: var(--space-sm);
}

.service-card p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-lg);
}

.service-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.service-card__link::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.service-card:hover .service-card__link::after {
  transform: translateX(4px);
}

/* ---------- Before / After ---------- */
.ba-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.ba-slider {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/10;
  cursor: col-resize;
  user-select: none;
}

.ba-slider__before,
.ba-slider__after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ba-slider__before img,
.ba-slider__after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-slider__before {
  clip-path: inset(0 50% 0 0);
  z-index: 2;
}

.ba-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 3;
  width: 4px;
  background: white;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
}

.ba-slider__handle::before {
  content: '⟨⟩';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  font-size: var(--text-sm);
  color: var(--gray-600);
  letter-spacing: 2px;
}

.ba-slider__label {
  position: absolute;
  bottom: var(--space-md);
  z-index: 4;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ba-slider__label--before { left: var(--space-md); }
.ba-slider__label--after  { right: var(--space-md); }

.ba-content h3 {
  margin-bottom: var(--space-md);
}

.ba-content .lead {
  margin-bottom: var(--space-lg);
}

.ba-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.ba-feature {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.ba-feature__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pastel-blue);
  border-radius: var(--radius-md);
  color: var(--primary);
  font-size: var(--text-lg);
}

.ba-feature__text h5 {
  margin-bottom: 2px;
  font-size: var(--text-sm);
  font-weight: 600;
}

.ba-feature__text p {
  font-size: var(--text-sm);
  margin: 0;
}

/* ---------- Night Service Section ---------- */
.night-service {
  position: relative;
  overflow: hidden;
}

.night-service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(61,123,255,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(61,123,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.night-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  position: relative;
}

.night-content .label {
  color: var(--night-blue);
}

.night-content h2 {
  margin-bottom: var(--space-lg);
}

.night-content .lead {
  color: var(--night-text);
  margin-bottom: var(--space-2xl);
}

.night-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.night-feature {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.night-feature:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(61,123,255,0.2);
}

.night-feature__icon {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.night-feature h5 {
  color: white;
  margin-bottom: var(--space-xs);
  font-size: var(--text-sm);
}

.night-feature p {
  font-size: var(--text-xs);
  color: var(--night-text);
  margin: 0;
}

.night-visual {
  text-align: center;
}

.night-clock {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 2px solid rgba(61,123,255,0.15);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.night-clock__time {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: white;
  font-family: var(--font-mono);
}

.night-clock__label {
  font-size: var(--text-sm);
  color: var(--night-blue);
  font-weight: 600;
  margin-top: var(--space-xs);
}

.night-clock__ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(61,123,255,0.1);
  animation: spin 60s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Pricing Table ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  position: relative;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-blue);
}

.pricing-card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-400), var(--blue-500));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.pricing-card__badge {
  display: inline-block;
  padding: 2px var(--space-sm);
  background: var(--blue-50);
  color: var(--primary);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.pricing-card h4 {
  margin-bottom: var(--space-sm);
}

.pricing-card__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.pricing-card__price {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
}

.pricing-card__amount {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--gray-900);
}

.pricing-card__unit {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.pricing-card__feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--gray-600);
}

.pricing-card__feature::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-night {
  background: var(--pastel-amber);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-top: var(--space-md);
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.pricing-night__icon { font-size: var(--text-lg); }

.pricing-night p {
  font-size: var(--text-xs);
  color: var(--gray-700);
  margin: 0;
}

.pricing-night strong {
  color: var(--gray-900);
}

/* ---------- Pricing Detail Table ---------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.price-table thead {
  background: var(--gray-50);
}

.price-table th,
.price-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-size: var(--text-sm);
}

.price-table th {
  font-weight: 600;
  color: var(--gray-700);
  border-bottom: 1px solid var(--border);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-table td {
  border-bottom: 1px solid var(--border-light);
  color: var(--gray-600);
}

.price-table tbody tr:last-child td {
  border-bottom: none;
}

.price-table tbody tr:hover {
  background: var(--blue-50);
}

.price-table .price-value {
  font-weight: 700;
  color: var(--gray-900);
}

.price-table .price-night {
  color: var(--blue-600);
  font-weight: 600;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
}

.testimonial-card__stars {
  color: #F59E0B;
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
  letter-spacing: 2px;
}

.testimonial-card__text {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--gray-600);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--primary);
}

.testimonial-card__name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--gray-800);
}

.testimonial-card__role {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ---------- Process / How It Works ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-step__number {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 2px solid var(--blue-200);
  border-radius: 50%;
  margin: 0 auto var(--space-lg);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--primary);
  transition: all var(--transition-base);
}

.process-step:hover .process-step__number {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.process-step h5 {
  margin-bottom: var(--space-xs);
}

.process-step p {
  font-size: var(--text-sm);
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.team-card__photo {
  aspect-ratio: 1;
  background: var(--gray-100);
  position: relative;
  overflow: hidden;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__info {
  padding: var(--space-lg);
}

.team-card__name {
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.team-card__role {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  border-radius: var(--radius-2xl);
  padding: var(--space-4xl);
  text-align: center;
  margin: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  color: white;
  margin-bottom: var(--space-md);
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-lg);
  max-width: 520px;
  margin: 0 auto var(--space-2xl);
}

.cta-section .btn--primary {
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.cta-section .btn--primary:hover {
  background: var(--gray-50);
  transform: translateY(-2px);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.625rem var(--space-md);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43,122,230,0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  transition: all var(--transition-base);
}

.contact-info-card:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
}

.contact-info-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pastel-blue);
  border-radius: var(--radius-lg);
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.contact-info-card h5 {
  margin-bottom: var(--space-xs);
}

.contact-info-card p {
  font-size: var(--text-sm);
  margin: 0;
}

.contact-info-card a {
  font-size: var(--text-sm);
  font-weight: 600;
}

/* Map placeholder */
.map-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  height: 300px;
  background: var(--gray-100);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand {
  max-width: 300px;
}

.footer__brand .logo {
  color: white;
  margin-bottom: var(--space-md);
}

.footer__brand p {
  font-size: var(--text-sm);
  color: var(--gray-400);
  line-height: 1.7;
}

.footer__heading {
  font-size: var(--text-sm);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: white;
}

.footer__bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--gray-500);
}

.footer__bottom a {
  color: var(--gray-400);
}

.footer__bottom a:hover {
  color: white;
}

/* ---------- Service Page Hero ---------- */
.service-hero {
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  background: linear-gradient(175deg, var(--gray-50) 0%, var(--pastel-blue) 100%);
}

.service-hero .label {
  margin-bottom: var(--space-sm);
  display: block;
}

.service-hero h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
}

.service-hero .lead {
  max-width: 640px;
}

.breadcrumb {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb__sep {
  color: var(--gray-300);
}

/* ---------- Service detail content ---------- */
.service-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-3xl);
}

.service-main h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.service-main h2:first-child {
  margin-top: 0;
}

.service-main p {
  margin-bottom: var(--space-md);
}

.service-main ul {
  margin-bottom: var(--space-lg);
  padding-left: 0;
}

.service-main ul li {
  position: relative;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-sm);
  color: var(--gray-600);
  font-size: var(--text-sm);
}

.service-main ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Sidebar */
.service-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.sidebar-card h4 {
  margin-bottom: var(--space-md);
  font-size: var(--text-lg);
}

.sidebar-card__price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-light);
  font-size: var(--text-sm);
}

.sidebar-card__price:last-of-type {
  border-bottom: none;
}

.sidebar-card__price .label-text {
  color: var(--gray-600);
}

.sidebar-card__price .price-val {
  font-weight: 700;
  color: var(--gray-900);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.sidebar-nav a {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--gray-600);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--blue-50);
  color: var(--primary);
}

.sidebar-nav a.active {
  font-weight: 600;
}

/* ---------- Legal page ---------- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-md);
}

.legal-content h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.legal-content p,
.legal-content li {
  font-size: var(--text-sm);
  line-height: 1.8;
}

.legal-content ol {
  list-style: decimal;
  padding-left: var(--space-xl);
}

.legal-content ol li {
  margin-bottom: var(--space-sm);
  color: var(--gray-600);
}

/* ---------- Gallery grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-100);
  position: relative;
  cursor: pointer;
  transition: transform var(--transition-base);
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__label {
  color: white;
  font-size: var(--text-xs);
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--blue-200);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--gray-800);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
}

.faq-question::after {
  content: '+';
  font-size: var(--text-xl);
  color: var(--primary);
  transition: transform var(--transition-base);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--space-xl) var(--space-lg);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-answer p {
  font-size: var(--text-sm);
  line-height: 1.8;
}

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

/* ---------- Image Fallbacks ---------- */
.hero__image-wrapper,
.ba-slider__before,
.ba-slider__after,
.gallery-item,
.team-card__photo {
  background: linear-gradient(135deg, var(--blue-100) 0%, var(--pastel-blue) 50%, var(--blue-50) 100%);
}

.hero__image-wrapper img,
.ba-slider__before img,
.ba-slider__after img {
  background: linear-gradient(135deg, var(--blue-100), var(--blue-200));
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero__visual {
    max-width: 600px;
    margin: 0 auto;
  }

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

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

  .ba-showcase {
    grid-template-columns: 1fr;
  }

  .night-grid {
    grid-template-columns: 1fr;
  }

  .night-visual {
    order: -1;
  }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .process-steps::before {
    display: none;
  }

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

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

  .service-content {
    grid-template-columns: 1fr;
  }

  .service-sidebar {
    order: -1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 3rem;
    --space-4xl: 4rem;
  }

  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }

  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    /* Wysokość liczona od viewportu (dvh), nie od bloku zawierającego —
       .header ma backdrop-filter, więc jest blokiem zawierającym dla fixed. */
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    background: #fff;
    flex-direction: column;
    padding: var(--space-lg) var(--space-xl);
    align-items: stretch;
    gap: var(--space-xs);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav__link {
    width: 100%;
    padding: var(--space-md);
    font-size: var(--text-base);
  }

  /* Pozycja z podmenu → akordeon (rozwijane tapnięciem) */
  .nav__link--dropdown {
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    font-size: var(--text-base);
  }

  /* Strzałka (::after) i etykieta zostają w jednym wierszu; lista wskakuje pod spód. */
  .nav__link--dropdown .nav__dropdown {
    order: 2;
    flex-basis: 100%;
    width: 100%;
    min-width: 0;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    border-left: 2px solid var(--border);
    margin: var(--space-xs) 0 var(--space-sm);
    padding: 0 0 0 var(--space-md);
    display: none;
  }

  .nav__link--dropdown.is-open .nav__dropdown {
    display: block;
  }

  .nav__link--dropdown.is-open::after {
    transform: rotate(180deg);
  }

  .nav__dropdown-item {
    width: 100%;
    padding: var(--space-md);
    border-radius: 0;
  }

  .nav__dropdown-item + .nav__dropdown-item {
    border-top: 1px solid var(--border-light);
  }

  .nav__cta {
    margin-left: 0;
    margin-top: var(--space-md);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: var(--space-3xl) var(--space-xl);
    border-radius: var(--radius-xl);
    margin: var(--space-3xl) var(--space-md);
  }

  .night-features {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

/* ============================================
   Komponenty WordPress — zastępują inline style
   (zero style="" w szablonach i wzorcach)
   ============================================ */

/* ---------- Listy wpisów / archiwum / wyszukiwanie ---------- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.entry .entry-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.entry .entry-title a {
  color: var(--gray-900);
}

.entry .entry-title a:hover {
  color: var(--primary);
}

.entry-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.entry-thumb {
  display: block;
}

.entry-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

/* ---------- Pojedynczy wpis ---------- */
.entry--single .entry-header,
.entry--page .entry-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.entry--single .entry-meta {
  font-size: var(--text-sm);
  margin-top: var(--space-md);
}

.entry-featured {
  margin-bottom: var(--space-2xl);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.entry-content > * + * {
  margin-top: var(--space-md);
}

.entry-content h2 { margin-top: var(--space-2xl); margin-bottom: var(--space-sm); }
.entry-content h3 { margin-top: var(--space-xl); margin-bottom: var(--space-sm); }

.entry-content ul,
.entry-content ol {
  padding-left: 1.5rem;
  margin-top: var(--space-md);
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: var(--space-xs); }

.entry-content a {
  text-decoration: underline;
}

.entry-content img {
  border-radius: var(--radius-lg);
}

.entry-footer {
  margin-top: var(--space-3xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.tags-links {
  margin-top: var(--space-sm);
}

.page-links {
  margin-top: var(--space-lg);
  display: flex;
  gap: var(--space-xs);
}

/* ---------- Brak wyników / 404 ---------- */
.no-results {
  text-align: center;
  padding: var(--space-4xl) 0;
}

.error-404 .page-content {
  text-align: center;
}

/* ---------- Formularz wyszukiwania ---------- */
.search-form {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  align-items: stretch;
  max-width: 540px;
  margin: var(--space-lg) auto 0;
}

.search-field {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font: inherit;
  background: var(--surface);
}

.search-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--blue-100);
}

/* ---------- Paginacja ---------- */
.pagination-wrapper,
.navigation.pagination {
  margin-top: var(--space-2xl);
}

.pagination-wrapper .nav-links,
.navigation.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.pagination-wrapper .page-numbers,
.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 var(--space-sm);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border-light);
  font-weight: 600;
}

.pagination-wrapper .page-numbers.current,
.navigation.pagination .page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---------- Modyfikator przycisku: pełna szerokość ---------- */
.btn--block {
  width: 100%;
}

/* ---------- Przycisk i akcent „tryb nocny" ---------- */
.btn--night {
  background: linear-gradient(135deg, var(--night-blue), #2563EB);
  color: #fff;
}

.btn--night:hover {
  filter: brightness(1.08);
  color: #fff;
}

/* ---------- Karta usługi: wariant „tryb nocny" ---------- */
.service-card--night {
  background: linear-gradient(135deg, var(--night-bg), #1E2443);
  border-color: transparent;
}

.service-card--night .service-card__icon {
  background: rgba(61, 123, 255, 0.15);
}

.service-card--night h4 {
  color: #fff;
}

.service-card--night p {
  color: var(--night-text);
}

.service-card--night .service-card__link {
  color: var(--night-blue);
}

/* ---------- Notka pod zegarem (tryb nocny) ---------- */
.night-note {
  margin-top: var(--space-xl);
  font-size: var(--text-sm);
  color: var(--night-text);
}

.night-note strong {
  color: #fff;
}

/* ---------- CTA: wyśrodkowanie akcji ---------- */
.cta-section .hero__actions {
  justify-content: center;
}

/* ---------- Cennik: pasek informacyjny + nagłówki z ikoną ---------- */
.price-info-bar {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
}

.price-info-bar .stat {
  flex: 1;
  min-width: 200px;
}

.price-info-bar .stat__number {
  font-size: var(--text-xl);
}

.price-heading {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.price-heading .icon {
  font-size: var(--text-2xl);
}

/* ---------- Cennik: notka nocna ---------- */
.night-note-bar {
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.night-note-bar__inner {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  flex-wrap: wrap;
}

.night-note-bar__icon {
  font-size: 3rem;
}

.night-note-bar__text {
  flex: 1;
  min-width: 280px;
}

.night-note-bar__text h3 {
  margin-bottom: var(--space-sm);
}

.night-note-bar__text p {
  margin: 0;
  font-size: var(--text-sm);
}

.night-note-bar__text strong {
  color: #fff;
}

/* ---------- Cennik: blok informacji ---------- */
.price-disclaimer {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

/* ---------- Kontakt: zgoda RODO ---------- */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--gray-500);
  cursor: pointer;
}

.form-consent input {
  margin-top: 3px;
  flex-shrink: 0;
}

/* ---------- Sidebar usługi: wariant nocny ---------- */
.sidebar-card--night {
  background: linear-gradient(135deg, var(--night-bg), #1E2443);
  border-color: transparent;
}

.sidebar-card--night h4 {
  color: #fff;
}

.sidebar-card--night p {
  color: var(--night-text);
  font-size: var(--text-sm);
}

/* ---------- FAQ jako natywny <details> (blok core/details) ---------- */
.faq-list .faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--gray-800);
  list-style: none;
}

.faq-list .faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-list .faq-item summary::after {
  content: '+';
  font-size: var(--text-xl);
  line-height: 1;
  color: var(--primary);
  transition: transform var(--transition-base);
}

.faq-list .faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-list .faq-item summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.faq-list .faq-item > :not(summary) {
  margin: 0 var(--space-xl) var(--space-lg);
  font-size: var(--text-sm);
  color: var(--gray-600);
}

/* ---------- Blokada przewijania przy otwartym menu mobilnym ---------- */
body.nav-open {
  overflow: hidden;
}

/* ---------- Suwak przed/po: obraz jako blok core/image ---------- */
.ba-slider__before .wp-block-image,
.ba-slider__after .wp-block-image {
  margin: 0;
  width: 100%;
  height: 100%;
}
.ba-slider__before .wp-block-image img,
.ba-slider__after .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Nagłówek podstrony: wariant kompaktowy (strony prawne) ---------- */
.service-hero--legal h1 {
  font-size: var(--text-3xl);
}

/* ---------- Treść prawna (regulamin, polityka) ---------- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: var(--text-2xl);
  margin: var(--space-2xl) 0 var(--space-md);
}

.legal-content h3 {
  font-size: var(--text-lg);
  margin: var(--space-lg) 0 var(--space-sm);
}

.legal-content p {
  margin-bottom: var(--space-md);
}

.legal-content ol,
.legal-content ul {
  list-style: revert;
  padding-left: 1.5rem;
  margin-bottom: var(--space-md);
}

.legal-content li {
  margin-bottom: var(--space-xs);
}

.legal-content a {
  text-decoration: underline;
}

/* ---------- Karta sidebar: wariant „alert" (np. odgrzybianie) ---------- */
.sidebar-card--alert {
  background: var(--pastel-rose);
  border-color: transparent;
}

.sidebar-card--alert p {
  font-size: var(--text-sm);
  color: var(--gray-700);
}

/* ---------- Notka „tryb nocny" w sidebarze cen ---------- */
.sidebar-card .pricing-night {
  margin-top: var(--space-md);
}

/* ---------- Stopka: pozycje nie-linkowe (adres, godziny) ---------- */
.footer__links span {
  font-size: var(--text-sm);
  color: var(--gray-400);
}

/* ---------- Stopka oparta na widgetach ---------- */
.footer .widget { margin: 0; }
.footer__brand .widget + .widget,
.footer__col .widget + .widget { margin-top: var(--space-lg); }
.footer__col .footer__heading:not(:first-child) { margin-top: var(--space-lg); }

/* ---------- Stopka: pasek zaufania (E-E-A-T) ---------- */
.footer__trust {
  margin-top: var(--space-md);
  font-size: var(--text-xs);
  color: var(--gray-500);
  line-height: 1.7;
}

/* ============================================
   Fix wyrównania: rdzeń dokleja block-gap (margin-block-start) do elementów
   siatki opartej na grupach bloków (is-layout-flow) — przez to 1. element
   był wyżej niż pozostałe. Odstępy zapewnia `gap`, więc zerujemy margines.
   ============================================ */
.services-grid > *,
.stats-bar > *,
.process-steps > *,
.testimonials-grid > *,
.night-features > *,
.night-grid > *,
.ba-features > *,
.ba-showcase > *,
.ba-slider > *,
.price-info-bar > *,
.service-content > *,
.contact-grid > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

/* ---------- Logo: znak wektorowy (inline SVG) ---------- */
.logo__mark { display: inline-flex; flex: 0 0 auto; line-height: 0; }
.logo__mark svg { display: block; width: 40px; height: 40px; }
.custom-logo { max-height: 48px; width: auto; }

/* ---------- CTA: odstęp do stopki / sekcji ----------
   Rdzeń (block-gap) zeruje margines pierwszego/ostatniego dziecka grupy,
   przez co na podstronach CTA zlewało się z ciemną stopką. Przywracamy
   zamierzony pionowy odstęp; poziomy (mobile) zostaje z reguł responsywnych. */
.cta-section { margin-block: var(--space-4xl) !important; }

/* ============================================
   Edytor bloków: suwak „przed/po" ma dwie nakładające się (position:absolute)
   warstwy — w edytorze spodni obraz jest nieklikalny. Tylko w edytorze
   (.editor-styles-wrapper) rozkładamy je pionowo, aby OBA dało się edytować.
   Front pozostaje interaktywnym suwakiem (te reguły nie istnieją na froncie).
   ============================================ */
.editor-styles-wrapper .ba-slider {
  aspect-ratio: auto;
  overflow: visible;
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.editor-styles-wrapper .ba-slider__before,
.editor-styles-wrapper .ba-slider__after {
  position: static;
  inset: auto;
  clip-path: none;
  width: 100%;
  height: auto;
  z-index: auto;
}
.editor-styles-wrapper .ba-slider__before img,
.editor-styles-wrapper .ba-slider__after img {
  height: auto;
}
.editor-styles-wrapper .ba-slider__handle,
.editor-styles-wrapper .ba-slider__label {
  display: none;
}

/* ============================================
   Box autora wpisu (E-E-A-T): "Zespół ..." → /o-nas/
   ============================================ */
.entry-author-box {
  margin-top: var(--space-2xl, 3rem);
  padding: var(--space-lg, 1.5rem);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-lg, 12px);
  background: var(--color-surface, #f8fafc);
}
.entry-author-box__name {
  margin: 0 0 .35em;
  font-weight: 700;
}
.entry-author-box__bio {
  margin: 0;
  color: var(--color-text-muted, #475569);
  font-size: .95em;
}

/* ============================================
   Przycisk "do góry" — bańka z logo.
   Postęp przewijania = obrót bańki (#st-rotor, sterowany z JS);
   jaśniejsza plamka na krawędzi wskazuje %.
   ============================================ */
#scrollToTopBtn {
  position: fixed;
  z-index: 99;
  bottom: 10px;
  right: 10px;
  height: 60px;
  width: 60px;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.5s, transform 0.2s;
  filter: drop-shadow(0 6px 14px rgba(20, 60, 80, 0.35));
}
#scrollToTopBtn:hover {
  transform: translateY(-2px);
}
#scrollToTopBtn.hideScroll {
  opacity: 0;
  pointer-events: none;
}
/* Obrót bańki realizuje JS atrybutem SVG rotate(deg 50 50) — celowo bez CSS
   transform-box: fill-box, bo jego origin pływa przez animowany błysk. */
#scrollToTopBtn .st-arrow {
  filter: drop-shadow(0 1px 2px rgba(8, 145, 178, 0.6));
}
#scrollToTopBtn .st-shine {
  animation: st-shine 3.6s ease-in-out infinite;
}
@keyframes st-shine {
  0%   { transform: translateX(-34px) skewX(-18deg); }
  26%  { transform: translateX(126px) skewX(-18deg); }
  100% { transform: translateX(126px) skewX(-18deg); }
}
@media (prefers-reduced-motion: reduce) {
  #scrollToTopBtn .st-shine { animation: none; }
}

/* ============================================
   Mobilny pasek "zadzwoń" — kolorystyka bańki z logo
   + przelatujący błysk. Widoczny tylko na małych ekranach.
   ============================================ */
#mobileCallBar {
  display: none;
}
@media (max-width: 782px) {
  #mobileCallBar {
    position: fixed;
    z-index: 98;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(120deg, #7dd3fc 0%, #38bdf8 45%, #0891b2 100%);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 -6px 18px rgba(8, 145, 178, 0.35);
    overflow: hidden;
  }
  #mobileCallBar .mcb-label {
    font-size: 15px;
    letter-spacing: 0.01em;
  }
  #mobileCallBar .mcb-phone {
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
  }
  #mobileCallBar svg {
    flex: 0 0 auto;
    filter: drop-shadow(0 1px 2px rgba(8, 145, 178, 0.5));
  }
  /* przelatujący błysk — jak w bańce logo */
  #mobileCallBar::after {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: 0;
    width: 56px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-80px) skewX(-18deg);
    animation: mcb-shine 3.6s ease-in-out infinite;
    pointer-events: none;
  }

  /* nie zasłaniaj stopki ani kulki "do góry" */
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
  #scrollToTopBtn {
    bottom: calc(72px + env(safe-area-inset-bottom));
  }
}
@keyframes mcb-shine {
  0%   { transform: translateX(-80px) skewX(-18deg); }
  26%  { transform: translateX(calc(100vw + 80px)) skewX(-18deg); }
  100% { transform: translateX(calc(100vw + 80px)) skewX(-18deg); }
}
@media (prefers-reduced-motion: reduce) {
  #mobileCallBar::after { animation: none; opacity: 0; }
}
@media print {
  #mobileCallBar, #scrollToTopBtn { display: none !important; }
}
