/* ═══════════════════════════════════════════════════════════════════
   nj.pl – Design System
   Paleta: #FF6B1A (pomarańcz), #1A1A1A (czarny tekst), #FFF (białe tło)
   Mobile-first, minimalistyczny
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Skip link (accessibility) ─────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  overflow: visible;
  padding: 8px 16px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
  font-size: .9rem;
}

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

:root {
  --orange:      #FF6B1A;
  --orange-dk:   #E55A0A;
  --orange-lt:   #FFF0E8;
  --orange-mid:  #FFD4B8;
  --black:       #1A1A1A;
  --gray-90:     #2D2D2D;
  --gray-70:     #555;
  --gray-60:     #666;
  --gray-50:     #888;
  --gray-40:     #999;
  --gray-30:     #C8C8C8;
  --gray-20:     #E0E0E0;
  --gray-15:     #E5E7EB;
  --gray-10:     #F5F5F5;
  --gray-05:     #F9FAFB;
  --gray-5:      #F7F7F7;
  --white:       #FFFFFF;
  --green:       #2ECC71;
  --red:         #E74C3C;
  --yellow:      #F39C12;

  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.08);
  --shadow:      0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.14);
  --trans:       .18s ease;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ─── Typography ────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p  { margin-bottom: .75rem; }
p:last-child { margin-bottom: 0; }
small { font-size: .82rem; color: var(--gray-50); }

/* ─── Layout ────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}
.container-sm { max-width: 720px; }
.container-xs { max-width: 640px; }

/* ─── Topbar / Nav ─────────────────────────────────────────────── */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-10);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -.03em;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.logo span { color: var(--orange); }
.logo-tagline {
  font-size: .75rem;
  font-weight: 400;
  color: var(--gray-50);
  white-space: nowrap;
  padding-left: 12px;
  margin-left: 12px;
  border-left: 1.5px solid var(--gray-30);
  line-height: 1;
}
.logo-tagline em {
  font-style: normal;
  color: inherit;
}
.logo-tagline-footer {
  border-left-color: var(--gray-70);
  color: var(--gray-70);
}
.topbar-nav { display: flex; align-items: center; gap: 8px; }
.topbar-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-70);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background var(--trans), color var(--trans);
  white-space: nowrap;
}
.topbar-nav a:hover { background: var(--gray-10); color: var(--black); text-decoration: none; }
.topbar-nav .btn-orange { color: var(--white); background: var(--orange); }
.topbar-nav .btn-orange:hover { background: var(--orange-dk); }

/* Hamburger button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 11px 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 102;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-70);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 99;
  overflow: hidden;
}
body.nav-open { overflow: hidden; position: fixed; width: 100%; }

/* ─── Hero ──────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--orange-lt) 0%, #fff 55%);
  padding: 48px 0 56px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange-lt);
  border: 1px solid var(--orange-mid);
  color: var(--orange-dk);
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hero h1 {
  margin-bottom: 12px;
  color: var(--black);
}
.hero h1 span { color: var(--orange); }
.hero-na-juz {
  color: var(--orange);
  position: relative;
  display: inline-block;
}
.hero-cta-hint {
  font-size: .85rem;
  color: var(--orange-dk);
  font-weight: 500;
  margin-top: 12px;
  margin-bottom: 2px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  text-align: left;
}
.hero-cta-hint svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.hero-sub {
  color: var(--gray-70);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.trust-note {
  font-size: .82rem;
  color: var(--gray-50);
  margin-top: 10px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  text-align: left;
}
.trust-note svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--orange);
}

/* ─── Search Box ────────────────────────────────────────────────── */
.search-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(255,107,26,.14), 0 2px 12px rgba(0,0,0,.06);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 720px;
  margin: 0 auto;
  border: 2px solid var(--gray-20);
  position: relative;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.search-box:focus-within {
  border-color: var(--orange);
  box-shadow: 0 8px 40px rgba(255,107,26,.22), 0 2px 12px rgba(0,0,0,.06);
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-10);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  transition: background var(--trans);
  position: relative;
}
.search-field:focus-within {
  background: var(--white);
}
.search-field svg { color: var(--orange); flex-shrink: 0; }
.search-field input {
  flex: 1;
  height: 50px;
  border: none;
  background: transparent;
  outline: none;
  font-size: 1rem;
  color: var(--black);
}
.search-field input:focus,
.search-field input:focus-visible { outline: none; box-shadow: none; }
.search-field input::placeholder { color: var(--gray-50); font-weight: 400; }

.search-divider {
  display: none;
  width: 1px;
  background: var(--gray-30);
  align-self: stretch;
  margin: 6px 0;
  flex-shrink: 0;
}
.search-btn {
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  padding: 14px 28px;
  transition: background var(--trans), transform var(--trans);
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
  min-height: 50px;
}
.search-btn:hover { background: var(--orange-dk); transform: translateY(-1px); }
.search-btn:active { transform: translateY(0); }

/* Autocomplete dropdown */
.autocomplete-wrap { position: relative; flex: 1; }
.autocomplete-list {
  position: absolute;
  top: calc(100% + 8px);
  left: -16px;
  right: -16px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.07);
  list-style: none;
  z-index: 200;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--gray-10);
  /* animation */
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.autocomplete-list.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.autocomplete-list li {
  padding: 11px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  transition: background var(--trans);
  border-bottom: 1px solid var(--gray-10);
  min-width: 0;
  min-height: 44px;
}
.autocomplete-list li:last-child { border-bottom: none; }
.autocomplete-list li:hover, .autocomplete-list li.active { background: var(--orange-lt); }
.autocomplete-list li svg { color: var(--orange); flex-shrink: 0; }
.autocomplete-list li > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.autocomplete-list li > span > span:first-child {
  display: block;
  white-space: normal;
  overflow: visible;
  line-height: 1.35;
}
.autocomplete-list li > span > span:first-child strong {
  font-weight: 700;
  color: var(--text);
}
.autocomplete-match { font-weight: 700; color: var(--orange); }
.autocomplete-sub { font-size: .78rem; color: var(--gray-50); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.autocomplete-powered-by {
  display: flex !important;
  justify-content: flex-end;
  align-items: center;
  padding: 6px 12px 8px !important;
  min-height: unset !important;
  cursor: default !important;
  background: transparent !important;
  border-top: 1px solid var(--gray-10) !important;
  border-bottom: none !important;
  pointer-events: none;
}
.autocomplete-powered-by img { display: block; opacity: .75; }
/* Wariant dla pól bez .autocomplete-wrap (katalog-search-field z 14px padding) */
.autocomplete-list--field { left: -14px; right: -14px; }

/* ─── Hero Footer Links ─────────────────────────────────────────── */
.hero-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.hero-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-70);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-30);
  transition: all var(--trans);
  text-decoration: none;
  min-height: 44px;
}
.hero-links a:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-lt);
}

