/* ===== CSS RESET & BASE ===== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: #FDFDFB;
  color: #1C355E;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
  padding-left: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
h1 { font-size: 2.5rem; line-height: 1.15; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 16px; }
strong { font-weight: 700; }

/* ======= COLOR SCHEME (Creative Artistic) ======= */
:root {
  --primary: #1C355E;
  --secondary: #84BFA6;
  --accent: #FDFDFB;
  --vibrant1: #F7934C;
  --vibrant2: #F95959;
  --vibrant3: #41B3A3;
  --vibrant4: #4062BB;
  --black: #181818;
  --white: #fff;
  --gray: #eaeaea;
}

/* ===== CONTAINER & SECTION SPACING ===== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  width: 100%;
}
.text-section {
  margin-bottom: 32px;
  text-align: left;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
  box-shadow: 0 2px 12px 0 rgba(28,53,94,0.08);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
}
header img {
  max-height: 44px;
  margin-right: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 16px -7px var(--primary),0 1.5px 9px 0 var(--vibrant3);
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
nav a {
  padding: 8px 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  color: var(--accent);
  transition: background 0.17s, color 0.17s;
  position: relative;
}
nav a:hover,
nav a:focus {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 3px 15px 0 #84BFA633;
}
.btn-primary {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  display: inline-block;
  margin: 0 0 0 10px;
  padding: 14px 34px;
  background: linear-gradient(91deg, var(--vibrant1) 0%, var(--vibrant3) 63%);
  color: var(--white);
  border-radius: 99px;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 20px 0 var(--vibrant1)44;
  border-bottom: 4px solid var(--vibrant2);
  letter-spacing: 0.06em;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  outline: none;
  position: relative;
  z-index: 2;
}
.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(91deg, var(--vibrant2) 0%, var(--vibrant1) 80%);
  color: var(--accent);
  transform: translateY(-2px) scale(1.03) rotate(-1.5deg);
  box-shadow: 0 8px 32px -3px var(--vibrant2)99;
}

/* ====== FLEXBOX GRID OVERRIDES FOR ARTISTIC LOOK ====== */
.feature-grid,
.card-container,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
  margin-top: 24px;
  margin-bottom: 24px;
}

.card-container { gap: 24px; }

.card {
  background: var(--white);
  margin-bottom: 20px;
  border-radius: 24px 120px 32px 8px/32px 64px 24px 84px;
  box-shadow: 0 6px 32px -9px var(--vibrant3)44, 0 1.5px 9px 0 var(--primary)22;
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 250px;
  flex: 1 1 270px;
  overflow: hidden;
  border: 2.5px dashed var(--secondary);
  transition: box-shadow 0.19s, border-color 0.18s;
}
.card:hover {
  box-shadow: 0 14px 48px -3px var(--vibrant1)44;
  border-color: var(--vibrant2);
}

.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: var(--accent);
  border-radius: 18px 80px 18px 18px/36px 36px 18px 70px;
  box-shadow: 0 4px 24px -10px var(--secondary)88;
  margin-bottom: 20px;
  border: 2px solid var(--secondary);
  min-width: 260px;
  max-width: 600px;
  color: #232646;
  font-size: 1.08em;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.testimonial-card:hover {
  border-color: var(--vibrant2); 
  box-shadow: 0 10px 48px -10px var(--vibrant2)55;
}
.testimonial-card span {
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1em;
  margin-left: 10px;
  opacity: 0.85;
}

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

/* ===== Tables (Cennik) ===== */
table {
  width: 100%;
  margin: 18px 0 24px 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1.05em;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 20px -10px var(--primary)33;
}
th, td {
  padding: 14px 12px;
  text-align: left;
}
th {
  background: var(--secondary);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
}
td {
  background: var(--accent);
  color: var(--primary);
  border-bottom: 1px solid var(--gray);
}
tr:last-child td { border-bottom: none; }

/* ===== Tags and Artistic Accents ===== */
span {
  display: inline-block;
  border-radius: 18px 44px 8px 22px;
  padding: 6px 16px;
  background: var(--vibrant3);
  color: var(--white);
  font-size: 0.98em;
  letter-spacing: 0.03em;
  margin: 0 7px 7px 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  box-shadow: 0 2px 6px 0 var(--vibrant3)33;
}


/* ========== FOOTER ========== */
footer {
  background: linear-gradient(89deg, var(--primary) 76%, var(--secondary) 100%);
  color: var(--accent);
  padding: 32px 0 14px;
  font-size: 1em;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 10px;
}
footer nav a {
  color: var(--accent);
  padding: 6px 18px;
  border-radius: 24px;
  background: var(--primary);
  transition: background 0.15s, color 0.15s;
}
footer nav a:hover,
footer nav a:focus {
  background: var(--vibrant3);
  color: var(--white);
}
footer p { opacity: 0.82; font-size: 0.97em; margin-bottom: 4px; }

