/* =========================================================== */
/*               CSS RESET & BASELINE 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: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  color: #222E38;
  background: #F9F9F9;
  font-size: 1rem;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #38A3A5;
  text-decoration: none;
  transition: color .2s ease;
}
a:hover, a:focus {
  color: #205072;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
li + li {
  margin-top: 8px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #205072;
  margin-bottom: 18px;
  line-height: 1.18;
}
h1 {
  font-size: 2.75rem;
  font-weight: 900;
}
h2 {
  font-size: 2rem;
  font-weight: 800;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

/* ==================== VARIABLE COLORS ====================== */
:root {
  --color-primary: #205072;
  --color-secondary: #38A3A5;
  --color-accent: #F9F9F9;
  --color-bg-art: #FFE5EC;
  --color-art-1: #FFB4A2;
  --color-art-2: #B5838D;
  --color-art-3: #6D6875;
  --color-art-4: #FFDA77;
  --color-shade-1: #BEE9E8;
  --color-dark: #142733;
  --color-light: #F9F9F9;
  --shadow-main: 0 4px 28px 0 rgba(56,163,165,0.09), 0 1.5px 3px 0 rgba(32,80,114,0.04);
  --radius-main: 14px;
  --radius-btn: 27px;
  --transition-main: .22s cubic-bezier(0.65,0,.35,1);
}

/* =========================================================== */
/*                       SITE LAYOUT                           */
/* =========================================================== */
.container {
  width: 100%;
  max-width: 1210px;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: auto;
  margin-right: auto;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-light);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-main);
}

/* ========== VIVID, ARTISTIC, CREATIVE BACKGROUNDS ========== */
.hero {
  background: linear-gradient(120deg, var(--color-secondary) 60%, var(--color-art-1) 100%);
  border-radius: 0 0 38px 38px;
  padding: 64px 0 40px 0;
  position: relative;
  margin-bottom: 56px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 32px;
}
.hero h1 {
  color: #fff;
  text-shadow: 0 2px 28px rgba(0,0,0,0.11);
}
.hero p {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 14px;
  max-width: 600px;
}
.hero .btn-primary {
  background: var(--color-art-4);
  color: var(--color-dark);
  border: 0;
  box-shadow: 0 2px 24px 0 rgba(255,218,119,0.11);
}
.hero .btn-primary:hover {
  background: #FFF6DF;
}

/* =========================================================== */
/*                        TYPOGRAPHY & FONTS                  */
/* =========================================================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato:400,700&display=swap');

body, input, textarea, button {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  color: #222E38;
  font-size: 1rem;
  letter-spacing: 0.01em;
  font-weight: 400;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.4rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.25rem;
}
.text-section p, .text-section ul, .text-section ol {
  font-size: 1.09rem;
  color: #332e36;
}
.text-section ul li::marker {
  color: var(--color-secondary);
}

/* Artistic/creative font accent for H2/H3 underlines */
h2, h3 {
  position: relative;
}
h2::after, h3::after {
  content: '';
  display: block;
  height: 6px;
  width: 46px;
  background: var(--color-art-2);
  border-radius: 3px;
  margin-top: 7px;
  margin-left: 2px;
  margin-bottom: 10px;
}

/* =========================================================== */
/*                      HEADER & NAVIGATION                   */
/* =========================================================== */
header {
  background: #fff;
  padding-top: 12px;
  padding-bottom: 12px;
  position: relative;
  box-shadow: 0 2px 16px 0 rgba(32,80,114,0.05);
  z-index: 990;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
header > .container > nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #205072;
  padding: 5px 2px;
  position: relative;
  transition: color .15s;
  border-radius: 4px;
}
header nav a:hover, header nav a:focus {
  color: var(--color-secondary);
  background: #e8f5f8;
}
.btn-primary {
  display: inline-block;
  background: var(--color-secondary);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  border: 0;
  border-radius: var(--radius-btn);
  padding: 13px 38px;
  margin-left: 10px;
  cursor: pointer;
  box-shadow: 0 3px 11px 0 rgba(56,163,165,0.15);
  transition: background var(--transition-main), transform .12s;
  text-decoration: none;
  position: relative;
  z-index: 1;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-art-1);
  color: var(--color-dark);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px 0 rgba(255,180,162,0.12);
}

