/* ---------------------- 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,
main, 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;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.4;
  background: #f5fcff;
  color: #0E2845;
}
img {
  border: 0;
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}
/* ---------------------- BRAND COLORS & FONTS ---------------------- */
:root {
  --color-primary: #1766A3;
  --color-secondary: #379872;
  --color-accent: #FFFFFF;
  --color-bg: #f5fcff;
  --color-text: #0E2845;
  --color-warning: #FFBC42;
  --color-info: #80CFFA;
  --color-success: #68DBA3;
  --color-error: #F06543;
  --shadow-card: 0 5px 24px 0 rgba(49,58,102,0.10);
  --shadow-fun: 0 4px 32px 0 rgba(25,119,185,0.08);
  --border-radius: 18px;
  --gap-main: 24px;
  --gap-flex: 20px;
  --gap-cards: 24px;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  background: var(--color-bg);
  color: var(--color-text);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--color-primary);
}
h1 {font-size: 2.4rem; margin-bottom: 16px;}
h2 {font-size: 2rem; margin-bottom: 14px;}
h3 {font-size: 1.4rem; margin-bottom: 10px;}

p, ul li, ol li {
  font-size: 1rem;
  margin-bottom: 8px;
}

strong {font-weight: 700;}

/* ---------------------- LAYOUT CONTAINERS ------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  position: relative;
}

.text-section {
  margin: 0 0 16px 0;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-fun);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  padding: 24px;
  min-width: 260px;
  flex: 1 1 250px;
}
.card:hover {
  transform: translateY(-6px) scale(1.035) rotate(-1deg);
  box-shadow: 0 8px 32px 0 rgba(55,152,114,0.10);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  background: #fffbe9;
  box-shadow: 0 3px 20px rgba(55,152,114,0.10), var(--shadow-fun);
  border-left: 7px solid var(--color-primary);
  font-size: 1.12rem;
  font-style: italic;
  min-width: 220px;
  max-width: 520px;
}
.testimonial-card p {
  color: #362B15;
  margin-bottom: 6px;
}
.testimonial-card span {
  font-weight: 600;
  font-style: normal;
  color: #1766A3;
  font-size: 1rem;
  align-self: flex-end;
}

/* ---------------------- HEADER & NAVIGATION ---------------------- */
header {
  background: var(--color-accent);
  box-shadow: 0 3px 22px 0 rgba(23,102,163,0.08);
  padding: 0 0 8px 0;
  position: relative;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px 10px 12px;
}
header img[alt*="logo"] {
  width: 160px;
  margin-right: 18px;
  filter: drop-shadow(0 2px 12px #d8f2ff70);
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 16px;
  transition: background 0.14s, color 0.16s, box-shadow 0.18s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-info);
  color: var(--color-secondary);
  box-shadow: 0 0 0 3px #E7F7FF;
}
.cta-btn {
  background: linear-gradient(90deg, var(--color-primary) 60%, var(--color-secondary) 100%);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  padding: 13px 28px;
  border-radius: 45px;
  margin-left: 20px;
  box-shadow: 0 7px 23px rgba(23,102,163,0.12);
  letter-spacing: 0.02em;
  cursor: pointer;
  outline: none;
  transition: transform 0.14s, background 0.18s;
  position: relative;
  z-index: 1;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, var(--color-secondary) 70%, var(--color-primary) 100%);
  transform: scale(1.035) translateY(-2px) rotate(-2deg);
  box-shadow: 0 10px 34px rgba(55,152,114,0.18);
}

/* ---------------------- MOBILE NAVIGATION ---------------------- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 14px;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 110;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(23,102,163,.07);
  transition: background .14s, transform .16s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--color-primary);
  transform: scale(1.08);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.87,0,.13,1);
  z-index: 2000;
  box-shadow: 8px 0 24px rgba(55,152,114,0.13);
  padding: 0 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--color-error);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.8rem;
  align-self: flex-end;
  margin: 22px 20px 18px 0;
  cursor: pointer;
  transition: background 0.16s, transform 0.16s;
  box-shadow: 0 1px 8px #e9e9e98c;
  z-index: 2100;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--color-warning);
  color: var(--color-text);
  transform: scale(1.11) rotate(10deg);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 15px;
  align-items: center;
  padding: 10px 0 30px 0;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  color: var(--color-primary);
  font-weight: 700;
  background: #f1fcfb;
  padding: 14px 32px;
  border-radius: 18px;
  margin: 0 12px;
  min-width: 175px;
  text-align: center;
  transition: background 0.15s, box-shadow 0.20s, color 0.15s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 3px 15px var(--color-primary, #1766A3)30;
}
@media (max-width: 1024px) {
  .main-nav {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 8px;
  }
  header .container {
    padding: 12px 8px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }
  .main-nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Mobile menu overlay disables background scroll (to be handled in JS) */
