/* ==== CSS 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;
}
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body { line-height: 1.5; background: #F2F6FB; color: #292C36; min-height: 100vh; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img, picture { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; border: none; background: none; outline: none; }

/* ==== BRAND VARIABLES ==== */
:root {
  --color-primary: #043B70;
  --color-secondary: #F2F6FB;
  --color-accent: #6B5E22;
  --color-light: #ffffff;
  --color-dark: #22242C;
  --color-muted: #E6EBF4;
  --color-card-bg: #FFFFFF;
  --color-border: #D3DAE6;
  --color-shadow: rgba(4,59,112, 0.07);
  --serif: 'Merriweather', 'Georgia', serif;
  --sans: 'Montserrat', 'Roboto', Arial, sans-serif;
  --radius-base: 12px;
  --radius-sm: 8px;
  --transition: 0.25s cubic-bezier(.42,0,.58,1);
  --shadow-card: 0 2px 14px 0 var(--color-shadow);
  --spacing-xs: 8px;
  --spacing-s: 16px;
  --spacing-m: 24px;
  --spacing-l: 32px;
  --spacing-xl: 60px;
}

/* ==== FONT IMPORTS ==== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Merriweather:400,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500&display=swap');

/* ==== TYPOGRAPHY ==== */
body {
  font-family: var(--serif);
  font-size: 16px;
  background: var(--color-secondary);
  color: var(--color-dark);
  font-weight: 400;
}
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--color-primary);
  letter-spacing: 0.01em;
  line-height: 1.12;
  margin-bottom: var(--spacing-s);
}
h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: var(--spacing-m); }
h2 { font-size: 2rem; font-weight: 700; margin-bottom: var(--spacing-m); }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: var(--spacing-s); }
h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: var(--spacing-xs); }
p, li {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--color-dark);
  margin-bottom: var(--spacing-xs);
  line-height: 1.7;
}
blockquote {
  border-left: 3px solid var(--color-accent);
  margin: var(--spacing-s) 0;
  padding: var(--spacing-xs) var(--spacing-m);
  font-style: italic;
  background: var(--color-muted);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
}
ul, ol { padding-left: var(--spacing-m); margin-bottom: var(--spacing-s); }
ul li, ol li { position: relative; padding-left: 0; }
strong { color: var(--color-primary); font-weight: 700; }
small { font-size: .96em; color: var(--color-accent); }

/* ==== GENERAL LAYOUT CONTAINERS ==== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--spacing-m);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-m);
}
.section {
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-l) var(--spacing-s);
}
.section:last-child {
  margin-bottom: 0;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  margin-bottom: 20px;
  position: relative;
  box-shadow: var(--shadow-card);
  padding: var(--spacing-m);
  transition: box-shadow var(--transition), border-color var(--transition);
  min-width: 280px;
}
.card:hover {
  box-shadow: 0 7px 36px 0 rgba(4,59,112, 0.10);
  border-color: var(--color-primary);
}
.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;
}
.text-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--spacing-xs);
  background: var(--color-card-bg);
  border-radius: var(--radius-sm);
  padding: var(--spacing-m) var(--spacing-s);
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--color-light);
  border-left: 4px solid var(--color-primary);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: var(--radius-base);
  box-shadow: 0 2px 8px 0 rgba(4, 59, 112, 0.06);
  transition: box-shadow var(--transition);
}
.testimonial-card p {
  color: var(--color-primary);
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 4px;
}
.testimonial-card span {
  color: var(--color-accent);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.0em;
}
.testimonial-card:hover { box-shadow: 0 8px 28px 0 rgba(4, 59, 112, 0.13); }

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

/* ==== BUTTONS and CALL-TO-ACTION ==== */
.cta,
.btn,
button,
input[type="submit"] {
  display: inline-block;
  padding: 14px 36px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-base);
  border: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 2px 5px 0 rgba(4,59,112, 0.08);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-align: center;
  margin: var(--spacing-xs) 0;
}
.cta:hover,
.btn:hover,
button:hover,
input[type="submit"]:hover,
.cta:focus,
.btn:focus {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 16px 0 rgba(107,94,34, 0.14);
  outline: none;
}

/* ==== HEADER & NAVIGATION ==== */
header {
  background: var(--color-light);
  box-shadow: 0 2px 8px rgba(4, 59, 112, 0.03);
  position: sticky;
  top: 0;
  z-index: 99;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-l);
  padding-top: var(--spacing-s);
  padding-bottom: var(--spacing-s);
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-family: var(--sans);
}
header nav a {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1.08em;
  padding: 8px 0;
  transition: color var(--transition), border-bottom var(--transition);
  border-bottom: 2px solid transparent;
}
header nav a:hover, header nav a.active {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}