/* ─── How it works ──────────────────────────────────────────────── */
.section { padding: 56px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { margin-bottom: 8px; }
.section-title p  { color: var(--gray-70); font-size: 1rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}
.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 40px;
  text-align: center;
}
.stat-item { min-width: 120px; }
.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1.1;
}
.stat-label {
  font-size: .85rem;
  color: var(--gray-70);
  margin-top: 2px;
}
.step-icon-wrap {
  position: relative;
  width: 72px;
  margin: 0 auto 16px;
}
.step-n {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 26px;
  height: 26px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(255,107,26,.4);
}
.step-icon {
  width: 72px;
  height: 72px;
  background: var(--orange-lt);
  border: 2px solid var(--orange-mid);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p   { font-size: .9rem; color: var(--gray-70); }

/* ─── Trust block ───────────────────────────────────────────────── */
.trust-block {
  background: var(--gray-10);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.trust-block svg { color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.trust-block h3  { font-size: 1rem; margin-bottom: 8px; }
.trust-block p   { font-size: .9rem; color: var(--gray-70); margin: 0; }

/* ─── Cards ─────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-10);
  overflow: hidden;
  transition: box-shadow var(--trans), transform var(--trans);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-body  { padding: 16px; }

/* ─── Professional Card ─────────────────────────────────────────── */
.pro-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.pro-card--premium {
  border-color: #fed7aa !important;
  box-shadow: 0 0 0 1.5px #FF6B2B22, 0 4px 18px rgba(255,107,43,.08) !important;
}
.pro-card-premium-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
}
.premium-recommend-tag {
  display: inline-block;
  background: linear-gradient(135deg, #FF6B2B 0%, #ff9a4d 100%);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 3px 10px 3px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(255,107,43,.35);
  white-space: nowrap;
}

/* Stretched link – cała karta klikalności */
.pro-card-main-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--radius);
}
.pro-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 16px 12px;
  position: relative;
  z-index: 1;
}
.pro-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--orange-lt);
}
.pro-avatar-svg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.pro-info { flex: 1; min-width: 0; }
.pro-name {
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--black);
}
.pro-company {
  font-size: .85rem;
  color: var(--gray-70);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pro-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: .88rem;
}
.pro-rating .avg { font-weight: 700; color: var(--black); }
.pro-rating .cnt { color: var(--gray-50); }

.stars { display: inline-flex; gap: 1px; }
.star  { font-size: 14px; line-height: 1; }
.star.full  { color: var(--orange); }
.star.half  { color: var(--orange); }
.star.empty { color: var(--gray-30); }

.pro-city {
  font-size: .82rem;
  color: var(--gray-50);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.pro-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 10px;
  position: relative;
  z-index: 1;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-orange  { background: var(--orange-lt);  color: var(--orange-dk); }
.badge-green   { background: #D5F5E3;            color: #1E8449; }
.badge-red     { background: #FADBD8;            color: #A93226; }
.badge-gray    { background: var(--gray-10);     color: var(--gray-70); }
.badge-blue    { background: #D6EAF8;            color: #1A5276; }
.badge-expired { background: #FADBD8; color: var(--red); }

.pro-slots {
  padding: 10px 16px;
  border-top: 1px solid var(--gray-10);
  background: var(--gray-10);
}
.pro-slots-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-70);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.slots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.slot-chip {
  background: var(--white);
  border: 1px solid var(--orange-mid);
  color: var(--orange-dk);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--trans);
  line-height: 1.25;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}
.slot-chip:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}
.slot-chip .slot-date { font-weight: 700; }
.slot-chip .slot-time { font-size: .75rem; opacity: .85; }
.slot-chip.all-day    { background: var(--orange-lt); }

.pro-card-footer {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--gray-10);
  position: relative;
  z-index: 1;
}
.btn-profile {
  position: relative;
  z-index: 3;
  font-size: .88rem;
  color: var(--orange);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  padding: 8px 0;
  min-height: 44px;
}
.btn-profile:hover { text-decoration: underline; }

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn svg, .btn i { display: inline-flex; vertical-align: middle; flex-shrink: 0; line-height: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--trans);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  padding: 0 20px;
  font-size: .95rem;
}
.btn-primary  { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dk); color: var(--white); text-decoration: none; }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-secondary { background: var(--gray-10); color: var(--black); }
.btn-secondary:hover { background: var(--gray-30); color: var(--black); text-decoration: none; }
.btn-outline  { background: transparent; color: var(--orange); border: 2px solid var(--orange); }
.btn-outline:hover { background: var(--orange-lt); text-decoration: none; }
.btn-ghost    { background: transparent; color: var(--gray-70); padding: 0 12px; }
.btn-ghost:hover { background: var(--gray-10); color: var(--black); text-decoration: none; }
.btn-danger   { background: var(--red); color: var(--white); }
.btn-danger:hover { background: #c0392b; }
.btn-lg       { min-height: 52px; font-size: 1.05rem; padding: 0 28px; border-radius: var(--radius); }
.btn-sm       { min-height: 36px; font-size: .85rem; padding: 0 14px; }
.btn-full     { width: 100%; }

/* ─── Forms ─────────────────────────────────────────────────────── */
.form-group  { margin-bottom: 18px; }
.form-label  {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 6px;
  color: var(--black);
}
.form-label .req { color: var(--orange); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-30);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  background: var(--white);
  color: var(--black);
  transition: border-color var(--trans);
  outline: none;
  min-height: 44px;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--orange);
}
.form-input.error, .form-select.error, .form-textarea.error {
  border-color: var(--red);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-input-locked {
  background: var(--gray-5) !important;
  color: var(--gray-70) !important;
  cursor: default;
  border-color: var(--gray-20) !important;
  padding-right: 90px;
}
.form-locked-wrap { position: relative; }
.form-locked-badge {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 500;
  color: var(--gray-50);
  pointer-events: none;
  white-space: nowrap;
}
.form-hint  { font-size: .8rem; color: var(--gray-50); margin-top: 4px; }
.form-error { font-size: .8rem; color: var(--red); margin-top: 4px; display: none; }
.form-error.show { display: block; }
.form-row   { display: grid; grid-template-columns: 1fr; gap: 16px; }

/* Toggle switch */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-10);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-label { font-size: .95rem; font-weight: 500; }
.toggle-sub   { font-size: .82rem; color: var(--gray-50); }
.toggle {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--gray-30);
  border-radius: 999px;
  transition: background var(--trans);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform var(--trans);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle input:checked + .toggle-slider { background: var(--orange); }
.toggle input:checked + .toggle-slider::before { transform: translateX(22px); }

