/* === CSS RESET & BASE STYLES (mobile-first) === */
html,body,div,span,applet,object,iframe,
h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,main,menu,nav,output,ruby,section,summary,time,mark,audio,video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F5F6FA;
  color: #1C222D;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
a {
  color: #1C222D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #D1B05A;
  outline: none;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 8px;
}
strong {
  font-weight: 700;
}

/* === BRAND FONT FAMILIES === */
:root {
  --brand-primary: #1C222D;
  --brand-secondary: #F5F6FA;
  --brand-accent: #D1B05A;
  --font-display: 'Montserrat', 'Georgia', serif;
  --font-body: 'Georgia', 'Times New Roman', Times, serif;
  --shadow-soft: 0 4px 18px 0 rgba(28,34,45,0.07);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: #1C222D;
  letter-spacing: 0.01em;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 18px;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  color: #1C222D;
  margin-bottom: 12px;
}
p, li, td {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #2d323d;
}
.subheadline {
  font-size: 1.18rem;
  color: #55596b;
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.4;
  font-family: var(--font-body);
}

/* === CONTAINER & LAYOUT === */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 0;
}
.text-section {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* === SECTIONS, CARDS, FLEX PATTERNS === */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 32px 28px;
  position: relative;
  transition: box-shadow 0.25s, transform 0.2s;
}
.card:hover, .card:focus {
  box-shadow: 0 8px 30px 0 rgba(28,34,45,0.11);
  transform: translateY(-4px) scale(1.015);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(28,34,45,0.09);
  margin-bottom: 24px;
  min-width: 0;
  margin-top: 0;
}
.testimonial-card p {
  color: #292929;
  font-size: 1.1rem;
  font-family: var(--font-body);
  margin-bottom: 0;
}
.testimonial-card h3 {
  font-size: 1rem;
  font-family: var(--font-display);
  color: #63582e;
  letter-spacing: 0.03em;
  margin-bottom: 0;
  font-weight: 600;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.map-placeholder {
  background: #F5F6FA;
  border: 1.5px dashed #C4C7D2;
  border-radius: 10px;
  color: #a2a2a2;
  padding: 20px;
  text-align: center;
  margin: 20px 0;
}

/* === HEADER & NAVIGATION === */
header {
  background: #fff;
  box-shadow: 0 1px 12px rgba(28,34,45,0.08);
  padding: 0;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 16px;
}
header img {
  height: 44px;
  width: auto;
  vertical-align: middle;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #222529;
  padding: 4px 0 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.17s, border-color 0.17s;
  font-weight: 500;
}
header nav a:hover, header nav a:focus {
  border-bottom: 2px solid #D1B05A;
  color: #8b7d42;
}

header .btn-primary {
  margin-left: 24px;
}
/* Hide desktop main nav on mobile */
@media (max-width: 1024px) {
  header nav {
    display: none !important;
  }
}

/* === BUTTONS & LINKS === */
.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  background: #D1B05A;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(209,176,90,0.09);
  text-align: center;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.18s;
  margin: 0 8px 12px 0;
  outline: none;
  letter-spacing: 0.02em;
}
.btn-primary:hover, .btn-primary:focus {
  background: #a88e4d;
  color: #fff9e7;
  transform: translateY(-2px) scale(1.037);
  box-shadow: 0 4px 22px rgba(209,176,90,0.16);
}
.btn-secondary {
  background: #fff;
  color: #D1B05A;
  border: 2px solid #D1B05A;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #f7efd7;
  color: #a88e4d;
}

/* === TABLES (cennik) === */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 18px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px 0 rgba(28,34,45,0.07);
}
thead {
  background: #ece7d9;
}
th, td {
  text-align: left;
  font-size: 1rem;
  padding: 16px 14px;
}
th {
  font-family: var(--font-display);
  font-size: 1.04rem;
  color: #78651a;
  font-weight: 600;
}
tbody tr {
  border-bottom: 1px solid #ececec;
}
tbody tr:last-child {
  border-bottom: none;
}
td:first-child {
  width: 58%;
}
.service-price {
  font-family: var(--font-display);
  color: #967c29;
  font-weight: bold;
  background: #f7efd7;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-top: 6px;
  display: inline-block;
}

/* === HERO SECTION STYLING === */
section:first-of-type .content-wrapper {
  align-items: flex-start;
  background: none;
  margin-top: 0;
  min-height: 0;
  padding-top: 30px;
  padding-bottom: 22px;
}
section:first-of-type h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1C222D;
  margin-bottom: 14px;
  line-height: 1.08;
}

/* === ICONS IN FEATURES === */
ul li img {
  display: inline-block;
  margin-right: 12px;
  width: 28px;
  height: 28px;
  vertical-align: middle;
  filter: grayscale(1) brightness(0.75);
  opacity: 0.82;
}

