/* Reset & Base Normalize */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: #FFFFFF;
  color: #15304A;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #15304A;
  text-decoration: none;
  transition: color .2s ease;
}
a:hover,
a:focus {
  color: #138A72;
  outline: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #15304A;
  line-height: 1.18;
}
h1 {font-size: 2.5rem; margin-bottom: 24px;}
h2 {font-size: 2rem; margin-bottom: 20px;}
h3 {font-size: 1.25rem; margin-bottom: 16px;}
h4, h5, h6 {font-size: 1rem;}

ul, ol {
  padding-left: 1.3em;
  margin-bottom: 24px;
}
li {
  margin-bottom: 12px;
}

strong, b {
  font-weight: 700;
}

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

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Header & Navigation */
header {
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(21, 48, 74, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 20px;
}
header img {
  height: 44px;
  width: auto;
}
header nav {
  display: flex;
  gap: 24px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 0;
  font-weight: 500;
  transition: color .2s;
}
header nav a:hover,
header nav a:focus {
  color: #138A72;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 26px;
  background: #138A72;
  color: #FFFFFF;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 32px;
  box-shadow: 0 2px 10px rgba(19, 138, 114, 0.06);
  cursor: pointer;
  transition: background .18s, box-shadow .2s, transform .13s;
  margin-left: 8px;
}
.cta-btn:hover,
.cta-btn:focus {
  background: #0C5749;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 18px rgba(19, 138, 114, 0.12);
  outline: none;
  color: #FFF;
}

/* Hamburger (Mobile Menu) */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  font-size: 2rem;
  margin-left: 8px;
  border: none;
  color: #15304A;
  cursor: pointer;
  line-height: 1;
  transition: color .15s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: #138A72;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(21,48,74,0.97);
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(.46,.03,.52,.96);
  z-index: 9999;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  position: absolute;
  right: 26px;
  top: 24px;
  background: transparent;
  color: #FFFFFF;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10001;
  transition: color .18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #138A72;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  justify-content: center;
  margin: auto 0;
  padding-top: 100px;
}
.mobile-nav a {
  color: #FFF;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 12px 0;
  transition: color .18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #138A72;
}

/* Main Layout Patterns */
main {
  background: #FFF;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Flex layout helpers from requirements */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #F7F5F2;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(21, 48, 74, 0.05);
  padding: 28px 24px;
  flex: 1 1 230px;
  min-width: 200px;
  transition: box-shadow .18s, transform .16s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 8px 24px rgba(19,138,114,0.09);
  transform: translateY(-4px) scale(1.015);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 32px;
  background: #F7F5F2;
  box-shadow: 0 1px 4px rgba(21, 48, 74, 0.06);
  border-radius: 10px;
  margin-bottom: 20px;
  color: #212934;
  font-style: italic;
  font-size: 1.07rem;
  transition: box-shadow .18s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 20px rgba(19,138,114,0.10);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Blog search input */
input[type="text"],
input[type="email"],
textarea {
  padding: 10px 14px;
  font-size: 1rem;
  border: 1px solid #DCE2E8;
  border-radius: 7px;
  outline: none;
  background: #FFF;
  transition: border .18s, box-shadow .16s;
  width: 100%;
  max-width: 380px;
  margin-top: 7px;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border: 1px solid #138A72;
  box-shadow: 0 2px 8px rgba(19,138,114,0.05);
}

/* Table styles (cennik) */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 32px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
thead {
  background: #F7F5F2;
}
thead th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  font-weight: 600;
  padding: 14px 8px;
  text-align: left;
  color: #15304A;
}
tbody td {
  padding: 14px 8px;
  border-top: 1px solid #E8E8E8;
  font-size: 1rem;
}
tbody tr:hover {
  background: #f2faf8;
}

/* Footer */
footer {
  background: #F7F5F2;
  color: #586277;
  font-size: .95rem;
  padding: 32px 0 18px 0;
  border-top: 1px solid #E5E5E5;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
footer nav {
  display: flex;
  gap: 18px;
  margin-bottom: 10px;
}
footer nav a {
  color: #15304A;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-size: .98rem;
  transition: color .18s;
}
footer nav a:hover,
footer nav a:focus {
  color: #138A72;
}
.footer-contact {
  text-align: center;
  letter-spacing: 0.01em;
}

/* Cards and feature lists (index/about) */
ul > li, ol > li {
  position: relative;
  background: inherit;
  border-radius: 10px;
  padding: 14px 14px 14px 0;
  margin-bottom: 15px;
  font-size: 1rem;
}
ul > li img {
  height: 28px;
  width: 28px;
  margin-right: 10px;
  vertical-align: middle;
}
ol > li img {
  height: 28px;
  width: 28px;
  margin-right: 10px;
  vertical-align: middle;
}
ol > li h3 {
  display: inline;
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-right: 6px;
}

/* Contact data (index/kontakt) */
.contact-data p, .company-details p, .address-details p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: #183A52;
}
.contact-data img, .company-details img, .address-details img {
  height: 24px;
  width: 24px;
  opacity: .82;
}
.address-details p strong {
  font-weight: 700;
}

/* Newsletter section CTA */
.cta-btn + .contact-data,
.cta-btn + .address-details {
  margin-top: 18px;
}

/* Animations */
.cta-btn,
.card,
.testimonial-card {
  transition: box-shadow .18s, transform .11s, background .18s;
}