/* ─── Compact search bar (szukaj.php) ──────────────────────────── */
.search-bar-compact {
  background: var(--gray-10);
  border-bottom: 1px solid var(--gray-30);
  padding: 10px 0;
}
.search-bar-form {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: stretch;
}
.search-field-sm {
  background: var(--white);
  border-radius: var(--radius-sm);
  flex: 1;
  min-width: 140px;
}
.search-field-svc { flex: 2; }
.search-field-sm input { height: 44px; font-size: 1rem; }
.search-bar-btn {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  align-self: stretch;
}

/* ─── Search results page ───────────────────────────────────────── */
.results-header {
  padding: 20px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
/* Katalog search bar */
.katalog-search-bar { margin-bottom: 20px; }
.katalog-search-fields {
  display: flex; align-items: center;
  background: var(--gray-05, #fafafa); border: 2px solid var(--gray-20);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: visible; flex-wrap: wrap;
}
.katalog-search-fields:focus-within { border-color: var(--orange); }
.katalog-search-field {
  display: flex; align-items: center; gap: 8px; padding: 0 14px;
  flex: 1; min-width: 140px;
}
.katalog-search-field svg { color: var(--gray-50); flex-shrink: 0; }
.katalog-search-input {
  border: none; outline: none; background: transparent;
  font-size: 1rem; color: var(--black); padding: 13px 0; width: 100%;
  font-family: inherit;
}
.katalog-search-input:focus,
.katalog-search-input:focus-visible { outline: none; box-shadow: none; }
.katalog-search-field { position: relative; }
.katalog-search-input::placeholder { color: var(--gray-50); }
.katalog-search-divider { width: 1px; height: 28px; background: var(--gray-20); flex-shrink: 0; }
.katalog-search-btn {
  border-radius: 0 var(--radius) var(--radius) 0 !important;
  padding: 14px 20px !important; min-width: 110px; flex-shrink: 0; margin: -2px;
  border: 2px solid var(--orange) !important;
}
.katalog-filter-tag {
  display: inline-flex; align-items: center; gap: 4px; background: var(--orange-lt);
  color: var(--orange-dk); border: 1px solid var(--orange-mid); border-radius: 999px;
  padding: 2px 10px; font-size: .8rem; margin-left: 4px;
}
.katalog-filter-tag a { text-decoration: none; font-weight: 700; }

@media (max-width: 480px) {
  .katalog-search-divider { width: 100%; height: 1px; }
  .katalog-search-btn { border-radius: 0 0 var(--radius) var(--radius) !important; width: 100%; margin: 0; }
}

/* Kategorie w katalogu: większy obszar dotyku na mobile */
@media (max-width: 767px) {
  .katalog-filters .badge {
    min-height: 44px;
    padding: 10px 14px;
  }
}

.results-count {
  font-size: .9rem;
  color: var(--gray-70);
}
.results-count strong { color: var(--black); font-weight: 700; }

.results-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.hidden-notice {
  text-align: center;
  padding: 28px 20px;
  background: var(--gray-10);
  border-radius: var(--radius);
  margin-top: 12px;
}
.hidden-notice p {
  font-size: .9rem;
  color: var(--gray-70);
  margin: 0;
}

/* ─── Pro Profile Page ──────────────────────────────────────────── */
.profile-hero {
  background: linear-gradient(160deg, var(--orange-lt) 0%, #fff 60%);
  padding: 40px 0 0;
}
.profile-top {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.profile-avatar-wrap { position: relative; }
.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}
.profile-avatar-svg {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 2rem;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}
.verified-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}
.profile-meta { flex: 1; min-width: 0; }
.profile-meta h1 { margin-bottom: 4px; }
.profile-company { color: var(--gray-70); font-size: .95rem; margin-bottom: 4px; }
.profile-slogan  { color: var(--gray-50); font-size: .88rem; font-style: italic; margin-bottom: 8px; }
.profile-rating  {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.profile-city    { color: var(--gray-50); font-size: .9rem; display: flex; align-items: center; gap: 6px; }
.profile-share   { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.profile-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
@media (max-width: 640px) {
  .profile-top { flex-direction: column; align-items: center; text-align: center; }
  .profile-rating, .profile-city { justify-content: center; }
  .profile-share, .profile-actions { justify-content: center; }
  .profile-meta { min-width: 0; width: 100%; }
}

/* "Dostępny teraz" badge */
.available-now-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 600; color: #15803d;
  background: #dcfce7; padding: 4px 12px; border-radius: 999px;
  margin-bottom: 4px;
}
.available-now-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #16a34a;
  animation: availPulse 1.5s ease-in-out infinite;
}
@keyframes availPulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* Booking checkbox row */
.bk-check-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px; padding: 0 2px; cursor: pointer;
  font-size: .84rem; color: var(--gray-70); user-select: none;
}
.bk-check-row input[type=checkbox] {
  width: 18px; height: 18px; accent-color: var(--orange);
  flex-shrink: 0; cursor: pointer;
}

/* ── Trust signals bar ── */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 16px;
  background: var(--gray-05);
  border-radius: var(--radius);
  border: 1px solid var(--gray-10);
  overflow: hidden;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  flex: 1 0 0;
  max-width: 25%;
  min-width: 0;
  border-right: 1px solid var(--gray-10);
}
.trust-item:last-child { border-right: none; }
.trust-item svg, .trust-item i { color: var(--orange); flex-shrink: 0; }
.trust-item > div { flex: 1; min-width: 0; overflow: hidden; }
.trust-value { font-size: .84rem; font-weight: 700; color: var(--black); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trust-label { font-size: .75rem; color: var(--gray-50); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 768px) {
  .trust-item { padding: 8px 10px; gap: 6px; }
  .trust-value { font-size: .8rem; }
}
@media (max-width: 640px) {
  .trust-item { flex: 0 0 50%; border-bottom: 1px solid var(--gray-10); }
  .trust-item:nth-child(even) { border-right: none; }
  .trust-item:nth-last-child(-n+2):nth-child(odd),
  .trust-item:nth-last-child(1) { border-bottom: none; }
}

/* ─── Breadcrumb nav ─────────────────────────────────────────── */
.breadcrumb-nav { font-size: .82rem; color: var(--gray-50); }
@media (max-width: 768px) { .breadcrumb-nav { display: none !important; } }

.profile-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gray-10);
  margin-top: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.profile-tabs::-webkit-scrollbar { display: none; }
.profile-tab {
  padding: 14px 20px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--gray-70);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color var(--trans);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.profile-tab.active { color: var(--orange); border-bottom-color: var(--orange); }
.profile-tab:hover  { color: var(--orange); }
.profile-tab-pane   { display: none; padding: 28px 0; }
.profile-tab-pane.active { display: block; }

/* Profile layout – booking in tab, no sidebar */
.profile-layout {
  padding: 28px 0;
}
.profile-main { min-width: 0; }

