/* =========================
   CSS RESET & BASE STYLES
   ========================= */
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;
}
body {
  line-height: 1.5;
  background: #F6F1E2;
  color: #251e13;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.05em;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #1A376B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: #b35627; }
ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Vintage Retro Fonts */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800|Roboto:400,500,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Rounded MT', Montserrat, Arial, sans-serif;
  color: #1A376B;
  margin-bottom: 16px;
  font-weight: 800;
  text-shadow: 0 2px 0 #ded6c1;
  letter-spacing: 0.03em;
}

h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.35rem; margin-bottom: 14px; }
p, li {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #573e1a;
}
strong { font-weight: 800; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fffbe6;
  border-radius: 16px;
  box-shadow: 0 3px 22px rgba(44,23,1,0.07);
  position: relative;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 2px 4px 18px rgba(94, 74, 20, 0.09);
  padding: 32px 28px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 2px solid #f0e1c4;
}

.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 {
  background: #f7ecce;
  border-left: 6px solid #1A376B;
  border-radius: 12px 32px 12px 32px;
  box-shadow: 0 2px 12px rgba(40,22,4,0.08);
  padding: 20px 32px 20px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 1.06rem;
  color: #3c2415;
}
.testimonial-card p {
  color: #2e180c;
  margin-bottom: 6px;
  font-style: italic;
}
.testimonial-card span {
  color: #98763b;
  font-weight: 700;
  font-size: 1em;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/**** RETRO COLOR SCHEME & PATTERNS ****/
:root {
  --primary: #1A376B;
  --secondary: #5DAE8B;
  --accent: #F4F6FB;
  --vintage-yellow: #ffe082;
  --vintage-orange: #ffb74d;
  --vintage-red: #c35c2e;
  --vintage-green: #b1b763;
  --vintage-beige: #f7ecce;
  --vintage-blue: #a4b4d4;
  --vintage-brown: #724616;
  --vintage-burgundy: #99355b;
  --shadow-color: rgba(156,118,22,0.13);
}

body {
  background: var(--accent);
}

/********** HEADER ***********/
header {
  background: #ffe082;
  border-bottom: 6px double #b35627;
  box-shadow: 0 4px 15px var(--shadow-color);
  font-family: 'Montserrat', Arial, sans-serif;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 20px;
}
header img {
  max-height: 56px;
  margin-right: 18px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 7px 20px 7px 20px;
  color: var(--primary);
  background: transparent;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #ffb74d;
  color: #903506;
  box-shadow: 0 2px 8px rgba(255,183,77,0.11);
}

/**** CTA BUTTON ****/
.cta-button {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #c35c2e;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
  border: none;
  border-radius: 20px 40px;
  padding: 14px 36px;
  cursor: pointer;
  box-shadow: 2px 6px 16px var(--shadow-color), 0 2px 6px #fffbe9 inset;
  margin-left: 20px;
  letter-spacing: 0.05em;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  position: relative;
}
.cta-button:hover, .cta-button:focus {
  background: #b35627;
  color: #ffe082;
  transform: translateY(-2px) scale(1.04) rotate(-1deg);
  box-shadow: 0 4px 24px #72461633;
}

/**** MOBILE MENU TOGGLE ****/
.mobile-menu-toggle {
  display: none;
  background: #bc2412;
  color: #fffbe6;
  border: none;
  border-radius: 9px 18px 9px 18px;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60;
  transition: background 0.16s, color 0.16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #1A376B;
  color: #ffe082;
}

/**** MOBILE MENU OVERLAY ****/
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #ffe082;
  box-shadow: 0 10px 80px #351c00a4;
  z-index: 300;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(0.21,0.76,0.58,1.01);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  background: #bc2412;
  color: #fffbe6;
  border: none;
  border-radius: 9px 18px 9px 18px;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 350;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #1A376B;
  color: #ffe082;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  margin-top: 82px;
  padding: 0 38px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  background: transparent;
  color: #b35627;
  padding: 16px 0;
  border-bottom: 1px dashed #1A376B;
  width: 100%;
  transition: color 0.16s, background 0.16s;
  box-sizing: border-box;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #ffb74d33;
  color: #903506;
  border-radius: 6px 20px 6px 20px;
}

