/* === Utility – SZYMIGA === */
*, *::before, *::after {
  box-sizing: border-box;
}

/* === Scrollbar Stability - zapobiega przeskakiwaniu strony === */
html {
  overflow-y: scroll; /* Zawsze pokazuj scrollbar, zapobiega layout shift */
  scrollbar-gutter: stable; /* Modern browsers: rezerwuje miejsce na scrollbar */
}

/* === Skip Link - WCAG 2.1 Accessibility === */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #FCD00A;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  z-index: 99999;
  transition: top 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 3px solid #FCD00A;
  outline-offset: 2px;
}
/* === Layout i kontenery === */
.container { max-width: var(--container-width, 1400px); margin: 0 auto; width: 100%; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }

.section {
  width: 100%;
  padding: 48px 0 32px 0;
  background: #fff;
}
.section--cream { background: #f9f7f3; }
.section--narrow .container { max-width: 800px; }

/* === Flex & gap === */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
/* Flow utility - adds margin between elements */
.flow > * + * { margin-top: 1em; }
.w-50 { width: 50%; }
.center { align-items: center; justify-content: center; }
.text-center { text-align: center; }
.justify-start { justify-content: flex-start; }
.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }


.split-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5em;
  object-fit: cover;
}
li {display: block;}

/* === Szerokości & pozycjonowanie === */
.mx-auto { margin-left: auto; margin-right: auto; }
.relative { position: relative; }
.abs-center {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; pointer-events: none;
}