/* =========================================================== */
/*                  FLEXBOX PATTERNS FOR LAYOUTS               */
/* =========================================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #fff;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-main);
  margin-bottom: 20px;
  position: relative;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 250px;
  flex: 1 1 280px;
}
.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;
  background: #FFF6DF;
  border-radius: var(--radius-main);
  padding: 20px;
  box-shadow: 0 2px 18px 0 rgba(32,80,114,0.08);
  flex: 1 1 340px;
  min-width: 270px;
  margin: 0 0 24px 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* Feature grid for home page */
.feature-grid {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #fff;
  border-radius: 23px;
  box-shadow: 0 3px 18px 0 rgba(32,80,114,0.12);
  flex: 1 1 280px;
  min-width: 240px;
  max-width: 350px;
  padding: 30px 25px 35px 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
  border-left: 7px solid var(--color-art-1);
}
.feature-grid > div img {
  width: 48px;
  margin-bottom: 8px;
}
.feature-grid > div h3 {
  color: var(--color-art-3);
  font-size: 1.17rem;
  margin-bottom: 6px;
}

/* Testimonial cards */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
}
.testimonial-card p {
  font-size: 1.13rem;
  color: #222E38;
  font-style: italic;
  margin-bottom: 0.5em;
}
.testimonial-card strong {
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 700;
}
.testimonial-card div {
  margin-left: 10px;
  display: flex;
  gap: 3px;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-accordion > div {
  background: var(--color-shade-1);
  border-radius: 17px;
  padding: 18px 24px;
  box-shadow: 0 3px 16px 0 rgba(56,163,165,0.13);
}
.faq-accordion h3 {
  cursor: pointer;
  color: var(--color-art-3);
  margin-bottom: 7px;
}
.faq-accordion p {
  color: #1a2730;
  font-size: 1.04rem;
}

/* Categories Filter (Aktualności) */
.categories-filter {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 23px;
}
.categories-filter span {
  color: var(--color-primary);
  font-weight: 700;
}
.categories-filter a {
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: var(--color-art-2);
  color: #fff;
  border-radius: 8px;
  padding: 4px 14px;
  margin-right: 2px;
  transition: background .13s;
}
.categories-filter a:hover {
  background: var(--color-secondary);
}

.content-wrapper > a.btn-primary {
  align-self: flex-start;
}

/* Content spacing: ensure no overlap and breathing room */
main section {
  margin-bottom: 52px;
  display: flex;
  flex-direction: column;
}

/* ==================================================== */
/*                        FOOTER                        */
/* ==================================================== */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 38px 0 18px 0;
  margin-top: 60px;
  border-radius: 38px 38px 0 0;
  min-height: 180px;
}
footer p {
  color: white !important;
}
footer .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}
footer nav a {
  color: #BEE9E8;
  font-size: 1rem;
  transition: color .17s;
}
footer nav a:hover {
  color: #fff;
  text-shadow: 0 2px 18px rgba(56,163,165,0.21);
}
footer .text-section {
  flex: 1 1 350px;
  font-size: 1rem;
  color: #fff;
}
footer img {
  height: 44px;
}

