/* --- 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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  background: #FAFAF3;
  color: #1A3441;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
:root {
  --primary: #1A3441;
  --secondary: #4FE7BB;
  --accent: #FAFAF3;
  --danger: #F44B5D;
  --shadow: 0 6px 24px 0 rgba(26,52,65,0.10);
  --card-radius: 20px;
  --section-radius: 28px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.15s cubic-bezier(.33,.97,.55,1);
}
a:hover,
a:focus {
  color: var(--primary);
  outline: none;
}
ul, ol {
  list-style: none;
}
strong {
  font-weight: 700;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.2;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
p, blockquote, li, span {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #1A3441;
  margin-bottom: 16px;
}
blockquote {
  font-style: italic;
  background: var(--accent);
  border-left: 5px solid var(--secondary);
  margin-bottom: 8px;
  padding: 18px 18px 18px 28px;
  border-radius: 8px;
}

/* --- LAYOUT STRUCTURE --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
  border-radius: var(--section-radius);
  box-shadow: var(--shadow);
}
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .section {
    padding: 24px 8px;
    margin-bottom: 40px;
  }
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #FFF;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 80px;
}
header img {
  height: 48px;
  margin-right: 24px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover,
header nav a:focus {
  color: var(--secondary);
  background: #e6fffa;
}
.cta-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 1px;
  background: var(--secondary);
  color: #1A3441;
  padding: 13px 34px;
  border-radius: 38px;
  border: none;
  outline: none;
  box-shadow: 0 2px 16px 0 rgba(79,231,187,.09);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  display: inline-block;
  text-align: center;
  margin-left: 14px;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--primary);
  color: #FFF;
  box-shadow: 0 4px 16px 0 rgba(26,52,65,0.13);
}

/* --- MOBILE NAVIGATION (BURGER MENU) --- */
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 992px) {
  header nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
    background: var(--secondary);
    color: var(--primary);
    border: none;
    font-size: 2rem;
    padding: 12px 22px;
    border-radius: 18px;
    position: absolute;
    top: 17px;
    right: 26px;
    z-index: 45;
    box-shadow: 0 2px 10px 0 rgba(79,231,187,.10);
    cursor: pointer;
    transition: background 0.2s;
  }
  .mobile-menu-toggle:focus,
  .mobile-menu-toggle:hover {
    background: var(--primary);
    color: #FFF;
  }
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #1A3441;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.61,.01,.34,.99);
  z-index: 99;
  height: 100vh;
  width: 100vw;
  padding: 40px 24px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  box-shadow: 0 2px 12px 0 rgba(79,231,187,.15);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #FFF;
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0 0 0;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: #FAFAF3;
  padding: 13px 8px;
  letter-spacing: 2px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  width: 100%;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: #1A3441;
}

@media (min-width: 993px) {
  .mobile-menu,.mobile-menu-toggle {
    display: none !important;
  }
}

/* --- MAIN SECTION PATTERNS --- */
main section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}

