/* =============================================================
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
}
ol, ul {
  list-style: none;
}
a,img {
  border: 0;
  outline: none;
}
button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

/* =============================================================
Variables and Base
============================================================= */
:root {
  --color-primary: #153E52;
  --color-secondary: #46A67C;
  --color-accent: #F2E9DC;
  --color-bg-hero: #f7fafc;
  --color-bg-light: #fff;
  --color-bg-footer: #163F54;
  --color-bg-section: #F2E9DC;
  --color-card: #fff;
  --color-text: #19344D;
  --color-text-invert: #fff;
  --color-grey-light: #f2f4f8;
  --color-grey-medium: #C3CBD6;
  --color-shadow: rgba(21,62,82,.08);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-lg: 0 8px 32px rgba(21,62,82,0.12);
  --shadow-md: 0 4px 16px rgba(21,62,82,0.08);
  --shadow-sm: 0 2px 6px rgba(21,62,82,0.06);
  --transition: all .3s cubic-bezier(.55, .12, .43, .92);
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--color-text);
  background: linear-gradient(135deg,#F2E9DC 0%, #E2F0EA 100%);
  min-height: 100vh;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ================================================
Fonts
================================================= */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1   { font-size: 2.5rem; margin-bottom: 20px; }
h2   { font-size: 2rem; margin-bottom: 16px; }
h3   { font-size: 1.3rem; margin-bottom: 12px; font-weight: 600; }
h4,h5 { font-size: 1.1rem; margin-bottom: 8px; }

p, li, address {
  font-size: 1rem;
  color: var(--color-text);
}
.subline {
  font-size: 1.2rem;
  color: var(--color-secondary);
  font-family: 'Open Sans', sans-serif;
  margin-bottom: 24px;
  font-weight: 500;
}
strong {
  font-weight: 600;
  color: var(--color-primary);
}
a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: var(--color-primary);
}

/* ================================================
Containers & Sections
================================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-section);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
section:not(:first-of-type) {
  margin-top: 0px;
}
section {
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.text-section {
  background: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.fast-facts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--color-bg-section);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-top: 12px;
}

/*==================================================
Header
==================================================*/
header {
  width: 100%;
  background: linear-gradient(100deg, #fff 30%, #e7f5ee 100%);
  box-shadow: 0 2px 12px #fafafa;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 20px;
}
.logo img {
  height: 44px;
  width: auto;
  vertical-align: middle;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: var(--color-primary);
  font-size: 1.08rem;
  position: relative;
  transition: color .2s;
  padding: 6px 0;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--color-secondary);
}
.main-nav a.active::after {
  content: '';
  display: block;
  margin: 0 auto;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-secondary);
  margin-top: 2px;
}

/* CTA Hero Button */
.cta.primary {
  background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  padding: 13px 36px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  margin-left: 18px;
  display: inline-block;
  border: none;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 2;
}
.cta.primary:hover, .cta.primary:focus {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 36px rgba(70,166,124,0.18);
}

/* ================================================
Mobile Burger Menu
================================================ */
.mobile-menu-toggle {
  display: none;
  background: var(--color-bg-footer);
  color: #fff;
  font-size: 2rem;
  padding: 5px 16px;
  border-radius: var(--radius-md);
  transition: background .18s;
  margin-left: 16px;
  z-index: 44;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-secondary);
  outline: 2px solid var(--color-secondary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(21,62,82, 0.85);
  color: #fff;
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  transform: translateX(-100vw);
  transition: var(--transition);
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2.2rem;
  margin: 20px 28px 12px 0;
  align-self: flex-end;
  border-radius: var(--radius-lg);
  transition: background .15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
  background: rgba(255,255,255,0.05);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 16px 48px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.35rem;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 8px 0;
  border-radius: var(--radius-md);
  transition: background .18s, color .18s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(255,255,255,0.08);
  color: var(--color-secondary);
}

/* ================================================
Hero and Section Spacings
================================================ */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  border: none;
  background: transparent;
}
section .container {
  background: none;
  box-shadow: none;
  border-radius: 0;
}