header .cta {
  margin-left: var(--spacing-m);
}

.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.8rem;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  border: none;
  margin-left: auto;
  transition: background var(--transition), color var(--transition);
  z-index: 1001;
}
.mobile-menu-toggle:hover { background: var(--color-accent); }

/* ==== MOBILE MENU ==== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(4,59,112, 0.97);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.46,.03,.52,.96);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  color: #fff;
  font-size: 2.1rem;
  margin: 30px 28px 10px 0;
  border: none;
  cursor: pointer;
  z-index: 1002;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: var(--spacing-l) var(--spacing-m);
  width: 100vw;
  margin-top: 16px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 500;
  padding: 14px 0;
  transition: color var(--transition), padding-left var(--transition), background var(--transition);
  border-radius: var(--radius-sm);
}
.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--color-accent);
  background: rgba(255,255,255,0.06);
  padding-left: 14px;
}

/* ==== MAIN LAYOUT SECTIONS ==== */
main {
  margin-top: var(--spacing-m);
  margin-bottom: var(--spacing-l);
}

section {
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-l) var(--spacing-s);
  background: var(--color-secondary);
  border-radius: var(--radius-base);
}
section .container { padding: 0; }
section:last-child { margin-bottom: 0; }

/* ==== FORMS & INPUTS ==== */
input[type="search"],
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-light);
  font-family: var(--serif);
  font-size: 1rem;
  margin-bottom: var(--spacing-xs);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input[type="search"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-accent);
}

/* ==== FOOTER ==== */
footer {
  background: var(--color-primary);
  padding: var(--spacing-xl) 0 var(--spacing-m) 0;
  color: var(--color-light);
  font-family: var(--sans);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-m);
}
footer .content-wrapper {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--spacing-l);
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: var(--color-light);
  font-weight: 500;
  font-size: 1rem;
  opacity: 0.8;
  transition: color var(--transition), opacity var(--transition);
}
footer nav a:hover {
  color: var(--color-accent);
  opacity: 1;
}
.footer-contact {
  font-size: 0.98rem;
  color: var(--color-light);
  opacity: 0.88;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  max-width: 300px;
}
.footer-contact img {
  vertical-align: middle;
  height: 18px;
  width: auto;
  margin-right: 8px;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-s);
  align-items: center;
}
.footer-social a {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  justify-content: center;
  transition: background var(--transition);
}
.footer-social a:hover {
  background: var(--color-accent);
}
.footer-social img {
  width: 22px;
  height: 22px;
}

/* ==== MISCELLANEOUS ==== */
img[alt*="icon"] {
  display: inline-block;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  vertical-align: middle;
}
hr {
  border: none;
  height: 1px;
  background: var(--color-border);
  margin: var(--spacing-m) 0;
}

/* ==== BLOG ARTICLE SNIPPETS ==== */
.text-section {
  background: var(--color-card-bg);
  border-radius: var(--radius-base);
  padding: var(--spacing-m) var(--spacing-s);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--spacing-m);
  transition: box-shadow var(--transition);
}
.text-section:hover {
  box-shadow: 0 6px 18px 0 rgba(4, 59, 112, 0.12);
}
.text-section a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  transition: color var(--transition);
}
.text-section a:hover { color: var(--color-primary); }

/* ==== RESPONSIVE DESIGN (Mobile First) ==== */
@media (max-width: 1200px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  .content-wrapper, footer .content-wrapper {
    flex-direction: column;
    gap: var(--spacing-m);
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .container { padding: 0 var(--spacing-xs); }
  header .container {
    flex-direction: row;
    gap: var(--spacing-m);
  }
  main, section { padding-left: 0; padding-right: 0; }
  .content-wrapper { gap: var(--spacing-s); }
  .section { padding: var(--spacing-m) var(--spacing-xs); margin-bottom: var(--spacing-l); }
  .card-container, .content-grid, .footer-social { gap: var(--spacing-s); }
  /* Hide desktop nav / show hamburger */
  header nav { display: none; }
  .mobile-menu-toggle { display: block; }
  /* Mobile Menu */
  .mobile-menu { padding-top: 20px; }
  .mobile-menu-close { margin-right: 16px; margin-top: 18px; }
  /* Blog text sections / cards stacking */
  .text-image-section, .content-grid { flex-direction: column; gap: var(--spacing-s); }
  footer .content-wrapper { gap: var(--spacing-s); }
}
@media (max-width: 500px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.09rem; }
  .content-wrapper, .card-container, .footer-social {
    gap: var(--spacing-xs);
  }
  .section { padding: var(--spacing-s) var(--spacing-xs); }
  .testimonial-card { padding: var(--spacing-s); }
  .text-section { padding: var(--spacing-s); }
  .footer-contact { max-width: 300px; }
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-light);
  color: var(--color-primary);
  border-top: 1.5px solid var(--color-border);
  box-shadow: 0 -2px 12px 0 rgba(4,59,112,0.07);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-s);
  padding: 18px var(--spacing-m);
  z-index: 10000;
  animation: fadeInCookie 0.8s;
}
@keyframes fadeInCookie {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-banner__text {
  flex: 1 1 300px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--color-primary);
  margin-right: var(--spacing-s);
  line-height: 1.45;
}
.cookie-banner__actions {
  display: flex; flex-wrap: wrap;
  gap: var(--spacing-xs);
}
.cookie-banner__btn {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--sans);
  font-size: .98rem;
  font-weight: 700;
  padding: 9px 22px;
  cursor: pointer;
  margin: 0 4px 0 0;
  transition: background var(--transition), color var(--transition);
}
.cookie-banner__btn:hover, .cookie-banner__btn:focus {
  background: var(--color-accent);
  color: #fff;
}
.cookie-banner__btn.cookie-settings {
  background: var(--color-light);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}