/* --- FLEX LAYOUTS (MANDATORY CLASSES) --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFF;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 280px;
  min-width: 260px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  transition: box-shadow 0.16s;
}
.card:hover { box-shadow: 0 10px 34px 0 rgba(26,52,65,0.18); }
.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;
  background: #FAFAF3;
  color: #1A3441;
  border-radius: 13px;
  box-shadow: 0 2px 12px 0 rgba(26,52,65,0.09);
  margin-bottom: 24px;
  flex-direction: column;
}
.testimonial-card strong {
  color: var(--primary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- CUSTOM FLEX PATERNS FOR FEATURE/GRID --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
}
.feature {
  background: #FFF;
  border-radius: 14px;
  box-shadow: 0 2px 18px 0 rgba(79,231,187,.11);
  padding: 32px 28px 28px 28px;
  flex: 1 1 240px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s;
}
.feature img {
  margin-bottom: 12px;
  width: 54px;
  height: 54px;
}
.feature:hover {
  box-shadow: 0 10px 36px 0 rgba(79,231,187,.18);
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 38px;
  justify-content: flex-start;
}
.service-card {
  background: #FFF;
  border-radius: 14px;
  box-shadow: var(--shadow);
  flex: 1 1 245px;
  max-width: 370px;
  min-width: 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px;
  transition: box-shadow 0.15s;
  position: relative;
  border-top: 8px solid var(--secondary);
}
.service-card:hover { box-shadow: 0 6px 30px 0 rgba(26,52,65,.16); }

@media (max-width: 1100px) {
  .feature-grid, .service-list {
    gap: 20px;
  }
  .feature, .service-card {
    max-width: 100%;
    flex: 1 1 100%;
  }
}
@media (max-width: 768px) {
  .feature-grid, .service-list {
    flex-direction: column;
    gap: 20px;
  }
  .feature, .service-card {
    min-width: 0;
    width: 100%;
    padding: 21px 14px;
  }
}

/* --- ABOUT & CONTACT --- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #F8FDFE;
  border-radius: 10px;
  padding: 18px 16px;
  margin-bottom: 18px;
}
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  background: #FFF;
  box-shadow: 0 2px 12px 0 rgba(26,52,65,0.07);
  padding: 18px;
  border-radius: 10px;
}
.map-placeholder img {
  width: 90px;
  height: 90px;
  margin-bottom: 8px;
}

/* --- FOOTER --- */
footer {
  background: #1A3441;
  color: #FAFAF3;
  padding: 38px 0 28px 0;
  width: 100%;
  box-shadow: 0 -6px 24px 0 rgba(26,52,65,0.09);
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
footer img {
  width: 68px;
  height: auto;
  margin-bottom: 13px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
footer nav a {
  color: #FFF;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.95;
  transition: color 0.2s, opacity 0.2s;
  padding: 6px 10px;
  border-radius: 6px;
}
footer nav a:hover,
footer nav a:focus {
  color: var(--secondary);
  opacity: 1;
  background: #192a32;
}

.footer-info span{
  color: white;
}

.footer-info {
  color: #FAFAF3;
  font-size: 0.95rem;
  margin-top: 10px;
  text-align: center;
  opacity: 0.9;
}

.footer-info a { color: var(--secondary); font-weight: 600; }

/* --- TABLES (CENNIK, etc.) --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 32px 0;
  background: #F8FDFE;
  border-radius: 10px;
  overflow: hidden;
  font-size: 1.08rem;
}
thead {
  background: var(--primary);
  color: #FFF;
}
thead th {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 13px 10px;
  letter-spacing: 1px;
}
tbody td {
  border-bottom: 1px solid #e4efeb;
  padding: 10px 10px;
  color: #1A3441;
  font-weight: 600;
  background: #F8FDFE;
}
tbody tr:last-child td {
  border-bottom: none;
}
@media (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }
  thead {
    display: none;
  }
  tbody td {
    padding: 13px 6px;
    border-bottom: 1px solid #e4efeb;
    font-size: 1rem;
  }
  tbody tr { margin-bottom: 12px; }
}

/* --- ARTICLES/BLOG/NEWS --- */
article {
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(26,52,65,0.08);
  margin-bottom: 22px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
article h2 { color: #1A3441; margin-bottom: 16px; }
article span { font-size: .98rem; color: #628c9d; }

/* --- NEWSLETTER SIGNUP --- */
.newsletter-signup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #E7FFF7;
  padding: 20px 20px;
  border-radius: 12px;
  border-left: 7px solid var(--secondary);
  margin-bottom: 16px;
  font-size: 1.11rem;
}

/* --- FAQ --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-list li {
  background: #FFF;
  border-left: 7px solid var(--secondary);
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(79,231,187,.07);
  padding: 17px 15px;
  font-size: 1rem;
  margin-bottom: 8px;
}

/* ---  BUTTONS --- */
button, input[type="button"], input[type="submit"] {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  background: var(--secondary);
  color: var(--primary);
  padding: 11px 32px;
  border-radius: 38px;
  border: none;
  outline: none;
  margin: 6px 12px 6px 0;
  cursor: pointer;
  box-shadow: 0 2px 16px 0 rgba(79,231,187,.11);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
button:hover, button:focus, input[type="button"]:hover, input[type="submit"]:focus {
  background: var(--primary);
  color: #FFF;
  box-shadow: 0 4px 18px 0 rgba(26,52,65,0.13);
}

/* -------- COOKIE CONSENT BANNER & MODAL -------- */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--primary);
  color: #FAFAF3;
  padding: 24px 14px 19px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  justify-content: center;
  z-index: 1200;
  box-shadow: 0 -6px 38px 0 rgba(26,52,65,0.21);
  font-size: 1.05rem;
  animation: fade-down-banner 0.45s cubic-bezier(.66,.07,.47,.97);
}
@keyframes fade-down-banner {
  from { opacity: 0; transform: translateY(70px); }
  to { opacity: 1; transform: translateY(0); }
}
#cookie-banner p {
  margin-bottom: 0;
  color: #FAFAF3;
  font-size: 1rem;
}
#cookie-banner .cookie-btn {
  margin: 0 7px 0 0;
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 38px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
#cookie-banner .accept {
  background: var(--secondary);
  color: var(--primary);
}
#cookie-banner .accept:hover,
#cookie-banner .accept:focus { background: #FFF; color: var(--secondary); }
#cookie-banner .reject {
  background: var(--danger);
  color: #FFF;
}
#cookie-banner .reject:hover,
#cookie-banner .reject:focus { background: #FFF; color: var(--danger); }
#cookie-banner .settings {
  background: #FFF;
  color: var(--primary);
  border: 2px solid var(--secondary);
  font-weight: 700;
}
#cookie-banner .settings:hover,
#cookie-banner .settings:focus { background: var(--secondary); color: var(--primary); }

