/* RESET & NORMALIZE ------------------------------------ */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  background: #162136;
  color: #fafdff;
  line-height: 1.6;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  padding-left: 1.2em;
  margin: 0.6em 0 0.6em 0;
}
li {
  margin-bottom: 0.5em;
}

/* BRAND VARIABLES --------------------------------------- */
:root {
  --color-primary: #205179;
  --color-primary-dark: #142a40;
  --color-secondary: #99CEE6;
  --color-accent: #FFB500;
  --color-accent-hover: #ffd964;
  --color-bg: #162136;
  --color-surface: #213752;
  --color-card: #212a3a;
  --color-text: #fafdff;
  --color-text-dark: #263552;
  --color-neutral: #f7fafd;
  --color-shadow: rgba(24,40,68,0.20);
  --color-neon-blue: #44f1ff;
  --color-neon-pink: #f4167a;
  --border-radius: 16px;
  --shadow: 0 2px 16px 0 var(--color-shadow);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Lato', Arial, Helvetica, sans-serif;
}

/* LAYOUT: CONTAINER & SECTIONS -------------------- */
.container {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  margin-bottom: 24px;
}

@media (min-width: 900px) {
  .content-wrapper {
    flex-direction: row;
    gap: 32px;
    justify-content: space-between;
    align-items: flex-start;
  }
  .text-section {
    flex: 1 1 0;
    min-width: 300px;
  }
}

/* TYPOGRAPHY --------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.012em;
  line-height: 1.2;
  color: var(--color-text);
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--color-secondary);
  text-shadow: 0 0 8px var(--color-neon-blue);
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
  color: var(--color-accent);
  text-shadow: 0 0 5px var(--color-accent);
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--color-secondary);
}
h4 { font-size: 1.125rem; }

p, li, span, strong, em {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
}
strong { font-weight: 700; }
em { font-style: italic; }

/* LINKS ------------------------------------------- */
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: var(--color-secondary);
}

/* BUTTONS ----------------------------------------- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 30px;
  background: linear-gradient(90deg, var(--color-primary) 70%, var(--color-accent) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  font-family: var(--font-display);
  border: none;
  border-radius: 1000px;
  box-shadow: 0 0 10px 0 var(--color-neon-blue);
  cursor: pointer;
  margin-top: 12px;
  margin-bottom: 12px;
  transition: background 0.30s, box-shadow 0.25s, color 0.18s;
  outline: none;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 2;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, var(--color-accent) 30%, var(--color-primary) 98%);
  color: #162136;
  box-shadow: 0 0 18px 4px var(--color-neon-blue), 0 2px 16px var(--color-shadow);
}
button, .mobile-menu-toggle, .mobile-menu-close {
  font-family: var(--font-display);
  background: var(--color-surface);
  color: var(--color-accent);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 0 10px 0 var(--color-neon-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s;
  outline: none;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus,
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-neon-blue);
  color: #222b3c;
  box-shadow: 0 0 18px 2px var(--color-neon-blue);
}


/* HEADER & NAV ------------------------------------ */
header {
  width: 100%;
  background: var(--color-bg);
  box-shadow: 0 4px 24px 0 var(--color-shadow);
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
header img {
  height: 48px;
  margin-right: 20px;
}
.main-nav {
  display: none;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-secondary);
  margin-right: 20px;
  font-size: 1rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
}
.main-nav a:last-child { margin-right: 0; }
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}

/* Hamburger (mobile-menu-toggle) */
.mobile-menu-toggle {
  display: flex;
}

/* Mobile menu overlay & panel */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(22, 33, 54, 0.97);
  z-index: 999;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.48,.07,.52,.95);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 0 0 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 1011;
  background: var(--color-card);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 90px;
  margin-left: 34px;
}
.mobile-nav a {
  color: var(--color-secondary);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  padding: 8px 0;
  border-left: 4px solid transparent;
  transition: color .17s, border-color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  border-left: 4px solid var(--color-accent);
}

@media (min-width: 1000px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 0;
  }
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 400px) {
  .mobile-nav {
    margin-left: 17px;
  }
}