body.menu-open {
  overflow: hidden;
  touch-action: none;
}

/* ------------------------ BANNERS, HERO, ANIMATIONS ------------------------ */
@keyframes pop-in {
  0% { opacity: 0; transform: scale(0.96) translateY(30px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes cta-jump {
  0% { transform: translateY(0) scale(1); }
  15% { transform: translateY(-6px) scale(1.09); }
  25% { transform: translateY(-4px) scale(1.07); }
  50% { transform: translateY(0) scale(1); }
  100% { transform: translateY(0) scale(1); }
}
.cta-btn {
  animation: cta-jump 2.2s cubic-bezier(.25,.84,.44,1) infinite 2.1s alternate;
}
.section, .card, .testimonial-card, .footer-contact, .content-wrapper {
  animation: pop-in 0.7s cubic-bezier(.17,.67,.83,.67) 0s 1;
}

/* ----------------------------- GENERAL LISTS ------------------------------ */
ul, ol {
  margin-bottom: 14px;
}
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding-left: 0;
  font-size: 1.10rem;
  color: var(--color-text);
}
ul li img, ol li img {
  width: 30px;
  height: 30px;
  background: #e9f5ff;
  padding: 4px;
  border-radius: 50%;
  box-shadow: 0 1px 7px #d7f6f0ab;
  margin-right: 10px;
}

/* Table styles (Cennik) */
table {
  width: 100%;
  border-radius: var(--border-radius);
  background: #fff;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: 0 2px 20px rgba(23,102,163,0.09);
  margin-bottom: 16px;
  overflow: hidden;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 12px;
}
thead {
  background: var(--color-secondary);
  color: #fff;
  font-size: 1.1rem;
}
thead th {
  padding: 14px 8px;
  text-align: left;
  font-weight: bold;
  letter-spacing: 0.5px;
}
tbody tr {
  border-bottom: 1px solid #e8f6ff;
}
tbody td {
  padding: 13px 8px;
  background: #fbfdff;
  color: #1d3557;
}

/* ---------------------- FOOTER ---------------------- */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 38px 0 18px 0;
  font-size: 0.97rem;
  box-shadow: 0 -6px 35px rgba(55,152,114,0.07);
}
footer .container {
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 14px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 14px;
  transition: background 0.16s, color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-secondary);
  color: #fffde4;
}
.footer-contact {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
  padding: 18px 0 0 0;
}
.footer-contact img {
  width: 60px;
  height: auto;
}
.footer-contact div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #e7fafd;
  font-size: 1rem;
}
.footer-contact p img {
  width: 22px;
  height: 22px;
  margin-right: 4px;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin: 18px 0 0 0;
}
.footer-social img {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px #11467513;
  padding: 5px;
  transition: transform 0.15s;
  cursor: pointer;
}
.footer-social img:hover {
  transform: scale(1.20) rotate(-6deg);
}
.copyright {
  font-size: 0.98rem;
  color: #fffbe1;
  margin-top: 10px;
  text-align: center;
}


