/* =========================================================
   Kalejdoskop Podatkowy StyleSheet
   STYLE: Creative Artistic (vibrant, artistic, unique)
   FLEXBOX ONLY! Responsive – Mobile first
   ========================================================= */

/* === CSS RESET & BASE === */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color .2s;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  outline: none;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: #F4F2F0;
  color: #114273;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  position: relative;
}

/* === Brand Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

:root {
  --primary: #114273;
  --secondary: #1E7467;
  --accent: #F4F2F0;
  --vibrant1: #F9783B;
  --vibrant2: #FFB600;
  --vibrant3: #40D0D6;
  --alert: #E6463D;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow1: 0 4px 24px rgba(30,66,115,0.10);
  --shadow2: 0 2px 14px rgba(244,120,59,0.07);
  --shadow-card: 0 4px 18px 0 rgba(0,0,0,0.10);
  --link-hover: #F9783B;
}

/* === LAYOUT & CONTAINERS === */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
.text-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero {
  padding: 40px 30px 60px 30px;
  background: var(--vibrant3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow1);
  align-items: flex-start;
  position: relative;
}

/* Artistic Splash for Hero */
.hero::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -40px; right: -40px;
  width: 120px; height: 120px;
  background: var(--vibrant1);
  opacity: 0.16;
  border-radius: 50% 35% 60% 40%/55% 80% 40% 60%;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.features-grid, .services-grid, .faq-list, .blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  align-items: stretch;
}

.features-grid > div, .services-grid > div, .faq-list > div {
  flex: 1 1 240px;
  min-width: 240px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 30px 22px 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 6px solid var(--vibrant1);
}
.features-grid > div:hover,
.services-grid > div:hover,
.faq-list > div:hover {
  transform: translateY(-8px) scale(1.025);
  box-shadow: 0 6px 30px 0 rgba(30,66,115,0.16), 0 2px 18px 0 rgba(255,182,0,0.07);
  border-left-color: var(--vibrant2);
}

/* Vertically center for testimonial cards & align */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 32px;
  margin-bottom: 20px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border-left: 5px solid var(--vibrant3);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(30, 116, 103, 0.15), 0 6px 18px rgba(64,208,214,0.09);
  border-left: 5px solid var(--vibrant1);
}
.testimonial-card blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.16em;
  color: var(--primary);
  font-style: italic;
  margin-bottom: 7px;
  line-height: 1.4;
  letter-spacing: -0.5px;
}
.testimonial-info {
  color: var(--secondary);
  font-size: 1em;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  opacity: 0.9;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: -1px;
}
h1 {
  font-size: 2.3rem;
  line-height: 1.15;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.6rem;
  color: var(--secondary);
  margin-bottom: 15px;
}
h3 {
  font-size: 1.15rem;
  color: var(--vibrant2);
}
h4, h5, h6 {
  font-size: 1rem;
  color: var(--primary);
}
p, li, blockquote {
  font-size: 1.06rem;
  color: var(--primary);
  line-height: 1.65;
}
strong, b {
  color: var(--primary);
  font-weight: 700;
}
.text-section p, .text-section ul > li {
  margin-bottom: 0.5em;
}

