/* =========================================================
   Kancelaria Adwokacka Ryżkowska — main.css v1.1
   Mobile-first, CSS custom properties, bez jQuery
   ========================================================= */

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

html { scroll-behavior: smooth; }

body {
  font-family:  var(--font-main) !important;
  font-size:    17px !important;
  line-height:  1.7 !important;
  font-weight:  400 !important;
  color:        var(--color-text) !important;
  background:   var(--color-bg) !important;
}

p { font-size: 17px !important; font-weight: 400 !important; line-height: 1.7 !important; color: var(--color-text); }

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

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Typography ---- */
h1, h2 { font-family: var(--font-heading) !important; color: var(--color-primary); }
h3 { font-family: var(--font-main) !important; color: var(--color-primary); }
h4 { font-family: var(--font-main) !important; color: var(--color-primary); }

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}
h3 { font-size: 1.4rem; font-weight: 600; line-height: 1.35; }
h4 { font-size: 1.05rem; font-weight: 600; }

/* Naprawka dropdownów — select zawsze ciemny tekst (poza form-dark) */
select, .form-field select {
  color: #1a1a1a !important;
  background-color: #fff !important;
}

/* form-dark select — nadpisuje regułę powyżej */
.form-dark select,
.form-dark .form-field select {
  color: #fff !important;
  background-color: #0f1e3d !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
}

.form-dark select option {
  background-color: #0f1e3d;
  color: #fff;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 0.85rem 0;
  transition: transform 0.3s ease;
}

@media (max-width: 767px) {
  .site-header.header-hidden {
    transform: translateY(-100%);
  }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo img { height: 120px; width: auto; max-width: 280px; }

@media (max-width: 1499px) {
  .nav-logo img { height: 60px; max-width: 180px; }
}
@media (max-width: 480px) {
  .nav-logo img { height: 48px; max-width: 140px; }
}
/* single logo — dark mode removed */

.nav-menu {
  display: none;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  transition: color var(--transition);
}
.nav-menu a:hover { color: var(--color-primary); text-decoration: none; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Na pełnym desktopie (1500px+) trochę ściśnij gap dla bezpieczeństwa */
@media (min-width: 1500px) and (max-width: 1700px) {
  .nav-menu { gap: 1.25rem; }
  .nav-menu a { font-size: 0.88rem; }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-cta,
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-primary) !important;
  color: #ffffff !important;
  font-family: var(--font-main) !important;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 32px;
  border: none;
  border-radius: 4px;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15,30,61,0.15);
  white-space: nowrap;
  text-decoration: none !important;
}

.btn-cta:hover,
.btn-primary:hover {
  background: var(--color-primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(15,30,61,0.25);
  color: #fff !important;
  text-decoration: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent !important;
  color: var(--color-primary) !important;
  border: 2px solid var(--color-primary);
  padding: 12px 28px;
  border-radius: 4px;
  font-family: var(--font-main) !important;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none !important;
}

.btn-secondary:hover {
  background: var(--color-primary) !important;
  color: #fff !important;
  text-decoration: none;
}

/* Hamburger */
.btn-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.btn-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}

.btn-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.btn-hamburger.open span:nth-child(2) { opacity: 0; }
.btn-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Przycisk zamknij menu mobile */
.nav-menu-close-item {
  list-style: none;
  display: none;
  margin-bottom: 1rem;
}

.btn-menu-close {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.9);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  transition: background var(--transition);
}

.btn-menu-close:hover {
  background: rgba(255,255,255,0.1);
}

.nav-menu.open .nav-menu-close-item {
  display: block;
}

/* Overlay za menu (klik = zamknij) */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 199;
}

.nav-overlay.active { display: block; }

/* Mobile menu — wyjeżdża z prawej, pełnoekranowe tło */
.nav-menu.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--color-primary);
  padding: 5rem 2rem 2rem;
  gap: 1.5rem;
  z-index: 200;
  box-shadow: -4px 0 32px rgba(15,30,61,0.3);
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

.nav-menu.open a {
  color: rgba(255,255,255,0.9);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}
.nav-menu.open a:hover { color: var(--color-accent); text-decoration: none; }

@media (min-width: 1500px) {
  .nav-menu { display: flex; }
  .btn-hamburger { display: none; }
}

