/* ---------------- 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.5;
  background: #F7F9FB;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color .2s;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 12px 18px;
  text-align: left;
}
[tabindex], button, input, textarea, select {
  outline: none;
}


/* ------------------- BRAND & FONT VARIABLES ------------------- */
:root {
  --primary: #124076;
  --secondary: #59ABAB;
  --accent: #F7F9FB;
  --yellow: #FFD964;
  --orange: #FF976A;
  --pink: #F45CAB;
  --green: #81D85A;
  --purple: #904BFA;
  --blue: #46A3FF;
  --shadow: 0 4px 32px rgba(18,64,118,0.10);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Source Sans Pro', 'Segoe UI', Arial, sans-serif;
}

@media (max-width: 768px) {
  html {
    font-size: 100%;
  }
}

/* ------------------- BASE TYPOGRAPHY ------------------- */
html, body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--primary);
  background: var(--accent);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  color: var(--primary);
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
h4 {
  font-size: 1.1rem;
}
p, ul li, ol li, address {
  font-size: 1rem;
  color: #204886;
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
}
em {
  font-style: italic;
}


/* ------------------- CONTAINER & LAYOUT ------------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  margin-top: 0;
  /* fallback in case section doesn't have spacing */
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 24px;
}

/* Special Card Layout Containers & Spacing */
.card-container, .card-grid, .feature-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  margin-bottom: 20px;
  background: white;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 32px 24px;
  position: relative;
  transition: transform .18s, box-shadow .22s;
}
.card:hover {
  transform: translateY(-5px) scale(1.018);
  box-shadow: 0 8px 36px rgba(18,64,118, 0.15);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px 18px 20px 18px;
  max-width: 258px;
  min-width: 160px;
  flex: 1 1 200px;
  min-height: 170px;
  transition: box-shadow 0.18s, transform 0.2s;
  margin-bottom: 20px;
  position: relative;
}
.feature-item img {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 8px rgba(139,220,223,0.12));
}
.feature-item:hover {
  box-shadow: 0 8px 28px rgba(18,64,118, 0.17);
  transform: translateY(-3px) scale(1.033);
}

.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;
}

/* Table Styling (Cennik) */
table {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  font-size: 1rem;
  overflow: hidden;
}
thead {
  background: var(--primary);
}
th {
  color: #fff;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.06rem;
}
tr:nth-child(even) td {
  background: #F0F8FB;
}
td {
  color: var(--primary);
}

/* FAQ Styling */
.faq-question {
  background: #fff;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  padding: 22px 18px 15px 18px;
  transition: box-shadow .16s;
}
.faq-question:hover {
  box-shadow: 0 4px 18px #59ABAB22;
}


/* ------------------- HEADER & NAVIGATION ------------------- */
header {
  background: white;
  box-shadow: 0 4px 20px #1240760d;
  position: sticky;
  z-index: 30;
  top: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
  filter:drop-shadow(0 2px 6px #46A3FF29);
}
.main-nav {
  display: flex;
  gap: 22px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  align-items: center;
}
.main-nav a {
  color: var(--primary);
  padding: 7px 13px;
  border-radius: 8px;
  transition: background .16s, color .17s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: #fff;
}
.cta-btn {
  background: linear-gradient(90deg,var(--pink),var(--yellow) 70%, var(--secondary));
  color: var(--primary);
  border: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  border-radius: 14px;
  padding: 11px 32px;
  margin-left: 20px;
  cursor: pointer;
  box-shadow: 0 3px 14px 0 #FFE89048;
  transition: background 0.18s, transform 0.16s, box-shadow 0.18s;
  outline: none;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg,var(--yellow),var(--pink));
  transform: scale(1.05) rotate(-2deg);
  color: #124076;
  box-shadow: 0 6px 24px #FFD96459;
}

/* Hamburger menu icon (Mobile) */
.mobile-menu-toggle {
  display: none;
  background: var(--pink);
  border: none;
  color: #fff;
  font-size: 2.2rem;
  padding: 8px 14px;
  border-radius: 12px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  margin-left: 18px;
  cursor: pointer;
  z-index: 110;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--purple);
  color: #fff;
  transform: scale(1.1);
}

