/* ===========================
   CSS RESET & BASE STYLES
=========================== */
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,
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;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  color: #263238;
  background: #F5F4EF;
  line-height: 1.65;
  font-size: 16px;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #3756ff;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #FFB41A;
}
ul, ol {
  margin: 12px 0 12px 24px;
}
li + li {
  margin-top: 8px;
}
button,
input[type="button"],
input[type="submit"] {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

/* ===========================
   TYPOGRAPHY
=========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.5px;
  font-weight: 800;
  color: #263238;
}
h1 { font-size: 2.2rem; line-height: 1.1; margin-bottom: 20px; }
h2 { font-size: 1.5rem; margin-bottom: 18px; }
h3 { font-size: 1.15rem; margin-bottom: 12px; font-weight: 700; }
h4, h5, h6 { font-size: 1rem; }
p, ul, ol { margin-bottom: 12px; }
strong { font-weight: 700; }
.hero h1 {
  font-size: 2.6rem;
  background: #FFEE58;
  color: #263238;
  border-radius: 16px;
  padding: 10px 18px;
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 1px;
}
.hero-subtitle {
  font-size: 1.18rem;
  margin-bottom: 22px;
  font-weight: 500;
  color: #4C5866;
}

/* Fun + Playful headings */
h1, h2 {
  text-shadow: 0px 3px 0 #FFD869, 2px 5px 12px #A1A7B480;
}

/* ===========================
   LAYOUT CONTAINERS & SPACING
=========================== */
.container {
  width: 100%;
  max-width: 1100px;
  padding: 0 16px;
  margin: 0 auto;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Cards & Flex Patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px #26323816;
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px;
  flex: 1 1 260px;
  transition: box-shadow 0.3s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 10px 36px #26323826;
  transform: translateY(-4px) scale(1.03);
}
.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: #FFFDEB;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px #FFD86933;
  flex: 1 1 340px;
  min-width: 220px;
  font-size: 1.14rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===========================
   FLEX-ONLY LAYOUTS
=========================== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.feature {
  flex: 1 1 260px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px #88E2A633;
  padding: 24px 18px 26px 18px;
  text-align: left;
  transition: transform 0.2s, box-shadow 0.35s;
  margin-bottom: 20px;
  will-change: transform;
}
.feature:hover {
  box-shadow: 0 8px 32px #7FAFFB22;
  transform: scale(1.04) rotate(-1deg);
}

.services-list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
  align-items: stretch;
}
.service {
  flex: 1 1 230px;
  min-width: 220px;
  background: #FCF7FF;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0px 2px 10px #7FAFFB22;
  padding: 22px 18px 18px 22px;
  color: #14305a;
  position: relative;
  transition: box-shadow 0.25s, transform 0.18s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service:hover {
  box-shadow: 0 8px 32px #AFDFEB44;
  transform: scale(1.025) rotate(0.5deg);
}
.price {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #7D2AE8;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 4px;
}

/* Blog */
.articles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.article {
  flex: 1 1 240px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px #FFD86944;
  padding: 20px 15px 18px 22px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s;
}
.article:hover {
  box-shadow: 0 8px 28px #FFD86988;
}

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}
.blog-categories li {
  background: #FFD869;
  color: #2A3A5E;
  border-radius: 14px;
  padding: 5px 15px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 1px 4px #A1A7B430;
  margin-bottom: 0;
}

.project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.project {
  flex: 1 1 250px;
  background: #FFF6EF;
  border-radius: 16px;
  box-shadow: 0 2px 10px #F7C69428;
  padding: 18px 18px 18px 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.15s;
}
.project:hover {
  box-shadow: 0 10px 32px #F7C69455;
  transform: translateY(-2px) scale(1.025);
}

/**** FAQ Section (proces-wspolpracy) ****/
.faq-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.faq-item {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px #7FAFFB22;
  padding: 20px 18px;
  flex: 1 1 240px;
  transition: box-shadow 0.18s, transform 0.14s;
  margin-bottom: 20px;
}
.faq-item:hover {
  box-shadow: 0 8px 32px #FFD86966;
  transform: scale(1.026) rotate(-0.5deg);
}

