/* --- RESET & NORMALIZE --- */
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, 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, 
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img, svg { display: inline-block; max-width: 100%; vertical-align: middle; }
button { background: none; border: none; cursor: pointer; font: inherit; }
input, textarea, select, button { font-family: inherit; font-size: inherit; outline: none; }
table { border-collapse: collapse; border-spacing: 0; }

/* --- CSS VARIABLES (for fallback simplicity) --- */
:root {
  --primary: #163540;
  --secondary: #FAD971;
  --accent: #EFEFEF;
  --vintage1: #a97937; /* retro brown */
  --vintage2: #D96D3E; /* retro orange */
  --vintage3: #215974; /* muted blue */
  --vintage-bg: #FCF8ED; /* light vintage bg */
  --shadow: 0 4px 16px rgba(45,29,12,0.12);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 6px;
}

body {
  background: var(--vintage-bg);
  color: #222224;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

/* --- TYPOGRAPHY (Vintage Look) --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  color: var(--primary);
  text-shadow: 0 1px 0 #ddc48d38;
  font-weight: 700;
  letter-spacing: 0.04em;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 22px;
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  text-transform: uppercase;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  color: var(--vintage2);
  text-transform: uppercase;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--vintage1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, li {
  font-size: 1rem;
  color: #222224;
}
strong, b {
  font-weight: 700; color: var(--vintage1);
}

/* --- LINKS --- */
a {
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--vintage3);
}

/* --- CONTAINER SYSTEM --- */
.container {
  max-width: 1160px;
  padding: 0 18px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* --- HEADER + NAV --- */
header {
  background: var(--secondary);
  border-bottom: 4px solid var(--vintage1);
  box-shadow: 0 2px 12px rgba(236,208,119,0.06);
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  gap: 40px;
  min-height: 68px;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  color: var(--primary);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s;
  font-weight: 600;
}
.main-nav a:hover,.main-nav a:focus {
  background: var(--vintage2);
  color: #fff;
}

.cta-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 0.03em;
  border-radius: var(--radius-md);
  padding: 12px 32px;
  font-size: 1.10rem;
  box-shadow: var(--shadow);
  border: 2px solid var(--vintage1);
  margin-left: 10px;
  transition: background 0.20s, color 0.20s, box-shadow 0.18s;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--vintage2);
  color: #fff;
  box-shadow: 0 2px 10px #d96d3e33;
}
.cta-secondary {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 11px 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  box-shadow: var(--shadow);
  margin-top: 18px;
  transition: background 0.15s, color 0.2s, box-shadow 0.16s;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 2px 10px #1635402b;
}

header img {
  height: 48px;
  width: auto;
}

/* --- MOBILE NAV --- */
.mobile-menu-toggle {
  display: none;
  background: var(--vintage2);
  color: #fff;
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 2.1rem;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary);
  margin-left: 18px;
  transition: background 0.18s;
  z-index: 1001;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary);
  color: var(--secondary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: var(--vintage3);
  color: var(--secondary);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  z-index: 1600;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(.72,.03,.38,.96), opacity 0.3s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: var(--vintage1);
  color: #fff;
  font-size: 2.1rem;
  border-radius: 50%;
  width: 48px; height: 48px;
  border: 2px solid var(--secondary);
  align-self: flex-end;
  margin: 24px 22px 8px 0;
  transition: background 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  margin-top: 12px;
}
.mobile-nav a {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 0 22px 22px 0;
  min-width: 200px;
  transition: background 0.17s, color 0.19s;
}
.mobile-nav a:hover {
  background: var(--vintage1);
  color: #fff;
}

