/* --- 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%; vertical-align: baseline; box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
body { line-height: 1; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { background: none; border: none; padding: 0; font: inherit; cursor: pointer; }

/* --- BRAND VARIABLES AND FALLBACKS --- */
:root {
  --color-primary: #20638C;
  --color-secondary: #E6EEF2;
  --color-accent: #00796D;
  --color-background: #F7FAFC;
  --color-white: #fff;
  --color-dark: #233140;
  --color-gray: #94A3B8;
  --color-light-gray: #E6EEF2;
  --color-border: #D6DFE5;
  --box-shadow: 0 2px 16px rgba(32,99,140,0.06), 0 1.5px 8px rgba(32,99,140,0.06);
  --radius: 10px;
  --transition: 0.18s cubic-bezier(.4,0,.2,1);
  --font-display: "Montserrat", Arial, Helvetica, sans-serif;
  --font-body: "Roboto", Arial, Helvetica, sans-serif;
}

/* --- BASE TYPOGRAPHY --- */
html {
  font-size: 16px;
  background: var(--color-background);
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-background);
  min-height: 100vh;
  font-weight: 400;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
p {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--color-dark);
}
strong, b { font-weight: 600; }

/* --- CONTAINER/WRAPPER --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.text-section {
  max-width: 650px;
}

/* --- HEADER & NAVIGATION --- */
header {
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 1px 8px rgba(32,99,140,0.04);
  position: sticky;
  top: 0;
  z-index: 50;
}
header > .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 18px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
}
header nav a {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 500;
  padding: 7px 0;
  position: relative;
  transition: color var(--transition);
}
header nav a:hover,
header nav a:focus {
  color: var(--color-accent);
}
header > .container > a img {
  height: 38px;
  width: auto;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 12px 32px;
  box-shadow: var(--box-shadow);
  border: none;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  text-align: center;
  margin-top: 0;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 24px rgba(0,121,109,0.08);
  transform: translateY(-2px) scale(1.03);
}

.btn-secondary {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: var(--radius);
  padding: 11px 28px;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--color-primary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 4px 24px rgba(32,99,140,0.08);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  z-index: 100;
  top: 22px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 2em;
  border-radius: 50%;
  box-shadow: var(--box-shadow);
  align-items: center;
  justify-content: center;
  transition: background var(--transition), box-shadow var(--transition);
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--color-accent);
  outline: 2px solid var(--color-primary);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--color-white);
  z-index: 101;
  box-shadow: 0 0 80px 16px rgba(32,99,140,0.09);
  transform: translateX(-102vw);
  transition: transform 0.3s cubic-bezier(.73,.09,.33,.96);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 20px 0 0 22px;
  background: none;
  border: none;
  font-size: 2em;
  color: var(--color-primary);
  cursor: pointer;
  align-self: flex-end;
}
.mobile-nav {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  align-items: flex-start;
  padding-left: 32px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-primary);
  width: 100%;
  padding: 13px 0 13px 6px;
  border-radius: 5px;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-light-gray);
  color: var(--color-accent);
}

/* --- GENERAL LAYOUT/SECTION STYLES --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
}
@media (max-width: 900px) {
  section {
    padding: 28px 10px;
    margin-bottom: 40px;
  }
}

/* --- FEATURE GRID & CARDS --- */
.feature-grid, .service-list, .project-grid, .blog-list, .tips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
  justify-content: flex-start;
}
.feature {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--box-shadow);
  padding: 24px 18px 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 4px 24px rgba(32,99,140,0.09);
  transform: translateY(-1px) scale(1.03);
}
.service {
  flex: 1 1 240px;
  min-width: 240px;
  max-width: 340px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--box-shadow);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.service:hover, .service:focus-within {
  box-shadow: 0 4px 24px rgba(32,99,140,0.09);
  transform: translateY(-1px) scale(1.03);
}
.project-grid {
  gap: 24px;
}
.project {
  flex: 1 1 240px;
  min-width: 240px;
  max-width: 340px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--box-shadow);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.project:hover, .project:focus-within {
  box-shadow: 0 4px 24px rgba(32,99,140,0.09);
  transform: translateY(-1px) scale(1.03);
}
.blog-list {
  gap: 20px;
}
.blog-post-preview {
  flex: 1 1 260px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--box-shadow);
  padding: 18px 14px 16px 14px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.blog-post-preview:hover,
