/* --- 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 {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #173246;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  background: none;
  color: inherit;
  text-decoration: none;
  transition: color 0.25s;
  cursor: pointer;
}
a:focus {
  outline: 2px dashed #173246;
  outline-offset: 2px;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 12px 16px;
  text-align: left;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #173246;
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 24px;
}
h1 { font-size: 2.5rem; letter-spacing: -1px; margin-bottom: 24px;}
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.375rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.125rem; }

p, li, blockquote {
  font-family: 'Roboto', Arial, sans-serif;
  color: #173246;
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 16px;
}
blockquote {
  border-left: 4px solid #71D99E;
  padding: 8px 24px 8px 16px;
  color: #173246;
  font-style: italic;
  background: #F2F5F7;
  margin-bottom: 0;
}
strong {
  font-weight: 600;
}

/* --- STRUCTURE & SECTION SPACING --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
section, .section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
  background: none;
}
section .container {
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section, .text-image-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- FLEXBOX CARD & LIST SYSTEMS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(23,50,70,0.045);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item,
section ul > li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: none;
  margin-bottom: 20px;
  padding: 0 0 0 0;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F2F5F7;
  border-radius: 12px;
  padding: 20px 32px;
  box-shadow: 0 2px 16px rgba(23,50,70,0.09);
  margin-bottom: 20px;
  flex-direction: row;
  border: 1px solid #e9ecef;
  transition: box-shadow 0.2s;
}
.testimonial-card:focus-within, .testimonial-card:hover {
  box-shadow: 0 4px 24px rgba(23,50,70,0.18);
}
.testimonial-card blockquote {
  border: none;
  font-style: italic;
  font-size: 1.125rem;
  background: none;
  margin: 0;
  padding: 0;
  color: #173246;
}
.testimonial-card footer {
  color: #173246;
  font-size: 1rem;
  opacity: 0.85;
  font-family: 'Roboto', Arial, sans-serif;
}

/* --- HEADER & NAVIGATION --- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(23,50,70,0.05);
  position: relative;
  z-index: 10;
  padding: 0;
  min-height: 70px;
  display: flex;
  flex-direction: column;
}
header .container, header > nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header > a img {
  height: 40px;
  margin: 12px 0 12px 8px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 12px;
  color: #173246;
  border-radius: 6px;
  margin: 0 0 0 2px;
  transition: background 0.14s, color 0.14s;
}
header nav a:hover,
header nav a:focus {
  background: #F2F5F7;
  color: #173246;
}
.btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: #173246;
  border: none;
  border-radius: 24px;
  padding: 12px 32px;
  margin-left: 16px;
  box-shadow: 0 2px 12px rgba(23,50,70,0.08);
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.25s, transform 0.12s;
  display: inline-block;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: #205a7b;
  box-shadow: 0 6px 20px rgba(23,50,70,0.16);
  transform: translateY(-2px) scale(1.03);
}

/* --- MOBILE BURGER MENU --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #173246;
  padding: 0 16px;
  cursor: pointer;
  z-index: 60;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23,50,70,0.95);
  box-shadow: 0 2px 32px rgba(23,50,70,0.12);
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.5,1.7,.35,1);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 36px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  margin-left: 18px;
  cursor: pointer;
  margin-bottom: 28px;
  z-index: 100;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 0 28px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 12px 0;
  transition: color 0.18s, background 0.18s;
  letter-spacing: 0.01em;
  border-radius: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #71D99E;
  color: #173246;
  padding-left: 12px;
}

/* Show/hide desktop vs mobile nav */
@media (max-width: 1020px) {
  header nav {
    display: none;
  }
  .btn-primary {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1020px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* --- MAIN STYLES FOR SECTION CONTENT --- */
ul, ol {
  padding-left: 0;
}
ul > li, ol > li {
  padding-left: 0;
  list-style: none;
  margin-left: 0;
  font-size: 1rem;
  color: #173246;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
ul > li img, ol > li img {
  height: 32px;
  width: 32px;
  margin-right: 12px;
}
ul li strong {
  margin-right: 6px;
}

ol {
  list-style-type: decimal;
  margin-left: 16px;
  padding-left: 0;
  color: #173246;
}
ol > li {
  list-style-type: decimal;
  margin-left: 0;
  padding-left: 0;
}

/* --- TABLES (CENNIK PAGE) --- */
table {
  width: 100%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(23,50,70,0.05);
  overflow: hidden;
  margin-bottom: 28px;
}
thead tr {
  background: #F2F5F7;
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #173246;
}
td {
  font-family: 'Roboto', Arial, sans-serif;
}
tbody tr {
  border-bottom: 1px solid #e9ecef;
}
tbody tr:last-child {
  border-bottom: none;
}

/* --- FOOTER --- */
footer {
  background: #fff;
  box-shadow: 0 -1px 10px rgba(23,50,70,0.03);
  margin-top: 60px;
  padding-top: 28px;
  font-size: 0.98rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin-bottom: 0;
}
footer nav a {
  color: #173246;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 5px;
  transition: color 0.18s, background 0.18s;
  padding: 4px 8px;
}
footer nav a:hover, footer nav a:focus {
  background: #F2F5F7;
  color: #205a7b;
}
footer .footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
  color: #173246;
  font-size: 0.97rem;
  opacity: 0.88;
}
footer .footer-contact div {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 0 !important;
}
footer img {
  width: 18px;
  height: 18px;
}
footer span {
  color: #8a9aac;
  font-size: 0.97rem;
}

/* --- CTA BANNER --- */
.text-section {
  background: #F2F5F7;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(23,50,70,0.05);
  padding: 34px 32px;
  text-align: left;
  align-items: flex-start;
}
.text-section h2 {
  margin-bottom: 8px;
  color: #173246;
}

/* --- BUTTONS --- */
.btn-primary, button, input[type="button"], input[type="submit"] {
  outline: none;
}
.btn-primary:active {
  background: #132837;
  transform: scale(0.98);
}

/* --- SPACING FOR SECTION FLEXBOX CONTAINERS --- */
.section {
  margin-bottom: 60px !important;
  padding: 40px 20px !important;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #173246;
  color: #fff;
  padding: 22px 18px 18px 18px;
  box-shadow: 0 -4px 24px rgba(23,50,70,0.18);
  z-index: 2100;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  font-size: 1rem;
  transition: transform 0.33s;
}
.cookie-consent-banner.hide {
  transform: translateY(100%);
}
.cookie-consent-banner .cookie-text {
  flex: 1 1 260px;
}
.cookie-consent-banner .cookie-btns {
  display: flex;
  gap: 15px;
  align-items: center;
}
.cookie-consent-banner .cookie-btn {
  border: none;
  border-radius: 18px;
  padding: 8px 24px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #fff;
  color: #173246;
  transition: background 0.14s, color 0.14s;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(23,50,70,0.06);
}
.cookie-consent-banner .cookie-btn.accept {
  background: #71D99E;
  color: #173246;
}
.cookie-consent-banner .cookie-btn.reject {
  background: #e5e5e5;
  color: #173246;
}
.cookie-consent-banner .cookie-btn:hover,
.cookie-consent-banner .cookie-btn:focus {
  background: #173246;
  color: #fff;
}
.cookie-consent-banner .cookie-btn.accept:hover,
.cookie-consent-banner .cookie-btn.accept:focus {
  background: #2acd79;
  color: #173246;
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 2200;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(23,50,70,0.7);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: background 0.2s;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 400px;
  padding: 34px 28px 24px 28px;
  box-shadow: 0 12px 48px rgba(23,50,70,0.18);
  color: #173246;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInUp 0.4s cubic-bezier(.39,.575,.565,1) both;
  position: relative;
  z-index: 2220;
}
.cookie-modal-header {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #173246;
  font-size: 2rem;
  position: absolute;
  right: 18px; top: 12px;
  cursor: pointer;
  z-index: 2221;
}
.cookie-modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal-form label {
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}
.cookie-switch {
  appearance: none;
  width: 34px;
  height: 18px;
  border-radius: 10px;
  background: #e5e5e5;
  outline: none;
  position: relative;
  transition: background 0.18s;
  cursor: pointer;
  margin-right: 6px;
  vertical-align: middle;
}
.cookie-switch:checked {
  background: #71D99E;
}
.cookie-switch:before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1px; left: 2px;
  box-shadow: 0 2px 8px rgba(23,50,70,0.13);
  transition: transform 0.18s;
}
.cookie-switch:checked:before {
  transform: translateX(15px);
}
.cookie-modal .cookie-submit {
  border: none;
  background: #173246;
  color: #fff;
  padding: 10px 0;
  border-radius: 7px;
  margin-top: 18px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(23,50,70,0.05);
  transition: background 0.12s, color 0.12s;
}
.cookie-modal .cookie-submit:hover,
.cookie-modal .cookie-submit:focus {
  background: #71D99E;
  color: #173246;
}

@keyframes fadeInUp {
  0% { opacity:0; transform: translateY(30px); }
  100% { opacity:1; transform: translateY(0); }
}

/* --- MICRO-INTERACTIONS FOR ICONS, LINKS, ELEMENTS --- */
ul > li img,
.feature-item img {
  opacity: 0.9;
  transition: transform 0.2s, opacity 0.22s;
}
ul > li:hover img,
ul > li:focus-within img,
.feature-item:hover img {
  transform: scale(1.08) rotate(-5deg);
  opacity: 1;
}
a {
  transition: color 0.14s, background 0.14s, text-decoration 0.12s;
}
a:hover, a:focus {
  color: #71D99E;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .container {
    max-width: 100vw;
    padding: 0 8px;
  }
  .content-wrapper, .card-container, .content-grid, .footer-contact {
    flex-direction: column;
    gap: 20px;
    align-items: stretch !important;
  }
  .section {
    margin-bottom: 35px !important;
    padding: 24px 6px !important;
  }
  section {
    padding: 24px 0 0 0;
    margin-bottom: 32px;
  }
  .card {
    padding: 18px 10px;
    font-size: 1rem;
  }
  .testimonial-card {
    padding: 16px 10px;
    font-size: 0.99rem;
    flex-direction: column;
    gap: 13px;
  }
  .text-section {
    padding: 16px 8px;
  }
  .feature-item, ul > li {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .footer-contact {
    gap: 12px;
    font-size: 0.98rem;
  }
  .cookie-modal {
    max-width: 95vw;
    padding: 16px 8px 18px 8px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.15rem; }
  .btn-primary {
    width: 100%;
    padding: 12px 0;
    font-size: 1.01rem;
    margin: 0;
  }
  .mobile-menu {
    padding-top: 40px;
  }
  .footer-contact {
    flex-direction: column !important;
  }
}

/* --- HIDE COOKIE BANNER ON PRINT --- */
@media print {
  .cookie-consent-banner, .cookie-modal-overlay { display: none !important; }
}
