/* ========================================== 
   Dusky Moon – Professional Corporate CSS 
   Brand: Nowoczesna elegancja, nutka tajemnicy 
   Palette: Blue/Gray, accent purple, light backgrounds
   Fonts: display - Merriweather, body - Open Sans
   Flexbox ONLY, responsive, micro-interactions, high contrast
   ========================================== */

/* ----------- 1. RESET & NORMALIZE ----------- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #22253A;
  background: #F7F7FA;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #4A4A8A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #8D428A;
  text-decoration: underline;
  outline: none;
}
ul, ol {
  margin: 1em 0 1.5em 2em;
}

/* ----------- 2. TYPOGRAPHY ----------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', 'Georgia', serif;
  font-weight: 700;
  color: #191931;
  line-height: 1.15;
  margin-bottom: 0.7em;
}
h1 {
  font-size: 2.5rem;
  margin-top: 0.3em;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.4rem;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
.subtitle {
  font-size: 1.3rem;
  font-weight: 400;
  color: #42426A;
  margin-bottom: 1.1em;
}
p {
  margin-bottom: 1.1em;
  font-size: 1rem;
}
strong {
  font-weight: 700;
}

/* ----------- 3. LAYOUT CONTAINERS ----------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
  border-radius: 14px;
  box-shadow: 0 2px 22px 0 rgba(32,38,58,0.05);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #F4F5FA;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(32,38,58,0.06);
  padding: 28px 20px 24px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  flex: 1 1 260px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 24px 0 rgba(141,66,138,0.14),0 2px 6px 0 rgba(32,38,58,0.07);
}
.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;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F3F5FC;
  border-radius: 10px;
  padding: 22px 18px;
  margin-bottom: 18px;
  min-width: 220px;
  box-shadow: 0 1px 5px 0 rgba(32,38,58,0.06);
}

.feature_grid, .feature_grid ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.5em 0;
}
.feature_grid li {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #EDF1F8;
  border-radius: 10px;
  padding: 16px 22px;
  font-size: 1.03rem;
  min-width: 220px;
  flex: 1 0 220px;
  box-shadow: 0 1px 3px 0 rgba(32,38,58,0.04);
}
.feature_grid img {
  width: 34px;
  height: 34px;
}

/* ----------- 4. HERO SECTION ----------- */
.hero {
  background: linear-gradient(100deg, #2B305A 0%, #191931 100%);
  color: #FFF;
  padding: 74px 0 48px 0;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 6px 44px 0 rgba(25,25,49,0.20);
}
.hero h1, .hero .subtitle {
  color: #FFF;
}
.hero .cta {
  margin-top: 20px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 12px;
}

/* ----------- 5. CTA BUTTONS ----------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  padding: 13px 40px;
  background: #FFF;
  color: #191931;
  border: 2px solid #8D428A;
  border-radius: 32px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
  box-shadow: 0 1px 6px 0 rgba(32,38,58,0.03);
  margin-bottom: 8px;
}
.cta.primary {
  background: #8D428A;
  color: #FFF;
  border: none;
}
.cta.primary:hover, .cta.primary:focus {
  background: #692C66;
}
.cta:hover, .cta:focus {
  color: #8D428A;
  background: #F4F5FA;
  box-shadow: 0 2px 10px 0 rgba(141,66,138,0.10);
  text-decoration: none;
}

/* ----------- 6. NAVIGATION ----------- */
header {
  background: #FFF;
  box-shadow: 0 2px 10px 0 rgba(32,38,58,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
}
.logo img {
  height: 54px;
  width: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 1rem;
}
nav a {
  padding: 8px 0;
  color: #22253A;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-bottom 0.18s;
}
nav a:hover, nav a:focus {
  color: #8D428A;
  border-bottom: 2px solid #8D428A;
}
/* Hide CTA in nav on smaller screens */
@media (max-width: 700px) {
  header .cta {
    display: none;
  }
}

/* ----------- 7. MOBILE MENU ----------- */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.4rem;
  color: #8D428A;
  display: none;
  cursor: pointer;
  padding: 5px 11px;
  margin-left: 8px;
  z-index: 110;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #8D428A;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23,21,40,0.98);
  color: #FFF;
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.85,0,.14,1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #FFF;
  font-size: 2.2rem;
  padding: 20px 19px 10px 19px;
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
  z-index: 1300;
  align-self: flex-end;
}
.mobile-menu-close:focus {
  outline: 2px solid #8D428A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 26px;
  width: 100%;
  align-items: flex-start;
  padding-left: 40px;
}
.mobile-nav a {
  color: #FFF;
  font-size: 1.32rem;
  font-weight: 600;
  padding: 12px 8px; /* Large enough for touch */
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #8D428A;
  background: #EEEAF2;
}

@media (max-width: 1000px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1001px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ----------- 8. FOOTER ----------- */
footer {
  background: #191931;
  color: #EEEAF2;
  padding: 44px 0 28px 0;
  border-radius: 29px 29px 0 0;
  margin-top: 48px;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #EEEAF2;
  font-size: 1rem;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #8D428A;
}
.footer-contact {
  font-size: 0.98rem;
  line-height: 1.4;
}
.footer-contact a {
  color: #EEEAF2;
  text-decoration: underline;
}
.footer-social {
  display: flex;
  gap: 18px;
  align-items: center;
}
.footer-social a img {
  height: 34px;
  width: 34px;
  filter: brightness(0) invert(1) grayscale(0.7);
  transition: filter 0.18s;
}
.footer-social a:hover img {
  filter: brightness(0) invert(0.5) sepia(1) saturate(7) hue-rotate(265deg);
}
.footer-tagline span {
  font-family: 'Merriweather', serif;
  color: #EEEAF2;
  font-size: 1.09rem;
  letter-spacing: 0.02em;
  margin-top: 10px;
  opacity: 0.80;
  display: block;
}

/* ----------- 9. TESTIMONIALS ----------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F7F7FA;
  border-left: 5px solid #8D428A;
  border-radius: 14px;
  padding: 20px 26px;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px 0 rgba(32,38,58,0.05);
  max-width: 680px;
}
.testimonial-card blockquote {
  font-size: 1.15rem;
  color: #191931;
  font-style: italic;
  margin: 0 0 0.25em 0;
}
.testimonial-card footer {
  font-size: 0.97rem;
  color: #404B5A;
  font-style: normal;
  margin-left: 12px;
}

/* ----------- 10. FORMS (if present) ----------- */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #22253A;
  padding: 11px 18px;
  border: 2px solid #CED2E3;
  border-radius: 7px;
  outline: none;
  margin-bottom: 17px;
  width: 100%;
  transition: border 0.2s;
  background: #FFF;
}
input:focus, textarea:focus, select:focus {
  border: 2px solid #8D428A;
}
label {
  font-size: 1rem;
  font-weight: 600;
  color: #22253A;
}

/* ----------- 11. Cookie Consent Banner ----------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 1500;
  background: #22253A;
  color: #EEEAF2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 30px 6vw 20px 6vw;
  box-shadow: 0 -2px 18px 0 rgba(32,38,58,0.16);
  transition: transform 0.24s, opacity 0.18s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner strong {
  color: #FFF;
  font-weight: bold;
  font-size: 1.08rem;
}
.cookie-banner-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.cookie-btn {
  background: #FFF;
  border: none;
  color: #8D428A;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 20px;
  padding: 9px 22px;
  margin-bottom: 2px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.cookie-btn.accept {
  background: #8D428A;
  color: #FFF;
}
.cookie-btn.reject {
  background: #DDD1E3;
  color: #191931;
}
.cookie-btn.settings {
  background: #FFF;
  color: #8D428A;
  border: 2px solid #8D428A;
}
.cookie-btn:hover, .cookie-btn:focus {
  box-shadow: 0 2px 12px 0 rgba(141,66,138,0.10);
  outline: none;
}

/* ---- Cookie modal ---- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(25,25,49,0.85);
  z-index: 1650;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #FFF;
  color: #191931;
  border-radius: 19px;
  padding: 34px 22px 26px 22px;
  max-width: 480px;
  width: 97%;
  box-shadow: 0 4px 44px 0 rgba(32,38,58,0.18);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: cookie-modal-in 0.3s cubic-bezier(.83,0,.17,1);
}
@keyframes cookie-modal-in {
  0% { opacity: 0; transform: translateY(60px) scale(0.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal h3 {
  margin-bottom: 8px;
  font-family: 'Merriweather', serif;
  color: #191931;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-category label {
  margin-bottom: 0;
}
.cookie-switch {
  width: 44px;
  height: 24px;
  background: #CED2E3;
  border-radius: 15px;
  display: inline-block;
  position: relative;
  transition: background 0.18s;
}
.cookie-switch input {
  display: none;
}
.cookie-switch-slider {
  position: absolute;
  top: 2px; left: 2px; right: auto;
  width: 20px;
  height: 20px;
  background: #FFF;
  border-radius: 50%;
  transition: left 0.18s, background 0.18s;
  box-shadow: 0 1px 3px rgba(32,38,58,0.08);
}
.cookie-switch input:checked + .cookie-switch-slider {
  left: 22px;
  background: #8D428A;
}
.cookie-category.disabled {
  opacity: 0.7;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 17px;
  background: none;
  color: #8D428A;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0 5px;
  transition: color 0.15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #191931;
}

/* ----------- 12. GENERAL COMPONENTS ----------- */
/* Section margins, flex containers */
section {
  margin-bottom: 60px;
}
main {
  margin-top: 24px;
}
ul li, ol li {
  margin-bottom: 8px;
}

/* ----------- 13. RESPONSIVE DESIGN ----------- */
@media (max-width: 1200px) {
  .footer-content, .content-grid,
  .card-container, .feature_grid {
    gap: 18px;
  }
}
@media (max-width: 1000px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }
}
@media (max-width: 768px) {
  .hero {
    padding: 46px 0 26px 0;
    border-radius: 0 0 16px 16px;
  }
  .footer-content {
    gap: 22px;
    flex-direction: column;
    align-items: flex-start;
  }
  .card-container, .content-grid, .feature_grid {
    flex-direction: column;
    gap: 18px;
  }
  .section {
    padding: 28px 4vw;
    margin-bottom: 38px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .feature_grid li, .feature-item, .card {
    min-width: 0;
    width: 100%;
    flex: 1 0 100%;
  }
  nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block !important;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.19rem; }
  .subtitle { font-size: 1.09rem; }
  .section { padding: 18px 2vw; }
  .footer-tagline span, .footer-contact, .footer-nav a {
    font-size: 0.97rem;
  }
}

/* ----------- 14. MICRO-ANIMATIONS & INTERACTIONS ----------- */
.card, .feature-item, .feature_grid li, .testimonial-card {
  transition: box-shadow 0.18s, background 0.18s;
}
.card:hover, .feature-item:hover, .feature_grid li:hover {
  background: #EEEAF2;
  box-shadow: 0 2px 12px 0 rgba(141,66,138,0.10);
}
.testimonial-card:hover {
  box-shadow: 0 1px 16px 0 rgba(141,66,138,0.12);
}

/* ----------- 15. UTILITY ----------- */
.hide {
  display: none !important;
}

/* ----------- 16. ACCESSIBILITY ----------- */
:focus {
  outline: 2px solid #8D428A;
  outline-offset: 2px;
}

/* ----------- 17. PRINT ----------- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-overlay, footer {
    display: none !important;
  }
  body { color: #222; background: #FFF; }
}