.booking-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,.10);
  border: 1px solid rgba(0,0,0,.06);
  max-width: 540px;
  overflow: hidden;
}
.bk-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dk));
  color: #fff;
  text-align: center;
}
.bk-header h3 {
  font-size: .95rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.bk-header p {
  font-size: .75rem;
  opacity: .85;
  margin: 3px 0 0;
  font-weight: 500;
}
.bk-body { padding: 20px; }
.bk-empty-state { text-align: center; padding: 8px 0 4px; }
.bk-empty-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--orange-lt); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}

.slots-list { display: flex; flex-direction: column; gap: 8px; }
.slot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--gray-10);
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--trans);
  gap: 8px;
  min-height: 44px;
}
.slot-item:hover { border-color: var(--orange); background: var(--orange-lt); }
.slot-item.selected { border-color: var(--orange); background: var(--orange-lt); }
.slot-item .slot-datetime { font-size: .9rem; font-weight: 600; }
.slot-item .slot-arrow    { color: var(--orange); }

/* Credentials */
.creds-list { display: flex; flex-direction: column; gap: 10px; }
.cred-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--gray-10);
  border-radius: var(--radius-sm);
}
.cred-icon { color: var(--orange); flex-shrink: 0; }
.cred-info { flex: 1; }
.cred-label { font-weight: 600; font-size: .9rem; }
.cred-expiry {
  font-size: .8rem;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.cred-expiry.ok      { color: var(--green); }
.cred-expiry.soon    { color: var(--yellow); }
.cred-expiry.expired { color: var(--red); font-weight: 700; }

/* Reviews */
.reviews-list   { display: flex; flex-direction: column; gap: 16px; }
.review-item    {
  padding: 16px;
  background: var(--gray-10);
  border-radius: var(--radius-sm);
}
.review-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.review-author  { font-weight: 700; font-size: .9rem; }
.review-date    { font-size: .8rem; color: var(--gray-50); }
.review-comment { font-size: .9rem; color: var(--gray-90); line-height: 1.5; }
.review-pro-reply {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--orange-lt);
  border-left: 3px solid var(--orange-mid);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.review-pro-reply-label {
  font-size: .73rem;
  font-weight: 700;
  color: var(--orange-dk);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.review-pro-reply-text { font-size: .86rem; color: var(--gray-90); line-height: 1.5; }
.show-more-btn  {
  background: none;
  border: 1px solid var(--gray-30);
  color: var(--orange);
  font-weight: 600;
  font-size: .88rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  margin-top: 12px;
  transition: all var(--trans);
}
.show-more-btn:hover { border-color: var(--orange); background: var(--orange-lt); }

/* Services list */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--orange-lt);
  color: var(--orange-dk);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
}

/* Popular services grid (homepage) */
.popular-svcs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}
.popular-svc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px 14px;
  background: var(--white);
  border: 1.5px solid var(--gray-10);
  border-radius: var(--radius);
  color: var(--gray-90);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  cursor: pointer;
}
.popular-svc-card:hover {
  border-color: var(--orange-mid);
  box-shadow: 0 4px 12px rgba(255,107,43,.12);
  transform: translateY(-2px);
  color: var(--orange-dk);
  text-decoration: none;
}
.popular-svc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--orange-lt);
  border-radius: 12px;
  color: var(--orange);
  flex-shrink: 0;
}
.popular-svc-name {
  display: block;
}

/* Service price badge */
.svc-price {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  padding: 2px 8px;
  white-space: nowrap;
}

/* Pricing chips on profile */
.pricing-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pricing-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--orange-lt); color: var(--orange-dk);
  border: 1px solid var(--orange-mid); border-radius: 999px;
  padding: 5px 12px; font-size: .82rem;
}
.pricing-chip svg { flex-shrink: 0; }
.pricing-chip strong { font-weight: 700; }

/* PKD notice */
.pkd-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 16px;
  background: var(--orange-lt);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--orange);
  font-size: .85rem;
  color: var(--gray-90);
  margin-top: 12px;
}
.pkd-notice svg { flex-shrink: 0; color: var(--orange); margin-top: 1px; }

/* ── Firm info grid ── */
.firm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.firm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--gray-05);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-10);
}
.firm-item svg, .firm-item i { color: var(--orange); flex-shrink: 0; }
.firm-label { font-size: .68rem; color: var(--gray-50); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.firm-value { font-size: .84rem; font-weight: 600; color: var(--black); margin-top: 1px; }
@media (max-width: 480px) {
  .firm-grid { grid-template-columns: 1fr; }
}

/* ── Verify rows ── */
.verify-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  padding: 6px 0;
}
.verify-row svg, .verify-row i { flex-shrink: 0; }
.verify-ok { color: var(--green); }
.verify-ok svg { color: var(--green); }

/* ─── Profile: Quick Facts ─────────────────────────────────────── */
.pro-quick-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}
.pro-qf {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pro-qf-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--orange-lt);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pro-qf-value { font-size: .9rem; font-weight: 700; line-height: 1.2; }
.pro-qf-label { font-size: .75rem; color: var(--gray-50); }