/* Show hamburger on mobile and hide nav */
@media (max-width: 980px) {
  .main-nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(.77,0,.18,1);
  box-shadow: 0 6px 54px #12407611;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--pink);
  color: #fff;
  border: none;
  font-size: 2.1rem;
  align-self: flex-end;
  margin: 18px 22px 0 0;
  border-radius: 10px;
  padding: 5px 12px;
  cursor: pointer;
  z-index: 1002;
  box-shadow: 0 2px 7px #904BFA22;
  transition: background 0.18s, transform .18s;
}
.mobile-menu-close:active, .mobile-menu-close:focus {
  background: var(--purple);
  transform: scale(1.10);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 17px;
  align-items: flex-start;
  padding: 0 32px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-top: 48px;
  z-index: 1001;
}
.mobile-nav a {
  color: var(--primary);
  padding: 13px 7px 13px 0;
  border-bottom: 2.5px dashed #59ABAB33;
  outline: none;
  border-radius: 5px;
  transition: background 0.13s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
}

/* Make mobile menu links big enough */
@media (max-width: 600px) {
  .mobile-nav {
    font-size: 1.05rem;
    padding-left: 14px; padding-right: 14px;
  }
}

/* Hide mobile menu by default on desktop */
@media (min-width: 981px) {
  .mobile-menu {
    display: none !important;
  }
}


/* ------------------- MAIN SECTIONS ------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 3px 20px #12407613;
}
@media (max-width: 700px) {
  section {
    margin-bottom: 38px;
    padding: 26px 9px;
    border-radius: 12px;
  }
}


/* Content Grids and Wrappers */
.card-container,
.card-grid,
.feature-grid,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
@media(max-width: 980px) {
  .card-container,
  .card-grid,
  .feature-grid,
  .content-grid {
    justify-content: center;
    gap: 14px;
  }
}

.text-image-section {
  flex-direction: row;
  align-items: center;
  gap: 30px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
}

/* For cards and content wrap - always extra margin */
.card, .testimonial-card, .feature-item, .faq-question {
  margin-bottom: 20px;
}