/* --- HERO + SECTIONS --- */
.section,
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.hero {
  background: var(--secondary);
  border-bottom: 5px solid var(--vintage3);
  padding: 60px 0 50px 0 !important;
  box-shadow: 0 4px 18px #fad97124;
  position: relative;
}
.hero .container { align-items: center; }
.hero .content-wrapper {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px 28px;
  margin: 0 auto;
}
.hero h1 {
  color: var(--vintage1);
  font-size: 2.3rem;
  text-shadow: 0 2px 0 #fad97138;
  letter-spacing: 0.07em;
}
.hero p {
  font-size: 1.20rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.text-section {
  background: var(--accent);
  border-radius: var(--radius-md);
  padding: 32px 22px;
  margin-bottom: 0px;
  box-shadow: 0 2px 9px #b0864a19;
}
.text-section ul,
.text-section ol {
  padding-left: 26px;
  margin-top: 12px;
  margin-bottom: 22px;
}
.text-section li {
  margin-bottom: 10px;
  position: relative;
  font-size: 1.01rem;
  color: #333235;
}
.text-section li::before {
  content: "● ";
  color: var(--vintage1);
  font-size: 1.1em;
  font-weight: bold;
  position: relative;
  left: -5px;
}

/* --- Feature grid --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid li {
  display: flex;
  align-items: center;
  background: #fffbea;
  border-radius: var(--radius-md);
  padding: 16px 20px 16px 16px;
  box-shadow: 0 2px 8px #f3d49b17;
  min-width: 260px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
  margin-bottom: 20px;
  margin-right: 0px;
  border: 2px dashed var(--vintage1);
  transition: box-shadow 0.17s, background 0.21s;
}
.feature-grid li img {
  width: 30px; height: 30px;
  margin-right: 15px;
  filter: sepia(0.5) hue-rotate(-10deg) saturate(0.9);
}
.feature-grid li:hover {
  background: #ffe6ae;
  box-shadow: 0 3px 16px #d96d3e22;
}

/* --- Service cards --- */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 26px;
}
.service-cards li {
  background: #fff0db;
  border: 2.5px solid var(--vintage1);
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 18px #a9793720;
  padding: 32px 22px;
  flex: 1 1 285px;
  min-width: 235px;
  max-width: 350px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow .18s, background .22s;
  position: relative;
  overflow: hidden;
}
.service-cards li h3 {
  color: var(--vintage2);
  text-shadow: 0 1px 0 #fad97133;
}
.service-cards li p {
  margin-top: 10px;
}
.service-cards li:hover {
  background: #fff9ed;
  box-shadow: 0 8px 32px #D96D3E26;
  z-index: 2;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 30px 24px 30px 24px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 6px 24px #21597427;
  transform: translateY(-3px) scale(1.018);
}