/* ─── Profile: Working Hours ───────────────────────────────────── */
/* ── Next 7 days grid (profil) ── */
.next-days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.next-day-chip {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-15);
  border-radius: 12px;
  padding: 10px 10px 8px;
  transition: border-color .15s, box-shadow .15s;
}
.next-day-chip:hover { border-color: var(--orange-mid); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.next-day-chip.is-today { border-color: var(--orange); background: var(--orange-lt); }
.next-day-chip.is-full { opacity: .55; }
.next-day-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.next-day-dow { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-50); }
.next-day-date { font-size: .88rem; font-weight: 700; margin-top: 1px; }
.next-day-pill { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 2px; }
.pill-free { background: #22c55e; }
.pill-few  { background: #f59e0b; }
.pill-full { background: #ef4444; }
.next-day-meta { display: flex; flex-direction: column; gap: 2px; }
.next-day-hours { font-size: .75rem; font-weight: 600; color: var(--gray-70); font-variant-numeric: tabular-nums; }
.next-day-slots { font-size: .68rem; color: var(--gray-50); }
.next-day-today-badge {
  position: absolute; top: -6px; right: 8px;
  font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: var(--orange); color: #fff; padding: 1px 6px; border-radius: 999px;
}
@media(max-width:480px) {
  .next-days-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .next-day-chip { padding: 8px 6px 6px; }
  .next-day-date { font-size: .82rem; }
}

/* ─── Profile: Services List ───────────────────────────────────── */
.pro-services-list { display: flex; flex-direction: column; gap: 0; }
.pro-svc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-5);
  gap: 16px;
}
.pro-svc-row:last-child { border-bottom: none; }
.pro-svc-name { font-size: .92rem; font-weight: 600; }
.pro-svc-meta { font-size: .78rem; color: var(--gray-50); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.pro-svc-meta svg { display: inline; vertical-align: middle; }
.pro-svc-price {
  font-size: .88rem;
  font-weight: 700;
  color: var(--orange);
  white-space: nowrap;
  text-align: right;
}

@media (max-width: 480px) {
  .pro-quick-facts { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pro-svc-row { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ─── Booking Page ──────────────────────────────────────────────── */
.booking-page { padding: 40px 0; }
.booking-steps { display: flex; gap: 0; margin-bottom: 32px; counter-reset: step; }
.booking-step-item {
  flex: 1;
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-50);
  position: relative;
  padding: 0 4px;
}
.booking-step-item.done  { color: var(--green); }
.booking-step-item.active { color: var(--orange); }
.booking-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-30);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  margin: 0 auto 4px;
}
.booking-step-item.active .booking-step-num { background: var(--orange); }
.booking-step-item.done   .booking-step-num { background: var(--green); }

.booking-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  max-width: 540px;
  margin: 0 auto;
}
.booking-summary {
  background: var(--orange-lt);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.booking-summary img, .booking-summary .pro-avatar-svg {
  width: 48px;
  height: 48px;
  font-size: 1rem;
}
.booking-summary-info { flex: 1; }
.booking-summary-name { font-weight: 700; font-size: .95rem; }
.booking-summary-slot { font-size: .85rem; color: var(--orange-dk); font-weight: 600; }

/* ─── Panel ─────────────────────────────────────────────────────── */
.panel-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: 60px 1fr;
}
.panel-topbar {
  grid-column: 1 / -1;
  background: var(--white);
  border-bottom: 1px solid var(--gray-10);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.panel-topbar .logo { font-size: 1.2rem; }
.panel-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.panel-topbar-name  { font-size: .9rem; font-weight: 600; color: var(--gray-70); }

.panel-sidebar {
  background: var(--gray-10);
  border-right: 1px solid var(--gray-10);
  padding: 20px 0;
  overflow-y: auto;
}
.panel-nav { list-style: none; }
.panel-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-70);
  transition: all var(--trans);
  border-left: 3px solid transparent;
  text-decoration: none;
}
.panel-nav a:hover   { background: var(--white); color: var(--black); }
.panel-nav a.active  {
  background: var(--white);
  color: var(--orange);
  border-left-color: var(--orange);
  font-weight: 700;
}
.panel-nav a svg { flex-shrink: 0; }
.panel-nav-sep { margin: 8px 20px; border-top: 1px solid var(--gray-30); }
.panel-support-link {
  font-size: .78rem; color: var(--gray-60);
  display: flex; align-items: center; gap: 6px; text-decoration: none;
  transition: color .15s;
}
.panel-support-link:hover { color: var(--orange); }

.panel-main {
  padding: 28px 32px;
  overflow-y: auto;
  background: #FAFAFA;
}
.panel-page-title { margin-bottom: 24px; }
.panel-page-title h1 { font-size: 1.4rem; margin-bottom: 4px; }
.panel-page-title p  { color: var(--gray-70); font-size: .9rem; }

/* Dashboard stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--gray-10);
  box-shadow: var(--shadow-sm);
}
.stat-icon {
  width: 36px;
  height: 36px;
  background: var(--orange-lt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  margin-bottom: 10px;
}
.stat-value { font-size: 1.4rem; font-weight: 800; line-height: 1; margin-bottom: 3px; }
.stat-label { font-size: .8rem; color: var(--gray-50); }

/* Calendar */
.calendar-wrap {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-10);
  overflow: hidden;
}
.calendar-header {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-10);
  gap: 12px;
}
.calendar-header h2 { font-size: 1rem; margin: 0; flex: 1; text-align: center; }
.calendar-nav-btn {
  background: var(--gray-10);
  border: none;
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-70);
  transition: all var(--trans);
}
.calendar-nav-btn:hover { background: var(--gray-30); color: var(--black); }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.calendar-day-name {
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--gray-50);
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-10);
  text-transform: uppercase;
}
.calendar-day {
  min-height: 80px;
  border-right: 1px solid var(--gray-10);
  border-bottom: 1px solid var(--gray-10);
  padding: 6px;
  cursor: pointer;
  transition: background var(--trans);
  position: relative;
}
.calendar-day:nth-child(7n) { border-right: none; }
.calendar-day:hover { background: var(--orange-lt); }
.calendar-day.today { background: var(--orange-lt); }
.calendar-day.today .day-num { color: var(--orange); font-weight: 700; }
.calendar-day.other-month .day-num { color: var(--gray-30); }
.calendar-day.closed { background: repeating-linear-gradient(45deg, var(--gray-10) 0, var(--gray-10) 5px, transparent 5px, transparent 10px); }
.day-num { font-size: .85rem; font-weight: 600; line-height: 1; margin-bottom: 4px; }
.day-events { display: flex; flex-direction: column; gap: 2px; }
.day-event {
  font-size: .72rem;
  padding: 2px 5px;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.day-event.booking    { background: var(--orange-lt); color: var(--orange-dk); }
.day-event.block      { background: var(--gray-30); color: var(--gray-90); }
.day-event.transparent { background: transparent; color: var(--gray-50); border: 1px dashed var(--gray-30); }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 28px 24px 32px;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .25s ease;
}
.modal-overlay.open .modal {
  transform: translateY(0);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-title  { font-size: 1.1rem; font-weight: 700; }
.modal-close  {
  background: var(--gray-10);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-70);
  transition: all var(--trans);
}
.modal-close:hover { background: var(--gray-30); color: var(--black); }