@media (max-width: 1499px) {
  .nav-actions {
    flex-shrink: 0;
    margin-left: auto;
  }
  .nav-logo {
    flex-shrink: 1;
    overflow: hidden;
  }
}

/* =========================================================
   SEKCJE — wspólne
   ========================================================= */
.section { padding: 5rem 0; }
.section-alt { background: var(--color-bg-alt); }

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-title { margin-bottom: 1.25rem; }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 600px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  display: flex;
  align-items: center;
  background: var(--color-bg);
  padding: 3rem 0;
  overflow: clip;
}

@media (min-width: 1024px) {
  .hero {
    min-height: 90vh;
    padding: 5rem 0 4rem;
  }
}

.hero-visual { display: none !important; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 3fr 2fr; gap: 3rem; }
}

.hero-image {
  display: none;
}

.omnie-mobile-photo {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  height: 300px;
  margin-bottom: 1.5rem;
}

.omnie-mobile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (min-width: 1024px) {
  .hero-image {
    display: block;
    height: auto;
    min-height: 440px;
    border-radius: var(--radius);
    overflow: hidden;
  }
  .omnie-mobile-photo { display: none; }
  .omnie-desktop-photo { display: block; }
}

.omnie-desktop-photo { display: none; }

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.hero h1 { margin-bottom: 1.25rem; }

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero animacja CSS */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content > * { animation: heroFadeUp 0.7s ease both; }
.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.15s; }
.hero-content > *:nth-child(3) { animation-delay: 0.25s; }
.hero-content > *:nth-child(4) { animation-delay: 0.35s; }

/* =========================================================
   USP — 4 bloki
   ========================================================= */
.usp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 480px)  { .usp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .usp-grid { grid-template-columns: repeat(4, 1fr); } }

.usp-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
}

.usp-icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.usp-card h3 { margin-bottom: 0.5rem; }

/* =========================================================
   SPECJALIZACJE — 6 kart
   ========================================================= */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.spec-card {
  background: var(--color-surface);
  padding: 40px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  transition: all var(--transition);
}

.spec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15,30,61,0.08);
  border-top-color: var(--color-primary);
}

.spec-icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.spec-card h3 { color: var(--color-primary); margin-bottom: 0.75rem; }
.spec-card p  { font-size: 0.95rem; color: var(--color-text-muted); margin-bottom: 1.25rem; }

.link-arrow {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition);
}
.link-arrow:hover { text-decoration: none; gap: 0.5rem; }

/* =========================================================
   JAK DZIAŁAMY — timeline
   ========================================================= */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
}

@media (min-width: 768px) {
  .timeline { flex-direction: row; align-items: flex-start; gap: 2rem; }
  .timeline-item { flex: 1; position: relative; padding-right: 1rem; }
}

.timeline-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.timeline-item h3 { margin-bottom: 0.5rem; }
.timeline-item p  { font-size: 0.95rem; color: var(--color-text-muted); }

/* =========================================================
   REZERWACJA — 3 opcje kontaktu + formularz
   ========================================================= */
.section-rezerwacja {
  background: var(--color-primary);
  color: #fff;
  padding: 5rem 0;
}

.section-rezerwacja .section-label { color: var(--color-accent); }
.section-rezerwacja h2 { color: #fff; }
.section-rezerwacja .section-subtitle { color: rgba(255,255,255,0.75); max-width: 600px; }

/* 3 karty kontaktu */
.contact-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

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

.contact-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background var(--transition);
}

.contact-card:hover { background: rgba(255,255,255,0.12); }

.contact-icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  margin: 0 auto 1.25rem;
}

.contact-card h3 {
  color: #fff;
  font-family: var(--font-main) !important;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-card p {
  font-size: 0.9rem !important;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.25rem;
}

.btn-contact {
  display: inline-block;
  background: var(--color-accent);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-main) !important;
  transition: background var(--transition);
  text-decoration: none !important;
}

.btn-contact:hover { background: var(--color-accent-hover); text-decoration: none; color: #fff !important; }

/* Formularz rezerwacji */
.reservation-form-wrap {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 2rem 2rem 1.5rem;
}

.reservation-form-wrap > h3 {
  color: #fff !important;
  font-family: var(--font-main) !important;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

.calendar-mockup { display: none !important; }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 480px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 0.35rem; }

.form-field label { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.85); }

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.95rem;
  width: 100%;
  min-height: 44px;
}