ul {
  margin-left: 18px;
}
ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 7px;
}
ul li::before {
  content: "";
  display: inline-block;
  height: 10px;
  width: 10px;
  background: var(--vibrant3);
  border-radius: 50%;
  position: absolute;
  left: 0; top: 9px;
  box-shadow: 0 0 0 3px var(--vibrant2, #FFB600, 0.18);
}

/* Blog list unique styling */
.blog-list {
  flex-direction: column;
  gap: 20px;
  padding-left: 0;
  margin-bottom: 14px;
}
.blog-list li {
  background: #fffbe7;
  border-left: 4px solid var(--vibrant2);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 8px 0 rgba(255,182,0,0.10);
  padding: 13px 18px 13px 19px;
  font-size: 1rem;
  margin-bottom: 0;
  transition: box-shadow .2s, border-color .2s;
}
.blog-list li a {
  color: var(--vibrant1);
  font-weight: 700;
  margin-left: 7px;
  text-decoration: underline dotted;
  transition: color .2s;
}
.blog-list li a:hover {
  color: var(--secondary);
}
.blog-list li:hover {
  border-left: 4px solid var(--vibrant3);
  box-shadow: 0 2px 16px 0 rgba(30,116,103,0.12);
}

/* === NAVIGATION BAR === */
header {
  background: #fff;
  box-shadow: 0 4px 24px -6px rgba(17,66,115,0.07);
  padding: 0;
}
header .container {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  position: relative;
}
header nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: 12px;
  align-items: center;
}
header nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  padding: 5px 13px;
  border-radius: 22px;
  transition: background .19s, color .19s;
  font-weight: 500;
}
header nav a:hover, header nav a:focus {
  background: var(--vibrant3);
  color: var(--secondary);
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 28px;
  background: var(--vibrant1);
  color: #fff;
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px 0 rgba(249,120,59,0.13);
  margin-left: auto;
  letter-spacing: 0.03em;
  transition: background .18s, transform .18s, box-shadow .18s;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 3px 22px 0 rgba(30,116,103,0.13);
}

/* === MOBILE NAVIGATION === */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--vibrant1);
  color: #fff;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 2rem;
  margin-left: 14px;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(249,120,59,0.13);
  transition: background .19s;
  z-index: 90;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(17,66,115,0.93);
  z-index: 110;
  transform: translateX(100vw);
  transition: transform 0.35s cubic-bezier(0.67,0.17,0.55,1);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 34px 28px 0 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: none;
  color: #fff;
  border: none;
  margin-bottom: 26px;
  cursor: pointer;
  transition: color .17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--vibrant3);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  font-weight: 700;
  padding: 10px 0 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  width: 100%;
  transition: color .16s, background .12s;
}
.mobile-nav a:hover {
  color: var(--vibrant2);
  background: rgba(244,242,240,0.13);
  border-radius: 6px;
}

@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
  header nav {
    display: flex !important;
  }
  .cta-btn {
    display: inline-flex !important;
  }
}

/* === CARDS AND FEATURES === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: box-shadow .15s, border-left-color .2s;
  border-left: 5px solid var(--primary);
}
.card:hover {
  box-shadow: 0 6px 36px 0 rgba(30,116,103,0.11);
  border-left-color: var(--vibrant1);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 19px 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0px 2px 8px 0px rgba(64,208,214,0.10);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* FAQ and CTA box */