/* ------------------- TESTIMONIALS ------------------- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  color: #181e28;
  border-radius: 18px;
  box-shadow: 0 4px 24px #59ABAB1a;
  margin-bottom: 20px;
  max-width: 480px;
  font-size: 1.13rem;
  min-width: 230px;
  transition: box-shadow .15s, transform .18s;
  position: relative;
}
.testimonial-card strong {
  color: var(--primary);
  font-size: 1rem;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px #46A3FF33;
  transform: scale(1.04) rotate(-2deg);
}
.testimonial-card p {
  color: #10192f;
  font-family: var(--font-body);
  margin-bottom: 0;
}


/* ------------------- FOOTER ------------------- */
footer {
  background: #124076;
  color: white;
  padding: 42px 0 0 0;
  font-size: 1rem;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  justify-content: center;
}
.footer-logo, .footer-contact, .footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-logo {
  margin-top: 18px;
  font-size: 0.9rem;
}
.footer-logo img {
  height: 38px;
  margin-bottom: 7px;
  filter: brightness(90%) drop-shadow(0 1px 3px #fff3);
}
.footer-logo span {
  font-size: 1rem;
  color: #fff;
  opacity: 0.67;
}
.footer-nav {
  flex-direction: row;
  gap: 30px;
  margin-bottom: 7px;
  font-family: var(--font-display);
}
.footer-nav a {
  color: #fff;
  opacity: 0.92;
  font-weight: 600;
  transition: color .18s, opacity .16s;
  border-bottom: 2.5px dashed #F7F9FB11;
  padding-bottom: 3px;
}
.footer-nav a:hover {
  color: var(--yellow);
  opacity: 1;
}
.footer-contact div {
  color: #F7F9FB;
  opacity: 0.95;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-contact img {
  height: 19px;
  width: 19px;
}
@media (max-width: 860px) {
  footer .container {
    gap:18px;
  }
  .footer-nav {
    gap: 13px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.99rem;
  }
}


/* ------------------- BUTTONS & LINKS ------------------- */
button, .cta-btn, .cookie-btn {
  font-family: var(--font-display);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background .18s, color .19s, transform .13s, box-shadow .17s;
  font-weight: 700;
  outline: none;
}
.cookie-btn {
  padding: 9px 20px;
  background: var(--yellow);
  color: var(--primary);
  margin-right: 15px;
  font-size: 1rem;
  margin-bottom: 7px;
  box-shadow: 0 2.5px 9px #FFD96443;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--orange);
  color: #fff;
  transform: scale(1.06) rotate(-3deg);
}
.cookie-btn.reject {
  background: #FF976A;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #e86a2e;
}
.cookie-btn.settings {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--primary);
}


/* ------------------- COOKIE CONSENT BANNER & MODAL ------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 4px solid var(--secondary);
  box-shadow: 0 -2.5px 20px #59ABAB3c;
  padding: 28px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2000;
  animation: cookie-slideIn .49s cubic-bezier(.83,-0.01,.23,1);
  font-family: var(--font-body);
}
@keyframes cookie-slideIn {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.cookie-banner p {
  color: var(--primary);
  font-size: 1.06rem;
  text-align: center;
  margin-bottom: 11px;
}
.cookie-banner .cookie-btn {
  margin-right: 12px;
  margin-bottom: 0;
}

/* Cookie Preferences Modal */
.cookie-modal-backdrop {
  position: fixed;
  top:0;left:0;right:0;bottom:0;
  background: #12407666;
  z-index: 3001;
  animation: fadeIn .15s;
}
@keyframes fadeIn {
  from{opacity:0;} to{opacity:1;}
}
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-54%) scale(0.98);
  min-width: 320px;
  max-width: 99vw;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 40px #59ABAB33;
  z-index: 3011;
  padding: 32px 25px 22px 25px;
  display: flex;
  flex-direction: column;
  animation: modalShow .22s cubic-bezier(.77,0,.18,1);
}
@keyframes modalShow {
  from { opacity: 0; transform: translate(-50%,-60%) scale(0.90); }
  to   { opacity: 1; transform: translate(-50%,-54%) scale(0.98); }
}
.cookie-modal h2 {
  font-size: 1.26rem;
  font-family: var(--font-display);
  margin-bottom: 12px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  font-size: 1rem;
  background: #F7F9FB;
  border-radius: 8px;
  padding: 9px 14px;
}
.cookie-modal .cookie-toggle {
  font-size: 1.25em;
  width: 36px; height: 22px;
  background: #EEE;
  border-radius: 12px;
  position: relative;
  border: none;
  cursor: pointer;
  margin-left: 12px;
  transition: background .18s;
}
.cookie-modal .cookie-toggle.enabled {
  background: var(--secondary);
}
.cookie-modal .cookie-toggle:after {
  content: ""; display: block;
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px #59ABAB11;
  transition: left .19s;
}
.cookie-modal .cookie-toggle.enabled:after {
  left: 17px;
  background: var(--yellow);
}
.cookie-modal .btn-bar {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 22px;
}
.cookie-modal .cookie-btn {
  min-width: 90px;
}

/* Make cookie modal responsive */
@media (max-width: 480px) {
  .cookie-modal {
    min-width: 98vw; max-width: 98vw;
    left: 1vw; right: 1vw;
    padding: 14px 7px 17px 7px;
    border-radius: 10px;
  }
}


/* ------------------- RESPONSIVE DESIGN ------------------- */
@media (max-width: 1110px) {
  .container {
    max-width: 99vw;
  }
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 14px;
  }
  .feature-item {
    min-width: 148px;
    padding: 19px 8px 11px 8px;
  }
  section {
    padding: 22px 0;
  }
}
@media (max-width: 750px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.18rem; }
  .footer-contact div, .footer-nav { font-size: 0.87rem; }
  .feature-item, .testimonial-card {
    min-width: 100px;
    padding: 14px 4px 14px 10px;
  }
  .card-container, .card-grid, .feature-grid, .content-grid {
    gap: 8px;
  }
}
@media (max-width: 520px) {
  .container {
    padding-left: 1vw;
    padding-right: 1vw;
  }
  .footer-nav {
    gap: 7px;
    flex-direction: column;
    font-size: .95rem;
  }
  .footer-contact div {
    font-size: 0.90rem;
  }
  .footer-logo img {
    height: 23px;
    margin-bottom: 2px;
  }
  .testimonial-card {
    padding: 9px 5px;
  }
}