/* =========================================================== */
/*                     MOBILE NAVIGATION                       */
/* =========================================================== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 23px;
  top: 23px;
  z-index: 1050;
  border: none;
  background: var(--color-secondary);
  color: #fff;
  font-size: 2.3rem;
  padding: 9px 22px 9px 16px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 7px 18px 0 rgba(56,163,165,0.19);
  transition: background .18s, transform .13s;
}
.mobile-menu-toggle:hover {
  background: var(--color-art-1);
  color: var(--color-dark);
  transform: scale(1.07);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(32,80,114,0.98);
  z-index: 1990;
  transform: translateX(100%);
  transition: transform .34s cubic-bezier(.7,0,.2,1);
  box-shadow: 0 0 90px 0 rgba(32,80,114,0.18);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--color-art-1);
  color: #222E38;
  font-size: 2.2rem;
  padding: 6px 18px 3px 18px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  align-self: flex-end;
  margin: 17px 22px 0 0;
  box-shadow: 0 2px 18px 0 rgba(255,180,162,0.15);
  transition: background .13s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-art-4);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 34px 28px 0 34px;
  width: 100vw;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  border-radius: 12px;
  padding: 11px 12px;
  transition: background .12s, color .13s;
  width: fit-content;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
@media (max-width: 1020px) {
  header .container > nav, header .container > .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1021px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =========================================================== */
/*                     COOKIE CONSENT BANNER                   */
/* =========================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100vw;
  z-index: 2500;
  background: #fffdfa;
  box-shadow: 0 -2px 30px 0 rgba(56,163,165,0.22);
  padding: 20px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 1.08rem;
  border-radius: 24px 24px 0 0;
  animation: bannerSlideIn .45s cubic-bezier(.7,0,.2,1);
}
@keyframes bannerSlideIn {
  0% { transform: translateY(100%); opacity:0; }
  80% { opacity:.97; }
  100% { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-banner-buttons {
  display: flex;
  gap: 14px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 10px 24px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  margin-right: 4px;
  box-shadow: 0 1px 6px 0 rgba(32,80,114,0.11);
  transition: background .14s, color .13s, transform .13s;
}
.cookie-banner .accept {
  background: var(--color-secondary);
  color: #fff;
  font-weight: 700;
}
.cookie-banner .accept:hover {
  background: var(--color-primary);
}
.cookie-banner .reject {
  background: #FFB4A2;
  color: #222E38;
  font-weight: 700;
}
.cookie-banner .reject:hover {
  background: #FFE5EC;
}
.cookie-banner .settings {
  background: #E5FFFD;
  color: var(--color-primary);
  font-weight: 700;
}
.cookie-banner .settings:hover {
  background: #BEE9E8;
}

.cookie-modal {
  position: fixed;
  z-index: 3000;
  left: 0; top: 0; bottom: 0; right: 0;
  width: 100vw; height: 100vh;
  background: rgba(32,80,114,0.74);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeinCookie .38s cubic-bezier(.7,0,.2,1);
}
@keyframes fadeinCookie {
  0% { opacity:0; }
  100% { opacity:1; }
}
.cookie-modal-content {
  background: #fff;
  color: #1a2730;
  border-radius: 25px;
  padding: 38px 32px 32px 32px;
  width: 95vw;
  max-width: 420px;
  box-shadow: 0 8px 80px 0 rgba(32,80,114,0.21);
  display: flex;
  flex-direction: column;
  gap: 21px;
  position: relative;
}
.cookie-modal-content h3 {
  color: var(--color-primary);
  font-size: 1.27rem;
  margin-bottom: 10px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
}
.cookie-modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 8px 22px;
  border: none;
  border-radius: 19px;
  font-size: 1rem;
  cursor: pointer;
  transition: background .14s, color .13s;
}
.cookie-modal .accept {
  background: var(--color-secondary);
  color: #fff;
  font-weight: 700;
}
.cookie-modal .reject {
  background: #FFB4A2;
  color: #222E38;
  font-weight: 700;
}
.cookie-modal .close {
  background: #E5FFFD;
  color: var(--color-primary);
  font-weight: 700;
}
/* Switch toggle for categories */
.cookie-switch {
  width: 44px;
  height: 24px;
  border-radius: 21px;
  background: #E3E3E3;
  position: relative;
  cursor: pointer;
  transition: background .13s;
}
.cookie-switch input {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
.cookie-switch-slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 20px; height: 20px;
  background: #FFB4A2;
  border-radius: 50%;
  transition: left .14s, background .13s;
}
.cookie-switch input:checked + .cookie-switch-slider {
  left: 22px;
  background: var(--color-secondary);
}
.cookie-switch input:disabled + .cookie-switch-slider {
  background: #BEE9E8;
  cursor: not-allowed;
}
.cookie-switch input:disabled { cursor: not-allowed; }
.cookie-modal-content p {
  font-size: .99rem;
  color: #363636;
  margin-bottom: 7px;
}