/* ========== MOBILE MENU ========== */
.mobile-menu-toggle {
  display: inline-block;
  background: var(--vibrant1);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 2.0rem;
  padding: 7px 17px;
  margin-left: 14px;
  cursor: pointer;
  box-shadow: 0 0 0 1.5px var(--secondary)44;
  transition: background 0.16s, transform 0.18s;
  z-index: 102;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--vibrant2);
  color: var(--accent);
  transform: scale(1.12) rotate(-9deg);
}
.mobile-menu {
  position: fixed;
  z-index: 400;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(122deg, var(--primary) 80%, var(--vibrant3) 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(0.87,0.01,0.29,0.99);
  box-shadow: 6px 0 64px -22px var(--vibrant2)77;
  padding: 20px 28px 28px 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: var(--white);
  border: none;
  font-size: 2rem;
  padding: 8px 14px;
  cursor: pointer;
  margin-bottom: 14px;
  align-self: flex-end;
  z-index: 9;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--vibrant1);
}
.mobile-nav {
  display: flex !important;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top: 24px;
}
.mobile-nav a {
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.2em;
  border-radius: 10px;
  background: rgba(255,255,255,0.10);
  padding: 13px 14px 13px 21px;
  transition: background 0.18s, color 0.18s;
  margin-bottom: 3px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--vibrant1);
  color: var(--primary);
}

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

/* ========== RESPONSIVENESS ========== */
@media (max-width: 900px) {
  .feature-grid, .content-grid, .card-container {
    gap: 16px;
  }
  .card, .testimonial-card {
    min-width: 180px;
    padding: 22px 14px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.18rem; }
}
@media (max-width: 768px) {
  .container {
    padding: 0 6vw;
  }
  .section {
    margin-bottom: 38px;
    padding: 26px 5vw;
  }
  .content-grid, .feature-grid, .card-container {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 14px;
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1rem; }
  .card {
    flex: 1 1 100%;
    min-width: unset;
    max-width: 100%;
  }
}

/* ========== BUTTONS, LINKS & MICRO-INTERACTIONS ========== */
button,
input[type=button], input[type=submit] {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1em;
  border-radius: 22px;
  border: none;
  background: var(--primary);
  color: var(--accent);
  padding: 10px 34px;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 var(--primary)23;
  transition: background 0.17s, color 0.18s, box-shadow 0.18s;
}
button:hover, button:focus,
input[type=button]:hover, input[type=submit]:hover {
  background: var(--vibrant1);
  color: var(--white);
  box-shadow: 0 6px 16px -5px var(--vibrant2)33;
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--white);
  border-top: 3.5px solid var(--primary);
  box-shadow: 0 -3px 24px -10px var(--primary)33;
  color: var(--primary);
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 24px 4vw 18px 4vw;
  font-size: 1em;
  animation: cookie-slideup 0.62s cubic-bezier(0.21,0.81,0.43,0.94);
}
@keyframes cookie-slideup {
  0% { transform: translateY(120%); opacity: 0; }
  85% { transform: translateY(-10px);}
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-text {
  flex: 2;
  color: var(--primary);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-banner .btn-accept {
  background: var(--vibrant1);
  color: var(--white);
  border-radius: 38px;
  font-weight: 700;
  transition: transform 0.14s, background 0.13s;
}
.cookie-banner .btn-accept:hover { background: var(--vibrant2); transform: scale(1.08); }
.cookie-banner .btn-reject {
  background: var(--vibrant3);
  color: var(--white);
  border-radius: 38px;
  font-weight: 500;
  transition: background 0.18s;
}
.cookie-banner .btn-reject:hover { background: var(--primary); }
.cookie-banner .btn-settings {
  background: var(--primary);
  color: var(--white);
  border-radius: 20px;
  font-weight: 500;
  border: 1.5px solid var(--vibrant2);
  transition: box-shadow 0.15s, color 0.18s;
}
.cookie-banner .btn-settings:hover { box-shadow: 0 2px 11px var(--vibrant2)22; color: var(--vibrant1); }

/* ======= COOKIE PREFERENCES MODAL ======= */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2002;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(60,20,93,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.21s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--accent);
  color: var(--primary);
  border-radius: 36px 36px 24px 84px/46px 36px 18px 60px;
  box-shadow: 0 8px 48px -8px var(--vibrant3)99;
  padding: 40px 30px 38px;
  max-width: 410px;
  width: 96vw;
  z-index: 2050;
  animation: modal-bounce 0.45s cubic-bezier(0.49,1.8,0.24,0.95);
  display: flex;
  flex-direction: column;
  gap: 23px;
  border: 3.5px solid var(--secondary);
}
@keyframes modal-bounce {
  0% { transform: scale(0.8) rotate(-2deg); opacity: 0; }
  72% { transform: scale(1.025) rotate(2deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.cookie-modal h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.18rem;
  margin-bottom: 8px;
  color: var(--vibrant4);
}
.cookie-modal .cookie-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}
.cookie-modal label {
  font-size: 1em;
  color: var(--primary);
  font-family: 'Roboto', sans-serif;
}
.cookie-modal input[type='checkbox'] {
  accent-color: var(--primary);
  width: 20px;
  height: 20px;
  margin-right: 6px;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 14px;
  margin-top: 11px;
}
.cookie-modal .btn-save {
  background: var(--vibrant3);
  color: var(--white);
  border-radius: 28px;
  font-weight: 700;
  padding: 10px 34px;
  border: none;
  transition: background 0.17s;
}
.cookie-modal .btn-save:hover { background: var(--vibrant1); }
.cookie-modal .btn-cancel {
  background: var(--gray);
  color: var(--primary);
  border-radius: 28px;
  border: none;
  transition: background 0.18s;
}
.cookie-modal .btn-cancel:hover { background: var(--vibrant2); color: var(--white); }

/* ======= FORM ELEMENTS (for future compatibility) ======= */
input, textarea, select {
  font-family: inherit;
  font-size: 1em;
  border: 1.4px solid var(--secondary);
  border-radius: 13px;
  padding: 9px 13px;
  background: var(--accent);
  color: var(--primary);
  transition: border 0.13s;
  margin-bottom: 13px;
  outline: none;
  box-shadow: 0 0 0 0.8px var(--gray);
}
input:focus, textarea:focus, select:focus {
  border: 2.2px solid var(--primary);
  box-shadow: 0 1.5px 13px -3.5px var(--secondary)88;
}

/* ===== ICONS in LISTS ===== */
ul li img {
  width: 22px;
  height: 22px;
  margin-right: 12px;
  vertical-align: middle;
}
ul li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 1em;
}

/* ======= VISUAL HIERARCHY & ARTISTIC EFFECTS ====== */
.section h2 {
  margin-bottom: 24px;
  color: var(--vibrant1);
  word-spacing: 0.03em;
}
.feature-grid > div, .content-grid>div {
  background: var(--white);
  border-radius: 18px 60px 11px 32px/40px 18px 18px 44px;
  padding: 24px 18px 18px 24px;
  min-width: 210px;
  box-shadow: 0 4px 16px -7px var(--vibrant4)22;
  border: 2.4px dashed var(--secondary);
  transition: box-shadow 0.18s, border 0.18s;
  margin-bottom: 20px;
  flex: 1 1 220px;
}
.feature-grid > div:hover {
  border: 2.6px solid var(--vibrant2);
  box-shadow: 0 8px 32px -13px var(--vibrant1)44;
}
.feature-grid img,
.content-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  filter: drop-shadow(0 2px 5px var(--vibrant3)22);
}