#cookie-modal-bg {
  display: none;
  position: fixed;
  z-index: 1499;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(26,52,65,0.35);
}
#cookie-modal-bg.open {
  display: block;
}
#cookie-modal {
  display: none;
  position: fixed;
  z-index: 1500;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1);
  background: #FFF;
  color: #1A3441;
  min-width: 326px;
  max-width: 95vw;
  padding: 42px 30px 28px 30px;
  border-radius: 23px;
  box-shadow: 0 4px 56px 0 rgba(26,52,65,0.22);
  animation: fade-in-c-modal 0.34s cubic-bezier(.55,.04,.4,1);
}
#cookie-modal.open {
  display: block;
}
@keyframes fade-in-c-modal {
  from { opacity: 0; transform: translate(-50%, -40%) scale(0.98); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
#cookie-modal h2 {
  margin-bottom: 14px;
  font-size: 1.4rem;
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
}
#cookie-modal form {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-bottom: 18px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  font-size: 1.1rem;
}
.cookie-category label {
  font-weight: 700;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 22px;
  height: 22px;
}
.cookie-category.essential label { color: #999; }
#cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 14px;
}
#cookie-modal .modal-close {
  background: transparent;
  color: var(--danger);
  font-size: 1.17rem;
  border: none;
  font-weight: 800;
  cursor: pointer;
}
#cookie-modal .modal-save {
  background: var(--secondary);
  color: var(--primary);
}
#cookie-modal .modal-save:hover {
  background: var(--primary);
  color: #FFF;
}
#cookie-modal .modal-cancel {
  background: #EEE;
  color: var(--primary);
}
#cookie-modal .modal-cancel:hover{
  background: #DDD;
}
@media (max-width: 480px) {
  #cookie-modal {
    padding: 18px 5px 14px 5px;
    min-width: 0;
    width: 95vw;
  }
  #cookie-banner {
    flex-direction: column;
    font-size: 0.97rem;
    gap: 10px;
  }
}

/* --- UTILS & GENERICS --- */
.mt-8 { margin-top: 8px !important; }
.mb-8 { margin-bottom: 8px !important; }
.mt-16 { margin-top: 16px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mt-32 { margin-top: 32px !important; }
.mb-32 { margin-bottom: 32px !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-bold { font-weight: 800 !important; font-family:'Montserrat',sans-serif; }
.bg-accent { background: var(--accent); }
.bg-secondary { background: var(--secondary); }

/* --- RESPONSIVENESS --- */
@media (max-width: 768px) {
  .container, .content-wrapper {
    padding: 0;
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
  }
}

/* --- MICRO-INTERACTIONS & TRANSITIONS --- */
.card, .feature, .service-card, .testimonial-card, article, .faq-list li {
  transition: box-shadow 0.17s, transform 0.15s;
}
.card:hover, .feature:hover, .service-card:hover, .testimonial-card:hover, article:hover, .faq-list li:hover {
  box-shadow: 0 10px 34px 0 rgba(79,231,187,.10), 0 1.5px 22px 0 rgba(26,52,65,0.06);
  transform: translateY(-2px) scale(1.01);
}

/* --- ADDITIONAL FORMATTING FOR PAGES --- */
/* Service list (zajecia.html) */
.service-list .service-card ul {
  margin-bottom: 0;
  color: #3e616b;
}
.service-list .service-card div {
  margin-top: 9px;
  color: var(--secondary);
  font-weight: 800;
  font-size: 1.05rem;
}

/* Thank you page highlight */
main .cta-btn {
  margin-top: 18px;
}

/* Accessibility: focus outline */
*:focus { outline: 2px solid var(--secondary); outline-offset: 2px; }

@media (max-width: 480px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.38rem; }
  h3 { font-size: 1.07rem; }
  p, li, span, blockquote { font-size: .97rem; }
}