/* HERO / SECTION GRADIENTS & DECOR ---------------- */
section:first-of-type {
  background: linear-gradient(115deg, #162136 68%, var(--color-primary) 99%);
  box-shadow: 0 6px 36px 0 var(--color-shadow);
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

/* SECTION & CARD LAYOUTS -------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  flex: 1 1 260px;
  background: var(--color-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  margin-bottom: 20px;
  transition: box-shadow .24s, transform .18s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card:hover {
  box-shadow: 0 6px 32px 0 var(--color-neon-blue), var(--shadow);
  transform: translateY(-6px) scale(1.025);
}

/* Content layouts - Mandatory spacing/alignment */
.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;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-neutral);
  color: var(--color-text-dark);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 24px 0 var(--color-shadow);
  font-size: 1.13rem;
  margin-bottom: 20px;
  border-left: 6px solid var(--color-primary);
  transition: border-color .22s, box-shadow .22s;
}
.testimonial-card strong {
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: .04em;
}
.testimonial-card:hover {
  border-left: 6px solid var(--color-accent);
  box-shadow: 0 6px 40px 0 var(--color-neon-blue);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Features icon + content UL (Index & Usługi) ------ */
.content-wrapper ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
  list-style: none;
  margin: 0;
}
.content-wrapper ul li {
  flex: 1 1 220px;
  background: var(--color-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  margin-bottom: 20px;
  transition: background .22s, transform .18s, box-shadow .21s;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
}
.content-wrapper ul li:hover {
  background: var(--color-surface);
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 4px 22px 0 var(--color-neon-blue), var(--shadow);
}
.content-wrapper ul li img {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 6px var(--color-neon-blue));
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .content-wrapper ul, .card-container, .content-grid, .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  section {
    padding: 28px 8px;
  }
}

/* OL LISTS (Method/Steps) --------------------------- */
.content-wrapper ol {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  list-style: none;
  counter-reset: step;
}
.content-wrapper ol li {
  background: var(--color-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 32px 22px 28px 64px;
  position: relative;
  flex: 1 1 250px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  font-size: 1rem;
  transition: box-shadow .18s, transform .16s;
}
.content-wrapper ol li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 32px;
  width: 36px;height: 36px;
  background: var(--color-accent);
  color: #162136;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 2px 12px 0 var(--color-accent-hover);
}
.content-wrapper ol li img {
  margin-right: 16px;
  width: 40px; height: 40px;
  filter: drop-shadow(0 0 5px var(--color-neon-blue));
}
.content-wrapper ol li span {
  color: var(--color-text);
  font-size: 1rem;
}
.content-wrapper ol li:hover {
  box-shadow: 0 6px 30px var(--color-neon-blue);
  transform: translateY(-4px) scale(1.008);
}