/**** Testimonial Spacing (index) ****/
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/**** Contact Details Section ****/
.contact-details ul {
  margin: 10px 0 18px 0;
  padding-left: 20px;
}
.contact-details li {
  margin-bottom: 8px;
}

/**** Fun underline for accent links ****/
.cta-link {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #FF6F2B;
  position: relative;
  padding-bottom: 3px;
  margin-top: 4px;
  transition: color 0.2s;
}
.cta-link:after {
  content: '';
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: #FFB41A;
  border-radius: 2px;
  opacity: 0.88;
}
.cta-link:hover {
  color: #7D2AE8;
}
.cta-link:hover:after {
  background: #7D2AE8;
}

/* ===========================
   HERO  
=========================== */
.hero {
  background: #7D2AE8;
  color: #fff;
  padding: 56px 0 64px 0;
  position: relative;
  overflow-x: hidden;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  width: 100%;
  gap: 18px;
}
.hero h1 {
  background: #FFEE58;
  color: #222231;
  box-shadow: 0 4px 24px #FFC01209;
}
.hero-subtitle {
  color: #FEF0B3;
}

/* Fun floating circles */
.hero:before, .hero:after {
  content: "";
  display: block;
  position: absolute;
  border-radius: 50%;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}
.hero:before {
  width: 200px;
  height: 200px;
  background: #FFD869;
  left: -80px;
  top: 60px;
  animation: floatY1 5.5s ease-in-out infinite alternate;
}
.hero:after {
  width: 120px;
  height: 120px;
  background: #7DE2F5;
  right: -60px;
  top: 24px;
  animation: floatY2 6.5s ease-in-out infinite alternate;
}
@keyframes floatY1 {
  0% {transform: translateY(0);}
  100% {transform: translateY(22px);}
}
@keyframes floatY2 {
  0% {transform: translateY(0);}
  100% {transform: translateY(-18px);}
}

/* ===========================
   BUTTONS & CALL TO ACTIONS
=========================== */
.cta-button {
  display: inline-block;
  padding: 12px 34px 12px 30px;
  border-radius: 28px;
  background: #FFD869;
  color: #263238;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 10px #FFD86955;
  transition: background 0.18s, color 0.2s, box-shadow 0.22s, transform 0.17s;
  margin-top: 8px;
  margin-bottom: 8px;
  border: 2.5px solid #FFB41A;
  position: relative;
  cursor: pointer;
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: #7D2AE8;
  color: #fff;
  box-shadow: 0 8px 28px #FFD86989;
  border-color: #7D2AE8;
  transform: scale(1.05);
}

/* ===========================
   HEADER & MAIN NAVIGATION
=========================== */
header {
  background: #fff;
  box-shadow: 0 2px 8px #26323814;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 18px;
}
.logo img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 2px 8px #FFD86911);
  transition: transform 0.18s;
}
.logo img:hover {
  transform: scale(1.09) rotate(-3deg);
}
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  flex: 1 1 auto;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #263238;
  font-size: 1rem;
  padding: 7px 10px 6px 10px;
  border-radius: 19px;
  transition: background 0.2s, color 0.15s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #FFD869;
  color: #7D2AE8;
}

/* Hamburger Button */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  color: #7D2AE8;
  background: #fff7;
  border-radius: 50%;
  padding: 6px 15px;
  margin-left: 20px;
  border: 2px solid #7D2AE8;
  box-shadow: 0 1px 5px #BDBDBD33;
  transition: background 0.2s, box-shadow 0.22s;
  z-index: 44;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #FFD86966;
  color: #263238;
  box-shadow: 0 4px 18px #FFD86994;
}