/* ======= Artistic Background Elements ======= */
body:before {
  content: "";
  display: block;
  position: fixed;
  z-index: 0;
  top: -120px;
  left: -120px;
  width: 350px;
  height: 350px;
  background: radial-gradient(ellipse at center, var(--vibrant1) 0%, transparent 75%);
  opacity: 0.19;
  pointer-events: none;
}
body:after {
  content: "";
  display: block;
  position: fixed;
  right: -90px;
  bottom: -90px;
  width: 230px;
  height: 230px;
  background: radial-gradient(ellipse at center, var(--vibrant2) 0%, transparent 75%);
  opacity: 0.16;
  pointer-events: none;
  z-index: 1;
}

/* ====== SELECTION STYLES ====== */
::selection {
  background: var(--vibrant3);
  color: var(--white);
}

/* ===== SCROLLBAR ARTISTIC ===== */
::-webkit-scrollbar {
  width: 9px;
  background: var(--accent);
}
::-webkit-scrollbar-thumb {
  background: var(--vibrant3);
  border-radius: 6px;
}

/* ======= HEADINGS ARTISTIC SHADOW ===== */
h1, h2, h3 {
  text-shadow: 1px 2.5px 0 var(--secondary)33, 0 2px 6px var(--vibrant1)11;
}

/* ======= Extra Micro-Interactions ======= */
.btn-primary:active, .testimonials-card:active, button:active {
  transform: scale(0.97);
  box-shadow: 0 2px 11px var(--vibrant2)22;
}
.card:active { transform: scale(0.98) rotate(-0.7deg); }
.feature-grid > div:active { transform: scale(0.96) rotate(0.7deg); }

/* ======= Hide elements off-canvas for mobile nav ======= */
@media (max-width: 1024px) {
  nav, .btn-primary {
    display: none !important;
  }
}

/* Accessibility: readable text on testimonials */
.testimonial-card {
  background: var(--accent);
  color: #232646;
  border: 2px solid var(--secondary);
}

/* ======= THANK YOU PAGE, SPECIAL SECTION ======= */
.thankyou-section h1 {
  color: var(--vibrant1);
}

/* ======= Print fix ======= */
@media print {
  header, footer, .cookie-banner, .mobile-menu {
    display: none !important;
  }
  main, .section, .container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
}