/* Hide menu on desktop */
@media (min-width: 1024px) {
  .mobile-menu-toggle, .mobile-menu { display: none; }
}
/* Show mobile toggle on small screens */
@media (max-width: 1023px) {
  .main-nav, .cta-button {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Ensure main nav visible on desktop */
@media (min-width: 1024px) {
  .main-nav {
    display: flex;
  }
  .cta-button {
    display: inline-block;
  }
}

/**** SECTIONS, CARDS AND UTILITIES ****/
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
section .container {
  padding: 0 20px;
}
.cta-box {
  background: linear-gradient(90deg, #ffe082 80%, #b1b763 100%);
  border-radius: 20px 46px 20px 46px;
  box-shadow: 0 4px 32px #ffe08255;
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  min-width: 240px;
  margin: 16px auto 0 auto;
}
.cta-box h2 {
  color: #bc2412;
}
.cta-box p {
  color: #573e1a;
}

.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.service-grid > div {
  background: #f4f6fb;
  border-radius: 12px 32px 12px 32px;
  box-shadow: 0 2px 8px #72461613;
  border: 2px solid #fffbe6;
  padding: 26px 20px;
  flex: 1 1 240px;
  min-width: 200px;
  max-width: 340px;
  margin-bottom: 18px;
  font-size: 1.01rem;
  color: #573e1a;
}

/**** FAQ/ARTICLE LISTS ****/
ul, ol {
  margin-bottom: 22px;
}
ul > li, ol > li {
  padding-left: 0;
  margin-bottom: 14px;
  background: transparent;
  font-size: 1rem;
  line-height: 1.6;
  color: #573e1a;
}
ul > li img {
  margin-right: 10px;
  vertical-align: middle;
  margin-bottom: 2px;
}

ol {
  list-style: decimal inside;
  color: #1A376B;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-left: 24px;
}

/**** FOOTER ****/
footer {
  background: #1A376B;
  color: #fffbe6;
  padding: 38px 0 24px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer-logo img {
  height: 46px;
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
}
.footer-nav a {
  color: #ffe082;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 9px;
  padding: 6px 14px;
  transition: background 0.16s, color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #ffe082;
  color: #1A376B;
}
footer p {
  margin-top: 10px;
  color: #ffe082cc;
  font-size: 0.9rem;
}

/**** COOKIE CONSENT BANNER ****/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100vw;
  background: #ffe082;
  box-shadow: 0 -3px 14px #b3562730;
  z-index: 4000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 24px 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #2e180c;
  border-top: 4px solid #b35627;
  transition: transform 0.34s cubic-bezier(0.7,0,0.22,1);
}
.cookie-banner.hide { transform: translateY(110%); }
.cookie-banner p { margin-bottom: 0; }
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner button {
  background: #1A376B;
  color: #ffe082;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 11px 22px;
  padding: 8px 22px;
  margin: 0 2px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 10px #ffe08233;
  transition: background 0.17s,color 0.17s, box-shadow 0.19s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #bc2412;
  color: #ffe082;
}

/**** COOKIE MODAL POPUP ****/
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(26, 55, 107, 0.55);
  z-index: 4100;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.open {
  pointer-events: all;
  opacity: 1;
}
.cookie-modal {
  background: #fffbe6;
  border: 3px solid #1A376B;
  border-radius: 24px 36px 24px 36px;
  box-shadow: 0 8px 60px #44320e30;
  padding: 36px 22px;
  width: 95vw;
  max-width: 410px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #573e1a;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  opacity: 1;
  z-index: 4110;
}
.cookie-modal h3 {
  color: #1A376B;
  font-size: 1.22rem;
}
.cookie-modal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 12px 0;
}
.cookie-modal-list label {
  font-size: 1rem;
  font-weight: 600;
  color: #573e1a;
  cursor: pointer;
}
.cookie-toggle {
  margin-right: 10px;
  accent-color: #b1b763;
}
/* Modal action buttons */
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal button {
  background: #b1b763;
  color: #fff;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 8px 17px;
  padding: 8px 22px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: #1A376B;
  color: #ffe082;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 15px;
  background: #bc2412;
  color: #fffbe6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px 17px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-modal .cookie-modal-close:hover,
.cookie-modal .cookie-modal-close:focus {
  background: #1A376B;
  color: #ffe082;
}

/**** RESPONSIVE LAYOUT ****/
@media (max-width: 1023px) {
  .container {
    max-width: 98vw;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
    min-width: 0;
  }
}
@media (max-width: 900px) {
  .service-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.2rem; }
  .container { padding: 0 7px; }
  .section, section { padding: 28px 0; margin-bottom: 36px; border-radius: 13px; }
  .content-wrapper {
    gap: 13px;
  }
  .service-grid > div {
    padding: 16px 9px;
    font-size: 0.99rem;
    min-width: unset;
    max-width: unset;
  }
  .card-container {
    gap: 13px;
  }
  .cta-box {
    padding: 18px 11px;
    font-size: 1rem;
  }
  .testimonial-card {
    padding: 14px 12px 14px 12px;
    font-size: 0.99rem;
  }
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}

/* Extra mobile style */
@media (max-width: 500px) {
  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }
  .section, section { padding: 17px 0; border-radius: 7px; }
  .cta-box { border-radius: 12px 22px 12px 22px; }
  .card {
    border-radius: 8px;
    padding: 14px 7px;
  }
}

/**** ANIMATIONS & MICRO-INTERACTIONS ****/
.cta-button, .main-nav a, .mobile-nav a, .footer-nav a, .cookie-banner button {
  transition: background 0.18s, color 0.18s, box-shadow 0.22s, border-radius 0.2s, transform 0.14s;
}
.card, .testimonial-card, .cta-box {
  transition: box-shadow 0.2s, transform 0.14s;
}
.card:hover, .testimonial-card:hover, .cta-box:hover {
  box-shadow: 0 6px 32px #bc241222;
  transform: scale(1.015);
}

/**** RETRO/VINTAGE ORNAMENTS */
.section::after {
  content: '';
  display: block;
  width: 68px;
  height: 17px;
  margin: 32px auto 0 auto;
  background: url('../assets/pattern-vintage.svg') no-repeat center center/contain;
  opacity: 0.22;
}
@media (max-width: 600px) {
  .section::after { display: none; }
}

/**** MISC. UTILITIES ****/
[hidden] { display: none !important; }
.visually-hidden { position: absolute; left: -9999px; }

/**** ACCESSIBILITY & FOCUS ****/
a:focus, button:focus, .cta-button:focus {
  outline: 3px solid #bc2412;
  outline-offset: 2px;
}

/**** EXTRAS - RETRO SHADOWS & ELEMENTS ****/
h1,h2,h3 { text-shadow: 0 2px 0 #ded6c1, 0 4px 18px #ffe08211; }

/* Ensure proper spacing and no-overlap of cards/sections */
.card, .testimonial-card, .cta-box, section, .section {
  margin-bottom: 24px;
}

/**** RETRO PATTERNED LINES (ornaments for separation) ****/
.hr-retro {
  border: none;
  border-top: 2px dashed #ffa22b;
  margin: 34px 0 28px 0;
  background: none;
}

/* =============================
   END - CSS: Magazynowy Szyk
   ============================= */