.blog-post-preview:focus-within {
  box-shadow: 0 4px 24px rgba(32,99,140,0.09);
  transform: translateY(-2px) scale(1.025);
}
.tips-list {
  gap: 20px;
}
.tip-summary {
  flex: 1 1 220px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--box-shadow);
  padding: 18px 14px 14px 14px;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.featured-tip {
  background: var(--color-light-gray);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1.07rem;
}
.tags-list {
  color: var(--color-gray);
  font-size: .97rem;
  margin-top: 6px;
}
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.category-tabs span {
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 1.01rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.category-tabs span:hover,
.category-tabs span.active {
  background: var(--color-primary);
  color: var(--color-white);
}

/* --- TESTIMONIAL CARDS --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  color: var(--color-dark);
  max-width: 670px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card blockquote {
  font-style: italic;
  font-size: 1.08rem;
  color: var(--color-dark);
  margin-bottom: 0;
}
.testimonial-meta {
  font-size: .98rem;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 5px;
}
.testimonial-meta img {
  height: 1.12em;
  vertical-align: middle;
  display: inline-block;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 4px 24px rgba(32,99,140,0.10);
  transform: translateY(-2px) scale(1.025);
}

/* --- CONTACT & SIMPLE MAP BLOCKS --- */
.contact-block {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--box-shadow);
  padding: 24px 22px;
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
}
.simple-map {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  background: var(--color-light-gray);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.simple-map img { height: 32px; }

/* --- FOOTER --- */
footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding-top: 36px;
  padding-bottom: 32px;
  margin-top: 60px;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-logo img {
  height: 48px;
}
.footer-contact {
  flex: 1 1 260px;
  min-width: 220px;
}
.footer-contact h3 {
  color: var(--color-white);
  font-size: 1.11rem;
  margin-bottom: 8px;
  font-weight: 700;
}
.footer-contact p, .footer-contact img {
  color: var(--color-white);
  vertical-align: middle;
  display: inline;
}
.footer-contact img { height: 1em; margin: 0 4px 0 2px; }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--color-secondary);
  font-size: 1rem;
  transition: color var(--transition);
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--color-accent);
}

/* --- LISTS & TEXT CONTENT --- */
ul, ol {
  margin-bottom: 16px;
  margin-left: 24px;
}
ul li, ol li {
  margin-bottom: 9px;
  list-style: disc inside;
  font-size: 1rem;
  color: var(--color-dark);
}
ol {
  list-style-type: decimal inside;
}

/* --- CTA SECTION STYLE (call-to-action) --- */
section:last-child, .cta {
  background: var(--color-white);
  box-shadow: var(--box-shadow);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  margin-bottom: 0;
}

/* --- MISCELLANEOUS COMPONENTS --- */
.section {
  margin-bottom: 60px !important;
  padding: 40px 20px !important;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  margin-bottom: 20px;
  position: relative;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--color-border);
  padding: 22px 20px;
}
.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;
}

/* --- FORM ELEMENTS --- */
input[type=text], input[type=email], textarea {
  font-family: var(--font-body);
  padding: 12px 13px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  margin-bottom: 16px;
  font-size: 1.05em;
  background: var(--color-white);
  color: var(--color-dark);
  transition: border var(--transition), box-shadow var(--transition);
  width: 100%;
  box-sizing: border-box;
  outline: none;
}
input[type=text]:focus,
input[type=email]:focus,
textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1.5px var(--color-primary) inset;
}

/* --- ANIMATIONS & INTERACTIONS --- */
.btn-primary, .btn-secondary, .feature, .service, .card, .project, .testimonial-card, .blog-post-preview {
  transition: box-shadow var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}