.cta-box {
  background: var(--vibrant1);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 28px 20px;
  margin-top: 32px;
  box-shadow: 0 2px 16px 0 rgba(249,120,59,0.10);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.cta-box h2 {
  color: #fff;
}

/* === FORMS (minimal, for contact/info sections) === */
input, textarea {
  background: #fff;
  border: 1.5px solid #e1e8ef;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 10px;
  width: 100%;
  transition: border-color .14s;
}
input:focus, textarea:focus {
  border-color: var(--vibrant3);
  background: #fafffd;
}

/* === FOOTER === */
footer {
  background: var(--primary);
  color: #fff;
  padding-top: 38px;
  padding-bottom: 28px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}
footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
footer nav a {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.93;
  margin-right: 6px;
  transition: color .18s, text-shadow .14s;
}
footer nav a:hover,footer nav a:focus{
  color: var(--vibrant1);
  text-shadow: 0 1px 3px var(--vibrant1,rgba(249,120,59,0.12));
}
footer .text-section p,
footer .text-section img {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 3px;
  vertical-align: middle;
}
footer .text-section img {
  display: inline-block !important;
  height: 16px;
  margin-right: 6px;
  margin-bottom: -4px;
}

/* === COOKIE CONSENT BANNER & MODAL === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100%;
  background: #fff;
  color: var(--primary);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 9999;
  padding: 22px 20px 18px 22px;
  box-shadow: 0 -6px 36px 0 rgba(17,66,115,0.11);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  animation: cookieBannerSlideUp .65s .2s cubic-bezier(.27,.7,.37,.99);
}
@keyframes cookieBannerSlideUp {
  from {transform: translateY(100%);} to {transform: translateY(0);}
}
.cookie-banner__info {
  flex: 2 1 260px;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  padding: 8px 19px;
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background .16s, color .17s;
  box-shadow: 0 1px 6px rgba(30,116,103,0.07);
  margin-right: 2px;
}
.cookie-btn.accept {
  background: var(--vibrant3);
  color: var(--primary);
}
.cookie-btn.accept:hover {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn.reject {
  background: var(--alert);
  color: #fff;
}
.cookie-btn.reject:hover {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn.settings {
  background: var(--vibrant2);
  color: #fff;
}
.cookie-btn.settings:hover {
  background: var(--vibrant1);
}
/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 10001;
  top:0; left:0; right:0; bottom:0;
  background: rgba(30,66,115,0.48);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 24px 30px 24px;
  max-width: 430px;
  width: calc(100vw - 40px);
  box-shadow: 0 12px 48px 0 rgba(30,66,115,0.18);
  animation: fadeInCookie .4s;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--primary);
}
@keyframes fadeInCookie {
  from {opacity: 0; transform: scale(0.93);} to {opacity:1; transform:scale(1);}
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.cookie-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-checkboxes label {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-checkboxes input[type=checkbox] {
  accent-color: var(--vibrant3);
  width: 18px; height: 18px;
}
.cookie-modal .cookie-btn {
  margin-top: 14px;
  width: 100%;
  justify-content: center;
}
.cookie-modal .hint {
  font-size: 0.98rem;
  color: var(--secondary);
  margin-bottom: 7px;
  opacity: .84;
}
.cookie-modal .close {
  position: absolute;
  top: 19px; right: 26px;
  background: none;
  color: var(--alert);
  font-size: 1.5em;
  border: none;
  cursor: pointer;
}

/* === UTILITY & VISUAL EFFECTS === */
.shadow-card {
  box-shadow: var(--shadow-card);
}
.radius-md {
  border-radius: var(--radius-md);
}
.radius-lg {
  border-radius: var(--radius-lg);
}

/* Hide visually but keep for screen readers */
.visually-hidden {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==== RESPONSIVE STYLES ==== */
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding: 0 7px;
  }
  .section {
    padding: 30px 7px;
    margin-bottom: 45px;
  }
  .hero {
    padding: 24px 10px 32px 10px;
    min-height: unset;
  }
  .content-wrapper {
    gap: 18px;
  }
  .features-grid,
  .services-grid {
    gap: 13px;
  }
  .testimonial-card {
    padding: 15px 12px;
  }
  footer .content-wrapper {
    gap: 17px;
    flex-direction: column;
    align-items: flex-start;
  }
  footer .text-section {
    font-size: 0.96rem;
  }
}
@media (max-width: 768px) {
  .content-wrapper, .section {
    padding: 18px 4px;
  }
  .features-grid, .services-grid, .faq-list, .card-container {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card, .card {
    min-width: 0;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .hero {
    padding: 13px 4px 32px 4px;
    border-radius: var(--radius-md);
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 8px 8px 11px;
    border-radius: 12px 12px 0 0;
    font-size: 0.97rem;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  .hero {
    padding: 7px 2vw 30px 2vw;
    min-height: unset;
  }
  h1 {
    font-size: 1.34rem;
    margin-bottom: 10px;
  }
  h2 {
    font-size: 1.06rem;
    margin-bottom: 8px;
  }
  .cta-btn {
    padding: 10px 18px;
    font-size: 1rem;
  }
  .testimonial-card {
    padding: 11px 8px;
    font-size: 0.97rem;
  }
  .cookie-modal {
    padding: 22px 6px 16px 6px;
    max-width: 98vw;
    font-size: 0.99rem;
  }
}

/* === ARTISTIC DETAILS (SVG backgrounds/blobs) === */
/* Feel free to add more creative details here */

/* === Scrollbar Styling (optional artistic touch) === */
body::-webkit-scrollbar {
  width: 9px;
  background: var(--accent);
}
body::-webkit-scrollbar-thumb {
  background: var(--vibrant1);
  border-radius: 8px;
}

/* === ACCESSIBILITY === */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2.5px dashed var(--vibrant2);
  outline-offset: 2.5px;
}

/* === END OF STYLES === */
/* --- Add JS for hamburger + cookie banner events for full effect --- */