/* ─── Alerts ─────────────────────────────────────────────────────── */
.alert {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .9rem;
}
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert-success { background: #D5F5E3; color: #1a6b36; }
.alert-error   { background: #FADBD8; color: #922B21; }
.alert-warning { background: #FEF9E7; color: #7D6608; border: 1px solid #F9E79F; }
.alert-info    { background: var(--orange-lt); color: var(--orange-dk); }

/* ─── Empty state ────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--gray-50);
}
.empty-state svg { margin: 0 auto 16px; opacity: .4; }
.empty-state h3 { font-size: 1rem; color: var(--gray-70); margin-bottom: 8px; }
.empty-state p  { font-size: .88rem; max-width: 320px; margin: 0 auto 16px; }

/* ─── Loader ─────────────────────────────────────────────────────── */
.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--gray-10);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin .7s linear infinite; display:inline-block; }
.btn-loading { display:flex; align-items:center; gap:6px; justify-content:center; }

/* ─── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  background: var(--black);
  color: var(--gray-30);
  padding: 40px 0 24px;
  margin-top: 64px;
  font-size: .88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand .logo { color: var(--white); }
.footer-brand p { color: var(--gray-50); margin-top: 8px; font-size: .82rem; line-height: 1.6; }
.footer-col h4   { color: var(--white); font-size: .85rem; margin-bottom: 12px; }
.footer-col ul   { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.footer-col a    { color: var(--gray-50); text-decoration: none; transition: color var(--trans); padding: 3px 0; display: inline-block; line-height: 1.5; }
.footer-col a:hover { color: var(--orange); }
@media (max-width: 640px) {
  .footer-grid { gap: 20px; }
  .footer-col h4 { margin-bottom: 6px; }
}
.footer-bottom {
  border-top: 1px solid var(--gray-90);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-50);
  font-size: .82rem;
}

/* ─── Accessibility ─────────────────────────────────────────────── */
/* Focus-visible: widoczny fokus tylko dla użytkowników klawiatury */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
/* Usuń zbędny outline dla myszki */
:focus:not(:focus-visible) { outline: none; }

/* Zwiększ touch target na btn-sm dla mobile */
@media (max-width: 480px) {
  .btn-sm { min-height: 44px; padding: 0 12px; }
  .btn { font-size: .9rem; }
}

/* ─── Responsive ────────────────────────────────────────────────── */

/* SVG icons w flex-containerach – poprawne wyrównanie */
.topbar svg, .topbar-nav svg,
.hero-links svg,
.hero-badge svg,
.search-field svg, .step-icon svg, .trust-block svg {
  flex-shrink: 0;
  display: block;
}
.hero-cta-hint svg, .trust-note svg {
  flex-shrink: 0;
}

/* Mobile: nawigacja i logo */
@media (max-width: 767px) {
  .topbar-inner { height: 56px; }
  .logo-group { min-width: 0; max-width: 60vw; }
  .logo { font-size: 1.25rem; }
  .logo-tagline { font-size: .75rem; padding-left: 8px; margin-left: 8px; }
  .hamburger { display: flex; }
  .topbar-nav {
    display: flex;
    position: fixed;
    top: 0; right: 0;
    width: 280px; height: 100vh;
    flex-direction: column;
    background: var(--white);
    padding: 80px 24px 24px;
    gap: 4px;
    box-shadow: -4px 0 20px rgba(0,0,0,.1);
    z-index: 101;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .25s ease, visibility 0s linear .25s;
  }
  .topbar-nav.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform .25s ease, visibility 0s linear 0s;
  }
  .topbar-nav a {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-overlay.open { display: block; }
}

@media (max-width: 767px) {
  /* Stats: siatka 2x2 */
  .stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .stat-item {
    padding: 20px 12px;
    border: 1px solid var(--gray-10);
    background: var(--white);
    min-width: unset;
  }
  .stat-item:nth-child(1) { border-radius: var(--radius) 0 0 0; }
  .stat-item:nth-child(2) { border-radius: 0 var(--radius) 0 0; border-left: none; }
  .stat-item:nth-child(3) { border-radius: 0 0 0 var(--radius); border-top: none; }
  .stat-item:nth-child(4) { border-radius: 0 0 var(--radius) 0; border-left: none; border-top: none; }
  .stat-num { font-size: 2rem; }
  .stat-label { font-size: .8rem; }
}

@media (min-width: 768px) {
  /* Search box: układ poziomy */
  .search-box {
    flex-direction: row;
    align-items: stretch;
    padding: 8px;
    gap: 0;
  }
  .search-field {
    flex: 1;
    min-width: 0;
    border-radius: 0;
  }
  .search-field:first-child { border-radius: var(--radius) 0 0 var(--radius); }
  .search-box .search-field:not(:first-child) { border-radius: 0; }
  .search-divider { display: block; margin: 0; align-self: stretch; }

  /* Przycisk: explicit height żeby nie zwijał się */
  .search-btn {
    width: auto;
    flex-shrink: 0;
    height: 50px;
    min-height: unset;
    padding: 0 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: .92rem;
  }

  /* Na wąskim desktopie (768-899px) skróć tekst przycisku */
  .search-btn .search-btn-text { display: none; }

  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-overlay { align-items: center; padding: 20px; }
  .modal { border-radius: var(--radius-lg); }
  .form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  /* Pełny tekst przycisku od 900px */
  .search-btn .search-btn-text { display: inline; }
  .search-btn { padding: 0 24px; font-size: 1rem; }
}

@media (min-width: 1024px) {
  .results-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Panel nav toggle (hamburger) */
.panel-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  align-items: center;
  color: var(--gray-70);
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}
@media (max-width: 768px) {
  .panel-nav-toggle { display: flex; margin-left: auto; }
  .panel-topbar-right { margin-left: 0; }
}

/* Overlay zawsze ukryty poza mobile (musi być poza media query, żeby na desktopie
   nie zajmował komórki gridu przy domyślnym display:block) */
.panel-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 60px 0 0 0;
  background: rgba(0,0,0,.35);
  z-index: 89;
}
.panel-sidebar-overlay.open { display: block; }

@media (max-width: 768px) {
  .panel-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: 60px auto 1fr;
  }
  .panel-sidebar {
    display: none;
    grid-row: 2;
    border-right: none;
    border-bottom: 1px solid var(--gray-10);
    padding: 10px 0;
    position: relative;
    z-index: 90;
  }
  .panel-sidebar.open { display: block; }
  .panel-main { padding: 20px 16px; grid-row: 3; }
  .panel-topbar { grid-column: 1; }
  .calendar-day { min-height: 50px; }
}

/* ─── Working hours – wizualny harmonogram tygodniowy ──────────── */
.wh-presets {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px;
}

/* Siatka 8 kolumn: label + 7 dni */
.wh-schedule {
  border: 1px solid var(--gray-10);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 4px;
}
.wh-schedule-header,
.wh-row {
  display: grid;
  grid-template-columns: 36px repeat(7, 1fr);
}
.wh-schedule-header { background: var(--gray-10); }
.wh-row { border-top: 1px solid var(--gray-10); background: var(--white); }
.wh-row-bar { background: var(--gray-05); }

.wh-label-col {
  display: flex; align-items: center; justify-content: center;
  padding: 8px 4px; font-size: .72rem; color: var(--gray-50); font-weight: 600;
}
.wh-day-col {
  display: flex; align-items: center; justify-content: center;
  padding: 8px 4px; position: relative; flex-direction: column; gap: 2px;
  transition: background .15s;
}
.wh-schedule-header .wh-day-col { padding: 6px 4px; }
.wh-day-col.is-open { background: var(--orange-lt); }

/* Przycisk dnia */
.wh-day-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--gray-20);
  background: var(--white); color: var(--gray-50); font-size: .78rem; font-weight: 700;
  cursor: pointer; transition: all .15s; display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.wh-day-btn:hover { border-color: var(--orange-mid); color: var(--orange); background: var(--orange-lt); }
.wh-day-btn.active {
  border-color: var(--orange); background: var(--orange); color: #fff;
}