/* ================================================
Feature Grids/Lists
================================================ */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 20px 0 0 0;
  width: 100%;
}
.feature-grid li {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px 24px 20px 24px;
  flex: 1 0 260px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .22s, transform .22s;
}
.feature-grid li img {
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
}
.feature-grid li:hover {
  box-shadow: 0 12px 36px rgba(70,166,124,0.13);
  transform: translateY(-3px) scale(1.017);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ================================================
Card/Section/Container Flexbox Patterns
================================================ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  padding: 20px 18px;
  position: relative;
  transition: box-shadow .16s, transform .16s;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(21,62,82,.13);
  transform: translateY(-1.5px) scale(1.01);
}

.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;
  background: #fff;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  flex-direction: column;
  max-width: 620px;
  min-width: 250px;
  margin-right: auto;
  margin-left: auto;
  transition: box-shadow .2s, transform .2s;
}
.testimonial-card blockquote {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  color: var(--color-primary);
  font-style: italic;
  margin-bottom: 10px;
  line-height: 1.6;
}
.testimonial-card .testimonial-author {
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 1.07rem;
  font-family: 'Open Sans', sans-serif;
  margin-left: 0;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(70,166,124,0.15);
  transform: translateY(-2px) scale(1.024);
}

/* ================================================
Tag Cloud
================================================ */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 18px 0 0 0;
}
.tag-cloud strong {
  color: var(--color-primary);
  font-weight: 600;
  margin-right: 10px;
}
.tag-cloud a {
  background: #F2E9DC;
  color: var(--color-secondary);
  font-weight: 500;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 0.98rem;
  transition: background .16s, color .16s;
}
.tag-cloud a:hover {
  background: var(--color-secondary);
  color: #fff;
}

/* ================================================
Footer
================================================ */
footer {
  background: var(--color-bg-footer);
  color: #fff;
  padding: 48px 0 18px 0;
  margin-top: 40px;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.footer-brand img {
  width: 50px;
  height: auto;
  margin-bottom: 0;
}
.footer-brand span {
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: #fff;
  font-weight: 500;
  transition: color .16s;
  font-size: 1rem;
  padding: 3px 0;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-secondary);
}
footer address {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-style: normal;
  color: #e9f7f1;
  font-size: 0.97rem;
}
footer address div {
  display: flex;
  align-items: center;
  gap: 7px;
}
footer address a {
  color: #fff;
  text-decoration: underline;
}
footer address a:hover {
  color: var(--color-secondary);
}
footer img[alt^="Adres"],
footer img[alt^="Telefon"],
footer img[alt^="Email"],
footer img[alt^="Godziny"] {
  width: 18px;
  height: 18px;
}

/* ================================================
Cards, Shadows, Effects
================================================ */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