/* --- RESPONSIVE DESIGN (Mobile First) --- */
@media (max-width: 1020px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
    max-width: 99vw;
  }
  header nav {
    gap: 12px;
  }
}
@media (max-width: 968px) {
  .feature-grid, .service-list, .project-grid, .blog-list, .tips-list {
    gap: 16px;
  }
  .feature, .service, .project, .blog-post-preview, .tip-summary {
    min-width: 170px;
    max-width: 100%;
    flex: 1 1 100%;
  }
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  header > .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  header nav {
    display: none;
  }
  .btn-primary {
    font-size: 1rem;
    padding: 12px 20px;
  }
  .btn-secondary {
    font-size: .97rem;
    padding: 10px 16px;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .card-container, .feature-grid, .service-list, .project-grid, .blog-list, .tips-list {
    flex-direction: column;
    gap: 16px;
  }
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.08rem; }
  section, .section {
    padding: 24px 3vw;
    margin-bottom: 30px;
  }
  .testimonial-card, .card, .project, .service {
    padding: 15px 6px;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-secondary);
  color: var(--color-primary);
  z-index: 2000;
  box-shadow: 0 -2px 24px rgba(32,99,140,0.08);
  padding: 22px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 1.08rem;
  animation: fadeInBanner 0.8s cubic-bezier(.4,0,.2,1);
}
@keyframes fadeInBanner { from {opacity:0; transform:translateY(80px);} to {opacity:1; transform:translateY(0);} }
.cookie-consent-banner .cookie-text {
  flex: 1 1 0;
  min-width: 0;
}
.cookie-consent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}
.cookie-consent-banner button {
  font-family: var(--font-display);
  border-radius: 7px;
  padding: 7px 20px;
  font-size: 1.03rem;
  font-weight: 500;
  border: 1px solid var(--color-primary);
  background: var(--color-white);
  color: var(--color-primary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border var(--transition);
}
.cookie-consent-banner button.accept {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.cookie-consent-banner button.accept:hover, .cookie-consent-banner button.accept:focus {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.cookie-consent-banner button.settings {
  background: var(--color-secondary);
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.cookie-consent-banner button.settings:hover, .cookie-consent-banner button.settings:focus {
  background: var(--color-primary);
  color: var(--color-white);
}
.cookie-consent-banner button.reject {
  background: var(--color-light-gray);
  color: var(--color-primary);
  border-color: var(--color-border);
}
.cookie-consent-banner button.reject:hover, .cookie-consent-banner button.reject:focus {
  background: #f3eaea;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
@media (max-width: 700px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
    font-size: 0.98rem;
    padding: 16px 6px;
  }
  .cookie-consent-buttons { justify-content: flex-start; }
}

/* --- COOKIE CONSENT MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2010;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(33,46,57,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.33s cubic-bezier(.4,0,.2,1);
}
@keyframes modalFadeIn { from { opacity:0; } to { opacity:1; } }
.cookie-modal {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 6px 48px rgba(32,99,140,0.18);
  padding: 34px 28px 28px 28px;
  min-width: 320px;
  max-width: 96vw;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 2020;
}
.cookie-modal h2 {
  font-size: 1.18rem;
  margin-bottom: 3px;
  color: var(--color-primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.cookie-category label {
  font-weight: 500;
  font-size: 1.04rem;
  color: var(--color-dark);
}
.cookie-category input[type=checkbox] {
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
}
.cookie-category.essential label:after {
  content: ' (zawsze włączone)';
  color: var(--color-gray);
  font-size: .97em;
  margin-left: 4px;
  font-style: italic;
}
.cookie-modal .modal-buttons {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 10px;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--color-primary);
  position: absolute;
  right: 18px;
  top: 10px;
  font-size: 1.6em;
  cursor: pointer;
  transition: color var(--transition);
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-accent);
}

/* --- ACCESSIBILITY & HIDDEN --- */
.sr-only {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  top: auto;
  overflow: hidden;
}

/* --- UTILITIES --- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.gap-8 { gap: 8px !important; }
.gap-20 { gap: 20px !important; }
.radius-md { border-radius: var(--radius); }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }

/* --- PRINT STYLE --- */
@media print {
  header, footer, .mobile-menu-toggle, .mobile-menu, .cookie-consent-banner, .cookie-modal-overlay { display: none !important; }
  section, .section { box-shadow: none !important; border: none !important; }
}