.form-field input::placeholder { color: rgba(255,255,255,0.5); }

.form-rodo {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}

.form-rodo input[type="checkbox"] { min-width: 18px; margin-top: 3px; }

.success-msg {
  display: none;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  font-weight: 600;
}

.btn-submit {
  background: var(--color-accent) !important;
  color: #fff !important;
  border: none;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-main) !important;
  cursor: pointer;
  transition: background var(--transition);
  min-height: 44px;
}

.btn-submit:hover { background: var(--color-accent-hover) !important; }

/* =========================================================
   KANCELARIA W SKRÓCIE
   ========================================================= */
.skrot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2.5rem;
}

.skrot-item {
  border-left: 3px solid var(--color-accent);
  padding: 0.6rem 0 0.6rem 1rem;
}

.skrot-item dt {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.2rem;
}

.skrot-item dd {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.55;
  margin: 0;
}

.skrot-item dd a {
  color: var(--color-primary);
  font-weight: 600;
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 1px;
}

@media (max-width: 640px) {
  .skrot-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   OPINIE
   ========================================================= */
.opinions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

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

.opinion-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
}

.opinion-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0.5rem;
}

.opinion-stars svg { width: 14px; height: 14px; color: var(--color-accent); }

.opinion-text {
  font-family: var(--font-heading) !important;
  font-style: italic;
  font-size: 0.88rem !important;
  line-height: 1.55 !important;
  margin-bottom: 0;
  color: var(--color-text);
}

.opinion-author-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.opinion-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  font-family: var(--font-heading) !important;
}

.opinion-author { font-weight: 600; font-size: 0.9rem; color: var(--color-primary); }
.opinion-meta   { font-size: 0.8rem; color: var(--color-text-muted); }

/* =========================================================
   FAQ — karty z animacją
   ========================================================= */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open { border-color: var(--color-primary); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 24px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--color-primary); }
.faq-question:focus,
.faq-question:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
  border-radius: 4px;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--color-accent);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.97rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* =========================================================
   KONTAKT
   ========================================================= */
.section-kontakt {
  background: var(--color-primary);
  color: #fff;
}

.section-kontakt h2 { color: #fff; }
.section-kontakt .section-label { color: var(--color-accent); }

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) { .kontakt-grid { grid-template-columns: 1fr 1fr; } }

.kontakt-info-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.kontakt-info-item svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--color-accent); }
.kontakt-info-item a { color: #fff; }

.map-placeholder {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

.whereby-note {
  background: rgba(255,255,255,0.08);
  border-left: 3px solid var(--color-accent);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 1.5rem;
}

/* Formularz kontaktowy (ciemny) */
.form-dark input,
.form-dark select,
.form-dark textarea {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.95rem;
  width: 100%;
  min-height: 44px;
}

.form-dark label { color: rgba(255,255,255,0.85); font-size: 0.88rem; font-weight: 600; display: block; margin-bottom: 0.35rem; }
.form-dark .form-rodo { color: rgba(255,255,255,0.8); }
.form-dark textarea { min-height: 120px; resize: vertical; }

.form-dark input::placeholder,
.form-dark textarea::placeholder { color: rgba(255,255,255,0.45); }

.form-dark input:focus,
.form-dark textarea:focus,
.form-dark select:focus {
  outline: none;
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

/* Autofill — zapobiega białemu tłu wpisywanemu przez przeglądarkę */
.form-dark input:-webkit-autofill,
.form-dark input:-webkit-autofill:hover,
.form-dark input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0px 1000px #0f1e3d inset;
  box-shadow: 0 0 0px 1000px #0f1e3d inset;
  transition: background-color 5000s ease-in-out 0s;
  caret-color: #fff;
}

.klauzula-rodo {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-logo img { height: 110px; width: auto; max-width: 220px; margin-bottom: 1rem; }
.footer-ora img  { height: 56px; width: auto; margin-top: 1rem; }

.footer-desc { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.55); margin-bottom: 1rem; }

.footer-col h4 {
  color: #fff;
  font-family: var(--font-heading) !important;
  margin-bottom: 1rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--color-accent); text-decoration: none; }

.footer-social { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.footer-social a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-social a:hover { color: var(--color-accent); }
.footer-social svg { width: 22px; height: 22px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--color-accent); text-decoration: none; }

/* =========================================================
   STRONA USŁUG — listy i treść
   ========================================================= */
.page-uslugi ul,
.uslugi-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.page-uslugi ul li,
.uslugi-list li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
}