/* Mobile Nav Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #F5F4EF;
  box-shadow: 0 1px 12px #26323844;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(.84,-0.04,.62,1.25), opacity 0.30s;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.2rem;
  margin: 18px 32px 0 0;
  color: #7D2AE8;
  background: #FFD869;
  border-radius: 50%;
  padding: 5px 15px 5px 16px;
  border: 2px solid #7D2AE8;
  box-shadow: 0 1px 8px #A1A7B477;
  transition: background 0.16s, color 0.18s;
  align-self: flex-end;
  cursor: pointer;
  z-index: 120;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #7D2AE8;
  color: #fff;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  margin-top: 24px;
}
.mobile-nav a {
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #FFD869;
  color: #263238;
  padding: 11px 28px;
  border-radius: 30px;
  text-align: center;
  width: 90vw;
  font-weight: 700;
  transition: background 0.18s, color 0.19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #7D2AE8;
  color: #fff;
}

/**** Hide main nav and show burger on mobile ****/
@media (max-width: 990px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .cta-button {
    padding: 12px 22px;
    font-size: 1.05rem;
  }
}

@media (max-width: 650px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    padding: 8px 7px;
  }
  .logo img { height: 36px; }
}

/* ===========================
   FOOTER
=========================== */
footer {
  background: #2A3A5E;
  color: #fff;
  padding: 32px 20px 12px 20px;
  border-top-left-radius: 34px;
  border-top-right-radius: 34px;
  box-shadow: 0 -1px 18px #7D2AE811;
  margin-top: 48px;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #FFD869;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.footer-nav a:hover {
  color: #7DE2F5;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  color: #fff;
  font-size: 1.06rem;
}

/* ===========================
   COOKIE CONSENT BANNER
=========================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  background: #FFFDEB;
  color: #312c2c;
  border-top: 2.5px solid #FFD869;
  box-shadow: 0 -4px 16px #FFD86935;
  padding: 16px 26px 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  z-index: 1200;
  font-size: 1rem;
  animation: cookiePopIn 0.45s cubic-bezier(.42,.3,.69,1.36);
}
@keyframes cookiePopIn {
  0% {transform: translateY(100%); opacity: 0;}
  99% {opacity: 1;}
  100% {transform: translateY(0);}
}
.cookie-banner-actions {
  display: flex;
  gap: 16px;
  margin-top: 7px;
}
.cookie-btn-accept {
  background: #FFD869;
  color: #263238;
  border-radius: 22px;
  border: 2px solid #FFD869;
  padding: 8px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.18s, color 0.13s;
}
.cookie-btn-accept:hover,
.cookie-btn-accept:focus {
  background: #7D2AE8;
  color: #fff;
  border-color: #7D2AE8;
}
.cookie-btn-reject {
  background: #fff;
  color: #263238;
  border-radius: 22px;
  border: 2px solid #A1A7B4;
  padding: 8px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.15s, color 0.13s, border-color 0.14s;
}
.cookie-btn-reject:hover,
.cookie-btn-reject:focus {
  background: #7DE2F5;
  color: #263238;
  border-color: #7DE2F5;
}
.cookie-btn-settings {
  background: #7D2AE8;
  color: #fff;
  border-radius: 22px;
  border: 2px solid #7D2AE8;
  padding: 8px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.16s, color 0.12s;
}
.cookie-btn-settings:hover,
.cookie-btn-settings:focus {
  background: #FFD869;
  color: #263238;
  border-color: #FFD869;
}

/**** Cookie Modal ****/
.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 94vw;
  max-width: 420px;
  padding: 30px 22px 20px 22px;
  background: #fff;
  border: 3px solid #FFD869;
  border-radius: 22px;
  box-shadow: 0 12px 42px #26323836;
  z-index: 1220;
  transform: translate(-50%, -46%) scale(0.8);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(.84,-0.04,.62,1.25),
    opacity 0.18s;
}
.cookie-modal.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
.cookie-modal h2 {
  margin-bottom: 12px;
  font-size: 1.28rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: #7D2AE8;
  width: 22px;
  height: 22px;
}
.cookie-category .always-on {
  color: #A1A7B4;
  font-size: 0.93rem;
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  justify-content: flex-end;
}
.cookie-modal-close {
  background: #FFD869;
  color: #7D2AE8;
  border-radius: 50%;
  border: none;
  padding: 6px 15px 6px 16px;
  font-size: 1.3rem;
  position: absolute;
  top: 12px;
  right: 12px;
  cursor: pointer;
  transition: background 0.14s, color 0.12s;
}
.cookie-modal-close:hover {
  background: #7D2AE8;
  color: #fff;
}