/* ================================================
Buttons
================================================ */
button,
.btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 9px 24px;
  border-radius: var(--radius-xl);
  background: var(--color-secondary);
  color: #fff;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  box-shadow: var(--shadow-sm);
}
.btn.outline, button.outline {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
.btn:hover, .btn:focus,
button:hover, button:focus {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn.secondary {
  background: var(--color-primary);
}

/* ================================================
Cookie Banner
================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #fff 65%, #e2f0ea 100%);
  color: var(--color-primary);
  padding: 22px 12px 18px 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  box-shadow: 0 -3px 24px rgba(21,62,82, 0.09);
  z-index: 1999;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  font-size: 1rem;
  transition: transform .26s cubic-bezier(.5, .13, .32, 1.11), opacity .26s;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
}
.cookie-banner button,
.cookie-banner .btn {
  padding: 9px 18px;
  font-size: 1rem;
  min-width: 110px;
}
.cookie-banner .cookie-settings {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-secondary);
}
.cookie-banner .cookie-settings:hover {
  background: var(--color-secondary);
  color: #fff;
}

.cookie-banner .cookie-reject {
  background: transparent;
  color: #c94f4f;
  border: 2px solid #c94f4f;
}
.cookie-banner .cookie-reject:hover {
  background: #c94f4f;
  color: #fff;
}

/* Cookie Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(21,62,82,0.65);
  z-index: 2999;
  justify-content: center;
  align-items: center;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 42px rgba(21,62,82,0.17);
  padding: 38px 28px;
  min-width: 320px;
  max-width: 94vw;
  max-height: 80vh;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 23px;
  position: relative;
  animation: modalFadeIn .28s cubic-bezier(.6,.13,.46,1.09);
}
@keyframes modalFadeIn {
  from {opacity:0;transform: scale(0.94);}
  to   {opacity:1;transform: scale(1);}
}
.cookie-modal h2 {
  margin-bottom: 9px;
  font-size: 1.4rem;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 7px;
}
.cookie-modal .category-name {
  font-weight: 600;
  font-size: 1.09rem;
}
.cookie-modal .category-desc {
  font-size: 0.98rem;
  color: var(--color-grey-medium);
}
.cookie-modal .cookie-toggle {
  /* Custom switch */
  display: inline-block;
}
.cookie-modal .cookie-toggle input[type=checkbox] {
  display: none;
}
.cookie-modal .slider {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  background: var(--color-grey-light);
  border-radius: 22px;
  transition: background .2s;
}
.cookie-modal .slider:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  transition: .2s;
}
.cookie-modal .cookie-toggle input:checked + .slider {
  background: var(--color-secondary);
}
.cookie-modal .cookie-toggle input:checked + .slider:before {
  background: var(--color-secondary);
  transform: translateX(18px);
}
.cookie-modal .cookie-toggle input:disabled + .slider {
  background: #eee;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  color: var(--color-primary);
  font-size: 1.7rem;
  border-radius: 7px;
  transition: background .14s;
}
.cookie-modal .cookie-modal-close:focus, .cookie-modal .cookie-modal-close:hover {
  background: var(--color-grey-light);
  color: var(--color-secondary);
}

/* ===============================================
Responsive Design - Mobile First
================================================ */
@media (max-width: 1060px) {
  .container {
    max-width: 98vw;
    padding: 0 14px;
  }
}
@media (max-width: 920px) {
  header .container { height: auto; flex-wrap: wrap; }
  .main-nav { gap: 16px; flex-wrap: wrap; }
  .footer-nav { gap: 7px; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  body { font-size: 15px; }
  .container {
    max-width: 100vw;
    flex-direction: column;
    gap: 12px;
  }
  /* Header Navbars */
  .main-nav {
    display: none;
  }
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  /* Footer */
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  /* Section */
  section {
    padding: 30px 0;
  }
  /* Card & Feature Grids */
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    margin: 0 0 20px 0;
    max-width: 96vw;
    min-width: 0;
    padding: 18px 8px;
  }
  .tag-cloud {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

@media (max-width: 540px) {
  html { font-size: 14px; }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.22rem; }
  section {
    padding: 19px 0;
  }
  .feature-grid li {
    padding: 14px 9px 13px 9px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 11px;
    font-size: .99rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 15px 7px 13px 7px;
  }
}

/* ==============================
Micro-interactions/Transition Misc
============================== */
a, .cta, button, .feature-grid li, .card, .testimonial-card, .btn, .cookie-banner {
  transition: var(--transition);
}
a:active, .cta.primary:active, button:active {
  transform: scale(0.96);
}

/* ==============================
Miscellaneous Styles & Utilities
============================== */
.text-section ul {
  margin-left: 0.7em;
  padding-left: 1.1em;
  list-style: disc;
  color: var(--color-secondary);
}
.text-section ul li,
.feature-grid li p,
.feature-grid li strong {
  color: var(--color-text);
  font-size: 1rem;
}
.text-section ul li strong {
  color: var(--color-primary);
  font-size: 1.05rem;
}
.text-section img, .feature-grid img {
  vertical-align: middle;
  display: inline-block;
}
.text-image-section img {
  max-width: 160px;
  max-height: 120px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(21,62,82,0.07);
  margin-right: 8px;
}
address img {
  margin-right: 6px;
}

/* ========================================
Print Mode - Hide non-content elements
======================================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
}