.page-uslugi ul li::before,
.uslugi-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* =========================================================
   FLOATING PHONE BUTTON (desktop)
   ========================================================= */
.float-phone {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--color-primary);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(15,30,61,0.3);
  z-index: 900;
  animation: subtle-pulse 2s ease-in-out infinite;
  text-decoration: none !important;
  transition: background var(--transition);
}

.float-phone:hover {
  background: var(--color-primary-dark);
  color: white;
  text-decoration: none;
}

.float-phone svg { width: 26px; height: 26px; }

@keyframes subtle-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(15,30,61,0.3); }
  50% { transform: scale(1.05); box-shadow: 0 6px 28px rgba(15,30,61,0.4); }
}

/* =========================================================
   MOBILE STICKY CTA BAR
   ========================================================= */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primary);
  padding: 10px 12px;
  z-index: 998;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-cta-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-main) !important;
  text-decoration: none !important;
  color: #fff !important;
}

.mobile-cta-bar .mobile-btn-call  { background: var(--color-accent); }
.mobile-cta-bar .mobile-btn-email { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); }
.mobile-cta-bar svg { width: 18px; height: 18px; flex-shrink: 0; }

/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */
@media (max-width: 767px) {
  body { font-size: 16px !important; padding-bottom: 68px; }
  p { font-size: 16px !important; }

  h1 { font-size: 2.2rem !important; line-height: 1.2 !important; }
  h2 { font-size: 1.75rem !important; }

  .section { padding: 60px 0; }

  .hero {
    min-height: auto;
    padding: 4rem 0 3rem;
    text-align: center;
  }

  .hero-actions { justify-content: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }

  .spec-card { padding: 28px 20px; }

  .btn-cta, .btn-primary, .btn-secondary {
    padding: 12px 22px;
    font-size: 15px;
  }

  .float-phone { display: none; }
  .mobile-cta-bar { display: flex; }

  .nav-menu.open { padding-top: 4.5rem; }
}

/* =========================================================
   SCROLL TO TOP
   ========================================================= */
.scroll-to-top {
  position: fixed;
  bottom: 82px;
  right: 14px;
  width: 42px;
  height: 42px;
  background: transparent;
  color: #b08d3a;
  border: 1.5px solid rgba(176,141,58,0.6);
  border-radius: 50%;
  cursor: pointer;
  display: flex !important;   /* Astra ustawia button { display: inline-block } */
  align-items: center;
  justify-content: center;
  padding: 0 !important;      /* Astra nadpisuje padding przycisków */
  box-shadow: none;
  z-index: 9997;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  -webkit-appearance: none;   /* Android/iOS usuwa natywny wygląd button */
  appearance: none;
  -webkit-tap-highlight-color: transparent; /* Android usuwa niebieski kwadrat na tap */
}

.scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-to-top:hover {
  background: rgba(15,30,61,0.08);
  border-color: #b08d3a;
}

.scroll-to-top:focus,
.scroll-to-top:active {
  outline: none;
  box-shadow: none;
}