/* --- TESTIMONIALS --- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  align-items: stretch;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff8f1;
  border-radius: var(--radius-lg);
  box-shadow: 0 3px 12px #a9793732;
  border: 2px solid var(--vintage1);
  margin-bottom: 20px;
  color: #2a2320;
  max-width: 480px;
  flex: 1 1 280px;
  transition: background 0.15s, box-shadow 0.19s;
  font-size: 1.05rem;
  position: relative;
}
.testimonial-card p {
  color: #2a2320;
  margin-bottom: 6px;
  font-style: italic;
  font-size: 1.09rem;
}
.testimonial-info {
  font-size: 0.97rem;
  color: var(--vintage2);
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-card:hover {
  background: #fbeeda;
  box-shadow: 0 7px 18px #a9793740;
}
.average-rating, .rating-summary {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  background: var(--accent);
  border-radius: 24px;
  padding: 10px 20px;
  gap:8px;
  color: var(--primary);
  font-weight: 500;
  box-shadow: 0 1px 4px #21597414;
}
.average-rating img, .rating-summary img {
  width: 28px;
  height: 28px;
}

/* --- TABLES (Cennik) --- */
table {
  width: 100%;
  margin: 24px 0 18px 0;
  background: #fffbea;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 8px #d96d3e12;
  font-family: 'Roboto', Arial, sans-serif;
  border: 2px solid var(--vintage1);
}
thead {
  background: var(--vintage1);
  color: #fff;
}
th, td {
  padding: 16px 12px;
  text-align: left;
  font-size: 1.06rem;
  border-bottom: 1.5px solid #f3e3cb;
}
thead th {
  font-family: 'Montserrat', Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: .03em;
}
tbody tr:last-child td {
  border-bottom: none;
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: var(--secondary);
  padding: 36px 0 0 0;
  margin-top: 40px;
  border-top: 5px solid var(--vintage1);
  box-shadow: 0 -2px 16px #21597415;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}
.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 190px;
}
.footer-left img {
  width: 50px;
  height: auto;
}
.brand-slogan {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.11rem;
  color: var(--secondary);
  line-height: 1.36;
  margin-top: 8px;
  max-width: 270px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.footer-nav a {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.03rem;
  transition: color 0.17s;
}
.footer-nav a:hover {
  color: var(--vintage2);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1.01rem;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-contact img {
  width: 19px; height: 19px;
}

/* --- RESPONSIVE SPACING UTILS --- */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; width: 100%;
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 -2px 18px #16354035;
  z-index: 1700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 26px 16px 18px 16px;
  transition: transform 0.3s, opacity 0.18s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}
.cookie-banner button {
  min-width: 110px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.19s, color 0.17s, box-shadow 0.18s;
  margin-top: 2px;
}
.cookie-banner .cookie-accept {
  background: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--vintage1);
}
.cookie-banner .cookie-accept:hover {
  background: var(--vintage2);
  color: #fff;
}
.cookie-banner .cookie-reject {
  background: var(--vintage1);
  color: #fff;
  border: 2px solid var(--secondary);
}
.cookie-banner .cookie-reject:hover {
  background: var(--primary);
  color: var(--secondary);
}
.cookie-banner .cookie-settings {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
.cookie-banner .cookie-settings:hover {
  background: var(--vintage1);
  color: #fff;
}

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 1800;
  background: rgba(30,18,7,0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: #163540;
  border-radius: var(--radius-lg);
  box-shadow: 0 9px 40px #21597450;
  max-width: 410px;
  width: 93vw;
  padding: 34px 26px 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 1801;
  animation: cookieModalPop 0.42s cubic-bezier(.67,-0.13,.42,1.05);
  position: relative;
}
@keyframes cookieModalPop {
  0% { transform: scale(0.76) translateY(30px); opacity: 0; }
  99%{opacity:1;}
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2, .cookie-modal h3 {
  color: var(--primary);
  font-size: 1.34rem;
  font-weight: 700;
}
.cookie-modal .cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 8px 0;
}
.cookie-modal label {
  font-size: 1.05rem;
  color: var(--primary);
}
.cookie-modal .switch {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 24px;
}
.cookie-modal .switch input { display: none; }
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #c4cde3;
  border-radius: 20px;
  transition: .3s;
}
.cookie-modal .slider:before {
  position: absolute;
  content: "";
  height: 19px;
  width: 19px;
  left: 3px;
  bottom: 2.5px;
  background: var(--primary);
  border-radius: 50%;
  transition: .3s;
}
.cookie-modal .switch input:checked + .slider {
  background: var(--vintage2);
}
.cookie-modal .switch input:checked + .slider:before {
  transform: translateX(20px);
  background: var(--vintage1);
}
.cookie-modal .category-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}
.cookie-modal button {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.97rem;
  font-weight: 600;
  border: none;
  background: var(--primary);
  color: var(--secondary);
  transition: background 0.16s, color 0.18s;
}
.cookie-modal button:hover{
  background: var(--vintage2);
  color: #fff;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.7rem;
  color: var(--vintage2);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal .close-modal:hover {
  color: var(--primary);
}

/* --- RETRO ORNAMENTS and PATTERNS --- */
.section {
  background-image: repeating-linear-gradient(-50deg, #fbedd4 0, #fbedd4 60px, #fffbea 61px, #fffbea 130px);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 14px #fad97119;
}

@media (min-width: 900px) {
  .text-section {
    margin-bottom: 24px;
    padding: 42px 38px;
  }
}

/* --- RESPONSIVE: MOBILE FIRST --- */
@media (max-width: 1100px) {
  .container { max-width: 980px; }
  header .container { gap: 20px; }
}
@media (max-width: 900px) {
  .container { max-width: 98vw; }
  .service-cards {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .testimonial-slider,
  .feature-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .card-container { flex-direction: column; gap: 14px; }
  .content-grid { flex-direction: column; gap: 14px; }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 6px;
    min-height: 54px;
  }
  .main-nav { display: none !important; }
  .cta-primary { margin-left: 0; }
  .mobile-menu-toggle { display: flex; }
  .section, section { padding: 30px 4vw; margin-bottom: 38px; }
  .hero .content-wrapper { padding: 24px 10px; }
  .text-section { padding: 18px 7px; }
  .service-cards li,
  .card, .testimonial-card { padding: 16px 10px; }
  footer .container {
    flex-direction: column;
    gap: 17px;
    padding-left: 0; padding-right: 0;
    align-items: flex-start;
  }
}
@media (max-width: 650px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.22rem; }
  .brand-slogan { font-size: 0.95rem; }
  .average-rating, .rating-summary { font-size: 0.98rem; }
  table th, table td { font-size: 0.97rem; padding: 10px 6px; }
}
@media (max-width: 540px) {
  .footer-left, .footer-contact { font-size: 0.95rem; }
  .testimonial-card, .service-cards li, .card {
    max-width: 99vw;
    flex: 1 1 99vw;
  }
}
@media (max-width: 430px) {
  .footer-contact { font-size: 0.91rem; }
  .cookie-banner {
    padding: 14px 3vw;
    font-size: 0.95rem;
  }
}

/* --- ANIMATIONS / MICRO-INTERACTIONS --- */
.card, .testimonial-card, .service-cards li, .feature-grid li {
  transition: box-shadow 0.18s, background 0.14s, transform 0.13s;
}
.cta-primary, .cta-secondary, .cookie-banner button, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.16s, color 0.14s, box-shadow 0.14s, transform 0.13s;
}
.cta-primary:active, .cta-secondary:active, .cookie-banner button:active, .mobile-menu-toggle:active {
  transform: scale(0.97);
}
button:focus { outline: 2px dashed var(--vintage2); outline-offset: 3px; }

/* --- ACCESSIBILITY & SELECTION --- */
::selection {
  background: var(--secondary);
  color: var(--primary);
}
a:focus-visible { outline: 2px dashed var(--vintage3); outline-offset: 4px; }

/* --- UTILS --- */
.hide,
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }

/* --- PRINT FRIENDLY --- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {display:none;}
  section, .section {box-shadow:none; background:none;}
}