/* FAQ ACCORDION ------------------------------------ */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-accordion > div {
  background: var(--color-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  transition: background .19s, box-shadow .20s;
}
.faq-accordion > div:hover {
  background: var(--color-surface);
  box-shadow: 0 2px 30px 0 var(--color-neon-blue), var(--shadow);
}
.faq-accordion strong {
  font-size: 1.13rem;
  color: var(--color-secondary);
}
.faq-accordion p {
  font-size: 1rem;
  color: var(--color-neutral);
  margin-top: 10px;
}

/* FOOTER ------------------------------------------- */
footer {
  background: var(--color-primary-dark);
  color: #e9f2ff;
  padding: 40px 0 16px 0;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  box-shadow: 0 -6px 32px var(--color-shadow);
  margin-top: 80px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: var(--color-secondary);
  font-size: 1rem;
  transition: color .16s;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer-nav a:hover {
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
}
.contact-box {
  font-size: .96rem;
  color: #e9f2ff;
  margin-bottom: 10px;
  max-width: 390px;
  white-space: pre-line;
}
.contact-box strong {
  color: var(--color-accent);
}
@media (max-width: 800px) {
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}

/* COOKIE CONSENT BANNER ---------------------------- */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2010;
  background: var(--color-card);
  color: var(--color-secondary);
  border-radius: 18px;
  box-shadow: 0 4px 38px 0 var(--color-neon-blue);
  padding: 20px 30px 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .34s, transform .25s;
  transform: translateY(30px);
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner h3 {
  font-size: 1.15rem;
  color: var(--color-accent);
  margin-bottom: 6px;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 18px;
  margin-top: 2px;
}
.cookie-banner button {
  border-radius: 1000px;
  font-size: 1rem;
  padding: 10px 18px;
  background: var(--color-accent);
  color: #162136;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .18s, color .17s;
  margin-right: 2px;
}
.cookie-banner button:active,
.cookie-banner button:focus,
.cookie-banner button:hover {
  background: var(--color-neon-blue);
  color: #162136;
}
.cookie-banner .cookie-settings-btn {
  background: var(--color-secondary);
  color: #271e23;
}
.cookie-banner .cookie-settings-btn:hover {
  background: var(--color-accent-hover);
  color: #162136;
}

/* COOKIE MODAL ------------------------------------- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(30,45,77,0.97);
  z-index: 2012;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--color-neutral);
  color: var(--color-text-dark);
  border-radius: 24px;
  min-width: 320px;
  max-width: 430px;
  box-shadow: 0 18px 80px 0 var(--color-neon-blue);
  padding: 28px 32px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1rem;
  position: relative;
  animation: fadeInUp .38s cubic-bezier(.32,1.12,.54,.85);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(48px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-modal h3 {
  font-size: 1.13rem;
  color: var(--color-accent);
  text-shadow: 0 0 10px var(--color-accent);
}
.cookie-modal .cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
}
.cookie-modal .cookie-category label {
  font-weight: 600;
}
.cookie-modal .cookie-toggle {
  width: 48px; height: 28px;
  border-radius: 16px;
  background: var(--color-secondary);
  position: relative;
  display: flex;
  align-items: center;
  transition: background .21s;
  cursor: pointer;
  margin-left: 8px;
}
.cookie-modal .cookie-toggle input {
  display: none;
}
.cookie-modal .toggle-slider {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  position: absolute;
  left: 2px; top: 2px;
  transition: left .23s cubic-bezier(.41,.9,.64,1.47);
}
.cookie-modal .cookie-toggle input:checked + .toggle-slider {
  background: var(--color-accent);
  left: 22px;
}
.cookie-modal .cookie-modal-btns {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}
.cookie-modal .cookie-modal-btns button {
  border-radius: 1000px;
  font-size: 1rem;
  padding: 8px 17px;
  background: var(--color-accent);
  color: #162136;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .17s, color .15s;
}
.cookie-modal .cookie-modal-btns button:active,
.cookie-modal .cookie-modal-btns button:focus,
.cookie-modal .cookie-modal-btns button:hover {
  background: var(--color-neon-blue);
  color: #162136;
}
.cookie-modal .close-modal-btn {
  background: none;
  color: var(--color-primary);
  font-size: 1.5rem;
  border-radius: 50%;
  padding: 0 8px;
  position: absolute;
  right: 12px;
  top: 11px;
  cursor: pointer;
  border: none;
  font-weight: bold;
  transition: color .14s, background .14s;
}
.cookie-modal .close-modal-btn:hover { color: var(--color-neon-blue); }

@media (max-width: 560px) {
  .cookie-modal {
    min-width: 220px;
    max-width: 95vw;
    padding: 20px 10px 20px 12px;
  }
  .cookie-banner {
    left: 10px; right: 10px; padding: 18px 10px;
  }
}

/* UTILITIES & MICRO-INTERACTIONS ------------------- */
::-webkit-scrollbar { width: 8px; background: #192133; }
::-webkit-scrollbar-thumb { background: #313f59; border-radius: 8px; }
::selection { background: var(--color-accent-hover); color: var(--color-text-dark); }

@media (max-width: 480px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.18rem; }
  section { padding: 12px 2vw; }
}

/* FORM ELEMENTS (newsletter input) ------------------- */
input[type="email"], input[type="text"], textarea {
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--color-neutral);
  border: 1.5px solid var(--color-secondary);
  font-size: 1rem;
  font-family: var(--font-body);
  margin-right: 16px;
  margin-bottom: 10px;
  color: var(--color-primary-dark);
  transition: border-color .18s, box-shadow .21s;
  outline: none;
}
input:focus, textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 7px 0 var(--color-neon-blue);
}
label {
  font-family: var(--font-body);
  color: var(--color-secondary);
  font-size: 1rem;
  margin-bottom: 4px;
  display: block;
}

/* CARD & SPACING MANDATORY CLASSES ------------------ */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}


/* ANIMATIONS -------------------------------------- */
.cta-btn,
.card,
.content-wrapper ul li,
.content-wrapper ol li,
.testimonial-card,
.faq-accordion > div {
  transition: box-shadow .22s, transform .17s, background .18s, border-color .13s;
}
.cta-btn:active {
  transform: scale(0.98);
}

/* MISC -------------------------------------------- */
hr {
  border: 0; height: 1.5px;
  color: var(--color-secondary);
  background: var(--color-secondary);
  margin: 32px 0;
}

/* Z-INDEXS ---------------------------------------- */
header { z-index: 1001; }
.mobile-menu, .mobile-menu.open { z-index: 1010; }
.cookie-banner { z-index: 2010; }
.cookie-modal-overlay { z-index: 2012; }

/* PREVENT OVERLAPPING ----------------------------- */
section, .card, .content-wrapper ul li, .testimonial-card, .faq-accordion > div {
  margin-bottom: 20px;
}
/* ATOMIC SPACING UTILITIES (optional) */
.mb-32 { margin-bottom: 32px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mt-24 { margin-top: 24px !important; }

/* END --------------------------------------------- */