.scroll-to-top:focus-visible {
  outline: 1px solid #b08d3a;
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .scroll-to-top {
    bottom: 30px;
    right: 30px;
  }

/* =========================================================
   PORADNIK PRAWNY — Blog
   ========================================================= */

/* Filtry kategorii */
.poradnik-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.poradnik-cat-btn {
  padding: 0.4rem 1rem;
  border: 1.5px solid var(--color-border, #e0d9ce);
  border-radius: 2rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.2s;
}
.poradnik-cat-btn:hover,
.poradnik-cat-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Grid kart */
.poradnik-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Karta artykułu */
.poradnik-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(15,30,61,0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.poradnik-card:hover {
  box-shadow: 0 6px 24px rgba(15,30,61,0.13);
  transform: translateY(-2px);
}
.poradnik-card-img-wrap {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f0ece4;
}
.poradnik-card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.poradnik-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.poradnik-card:hover .poradnik-card-img {
  transform: scale(1.04);
}
.poradnik-card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.poradnik-card-cat {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-decoration: none;
  margin-bottom: 0.5rem;
}
.poradnik-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}
.poradnik-card-title a {
  color: var(--color-primary);
  text-decoration: none;
}
.poradnik-card-title a:hover { color: var(--color-accent); }
.poradnik-card-date {
  font-size: 0.82rem;
  color: var(--color-muted, #888);
  margin-bottom: 0.75rem;
}
.poradnik-card-excerpt {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--color-text);
  flex: 1;
  margin-bottom: 1.1rem;
}
.poradnik-card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  margin-top: auto;
}
.poradnik-card-more:hover { color: var(--color-primary); }

/* Paginacja */
.poradnik-pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}
.poradnik-pagination .page-numbers {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
}
.poradnik-pagination .page-numbers li a,
.poradnik-pagination .page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.75rem;
  border: 1.5px solid var(--color-border, #e0d9ce);
  border-radius: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.2s;
}
.poradnik-pagination .page-numbers li a:hover,
.poradnik-pagination .page-numbers li span.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Single post — zdjęcie główne */
.post-featured-img {
  padding: 0 0 2rem;
  background: #fff;
}

/* Single post — meta w hero */
.post-meta-header {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}
.post-cat-badge {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

/* Single post — treść */
.post-content-wrap {
  max-width: 780px;
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* CTA w artykule */
.post-cta-container {
  text-align: center;
  max-width: 560px;
  width: 100%;
  padding: 0 1.25rem;
  box-sizing: border-box;
}
.post-cta-desc {
  margin-top: 1rem;
  color: rgba(255,255,255,0.8);
  font-size: clamp(0.88rem, 2vw, 1rem);
}
.post-cta-btns {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.post-cta-btns .btn-cta,
.post-cta-btns .btn-secondary {
  flex: 0 1 auto;
  min-width: 160px;
  max-width: 100%;
  justify-content: center;
  white-space: nowrap;
  box-sizing: border-box;
}
.post-cta-tel {
  border-color: rgba(255,255,255,0.4) !important;
  color: #fff !important;
}
.post-content {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--color-text);
}
.post-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 2.5rem 0 1rem;
}
.post-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 2rem 0 0.75rem;
}
.post-content p { margin-bottom: 1.25rem; }
.post-content ul,
.post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.post-content li { margin-bottom: 0.4rem; }
.post-content strong { color: var(--color-primary); }
.post-content a { color: var(--color-accent); text-decoration: underline; }
.post-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: #f9f7f3;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-muted);
}

/* Tagi */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border, #e0d9ce);
}
.post-tag {
  padding: 0.3rem 0.85rem;
  background: #f0ece4;
  border-radius: 2rem;
  font-size: 0.82rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}
.post-tag:hover { background: var(--color-accent); color: #fff; }

/* Autor */
.post-author-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: #f9f7f3;
  border-radius: var(--radius);
  border-left: 3px solid var(--color-accent);
}
.post-author-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 8%;
  flex-shrink: 0;
}
.post-author-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 0.3rem;
}
.post-author-desc {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* Responsive — archive: 4 kolumny, homepage: 3 */
@media (min-width: 640px) {
  .poradnik-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .poradnik-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Lista artykułów (archive) ── */
.poradnik-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 860px;
  margin: 0 auto;
}
.poradnik-list-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(15,30,61,0.07);
  border: 1px solid var(--color-border, #e8e2d9);
  text-decoration: none;
  transition: box-shadow 0.2s;
}
.poradnik-list-item:hover { box-shadow: 0 4px 20px rgba(15,30,61,0.12); }
.poradnik-list-thumb {
  flex-shrink: 0;
  width: 140px;
  height: 95px;
  overflow: hidden;
  border-radius: calc(var(--radius) * 0.6);
  background: #f0ece4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.poradnik-list-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.poradnik-list-item:hover .poradnik-list-img { transform: scale(1.03); }
.poradnik-list-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.poradnik-list-body {
  flex: 1;
  min-width: 0;
}
.poradnik-list-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}
.poradnik-list-sep {
  color: var(--color-muted, #aaa);
  font-size: 0.8rem;
}
.poradnik-list-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.4rem;
}
.poradnik-list-title a {
  color: var(--color-primary);
  text-decoration: none;
}
.poradnik-list-title a:hover { color: var(--color-accent); }
.poradnik-list-excerpt {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-muted, #666);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 600px) {
  .poradnik-list { gap: 1rem; }
  .poradnik-list-item {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }
  .poradnik-list-thumb {
    width: 100%;
    height: 160px;
  }
  .poradnik-list-title { font-size: 1rem; }
}
}