/* Time inputs w siatce */
.wh-time-input {
  border: 1px solid var(--gray-20); border-radius: 4px;
  font-size: .75rem; padding: 4px 2px; text-align: center;
  width: 100%; max-width: 68px; background: var(--white);
  color: var(--black); font-family: inherit;
  transition: border-color .15s;
}
.wh-time-input:focus { outline: none; border-color: var(--orange); }
.wh-time-input:disabled { background: var(--gray-10); color: var(--gray-40); border-color: transparent; }
.wh-day-col:not(.is-open) .wh-time-input { display: none; }
.wh-closed-label {
  font-size: .75rem; color: var(--gray-40); font-style: italic; white-space: nowrap;
}
.wh-day-col.is-open .wh-closed-label { display: none; }

/* Pasek wizualny */
.wh-bar-track {
  width: 100%; height: 6px; background: var(--gray-10);
  border-radius: 3px; position: relative; overflow: hidden;
}
.wh-bar-fill {
  position: absolute; top: 0; height: 100%;
  background: var(--orange); border-radius: 3px; transition: all .2s;
}

@media (max-width: 600px) {
  .wh-schedule { overflow-x: auto; }
  .wh-schedule-header,
  .wh-row { grid-template-columns: 30px repeat(7, minmax(44px, 1fr)); min-width: 360px; }
  .wh-time-input { font-size: .75rem; padding: 5px 2px; }
  .wh-day-btn { width: 36px; height: 36px; font-size: .75rem; }
}

/* Legacy cards – zachowane na wypadek innych użyć */
.wh-day-card, .wh-day-card.is-open, .wh-day-header, .wh-day-name,
.wh-badge-closed, .wh-times { display: none; }

/* ─── Utilities ─────────────────────────────────────────────────── */
.text-orange { color: var(--orange); }
.text-gray   { color: var(--gray-50); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-sm     { font-size: .85rem; }
.text-xs     { font-size: .78rem; }
.fw-700      { font-weight: 700; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.d-none { display: none !important; }
.d-block { display: block !important; }

/* ─── Dashboard grid ───────────────────────────────────────────── */
.dashboard-2col { grid-template-columns: 1fr; }
@media (min-width: 768px) { .dashboard-2col { grid-template-columns: 1fr 1fr; } }

/* ─── Panel mobile fixes ─────────────────────────────────────── */
@media (max-width: 640px) {
  /* Kalendarz: mniejsze komórki na mobile */
  .calendar-day { min-height: 48px; padding: 3px; }
  .calendar-day-name { padding: 6px 0; font-size: .68rem; }
  .day-num { font-size: .78rem; }
  .day-event { font-size: .65rem; padding: 1px 3px; }
  .calendar-header { padding: 10px 12px; }

  /* Stats: 2 kolumny na mobile */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 12px; }
  .stat-value { font-size: 1.2rem; }

  /* Kopiuj link – pionowo */
  .pro-link-copy-row { flex-direction: column !important; }
  .pro-link-copy-row > div:last-child { flex-wrap: nowrap !important; width: 100%; }
  .pro-link-copy-row .btn { flex: 1; justify-content: center; }
}
.mt-6 { margin-top: 6px; }

/* ─── Portfolio – profil publiczny ─────────────────────────────── */
.portfolio-pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.portfolio-pub-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-20);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .18s, transform .15s;
}
.portfolio-pub-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  transform: translateY(-2px);
}
.portfolio-pub-thumb {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--gray-10);
  overflow: hidden;
}
.portfolio-pub-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.portfolio-pub-card:hover .portfolio-pub-thumb img { transform: scale(1.04); }
.portfolio-pub-count {
  position: absolute;
  bottom: 6px; right: 6px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.portfolio-pub-no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-30);
}
.portfolio-pub-info { padding: 12px 14px 14px; }
.portfolio-pub-title {
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portfolio-pub-desc {
  font-size: .8rem;
  color: var(--gray-60);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .portfolio-pub-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .portfolio-pub-info { padding: 8px 10px 10px; }
  .portfolio-pub-title { font-size: .82rem; }
}
@media (max-width: 400px) {
  .portfolio-pub-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ─── Cennik – wiersz usługa / cena (responsywny) ──────────────── */
.svc-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid var(--gray-10);
  flex-wrap: wrap;
}
.svc-price-name { flex: 1; min-width: 0; }
.svc-price-val  { white-space: nowrap; font-size: .82rem; color: var(--gray-50); flex-shrink: 0; }
@media (max-width: 480px) {
  .svc-price-row  { flex-direction: column; gap: 1px; }
  .svc-price-val  { font-size: .78rem; }
}

/* ── Page header (title + action button) ─────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.page-header .page-title  { font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }
.page-header .page-subtitle { color: var(--gray-70); font-size: .9rem; margin: 0; }

/* ── PKD accordion ───────────────────────────────────────────── */
.pkd-list { display: flex; flex-direction: column; gap: 4px; }
.pkd-item { border: 1px solid var(--gray-15); border-radius: var(--radius-sm); overflow: hidden; }
.pkd-item-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; cursor: pointer; user-select: none;
  background: var(--gray-05); transition: background .15s;
  min-height: 44px;
}
.pkd-item-head:hover { background: var(--gray-10); }
.pkd-item-code { font-size: .82rem; font-weight: 700; color: var(--gray-90); font-family: monospace; flex-shrink: 0; min-width: 56px; }
.pkd-item-short { font-size: .82rem; color: var(--gray-70); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pkd-item-chevron { flex-shrink: 0; color: var(--gray-50); transition: transform .2s; display: flex; }
.pkd-item.open .pkd-item-chevron { transform: rotate(180deg); }
.pkd-item-body { display: none; padding: 8px 12px 10px; font-size: .82rem; color: var(--gray-70); border-top: 1px solid var(--gray-10); line-height: 1.5; }
.pkd-item.open .pkd-item-body { display: block; }

/* ── Booking widget ──────────────────────────────────────────── */

/* Progress dots */
.bk-progress { display: flex; gap: 4px; margin-bottom: 16px; }
.bk-progress-dot { flex: 1; height: 3px; border-radius: 2px; background: var(--gray-10); transition: background .2s; }
.bk-progress-dot.done    { background: var(--orange); }
.bk-progress-dot.current { background: var(--orange); opacity: .5; }

@keyframes bkFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.bk-pane { display: none; }
.bk-pane.active { display: block; animation: bkFadeIn .18s ease; }

/* Back button */
.bk-back-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; color: var(--gray-50);
  font-size: .8rem; font-weight: 500; cursor: pointer;
  padding: 8px 12px; font-family: inherit; transition: color .14s;
  flex-shrink: 0; min-height: 44px;
}
.bk-back-btn:hover { color: var(--orange); }

/* Selection summary chip */
.bk-selection-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--orange-lt); color: var(--orange-dk);
  border-radius: 8px; padding: 9px 12px;
  font-size: .82rem; font-weight: 600; margin-bottom: 14px;
  border: 1.5px solid rgba(255,107,43,.15); line-height: 1.3;
}
.bk-selection-chip span { flex: 1; }