/* === FOOTER === */
footer {
  background: #1C222D;
  color: #EDEEEF;
  padding: 0;
  margin-top: 40px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 42px 16px 30px 16px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
footer nav a {
  color: #D1B05A;
  font-family: var(--font-display);
  font-size: 0.99rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.16s;
}
footer nav a:hover, footer nav a:focus {
  color: #f5e9c0;
}
footer p {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: #C5C5C5;
  margin: 0;
}
footer img {
  height: 38px;
  margin-bottom: 8px;
}

/* ========== MOBILE MENU & NAVIGATION ========== */
.mobile-menu-toggle {
  display: flex;
  position: fixed;
  top: 18px;
  right: 16px;
  z-index: 110;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1.5px solid #D1B05A;
  border-radius: 50%;
  color: #D1B05A;
  font-size: 2rem;
  cursor: pointer;
  outline: none;
  box-shadow: 0 2px 9px rgba(209,176,90,0.13);
  transition: background 0.18s, color 0.17s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #fffbee;
  color: #a88e4d;
  border-color: #b5a16a;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 90vw;
  max-width: 340px;
  background: #fff;
  z-index: 120;
  transform: translateX(-110%);
  transition: transform 0.38s cubic-bezier(.82,.31,.38,.93);
  box-shadow: 0 8px 48px rgba(28,34,45,0.22);
  padding: 32px 0 0 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: #a88e4d;
  font-size: 2rem;
  padding: 0 0 0 18px;
  cursor: pointer;
  align-self: flex-start;
  margin-bottom: 18px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 2px;
  margin-top: 0;
}
.mobile-nav a {
  color: #1C222D;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 18px 28px 12px 28px;
  width: 100%;
  transition: background 0.18s, color 0.14s;
  border-bottom: 1px solid #e6e2d4;
  background: none;
  outline: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #f5efd7;
  color: #b8a157;
}
@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}
@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: flex !important;
  }
  header .btn-primary {
    margin-left: 0;
  }
  .container {
    padding: 0 10px;
  }
}

/* ========== COOKIE CONSENT BANNER & MODAL ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fffbe7;
  color: #1C222D;
  box-shadow: 0 -2px 18px rgba(44,43,41,0.11);
  padding: 22px 14px 18px 14px;
  z-index: 220;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: cookie-fadein 0.47s cubic-bezier(.66,.04,.62,.98);
}
.cookie-banner p {
  max-width: 900px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
}
.cookie-btn, .cookie-settings-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 8px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin: 0 4px;
  transition: background 0.15s, color 0.15s;
  font-weight: 500;
}
.cookie-btn.accept {
  background: #D1B05A;
  color: #fff;
}
.cookie-btn.reject {
  background: #1C222D;
  color: #fff;
}
.cookie-btn:hover, .cookie-settings-btn:hover, .cookie-btn:focus, .cookie-settings-btn:focus {
  opacity: 0.90;
}
.cookie-settings-btn {
  background: #fff;
  color: #947515;
  border: 1.5px solid #947515;
}

@keyframes cookie-fadein {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(44,43,41,0.33);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fadein 0.35s;
}
@keyframes modal-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fffef5;
  color: #2b261a;
  border-radius: 18px;
  max-width: 370px;
  width: 95vw;
  padding: 34px 26px 26px 26px;
  box-shadow: 0 12px 48px rgba(44,43,41,0.22);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: modal-slideup 0.34s cubic-bezier(.77,.04,.89,1.04);
}
@keyframes modal-slideup {
  from { transform: translateY(32px); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  color: #947515;
  margin-bottom: 6px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-category input[type="checkbox"] {
  accent-color: #D1B05A;
  width: 20px;
  height: 20px;
  margin: 0 6px 0 0;
}
.cookie-category .category-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #2d2821;
  font-weight: 600;
}
.cookie-category .always-on {
  font-size: 0.99rem;
  color: #967c29;
  font-weight: 400;
  margin-left: 3px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 1.3rem;
  color: #947515;
  cursor: pointer;
  padding: 0;
}

/* === SPACING & FLEX UTILS (for all layouts) === */
.section {
  margin-bottom: 60px !important;
  padding: 40px 20px !important;
}
.card-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
}
.card {
  margin-bottom: 20px !important;
  position: relative !important;
}
.content-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  justify-content: space-between !important;
}
.text-image-section {
  display: flex !important;
  align-items: center !important;
  gap: 30px !important;
  flex-wrap: wrap !important;
}
.testimonial-card {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  padding: 20px !important;
}
.feature-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 15px !important;
}

/* === MISC ELEMENTS === */
main {
  margin-bottom: 48px;
  min-height: 400px;
}
ul {
  margin-bottom: 18px;
  list-style: disc inside;
}
section > .container > .content-wrapper > ul, ul:not(.mobile-nav) > li > ul, ul:not(.mobile-nav) {
  margin-left: 0;
  padding-left: 24px;
}

/* === UTILITIES === */
.rounded {
  border-radius: 12px;
}
.shadow-soft {
  box-shadow: var(--shadow-soft);
}

/* === RESPONSIVE STYLES (mobile-first) === */
@media (min-width: 768px) {
  h1 {
    font-size: 2.8rem;
  }
  .container {
    padding: 0 28px;
  }
  .content-wrapper {
    gap: 30px;
  }
  .card {
    padding: 40px 36px;
  }
  .testimonial-card {
    padding: 28px 30px;
    font-size: 1.15rem;
  }
  .card-container {
    gap: 32px;
  }
  .section {
    padding: 58px 0;
  }
  .text-image-section {
    gap: 48px;
    flex-direction: row;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.65rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  .container {
    padding: 0 7px;
  }
  .section {
    padding: 28px 6px;
  }
  .card {
    padding: 20px 14px;
  }
  .testimonial-card {
    flex-direction: column;
    padding: 14px 9px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* === OVERRIDES FOR CARD GRIDS TO PREVENT OVERLAP === */
.card-container > *, .content-grid > *, .feature-item > * {
  margin-bottom: 0 !important;
}

/* === PRINT STYLES === */
@media print {
  header, footer, .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  body {
    background: #fff;
    color: #2d323d;
  }
}
