/* 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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
  background: #FAFAFB;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  color: #27273A;
  background-color: #FAFAFB;
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #2A3C5B;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover, a:focus {
  color: #B7B2FF;
  outline: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #2A3C5B;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.22rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, ul, ol {
  margin-bottom: 16px;
}

ul, ol {
  padding-left: 22px;
}

strong, b {
  font-weight: 700;
}

.text-section {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 32px 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px 0 rgba(244,177,149,0.045),
              0 1.5px 10px 0 rgba(186,211,236,0.06);
}

/* Main Container */
.container {
  width: 100%;
  max-width: 1090px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin: 0 auto;
}

/* Section spacing and flex patterns */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media(max-width: 768px) {
  section {
    padding: 32px 4px;
    margin-bottom: 38px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: #FFF;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(172, 186, 205, 0.09);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  max-width: 370px;
  transition: box-shadow 0.2s;
  padding: 26px 24px;
  border: 1.5px solid #F5F9FB;
}
.card:hover {
  box-shadow: 0 8px 18px 0 rgba(186,211,236,0.16);
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.testimonial-card {
  background: #F6F6F6;
  border-left: 6px solid #FBCE4C;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  margin-bottom: 20px;
  color: #20202B;
  box-shadow: 0 3px 18px 0 rgba(186, 211, 236, 0.09);
  min-width: 245px;
  position: relative;
}
.testimonial-card p {
  font-size: 1.08rem;
  font-style: italic;
  margin-bottom: 4px;
}
.testimonial-card span {
  color: #77778E;
  font-size: 0.99rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  margin-top: 10px;
}
.features-grid > div {
  background: #FFF8EE;
  border-radius: 16px;
  box-shadow: 0 3px 14px rgba(252, 222, 159, 0.10);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 180px;
  max-width: 245px;
  flex: 1;
  border: 1.5px solid #FDF3C2;
  transition: box-shadow 0.19s, background 0.2s;
}
.features-grid > div:hover {
  background: #FFF3CD;
  box-shadow: 0 6px 24px 0 rgba(252,222,159,0.17);
}
.features-grid img {
  width: 42px;
  height: 42px;
  margin-bottom: 7px;
}
.features-grid h3 {
  font-size: 1.12rem;
  color: #2A3C5B;
  margin: 0 0 6px 0;
}
.features-grid p,
.features-grid span {
  color: #555568;
  font-size: 1rem;
}

ul.service-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
ul.service-list li {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 2px 7px 0 rgba(244,177,149,0.06);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1.02rem;
}
ul.service-list span {
  color: #AEA024;
  font-weight: bold;
}

.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.blog-list .text-section {
  flex: 1 1 310px;
  min-width: 240px;
  background: #FAFAFE;
  border-left: 6px solid #E7C5F8;
  box-shadow: 0 2px 8px 0 rgba(186,211,236,0.06);
  margin-bottom: 0;
  padding: 30px 22px;
}

.categories-list {
  background: #F4F7FA;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 2px 9px 0 rgba(186,211,236,0.06);
}
.categories-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 10px;
}
.categories-list li {
  font-weight: 500;
  color: #639DAA;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #EBF7F6;
  border-radius: 8px;
  padding: 7px 13px;
  font-size: 0.97rem;
}

.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.team-list .text-section {
  flex: 1 1 260px;
  min-width: 200px;
  padding: 30px 20px;
  background: #F9F1FF;
  border-left: 4px solid #E7C5F8;
  box-shadow: 0 2px 9px 0 rgba(186,211,236,0.04);
  margin-bottom: 0;
}

/* FAQ Accordion (jak-to-dziala.html) */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-accordion div {
  background: #FFF9E9;
  border-radius: 13px;
  border-left: 4px solid #FBCE4C;
  padding: 22px 20px;
  box-shadow: 0 2px 9px 0 rgba(186,211,236,0.05);
}
.faq-accordion h3 {
  font-size: 1.06rem;
  color: #2A3C5B;
}
.faq-accordion p {
  color: #5D6570;
  font-size: 1.01rem;
}

/* Table (oferta.html) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 26px;
  background: #FFFFFF;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 9px 0 rgba(186,211,236,0.040);
  font-size: 1.03rem;
}
thead {
  background: #F9EBC9;
}
th, td {
  text-align: left;
  padding: 15px 13px;
  border-bottom: 1px solid #F1F1F1;
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #2A3C5B;
  font-size: 1rem;
  font-weight: 700;
}
tbody tr:hover {
  background: #FFF7D4;
}

@media (max-width: 768px) {
  table,
  thead,
  tbody,
  th, td, tr {
    display: block;
    width: 100%;
  }
  thead {
    display: none;
  }
  tr {
    margin-bottom: 18px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 7px 0 rgba(244,177,149,0.06);
  }
  td {
    padding: 12px 17px;
    border-bottom: none;
    position: relative;
    min-height: 22px;
  }
}

/* CTA Buttons */
.cta-primary,
.cta-secondary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.11rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 13px 32px;
  border-radius: 32px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.18s, color 0.18s;
  margin-right: 12px;
  margin-bottom: 14px;
  box-shadow: 0 3px 13px 0 rgba(251, 206, 76, 0.04);
}
.cta-primary {
  background: #FBCE4C;
  color: #2A3C5B;
  box-shadow: 0 4px 18px rgba(251, 206, 76, 0.11);
}
.cta-primary:hover,
.cta-primary:focus {
  background: #FFD765;
  color: #2A3C5B;
  outline: none;
  box-shadow: 0 7px 22px 0 rgba(251, 206, 76, 0.17);
}
.cta-secondary {
  background: #E7C5F8;
  color: #2A3C5B;
}
.cta-secondary:hover,
.cta-secondary:focus {
  background: #F4D9FF;
  color: #2A3C5B;
  outline: none;
}