/* ------------------------ COOKIE CONSENT BANNER ------------------------ */
.cookie-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  padding: 18px 32px;
  background: #fff;
  box-shadow: 0 -8px 30px rgba(23,102,163,0.16), 0 3px 22px rgba(55,152,114,0.04);
  z-index: 4000;
  gap: 28px;
  font-size: 1rem;
  transition: transform 0.38s cubic-bezier(.8,.2,.13,1) 0s;
  transform: translateY(0);
  animation: pop-in 0.7s 0s 1;
}
.cookie-banner.hide {
  transform: translateY(110%);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner p {
  color: #16405b;
  font-size: 1.02rem;
  line-height: 1.4;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-btn {
  padding: 11px 20px;
  border-radius: 26px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s, color 0.13s, box-shadow 0.22s;
  margin-left: 0;
  box-shadow: 0 1px 7px #eaf3ef77;
}
.cookie-btn.accept {
  background: var(--color-success);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-primary);
}
.cookie-btn.reject {
  background: var(--color-error);
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #e6511e;
}
.cookie-btn.settings {
  background: var(--color-warning);
  color: #173e56;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #ffe287;
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(19,102,143,0.37);
  backdrop-filter: blur(2px);
  z-index: 4010;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.35s;
}
.cookie-modal {
  background: #fff;
  border-radius: 28px;
  min-width: 310px;
  max-width: 98vw;
  box-shadow: 0 12px 56px #11467536, var(--shadow-fun);
  padding: 32px 28px 18px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 1.08rem;
}
.cookie-modal h3 {
  color: var(--color-primary);
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
}
.cookie-category label {
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  width: 23px;
  height: 23px;
  accent-color: var(--color-secondary);
}
.cookie-category.essential label {
  color: var(--color-success);
  font-weight: 700;
  text-shadow: 0 1px 3px #daffe9;
}
.cookie-modal-btns {
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 16px;
}
.cookie-modal .cookie-btn {
  min-width: 120px;
  padding: 10px 0;
}
.cookie-modal-close {
  position: absolute;
  right: 19px; top: 14px;
  background: var(--color-error);
  color: #fff;
  width: 41px;
  height: 41px;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1;
  box-shadow: 0 3px 7px #f3948328;
  transition: background 0.13s;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  background: var(--color-warning);
  color: #282843;
}

/* ---------------------- RESPONSIVE DESIGN ---------------------- */
@media (max-width: 1100px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 900px) {
  .footer-contact {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 26px 12px;
    margin-bottom: 44px;
  }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.12rem; }
  .content-wrapper, .card-container { gap: 16px; }
  .testimonial-card {
    min-width: 0;
    width: 100%;
    font-size: 1rem;
  }
  .footer-nav {
    gap: 9px;
    font-size: 0.95rem;
    flex-wrap: wrap;
  }
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .cookie-banner {
    padding: 12px 10px;
    flex-direction: column;
    gap: 14px;
    font-size: 0.98rem;
    align-items: flex-start;
  }
}
@media (max-width: 500px) {
  .section {
    padding: 13px 2px;
  }
  .container {
    padding: 0 2px;
  }
  .cookie-modal {
    min-width: unset;
    padding: 18px 3vw 10px 3vw;
  }
}

/* ---------------------- ACCESSIBILITY UTILS ---------------------- */
:focus {
  outline: 2px dotted var(--color-primary);
  outline-offset: 2px;
}

/* visually distinguish skip/nav links for a11y (if any were present) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 21000;
}
.skip-link:focus {
  left: 50%;
  top: 12px;
  width: auto;
  height: auto;
  background: var(--color-warning);
  color: #282843;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 20px;
}

/* ---------------------- FUN, PLAYFUL TOUCHES ---------------------- */
h1, h2, h3, .cta-btn, .footer-social img {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
}
h1, h2, h3 {
  text-shadow: 0 3px 13px #b6e6fb34,0 2px 2px #fff8b6a6;
}
.testimonial-card {
  border-left: 7px solid var(--color-secondary);
  position: relative;
}
.testimonial-card:before {
  content: '\201C';
  color: var(--color-warning);
  font-size: 3.2rem;
  position: absolute;
  left: 18px;
  top: 5px;
  opacity: 0.46;
}

.card {
  border-bottom: 6px solid var(--color-secondary);
  background: #fffffb;
  box-shadow: 0 5px 20px rgba(80,190,150,0.07);
}

.cta-btn {
  box-shadow: 0 9px 36px #37987238;
  letter-spacing: 0.07em;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
}

.card, .testimonial-card {
  box-shadow: 0 3px 24px #c5f3ec59,0 0px 1px #76d5fd15;
  border-radius: 27px 48px 18px 18px / 17px 41px 30px 23px;
}

ul li, ol li {
  transition: background 0.15s, box-shadow 0.17s;
  border-radius: 16px;
  padding: 3px 8px;
}
ul li:hover, ol li:hover {
  background: #e5fff7;
  box-shadow: 0 2px 10px rgba(55,152,114,0.05);
}

/* Playful Tilt on CTA in Hero Section */
section:first-of-type .cta-btn {
  transform: rotate(-2deg);
}

/* For fun accent backgrounds occasionally */
.section:nth-child(even) {
  background: #eafdff;
  box-shadow: 0 6px 22px #e8fbff89;
}

/* ---------------------- FORMS, FIELDS (minimal coverage) ---------------------- */
input, textarea, select {
  border-radius: 12px;
  border: 2px solid #d0f1fe;
  background: #fff;
  font-size: 1.05rem;
  padding: 10px 12px;
  margin-bottom: 12px;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.13s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px #caf2fd5e;
}

/* ---------------------- MISC MEDIA QUERIES ---------------------- */
/* Prevent cards/texts overlapping & ensure spacing */
@media (max-width:600px) {
  .card, .testimonial-card {
    max-width: 100%;
    min-width: 0;
  }
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

/* Hide scrollbars on cookie modal (mobile) */
.cookie-modal::-webkit-scrollbar, .mobile-menu::-webkit-scrollbar { display: none; }

/* ---------------------- END OF FILE ---------------------- */