/* =========================================================== */
/*                RESPONSIVE: MOBILE FIRST DESIGN              */
/* =========================================================== */
@media (max-width: 1020px) {
  .container {
    max-width: 100vw;
    padding-left: 12px;
    padding-right: 12px;
  }
  .feature-grid {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .container, .section {
    padding-left: 11px;
    padding-right: 11px;
  }
  .section {
    padding: 30px 8px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-slider, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .section {
    margin-bottom: 35px;
  }
  .hero {
    padding: 32px 0 26px 0;
  }
  footer {
    border-radius: 23px 23px 0 0;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.43rem;
  }
  h2 {
    font-size: 1.13rem;
  }
  .hero .content-wrapper {
    gap: 17px;
  }
  .btn-primary {
    font-size: 0.93rem;
    padding: 12px 19px;
  }
}

/* =========================================================== */
/*                 INTERACTIONS, MICRO-ANIMATIONS              */
/* =========================================================== */
button, .btn-primary, .mobile-menu-toggle, .mobile-menu-close, .mobile-nav a {
  outline: none;
}
.btn-primary:active {
  background: #FFF6DF;
  color: var(--color-dark);
  transform: scale(.97);
}
.card {
  transition: box-shadow .22s, transform .11s;
}
.card:hover {
  box-shadow: 0 8px 40px 0 rgba(56,163,165,0.13);
  transform: translateY(-4px) scale(1.02);
}
.feature-grid > div:hover {
  box-shadow: 0 14px 44px 0 rgba(56,163,165,0.15);
  border-left-color: var(--color-art-4);
  transform: translateY(-2px);
  transition: box-shadow .22s, border-left-color .16s, transform .11s;
}
.testimonial-card {
  transition: box-shadow .16s, transform .11s;
  flex-direction: column;
}
.testimonial-card:hover {
  box-shadow: 0 8px 38px 0 rgba(255,218,119,0.13);
  transform: scale(1.03);
}
.mobile-menu {
  will-change: transform;
}
.mobile-menu.open {
  animation: mobileMenuSlide .34s cubic-bezier(.7,0,.2,1);
}
@keyframes mobileMenuSlide {
  0% { transform: translateX(100%); }
  100% { transform: translateX(0); }
}

/* =========================================================== */
/*                 VISUAL/COLOR ACCESSIBILITY RULES            */
/* =========================================================== */
.testimonial-card, .testimonial-card p, .testimonial-card strong {
  color: #1a2730;
}

/* Ensure good contrast in testimonials and all review areas */
.testimonial-card {
  background: #FFF6DF;
  border-left: 6px solid var(--color-primary);
  color: #1a2730;
}

/* Focus states for accessibility */
a:focus, button:focus, .btn-primary:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, .mobile-nav a:focus {
  outline: 2px dashed var(--color-primary);
  outline-offset: 2px;
}

/* Decorative artistic splashes */
.section:before {
  content: '';
  display: block;
  position: absolute;
  top: -20px;
  left: -32px;
  width: 72px;
  height: 38px;
  background: var(--color-art-1);
  opacity: 0.27;
  z-index: 0;
  border-radius: 27% 38% 18% 48%;
}
.section:after {
  content: '';
  display: block;
  position: absolute;
  bottom: -12px;
  right: -42px;
  width: 54px;
  height: 28px;
  background: var(--color-art-4);
  opacity: 0.19;
  z-index: 0;
  border-radius: 36% 31% 43% 36%;
}
.section {
  position: relative;
  z-index: 2;
}

/* Don't show deco shapes on mobile for space */
@media (max-width: 700px) {
  .section:before, .section:after {
    display: none;
  }
}