/* Navigation */
header {
  background: #FFFFFF;
  box-shadow: 0 2px 12px 0 rgba(209, 210, 238,0.07);
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding: 0 28px;
  height: 72px;
}
header nav img {
  width: 146px;
  height: auto;
  margin-right: 10px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.01rem;
  color: #2A3C5B;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.17s, color 0.16s;
}
header nav a:hover,
header nav a.active {
  background: #F4D9FF;
  color: #8148B1;
}

@media (max-width: 900px) {
  header nav {
    gap: 11px;
    padding: 0 7px;
  }
}

@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Mobile Hamburger Menu */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 26px;
  top: 18px;
  background: #FBCE4C;
  color: #2A3C5B;
  border: none;
  font-size: 2.5rem;
  border-radius: 12px;
  padding: 6px 14px;
  z-index: 202;
  box-shadow: 0 2px 7px 0 rgba(251, 206, 76, 0.09);
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #B7B2FF;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: #FFF5E7;
  z-index: 998;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.78,.01,.33,1);
  display: flex;
  flex-direction: column;
  padding: 38px 18px 24px 24px;
  box-shadow: 0 7px 52px 0 rgba(251, 206, 76, 0.14);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #2A3C5B;
  margin-left: auto;
  margin-bottom: 8px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.17s, color 0.17s;
  padding: 3px 13px;
}
.mobile-menu-close:hover {
  background: #FBCE4C;
  color: #555;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 21px;
  margin-top: 22px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
  color: #29304B;
  font-weight: 700;
  padding: 14px 0 7px 0;
  border-bottom: 1px solid #FFF1C9;
  border-radius: 0;
  transition: color 0.1s, background 0.13s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #FFF9E9;
  color: #8148B1;
}

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

/* Modal Overlay Animations */
@media (max-width: 440px) {
  .mobile-menu {
    padding: 32px 3vw 16px 3vw;
  }
}

/* Footer */
footer {
  background: #FFF;
  border-top: 1.8px solid #FBF6E2;
  margin-top: 16px;
  padding: 0;
}
footer .container {
  padding: 0 12px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 38px 7px 17px 7px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.97rem;
  color: #2A3C5B;
  font-weight: 500;
  margin-bottom: 2px;
  transition: color 0.14s;
}
footer nav a:hover {
  color: #B7B2FF;
}
footer div > p {
  font-size: 0.95rem;
  color: #69738B;
  margin-bottom: 3px;
}

@media (max-width: 900px) {
  footer .content-wrapper {
    gap: 22px;
    padding: 28px 2px 10px;
  }
}
@media (max-width: 720px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 17px;
    padding: 16px 0 10px 0;
    align-items: flex-start;
  }
  footer nav {
    flex-direction: row;
    gap: 20px;
  }
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10000;
  background: #fffbe9;
  box-shadow: 0 -4px 24px 0 rgba(215,182,86,0.13);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 22px 16px 14px 16px;
  font-size: 1.02rem;
  border-top: 2.5px solid #F7D058;
  animation: slideInBanner 0.55s cubic-bezier(.29,1.29,0.42,1) 1;
}
@keyframes slideInBanner {
  0% { transform: translateY(120%); }
  100% { transform: translateY(0); }
}
.cookie-consent-banner .cookie-consent-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 9px 26px;
  border: none;
  border-radius: 22px;
  font-weight: 600;
  font-size: 1rem;
  margin-right: 7px;
  margin-bottom: 7px;
  transition: background 0.18s, color 0.16s;
  cursor: pointer;
}
.cookie-consent-banner .accept {
  background: #FBCE4C;
  color: #2A3C5B;
  box-shadow: 0 3px 10px rgba(251, 206, 76, 0.06);
}
.cookie-consent-banner .accept:hover {
  background: #FFD765;
}
.cookie-consent-banner .reject {
  background: #FFE5C7;
  color: #7B6960;
  box-shadow: 0 2px 9px 0 rgba(210, 179, 130, 0.04);
}
.cookie-consent-banner .reject:hover {
  background: #FFE1C7;
}
.cookie-consent-banner .cookie-settings {
  background: #E7C5F8;
  color: #2A3C5B;
}
.cookie-consent-banner .cookie-settings:hover {
  background: #F4D9FF;
}