/* ── Własny banner cookie ── */
#kancelaria-cookie-banner {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 99999;
  background: #0f1e3d;
  border-top: 3px solid #b08d3a;
  padding: 1rem 1.5rem;
  justify-content: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.kcb-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 1100px;
  width: 100%;
  flex-wrap: wrap;
}
.kcb-text {
  flex: 1;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
  min-width: 200px;
}
.kcb-link { color: #b08d3a; text-decoration: underline; }
.kcb-buttons {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.kcb-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
  font-family: inherit;
}
.kcb-btn-accept { background: #b08d3a; color: #fff; border-color: #b08d3a; }
.kcb-btn-accept:hover { background: #9a7a30; }
.kcb-btn-reject { background: transparent; color: #b08d3a; border-color: rgba(176,141,58,0.5); }
.kcb-btn-reject:hover { border-color: #b08d3a; background: rgba(176,141,58,0.08); }
.kcb-btn-customize { background: transparent; color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.25); }
.kcb-btn-customize:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

/* Panel preferencji */
#kancelaria-cookie-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.kcb-panel-box {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.kcb-panel-header {
  background: #0f1e3d;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px 12px 0 0;
}
.kcb-panel-header h3 { color: #fff; margin: 0; font-size: 1.1rem; }
.kcb-panel-close {
  background: none; border: none; color: rgba(255,255,255,0.6);
  font-size: 1.2rem; cursor: pointer; padding: 0.25rem 0.5rem;
}
.kcb-panel-close:hover { color: #fff; }
.kcb-panel-body { padding: 1.25rem 1.5rem; }
.kcb-panel-desc { font-size: 0.88rem; color: #555; margin-bottom: 1.25rem; line-height: 1.6; }
.kcb-category {
  padding: 1rem 0;
  border-bottom: 1px solid #e8e2d9;
}
.kcb-category:last-child { border-bottom: none; }
.kcb-cat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.kcb-cat-header strong { color: #0f1e3d; font-size: 0.95rem; }
.kcb-cat-header p { color: #666; font-size: 0.83rem; margin: 0.25rem 0 0; line-height: 1.5; }
.kcb-always { color: #b08d3a; font-size: 0.8rem; font-weight: 600; white-space: nowrap; margin-top: 2px; }
/* Toggle switch */
.kcb-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; margin-top: 2px; }
.kcb-switch input { opacity: 0; width: 0; height: 0; }
.kcb-slider {
  position: absolute; cursor: pointer;
  inset: 0; background: #ccc; border-radius: 34px;
  transition: 0.3s;
}
.kcb-slider:before {
  content: ''; position: absolute;
  width: 20px; height: 20px; background: #fff; border-radius: 50%;
  left: 3px; bottom: 3px; transition: 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.kcb-switch input:checked + .kcb-slider { background: #b08d3a; }
.kcb-switch input:checked + .kcb-slider:before { transform: translateX(20px); }
.kcb-panel-footer {
  padding: 1rem 1.5rem;
  background: #f9f7f3;
  border-top: 1px solid #e8e2d9;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  border-radius: 0 0 12px 12px;
}
.kcb-panel-footer .kcb-btn-reject { color: #666; border-color: #ccc; }
/* Przycisk powrotu */
#kcb-revisit {
  position: fixed; bottom: 1.5rem; left: 1.5rem;
  z-index: 99998;
  background: #0f1e3d; color: #b08d3a;
  border: 1.5px solid #b08d3a;
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 600; font-family: inherit;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  white-space: nowrap;
}
#kcb-revisit::after { content: 'Cookies'; }
#kcb-revisit:hover { background: #1a2f52; }
@media (max-width: 600px) {
  .kcb-inner { flex-direction: column; align-items: stretch; gap: 1rem; }
  .kcb-buttons { justify-content: stretch; }
  .kcb-btn { flex: 1; text-align: center; }
}

/* ── CookieYes — kolory kancelarii ── */
.cky-consent-container,
.cky-modal,
.cky-preference-center {
  font-family: 'Inter', sans-serif !important;
}
.cky-consent-bar,
.cky-modal .cky-modal-box,
.cky-preference-center .cky-preference-content-wrapper {
  background: #0f1e3d !important;
  border-color: #1e3460 !important;
}
.cky-title,
.cky-notice-des,
.cky-notice-des *,
.cky-preference-title,
.cky-preference-des {
  color: #f0ece4 !important;
}
/* Przycisk Akceptuj */
.cky-btn-accept {
  background-color: #b08d3a !important;
  border-color: #b08d3a !important;
  color: #fff !important;
  font-weight: 600 !important;
}
.cky-btn-accept:hover {
  background-color: #9a7a30 !important;
  border-color: #9a7a30 !important;
}
/* Przycisk Odrzuć / Dostosuj */
.cky-btn-reject,
.cky-btn-customize {
  background-color: transparent !important;
  border-color: rgba(176,141,58,0.5) !important;
  color: #b08d3a !important;
}
.cky-btn-reject:hover,
.cky-btn-customize:hover {
  background-color: rgba(176,141,58,0.1) !important;
  border-color: #b08d3a !important;
}
/* Przycisk powrotu do preferencji */
.cky-btn-revisit-wrapper {
  background-color: #b08d3a !important;
}
/* Przełączniki kategorii — zawsze widoczne */
.cky-switch {
  display: inline-block !important;
  position: relative !important;
  width: 48px !important;
  height: 26px !important;
  flex-shrink: 0 !important;
}
.cky-switch input {
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}
.cky-slider {
  position: absolute !important;
  cursor: pointer !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  background-color: #ccc !important;
  border-radius: 34px !important;
  transition: 0.3s !important;
  display: block !important;
}
.cky-slider:before {
  position: absolute !important;
  content: "" !important;
  height: 20px !important;
  width: 20px !important;
  left: 3px !important;
  bottom: 3px !important;
  background-color: #fff !important;
  border-radius: 50% !important;
  transition: 0.3s !important;
}
.cky-switch input:checked + .cky-slider {
  background-color: #b08d3a !important;
}
.cky-switch input:checked + .cky-slider:before {
  transform: translateX(22px) !important;
}
/* Nagłówki sekcji w preferencjach */
.cky-accordion-header,
.cky-accordion-btn {
  color: #f0ece4 !important;
}
.cky-accordion-chevron path {
  stroke: #b08d3a !important;
}
/* Okno preferencji — w pełni jasne tło */
.cky-preference-center,
.cky-preference-center * {
  box-sizing: border-box;
}
.cky-preference-center {
  background: #fff !important;
}
.cky-preference-center .cky-modal-box {
  background: #fff !important;
}
/* Nagłówek okna — ciemny z białym tekstem */
.cky-preference-center .cky-modal-header {
  background: #0f1e3d !important;
  padding: 1rem 1.5rem !important;
}
.cky-preference-center .cky-modal-header * {
  color: #fff !important;
}
/* Środkowa część — biała */
.cky-preference-center .cky-modal-body,
.cky-preference-center .cky-preference-content-wrapper,
.cky-preference-center .cky-preference-body-wrapper {
  background: #fff !important;
  color: #1a1a1a !important;
}
/* Opis w nagłówku — ukryj ciemny blok jeśli nieczytelny */
.cky-preference-center .cky-preference-des {
  color: #333 !important;
  background: transparent !important;
}
/* Kategorie */
.cky-preference-center .cky-accordion-btn {
  color: #0f1e3d !important;
  font-weight: 600 !important;
}
.cky-preference-center .cky-accordion-body,
.cky-preference-center .cky-accordion-body * {
  color: #444 !important;
  background: transparent !important;
}
.cky-preference-center .cky-accordion-item {
  border-color: #e8e2d9 !important;
  background: #fff !important;
}
.cky-preference-center .cky-accordion-chevron path {
  stroke: #b08d3a !important;
}
/* Stopka z przyciskami */
.cky-preference-center .cky-modal-footer {
  background: #f9f7f3 !important;
  border-top: 1px solid #e8e2d9 !important;
}