/* ===========================
   ANIMATIONS
=========================== */
@keyframes popCard {
  0% {transform: scale(0.97); opacity: 0;}
  90% {opacity: 1;}
  100% {transform: scale(1);}
}
.card, .service, .article, .feature, .testimonial-card, .project {
  animation: popCard 0.5s cubic-bezier(.42,.3,.69,1.36) backwards;
}

/* Micro-interactions for icons */
.feature img, .service img {
  transition: transform 0.24s cubic-bezier(.54,.57,.68,1.53);
}
.feature:hover img, .service:hover img {
  transform: scale(1.19) rotate(-6deg);
}

/* ===========================
   RESPONSIVE DESIGN
=========================== */
@media (max-width: 900px) {
  .container {
    padding: 0 8px;
    max-width: 99vw;
  }
  .features-grid,
  .services-list,
  .testimonials,
  .card-container,
  .content-grid,
  .articles-list,
  .project-list,
  .faq-section {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .features-grid,
  .services-list,
  .testimonials,
  .card-container,
  .content-grid,
  .articles-list,
  .project-list,
  .faq-section {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .hero h1 {
    font-size: 1.45rem;
    padding: 6px 10px;
  }
  h1 {font-size: 1.34rem;}
  h2 {font-size: 1.13rem;}
}
@media (max-width: 520px) {
  .section {
    padding: 22px 6px;
    margin-bottom: 40px;
  }
  .hero {
    padding: 28px 0 35px 0;
  }
  .hero .container {padding: 0 2px;}
  .container {padding: 0 2px;}
}

/* ===========================
   SECTIONS & UTILITIES
=========================== */
.text-section {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 18px #A1A7B422;
  padding: 30px 16px 27px 22px;
  margin-bottom: 20px;
}

/**** Section Headings Playful Line ****/
.content-wrapper > h2:not(:first-child),
.content-wrapper > h1:not(:first-child) {
  position: relative;
  margin-top: 18px;
}
.content-wrapper > h2:not(:first-child):after,
.content-wrapper > h1:not(:first-child):after {
  content: '';
  display: block;
  width: 90px;
  height: 5px;
  background: #FFD869;
  border-radius: 6px;
  margin: 7px 0 0 0;
}

/**** FAQ playfulness ****/
.faq-item strong {
  color: #7D2AE8;
  font-family: 'Montserrat', Arial, sans-serif;
}

/**** Miscellaneous Buttons ****/
button:focus, .cta-button:focus {
  outline: 2.5px solid #7D2AE8;
  outline-offset: 2px;
}

/**** Hide outline on mouse, show on keyboard navigation ****/
:focus:not(:focus-visible) {
  outline: none;
}

/**** Thank You page special accent ****/
.thankyou-section h1 {
  color: #7D2AE8;
}

/* ===========================
   COLOR UTILITIES
=========================== */
.bg-primary { background: #263238; color: #fff; }
.bg-secondary { background: #A1A7B4; color: #263238; }
.bg-accent { background: #FFD869; color: #263238; }

/* ===========================
   Z-INDEX LAYERING (for menus & banners)
=========================== */
header { z-index: 30; }
.mobile-menu { z-index: 100; }
.cookie-consent-banner { z-index: 1200; }
.cookie-modal { z-index: 1220; }

/* ===========================
   END OF STYLE.CSS
=========================== */