/* Spacing for mobile-friendliness */
@media (max-width: 768px) {
  :root {
    font-size: 15px;
  }
  header .container {
    flex-direction: row;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  header nav {
    display: none;
  }
  .cta-btn {
    min-width: 110px;
    font-size: .98rem;
    padding: 10px 17px;
  }
  .mobile-menu-toggle {
    display: block;
  }
  section {
    padding: 26px 4vw;
    margin-bottom: 38px;
  }
  .testimonial-card {
    padding: 15px 10px;
    font-size: 1rem;
  }
  .content-grid,
  .card-container,
  .feature-list {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .footer-contact {
    font-size: .94rem;
  }
}

@media (max-width: 480px) {
  h1 {font-size: 1.55rem;}
  h2 {font-size: 1.2rem;}
  .container {
    padding: 0 7px;
  }
  section {
    padding: 18px 2vw;
    margin-bottom: 30px;
  }
  .cta-btn {
    padding: 10px 13px;
    min-width: 100px;
    font-size: .94rem;
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #15304A;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  z-index: 10010;
  box-shadow: 0 -4px 44px rgba(21,48,74,0.08);
  gap: 20px;
  flex-wrap: wrap;
  animation: slide-up-cookie .37s cubic-bezier(.35,.8,.4,1);
}
@keyframes slide-up-cookie {
  0% {transform: translateY(100px); opacity:0;}
  100% {transform: translateY(0); opacity:1;}
}
.cookie-banner p {
  flex: 1 1 240px;
  font-size: 1rem;
  margin-bottom: 0;
  color: #fff;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  border: none;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 23px;
  margin: 0 2px;
  box-shadow: 0 1px 10px rgba(21,48,74,0.04);
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .12s;
}
.cookie-accept {
  background: #138A72;
  color: #ffffff;
  font-weight: 600;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: #0C5749;
  color: #fff;
}
.cookie-reject {
  background: transparent;
  color: #FFF;
  border: 1.5px solid #FFF;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #fff;
  color: #15304A;
  border-color: #ffffff;
}
.cookie-settings {
  background: #15304A;
  color: #ffffff;
  border: 1.5px solid #FFF;
}
.cookie-settings:hover, .cookie-settings:focus {
  color: #15304A;
  background: #F7F5F2;
  border-color: #0C5749;
}

@media (max-width:600px) {
  .cookie-banner {
    flex-direction: column;
    padding: 16px 10px;
  }
  .cookie-banner .cookie-actions {
    gap: 8px;
    justify-content: flex-start;
    width: 100%;
    padding-top: 12px;
  }
}

/* Cookie Modal Popup */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,80px) scale(0.97);
  min-width: 300px;
  max-width: 90vw;
  background: #fff;
  color: #15304A;
  border-radius: 18px;
  z-index: 11000;
  box-shadow: 0 8px 48px rgba(21,48,74,0.17);
  display: none;
  flex-direction: column;
  gap: 20px;
  padding: 38px 26px 28px 26px;
  animation: cookie-modal-up .38s cubic-bezier(.35,.8,.4,1);
}
@keyframes cookie-modal-up {
  0% {opacity:0; transform: translate(-50%, 160px) scale(.92);}
  100% {opacity:1; transform: translate(-50%,80px) scale(0.97);}
}
.cookie-modal.active {
  display: flex;
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.14rem;
  margin-bottom: 10px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
}
.cookie-category label {
  font-weight: 500;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: #138A72;
  width: 18px;
  height: 18px;
}
.cookie-category.cookie-essential label,
.cookie-category.cookie-essential input[type="checkbox"] {
  opacity: .55;
  cursor: not-allowed;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 13px;
  margin-top: 10px;
}

@media (max-width: 420px) {
  .cookie-modal {
    padding: 22px 7vw 16px 7vw;
  }
}

/* Utility & Misc */
::-webkit-scrollbar {width: 8px; background: #F6F8F6;}
::-webkit-scrollbar-thumb {background: #E5E8EB; border-radius: 6px;}

::selection {background: #D2F4EC; color: #15304A;}

[hidden] {display: none;}

/* Remove outline on mouse, keep on keyboard */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px solid #138A72;
  outline-offset: 2px;
}

/* Custom typography scale (no clamp) */
.display-1 {font-family: 'Montserrat', Arial, sans-serif; font-size: 3rem; font-weight: 700;}
.display-2 {font-family: 'Montserrat', Arial, sans-serif; font-size: 2.2rem; font-weight: 700;}
.lead {font-size: 1.15rem; color: #194366;}

/* Hide visually (for screen readers) */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* Decorative subtle shadow for all cards */
.card, .testimonial-card, .cookie-modal {
  box-shadow: 0 2px 16px rgba(21,48,74,0.06);
}

/* Z-index layering for mobile menu & banner */
.mobile-menu {z-index: 9999;}
.cookie-banner {z-index: 10010;}
.cookie-modal {z-index: 11000;}
header {z-index: 100;}

/* Misc */
blockquote {
  border-left: 3px solid #138A72;
  background: #F7F5F2;
  padding: 12px 20px;
  border-radius: 8px;
  color: #323E53;
  font-style: italic;
  margin: 24px 0;
}

/* Prevent overlapping and extra space between cards/sections */
section, .testimonial-card, .card, .content-wrapper > div, .content-wrapper > ul, .content-wrapper > ol {
  margin-bottom: 20px;
}
.card-container > *, .content-grid > *, .feature-item > * {
  margin-bottom: 0 !important;
}

/*--- END ---*/