/* =======================================
   Ion Wave Przewodnicy - Minimalist CSS
   =======================================
   - Brand Primary: #1b365d
   - Brand Secondary: #31a2ac
   - Brand Accent: #f9f6ee
   - Fonts: Montserrat (display), Roboto (body)
   - Strictly Flexbox Only - No Grid/Columns
   ======================================= */

/* ==== Reset & Normalize ==== */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: #fff;
  color: #1b365d;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: color 0.15s; }
button { font: inherit; background: none; border: none; cursor: pointer; outline: none; }
:focus { outline: 2px solid #31a2ac; outline-offset: 2px; }

/* ==== Brand Typography Hierarchy */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.5rem; /* 40px */
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 20px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, ul, ol, li, strong {
  font-size: 1rem;
  color: #1b365d;
}
strong { font-weight: 600; }

/* ==== Container, Section, Layout ==== */
.container {
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(27,54,93,0.04),0 1.5px 5px rgba(27,54,93,0.06);
  padding: 32px 24px;
  min-width: 260px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(49,162,172,0.08),0 2px 6px rgba(27,54,93,0.09);
}

.text-section {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.feature-grid, .feature-item {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.feature-grid > div, .feature-item {
  background: #f9f6ee;
  padding: 28px 24px;
  border-radius: 10px;
  min-width: 200px;
  box-shadow: 0 2px 6px rgba(27,54,93,.04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.18s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 18px rgba(49,162,172,0.07);
}

/* Testimonials */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 28px;
  background: #f9f6ee;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(27,54,93,0.03);
  margin-bottom: 20px;
  color: #1b365d; /* High contrast */
  font-size: 1.05rem;
  max-width: 600px;
}
.testimonial-card p {
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-card strong {
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ==== Primary CTA Button ==== */
.cta-primary,
.mobile-nav a.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #1b365d;
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.07em;
  font-size: 1.1rem;
  box-shadow: 0 1.5px 5px rgba(27,54,93,0.07);
  transition: background 0.18s, box-shadow 0.19s, color 0.16s;
  border: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: #31a2ac;
  color: #1b365d;
  box-shadow: 0 4px 14px rgba(49,162,172,0.13);
}

/* ==== Links & Nav ==== */
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding: 24px 20px 12px 20px;
  background: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
}
header nav a {
  padding: 7px 0;
  font-weight: 500;
  color: #1b365d;
  transition: color 0.15s;
  border-radius: 4px;
}
header nav a:hover, header nav a:focus {
  color: #31a2ac;
  background: #f9f6ee;
}
header nav a.cta-primary { margin-left: auto; }

/* Logo Sizing */
header nav img {
  height: 42px;
  width: auto;
  margin-right: 14px;
}

/* ==== Footer ==== */
footer {
  background: #f9f6ee;
  border-top: 1px solid #ebe7dc;
  padding: 40px 0 24px 0;
  margin-top: 60px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-bottom: 28px;
  font-family: 'Montserrat', Arial, sans-serif;
}
footer nav a {
  color: #1b365d;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 4px;
  padding: 6px 11px;
  transition: background 0.16s, color 0.16s;
}
footer nav a:hover, footer nav a:focus {
  color: #31a2ac; background: #ecebe8;
}
.footer-contact {
  text-align: center;
  color: #373a40;
  font-size: 15px;
  line-height: 1.6;
  margin-top: 8px;
  opacity: 0.96;
}

/* ==== Content Spacing Patterns ==== */
ul, ol {
  margin-left: 0;
  padding-left: 0;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 8px;
  padding-left: 0;
  line-height: 1.7;
  position: relative;
}

/* ==== Misc Section Spacing ==== */
section:not(:last-child) {
  margin-bottom: 60px;
}

/* ==== Responsive Utility Classes ==== */
.hide-mobile { display: block; }
.show-mobile { display: none; }

/* ==== Mobile Menu Burger ==== */
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 2rem;
  color: #1b365d;
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 502;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.17s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #f9f6ee;
}

/* ==== Mobile Menu Overlay & Slide ==== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  box-shadow: 0 4px 32px rgba(27,54,93,0.17);
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.71,0.13,0.19,0.99);
  z-index: 500;
  padding-top: 36px;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 2.1rem;
  color: #1b365d;
  background: none;
  border-radius: 8px;
  padding: 6px 12px;
  z-index: 510;
  transition: background 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #ecebe8;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
  width: 100%;
  align-items: flex-start;
  padding-left: 36px;
}
.mobile-nav a {
  color: #1b365d;
  font-size: 1.1rem;
  padding: 12px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  border-radius: 6px;
  margin-bottom: 8px;
  transition: background 0.17s, color 0.16s;
  min-width: 210px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #f9f6ee;
  color: #31a2ac;
}

/* ==== Cookie Consent Banner ==== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -1px 14px rgba(27,54,93,0.09);
  padding: 22px 24px 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  z-index: 1200;
  transition: transform 0.35s cubic-bezier(0.71,0.13,0.19,0.99), opacity 0.19s;
  font-size: 1rem;
}
.cookie-banner.hide { transform: translateY(120%); opacity: 0; pointer-events: none; }
.cookie-banner-message { flex: 1 1 280px; color: #1b365d; }
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  border-radius: 7px;
  padding: 11px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  background: #f9f6ee;
  color: #1b365d;
  transition: background 0.14s, color 0.16s;
  box-shadow: 0 1px 3px rgba(27,54,93,0.04);
}
.cookie-btn.accept {
  background: #31a2ac;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #1b365d;
  color: #fff;
}
.cookie-btn.reject {
  background: #ecebe8;
  color: #1b365d;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #d7d5ce;
}
.cookie-btn.settings {
  background: #fff;
  color: #1b365d;
  border: 1px solid #ecebe8;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #f9f6ee;
}

/* ==== Cookie Modal ==== */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(27,54,93,0.25);
  z-index: 1250;
  justify-content: center;
  align-items: center;
}
.cookie-modal.active {
  display: flex;
  animation: fadeInBg 0.22s;
}
@keyframes fadeInBg { from {opacity: 0;} to {opacity: 1;} }
.cookie-modal-content {
  background: #fff;
  border-radius: 15px;
  padding: 34px 30px 28px 30px;
  box-shadow: 0 8px 42px rgba(27,54,93,0.16);
  max-width: 370px;
  width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  font-size: 1rem;
}
.cookie-modal h2 {
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #1b365d;
  margin-bottom: 8px;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px 0;
}
.cookie-category .category-label {
  flex: 1 1 auto;
  font-weight: 500;
}
.cookie-toggle {
  appearance: none;
  width: 38px; height: 20px;
  background: #ecebe8;
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-toggle:checked { background: #31a2ac; }
.cookie-toggle:before {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(27,54,93,0.08);
  transition: left 0.2s;
}
.cookie-toggle:checked:before { left: 20px; }
.category-desc {
  font-size: 0.96em;
  color: #647277;
  margin-left: 4px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  color: #1b365d;
  background: none;
  border: none;
  font-size: 1.2rem;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.17s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #ecebe8;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 10px;
}

/* ==== Responsive Adjustments ==== */
@media (max-width: 1080px) {
  .container { padding-left: 4vw; padding-right: 4vw; }
}
@media (max-width: 930px) {
  header nav { flex-wrap: wrap; gap: 16px; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .card {
    min-width: 0;
    width: 100%;
  }
  section, .section {
    padding: 22px 4vw;
    margin-bottom: 38px;
  }
  .testimonial-card {
    padding: 16px 12px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    padding: 18px 10px;
    font-size: 0.98rem;
  }
  .cookie-banner-message { font-size: 1em; }
}
@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.28rem; }
  .footer-contact { font-size: 14px; }
  .testimonial-card { font-size: 0.96rem; }
  .cookie-modal-content {
    padding: 16px 6vw 18px 6vw;
    font-size: 0.99rem;
  }
}

/* ==== Subtle Animations & Microinteractions ==== */
a, button, .card, .cta-primary, .feature-grid > div, .mobile-nav a, .cookie-btn {
  transition: background .18s cubic-bezier(.4,0,.2,1), color .16s cubic-bezier(.4,0,.2,1), box-shadow .18s, transform .15s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover {
  transform: translateY(-2px) scale(1.012);
  box-shadow: 0 8px 38px rgba(49,162,172,0.11);
}
.mobile-nav a:active, .cta-primary:active, .cookie-btn:active {
  transform: scale(.98);
}

/* ==== Accessibility: High Contrast for Testimonials ==== */
.testimonial-card, .testimonial-card * {
  color: #1b365d !important;
  background: #f9f6ee !important;
}

/* ==== Z-index and Prevent Overlapping ==== */
header, .mobile-menu, .cookie-banner, .cookie-modal { z-index: 100; }
.mobile-menu { z-index: 500; }
.cookie-banner { z-index: 1200; }
.cookie-modal { z-index: 1250; }

/* ==== Spacing between All Cards & Main Elements ==== */
.card, .feature-grid > div, .section, .testimonial-card, .content-wrapper, .card-container, .content-grid, .feature-item {
  margin-bottom: 20px;
}
section:last-child, .section:last-child, .content-wrapper:last-child, .testimonial-card:last-child, .feature-grid > div:last-child {
  margin-bottom: 0;
}

/* ==== Misc ==== */
::-webkit-scrollbar-thumb { background: #ecebe8; border-radius: 6px; }
::-webkit-scrollbar { background: #fff; width: 10px; }

/* ==== Utility and Hide Classes for Menu ==== */
.hide { display: none !important; }

/* ==== Custom switches for cookie modal (fallback if no JS) ==== */
input[type="checkbox"].cookie-toggle {
  width: 38px; height: 20px;
}

/* End of CSS */