/* Cookie modal overlay */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(42,60,91,0.15);
  z-index: 16000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #FFFFFF;
  border-radius: 22px;
  box-shadow: 0 7px 36px 0 rgba(251,206,76,0.15);
  padding: 38px 22px 28px 22px;
  width: 94vw;
  max-width: 410px;
  font-size: 1.01rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: showCookieModal 0.33s cubic-bezier(.29,1.29,0.42,1) 1;
}
@keyframes showCookieModal {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-modal-content h2 {
  font-size: 1.21rem;
  color: #2A3C5B;
  margin-bottom: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F9EBC9;
  border-radius: 12px;
  padding: 10px 15px;
  margin-bottom: 13px;
  font-size: 1.01rem;
}
.cookie-category label {
  font-weight: 500;
  font-size: 1.01rem;
  color: #8C7B4A;
}
.cookie-category input[type='checkbox'] {
  accent-color: #FBCE4C;
  width: 20px; height: 20px;
}
.cookie-category .category-always {
  color: #7D753C;
  font-size: 0.93rem;
  font-weight: 500;
  margin-left: 12px;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}
.cookie-modal-close {
  position: absolute;
  top: 22px;
  right: 28px;
  background: none;
  border: none;
  color: #2A3C5B;
  font-size: 1.6rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.14s;
}
.cookie-modal-close:hover {
  background: #FBCE4C;
  color: #555;
}

@media (max-width: 450px) {
  .cookie-modal-content {
    padding: 14vw 3vw 7vw 3vw;
  }
  .cookie-modal-close {
    top: 11px; right: 12px;
  }
}

/* Misc. Utility */
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 22px; }

/* Responsive Column Rules for main content wrappers */
@media (max-width: 720px) {
  .features-grid, .team-list, .blog-list, .categories-list ul, .content-grid, .card-container {
    flex-direction: column;
    gap: 17px;
  }
}

/* Animations and Transitions */
section, .card, .features-grid > div, .team-list .text-section, .blog-list .text-section, .testimonial-card, .faq-accordion div {
  transition: box-shadow 0.19s, background 0.16s;
}

.cta-primary, .cta-secondary, .cookie-consent-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.17s, box-shadow 0.13s, color 0.14s;
}

.card, .features-grid > div, .team-list .text-section, .testimonial-card {
  position: relative;
  z-index: 1;
}

/* Accessibility */
:focus-visible {
  outline: 2px solid #B7B2FF;
}

/* Soft Pastel BGs for atmosphere */
body {
  background-color: #FAFAFB;
}
section:not(:nth-child(1)):not(:nth-child(2)) {
  background: linear-gradient(135deg, #FDF7E8 10%, #F9F8FB 70%);
}

/* Style for links in section text */
section a:not(.cta-primary):not(.cta-secondary) {
  color: #8561C6;
  text-decoration: underline;
  transition: color 0.15s;
}
section a:not(.cta-primary):not(.cta-secondary):hover {
  color: #4F35A0;
}

/* List markers softly colored */
ul, ol {
  color: #4A556D;
}
ul li::marker, ol li::marker {
  color: #FBCE4C;
  font-size: 1.1em;
}

/* Hide outline for non-accessibility clicks */
button:not(:focus-visible) {
  outline: none;
}

/* Selection highlight */
::selection {
  background: #FFF7D4;
  color: #5B556C;
}

/* Remove default button style */
button, .cookie-consent-btn {
  border: none;
  outline: none;
}

/* Placeholder style */
::placeholder {
  color: #BEBECB;
  opacity: 1;
  font-family: 'Open Sans', Arial, sans-serif;
}

/* Support for Montserrat and Open Sans */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&family=Open+Sans:wght@400;500;600&display=swap');