/* === Marginesy & paddingi === */
.mb-2 { margin-bottom: .5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-6 { margin-bottom: 2.5rem; }
.mb-8 { margin-bottom: 3.5rem; }
.mb-10 { margin-bottom: 5rem; }
.mbt-2 { margin-bottom: .5rem; }
.mbt-4 { margin-bottom: 1.5rem; }
.mbt-6 { margin-bottom: 2.5rem; }
.mbt-8 { margin-bottom: 3.5rem; }
.pb-6 { padding-bottom: 2.5rem; }
.mt-4 { margin-top: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-8  { padding-top: 2rem; padding-bottom: 2rem; }
.py-6  { padding-top: 2rem; padding-bottom: 2rem; }
.py-4  { padding-top: 1rem; padding-bottom: 1rem; }
.py-2  { padding-top: .5rem; padding-bottom: .5rem; }
.pyt-4  { padding-top: 1rem; }
.pyt-6  { padding-top: 2rem; }
.pyt-7  { padding-top: 2.5rem; }
.pyb-2  { padding-bottom: .4rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1em; }
.gap-6 { gap: 2em; }
.px-20 {
  padding-left: 20px;
  padding-right: 20px;
}

.bortop {border-top: 2px solid #e9e9e9; margin-top:3rem;}

/* === Kolory tła === */
.bg-cream { background: #fcf6f2; }

/* === Kolory przyciskow === */
.btn {
  background: #111;
  color: #fff;
  border-radius: 0;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 28px;
  margin: 0;
  display: inline-block;
  box-shadow: none;
  pointer-events: auto;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 8px;
  text-decoration: none;
  border: 0px;
}
.btn, .btn:visited, .btn:focus, .btn:active {
  color: #fff;
  text-decoration: none;
}
.btn:hover
 {
  background: #FBCF0B;
  color: #222;
}
.btnc {
  background: #FBCF0B;
  color: #222;
  border-radius: 0;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 28px;
  margin: 0;
  display: inline-block;
  box-shadow: none;
  pointer-events: auto;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 8px;
  text-decoration: none;
  border: 0px;
}
.btnc:hover
 {
  background: #111;
  color: #fff;
}
.btnc, .btnc:visited, .btnc:focus, .btnc:active {
  color: #222;
  text-decoration: none;
}
.btnc:hover {
  color: #fff;
}

.btn-border {
  color: #222;
  border-radius: 0;
  font-weight: 700;
  font-size: 14px;
  padding: 16px 28px;
  margin: 0;
  display: inline-block;
  box-shadow: none;
  pointer-events: auto;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 8px;
  text-decoration: none;
  border: 1px solid #222;
}
.btn-border:hover
 {
  background: #111;
  color: #fff;
  text-decoration: none;
}
.btn-border, .btn-border:visited, .btn-border:focus, .btn-border:active {
  color: #222;
  text-decoration: none;
}
.btn-border:hover {
  color: #fff;
}


/* === OGÓLNE LINKI === */
a {
  color: var(--a-global-color-primary, #CD8F5C);
  text-decoration: none;
  transition: color 0.22s cubic-bezier(.23,1.02,.67,.98);
  outline: none;
}

a:hover,
a:focus-visible {
  color: var(--a-global-color-primary_hover, #583a22);
  text-decoration: none;
  outline: none;
}

/* === TYPOGRAFIA – NAGŁÓWKI I AKAPITY === */
h1, .page-title {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1em;
  color: var(--heading-color, #000);
  margin-top: 0;
  margin-bottom: 1.1em;
}

h2, .section-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--heading-color, #000);
  margin-top: 0;
  margin-bottom: 1em;
}

h3, .block-title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.18;
  color: var(--heading-color, #000);
  margin-top: 0;
  margin-bottom: 0.8em;
}

h4 {
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.18;
  color: var(--heading-color, #000);
  margin-top: 0;
  margin-bottom: 0.7em;
}

h5 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.18;
  color: var(--heading-color, #000);
  margin-top: 0;
  margin-bottom: 0.6em;
}

h6 {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.18;
  color: var(--heading-color, #000);
  margin-top: 0;
  margin-bottom: 0.5em;
}

/* Link w nagłówku h1-h6 zawsze czarny, hover: brązowy */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited {
  color: #000;
  text-decoration: none;
  outline: none;
  transition: color 0.22s cubic-bezier(.23,1.02,.67,.98);
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover,
h1 a:focus-visible, h2 a:focus-visible, h3 a:focus-visible, h4 a:focus-visible, h5 a:focus-visible, h6 a:focus-visible {
  color: var(--a-global-color-primary_hover, #583a22);
  text-decoration: none;
  outline: none;
}
p {
  font-size: var(--font-size-base, 17.6px);
  line-height: 1.6;
  color: var(--text-font-color, #444);
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 1em;
}

/* Akapity i lead */
.lead {
  font-size: var(--font-size-base, 17.6px);
  line-height: 1.6;
  color: var(--text-font-color, #444);
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 1em;
  font-size: 1.1rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  margin-bottom: 0;
}

.container {
  width: 100%;
  max-width: var(--container-width, 1400px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Wrapper tła breadcrumbs */
.breadcrumbs-wrapper {
  width: 100%;
  background-color: var(--bg-breadcrumbs);
  padding: 5px 0px;
}

/* Kontener wewnętrzny */
.breadcrumbs-container {
  max-width: var(--container-width, 1400px);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
  font-size: 14px;
  color: var(--color-grey, #666666);
}

/* Stylizacja linków breadcrumbs (dziedziczona z utility.css) */
#breadcrumbs a {
  color: var(--a-global-color-primary, #CD8F5C);
  text-decoration: none;
  transition: color 0.2s;
}

#breadcrumbs a:hover {
  color: var(--a-global-color-primary_hover, #583a22);
  text-decoration: underline;
}

/* Separatory Yoast (symbol > lub ›) */
#breadcrumbs span.separator {
  margin: 0 6px;
  color: #aaa;
}

/* === EFEKT NA ZDJĘCIE PO NAJECHANIU ZOOM === */

/* Efekt zoom-in na całym bannerze z klasą img-hover-zoom */
.img-hover-zoom {
  overflow: hidden;        /* PRZYCIĘCIE OBRAZU W RAMCE */
  position: relative;
}
.img-hover-zoom picture,
.img-hover-zoom img {
  display: block;
  width: 100%;
  height: 100%;
}

.img-hover-zoom img {
  transition: transform 0.38s cubic-bezier(.23,1.02,.67,.98), box-shadow 0.22s;
  will-change: transform;
  object-fit: cover;
}

/* Po najechaniu na banner: tylko obrazek jest powiększany */
.img-hover-zoom:hover img,
.img-hover-zoom:focus-visible img {
  transform: scale(1.055);
  box-shadow: 0 8px 28px rgba(60,60,60,0.14);
  z-index: 2;
}

/* Responsywność: jedna kolumna pod drugą na mobile */
@media (max-width: 900px) {
  .flex { flex-direction: column; }
  .w-50 { width: 100%; }
}

/* === Responsywność – MOBILE (MAX 768px) === */
@media (max-width: 768px) {
  .container { padding-left: 8px; padding-right: 8px; }
  .section { padding: 30px 0 18px 0; }
  .heading-xl { font-size: 1.45rem; }
  .heading-lg { font-size: 1.18rem; }
  .lead { font-size: 1rem; padding: 0 6px; }
}




/* === FORMULARZE – FLOATING LABEL / VALIDATION === */
.form-group {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 18px 44px 6px 16px;
  border: 1px solid #d1d1d1;
  border-radius: 10px;
  background-color: #fff;
  font-size: 16px;
  color: #222;
  font-weight: 400;
  transition: border 0.2s;
  outline: none;
  box-sizing: border-box;
}

.form-group label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 15px;
  pointer-events: none;
  background: #fff;
  transition: all 0.19s cubic-bezier(.35,.88,.48,.96);
  padding: 0 4px;
}
/* Label dla aktywnego/select z wartością */
.form-group select:focus + label,
.form-group select:valid + label {
  top: 0px;
  left: 12px;
  font-size: 12px;
  color: var(--a-global-color-primary, #CD8F5C);
  background: #fff;
  padding: 0 4px;
  transform: none; /* usuwa translateY(-35px) */
}


.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  top: 6px;
  left: 12px;
  font-size: 12px;
  color: var(--a-global-color-primary, #CD8F5C);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 18px 44px 14px 16px;
  border: 1px solid #d1d1d1;
  border-radius: 10px;
  background-color: #fff;
  font-size: 16px;
  color: #222;
  font-weight: 400;
  transition: border 0.2s;
  outline: none;
  box-sizing: border-box;
}

.form-group select {
  padding-right: 50px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 12px;
} 

.billing-grid > .form-group {
  min-width: 0;
  max-width: 100%;
}
.input-wrapper {
  position: relative;
  width: 100%;
}
/* Ikona walidacyjna */
.form-group .form-icon {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  font-size: 20px;
  color: #aaa;
  opacity: 0;
  pointer-events: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* Komunikat błędu – domyślnie ukryty */
.form-group .form-error-msg {
  font-size: 12px;
  color: #e53935;
  margin: 4px 0 0 4px;
  line-height: 1.4;
  min-height: 17px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* === STANY BŁĘDU === */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: #e53935;
}

.form-group.error label {
  color: #e53935;
}

.form-group.error .form-icon {
  opacity: 1;
  color: #e53935;
}

.form-group.error .form-icon::before {
  content: "✖";
}

.form-group.error .form-error-msg {
  opacity: 1;
  visibility: visible;
}

/* === STANY SUKCESU === */
.form-group.success input,
.form-group.success textarea,
.form-group.success select {
  border: 1px solid #3cb371;
}


.form-group.success label {
  color: #34a853;
}

.form-group.success .form-icon {
  opacity: 1;
  color: #34a853;
}

.form-group.success .form-icon::before {
  content: "✓";
}



/* Widget wyszukiwarki – dopasuj do sidebaru */
.widget_search,
.searchform {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 20px; /* opcjonalnie odstęp od następnych elementów */
}

/* Kontener input + button */
.searchform > div {
  width: 100%;
  display: flex;
  gap: 5px;        /* <= ODSTĘP między polem a przyciskiem */
}

/* Pole tekstowe na całą szerokość minus przycisk */
.searchform input[type="text"] {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  outline: none;
  background: #fff;
}

/* Przycisk Szukaj – nie połączony z polem! */
.searchform input[type="submit"] {
  flex: 0 0 auto;
  padding: 12px 18px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
  color: #222;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-sizing: border-box;
  height: auto;
  min-width: 70px;
  outline: none;
}

/* Hover efekt dla przycisku */
.searchform input[type="submit"]:hover {
  background: #ffe26c;
  color: #222;
}

/* Responsywność – na mobile pod sobą */
@media (max-width: 600px) {
  .searchform > div {
    flex-direction: column;
    gap: 6px;
  }
  .searchform input[type="text"],
  .searchform input[type="submit"] {
    border-radius: 8px;
    width: 100%;
    min-width: 0;
  }
}

/* === NEWSLETTER FORM - Footer === */
/* FIX: Przeniesione z inline styles (NISKI błąd #14) */
.newsletter-consent {
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0;
  cursor: pointer;
}

.newsletter-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #bc753a;
}

.newsletter-consent span {
  line-height: 1.4;
}

.newsletter-consent a {
  color: #bc753a;
  text-decoration: none;
}

.newsletter-consent a:hover {
  text-decoration: underline;
}

/* Screen reader only - for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