/* Service cards */
.bk-svc-grid { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.bk-svc-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px; border: 1.5px solid #e5e5e5;
  border-radius: 8px; cursor: pointer;
  transition: all .14s; user-select: none; background: var(--white);
  min-height: 44px;
}
.bk-svc-card:hover { border-color: var(--orange); background: var(--orange-lt); }
.bk-svc-card.selected { border-color: var(--orange); background: var(--orange-lt); }
.bk-svc-radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--gray-30); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; position: relative;
}
.bk-svc-card.selected .bk-svc-radio { border-color: var(--orange); background: var(--orange); }
.bk-svc-card.selected .bk-svc-radio::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff;
  position: absolute;
}
.bk-svc-name { font-size: .9rem; font-weight: 600; flex: 1; line-height: 1.3; }
.bk-svc-meta { font-size: .78rem; color: var(--gray-50); white-space: nowrap; text-align: right; line-height: 1.4; flex-shrink: 0; }

/* Date grid (bingo-style tiles) */
.bk-date-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px; margin-bottom: 14px;
}
.bk-day-tile {
  padding: 10px 8px; border-radius: 8px;
  border: 1.5px solid #e5e5e5; background: #fff;
  cursor: pointer; text-align: center;
  transition: all .14s; user-select: none;
  min-height: 44px;
}
.bk-day-tile:hover { border-color: var(--orange); background: var(--orange-lt); }
.bk-day-tile.active { border-color: var(--orange); background: var(--orange-lt); }
.bk-day-tile.is-today { border-color: var(--orange-mid); background: #fff8f4; }
.bk-day-name {
  display: block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; color: var(--gray-50);
  letter-spacing: .04em; margin-bottom: 2px;
}
.bk-day-date { display: block; font-size: .82rem; font-weight: 600; color: var(--gray-70); }
.bk-day-time {
  display: block; font-size: 1.05rem; font-weight: 800;
  color: var(--black); margin-top: 3px;
}
.bk-day-tile.active .bk-day-time { color: var(--orange-dk); }
@media (max-width: 360px) { .bk-date-grid { grid-template-columns: repeat(2, 1fr); } }

/* Time grid */
.bk-time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 16px; }
@media (max-width: 360px) { .bk-time-grid { grid-template-columns: repeat(3, 1fr); } }
.bk-time-slot {
  padding: 12px 4px; border: 1.5px solid #e5e5e5; border-radius: 8px;
  text-align: center; font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: all .14s; background: var(--white); user-select: none;
  min-height: 44px; display: flex; align-items: center; justify-content: center;
}
.bk-time-slot:hover { border-color: var(--orange); background: var(--orange-lt); }
.bk-time-slot.selected { border-color: var(--orange); background: var(--orange); color: #fff; }

/* Form fields inside booking */
.bk-field { margin-bottom: 12px; }
.bk-field label { display: block; font-size: .82rem; font-weight: 600; color: var(--gray-70); margin-bottom: 4px; }
.bk-field input,
.bk-field textarea {
  width: 100%; padding: 9px 12px; border: 1.5px solid #e5e5e5;
  border-radius: 8px; font-size: 1rem; font-family: inherit;
  outline: none; transition: border .14s; background: var(--white);
  min-height: 44px;
}
.bk-field input:focus,
.bk-field textarea:focus { border-color: var(--orange); }
.bk-field textarea { resize: vertical; }

/* OTP input */
.bk-otp-wrap { display: flex; gap: 6px; justify-content: center; margin: 16px 0 8px; }
.bk-otp-digit {
  width: 44px; height: 56px; border: 1.5px solid #e5e5e5;
  border-radius: 8px; text-align: center; font-size: 1.5rem;
  font-weight: 700; transition: border-color .15s; background: var(--white);
  -moz-appearance: textfield;
}
.bk-otp-digit::-webkit-inner-spin-button,
.bk-otp-digit::-webkit-outer-spin-button { -webkit-appearance: none; }
.bk-otp-digit:focus { border-color: var(--orange); outline: none; }

/* Success */
.bk-success { text-align: center; padding: 8px 0 4px; }
.bk-success-icon {
  width: 64px; height: 64px; border-radius: 50%; background: #dcfce7;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; color: #16a34a;
}
.bk-summary-box {
  background: var(--gray-10); border-radius: 8px;
  padding: 12px 16px; font-size: .88rem; text-align: left;
  margin: 12px 0; line-height: 1.8;
}

/* ── Szukaj: nearest slot indicator ─────────────────────────── */
.nearest-slot-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .8rem; font-weight: 600; color: #15803d;
  background: #dcfce7; padding: 3px 10px; border-radius: 999px;
}
.nearest-slot-none {
  font-size: .8rem; color: var(--gray-50); font-style: italic;
}

/* ── Panel: kalendarz dostępności (pane-hours) ───────────────── */
.cal-toolbar {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 16px;
}
.cal-month-label {
  font-size: .88rem; font-weight: 700; color: var(--gray-90);
  margin-bottom: 12px;
}
.cal-grid {
  border: 1px solid var(--gray-20);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.cal-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--gray-10);
  border-bottom: 1px solid var(--gray-20);
}
.cal-dow {
  padding: 7px 4px;
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--gray-60);
}
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-day {
  min-height: 56px;
  padding: 6px 6px 4px;
  border-right: 1px solid var(--gray-15);
  border-bottom: 1px solid var(--gray-15);
  cursor: pointer;
  transition: background .12s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cal-day:nth-child(7n) { border-right: none; }
.cal-day:hover { background: var(--orange-lt); }
.cal-day.is-working {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.cal-day.is-working:hover { background: #dcfce7; }
.cal-day-pad {
  cursor: default;
  background: var(--gray-05);
  opacity: .5;
}
.cal-day-pad:hover { background: var(--gray-05); }
.cal-day-num {
  font-size: .78rem;
  font-weight: 700;
  color: var(--gray-70);
  line-height: 1;
}
.cal-day.is-working .cal-day-num { color: #15803d; }
.cal-day-hours {
  font-size: .75rem;
  color: #16a34a;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-all;
}

/* Calendar modal */
#cal-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
#cal-modal.open { display: flex; }
.cal-modal-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}
.cal-modal-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.cal-modal-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.cal-modal-row label {
  font-size: .85rem;
  color: var(--gray-70);
  width: 44px;
  flex-shrink: 0;
}
.cal-modal-row input[type="time"] {
  flex: 1;
  padding: 8px 10px;
  border: 1.5px solid var(--gray-20);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  min-height: 44px;
}
.cal-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.cal-modal-actions .btn { flex: 1; }

@media (max-width: 480px) {
  .cal-day { min-height: 44px; padding: 4px 3px 2px; }
  .cal-day-num { font-size: .72rem; }
  .cal-day-hours { font-size: .68rem; }
  .cal-toolbar { gap: 6px; }
}

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