.cookie-banner__btn.cookie-settings:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ==== COOKIE SETTINGS MODAL ==== */
.cookie-modal-backdrop {
  position: fixed; left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(4, 59, 112, 0.42);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-backdrop.open { display: flex; }
.cookie-modal {
  background: var(--color-light);
  border-radius: var(--radius-base);
  box-shadow: 0 4px 36px rgba(107, 94, 34, 0.13);
  max-width: 94vw;
  width: 420px;
  padding: var(--spacing-l) var(--spacing-m);
  color: var(--color-primary);
  animation: fadeInModal 0.5s cubic-bezier(.25,.46,.45,.94);
  font-family: var(--sans);
  position: relative;
}
@keyframes fadeInModal {
  0% { transform: translateY(60px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal__close {
  position: absolute;
  top: 16px; right: 18px;
  background: transparent;
  color: var(--color-primary);
  border: none;
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.7;
}
.cookie-modal__close:hover { opacity: 1; color: var(--color-accent); }
.cookie-modal__header {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--spacing-s);
  color: var(--color-primary);
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-xs);
  font-size: 1.01rem;
}
.cookie-modal__category input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 20px; height: 20px;
}
.cookie-modal__category .toggle-switch {
  display: inline-flex;
  align-items: center;
}
.cookie-modal__category .readonly {
  opacity: .65;
  font-size: .95rem;
  font-style: italic;
}
.cookie-modal__actions {
  display: flex;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-m);
}

/* ==== FORM ELEMENTS, CHECKBOXES (for cookie modal) ==== */
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  accent-color: var(--color-primary);
}

/* ==== UTILITY CLASSES ==== */
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-s { margin-bottom: var(--spacing-s) !important; }
.mb-m { margin-bottom: var(--spacing-m) !important; }
.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.bg-primary { background: var(--color-primary); }
.bg-muted { background: var(--color-muted); }
.rounded { border-radius: var(--radius-base); }
.shadow-sm { box-shadow: var(--shadow-card); }

/* ==== MICRO-INTERACTIONS ==== */
a, button, .cta, .btn, input[type="submit"], .mobile-menu-toggle, .mobile-menu-close, .cookie-banner__btn, .cookie-modal__close {
  transition: all var(--transition);
}

/* ==== ACCORDIONS / FAQ (if used) ==== */
.faq-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  background: var(--color-card-bg);
  border-radius: var(--radius-base);
  box-shadow: 0 2px 12px 0 rgba(4,59,112,0.06);
  padding: var(--spacing-m) var(--spacing-s);
  margin-bottom: var(--spacing-s);
}

/* ==== ACCESSIBILITY: FOCUS STATES ==== */
a:focus, button:focus, input:focus, .cta:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ==== ELEGANT LIST ICONS ==== */
ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 1.03rem;
}
ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 1.35em;
  top: 0;
  line-height: 1;
}
ul img[alt^=Trwałość],
ul img[alt^=Estetyka],
ul img[alt^=Ekologia],
ul img[alt^=Bezpieczeństwo] {
  position: relative;
  top: 6px;
  width: 26px;
  margin-right: 10px;
}

/* ==== Z-INDEX LAYERS FOR INTERACTION ==== */
.mobile-menu.open,
.mobile-menu-close,
.mobile-menu-toggle,
.cookie-banner,
.cookie-modal-backdrop.open {
  z-index: 9999;
}