/* ------------------- ANIMATIONS & PLAYFUL EFFECTS ------------------- */
.cta-btn {
  animation: funBounce .8s ease-in-out;
}
@keyframes funBounce {
  0% { transform: scale(1.05) translateY(-7px) rotate(1deg); }
  50%{ transform: scale(0.99)  translateY(2px) rotate(-1deg); }
  90%{ transform: scale(1.04)  translateY(-4px) rotate(3deg); }
  100%{ transform: scale(1) translateY(0) rotate(0); }
}
.feature-item img, .testimonial-card {
  animation: popIn .7s cubic-bezier(.71,0,.2,1) both;
}
@keyframes popIn {
  0%{ transform: scale(.6) rotate(-8deg); opacity:0; }
  70%{ opacity:.8; }
  100%{ transform: scale(1) rotate(0deg); opacity:1; }
}

/* Fun font and energetic accents - some headings with different color */
h2, h3 {
  position: relative;
  z-index: 1;
}
h2::after {
  content: '';
  display: block;
  position: absolute;
  left:0; bottom: -7px;
  width: 48px; height: 7px;
  background: var(--yellow);
  border-radius: 5px;
  opacity: .54;
  z-index: -1;
  transition: width .21s;
}
h2:hover::after,h2:focus::after { width: 60px; opacity: 1; }
h3::before {
  content: '\2605'; /* Star for playfulness */
  margin-right: 0.4em;
  color: var(--pink);
  font-size: 1em;
}

/* Highlighted accents in playful style for lists */
ul li::marker, ol li::marker {
  color: var(--pink); font-size: 1.15em;
}
ul li strong, ol li strong {
  color: var(--secondary);
}


/* -------------- GENERAL INTERACTIVITY & MICRO-INTERACTIONS -------------- */
a, button, .cta-btn, .cookie-btn {
  transition: background 0.14s, color 0.12s, box-shadow 0.16s, transform .14s;
}
a:focus-visible {
  outline: solid 2px var(--yellow);
  outline-offset: 2px;
}
input, textarea, select {
  font-family: var(--font-body);
}


/* ------------ SPECIFIC CLASSES FROM HTML STRUCTURE ------------ */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Spacing for .content-wrapper if used alone */
.content-wrapper > *:not(:last-child) {
  margin-bottom: 20px;
}

address {
  font-style: normal;
  color: var(--primary);
  background: #59ABAB11;
  border-radius: 10px;
  padding: 13px 12px;
  font-size: 1rem;
  margin-bottom: 12px;
}
address div {
  margin-bottom: 7px;
}


/* ----------- FORMS (if present in future) ------------ */
input, textarea, select {
  border: 1.5px solid #d6e4f7;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 1rem;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
}


/* ----------- COLORFUL DECORATIVE BORDERS/SHADOWS -----------*/
section {
  border-left: 7px solid var(--yellow);
  border-bottom: 3px dashed #FF976A33;
  box-shadow: 0 2.5px 17px #904BFA11;
}
@media (max-width:600px) {
  section {
    border-left: 3px solid var(--yellow);
    border-radius: 7px;
    border-bottom: 2px dashed #FF976A44;
  }
}

/* prevent overlapping cards and bad stacking */
.card, .testimonial-card, .feature-item, .faq-question {
  z-index: 2;
}

/* ------------- HIDE SCROLL ON MOBILE MENU & COOKIE MODAL ------------- */
.mobile-menu.active, .cookie-modal-backdrop {
  overscroll-behavior: contain;
  touch-action: none;
}

/* ------------- UTILITY CLASSES (if needed) ------------- */
.hide { display:none !important; }

/* There is NO use of CSS Grid, columns, or break-inside */