/* === CSS RESET AND NORMALIZATION === */
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,
b, 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;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.4;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  background: #151E25;
  color: #F2F6F8;
  -webkit-font-smoothing: antialiased;
}
ul, ol { list-style: none; }
a { text-decoration: none; background: transparent; color: inherit; }
img { border-style: none; max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; background: none; border: none; outline: none; }

/* === ROOT COLOR VARIABLES FOR BRAND & FUTURISTIC ACCENTS === */
:root {
  --primary: #1A4D70;
  --primary-dark: #162c41;
  --secondary: #E8EDF1;
  --bg-main: #151E25;
  --bg-elevated: #1F2934;
  --card-bg: #212C3C;
  --accent: #EA7232;
  --accent-neon: #FF9D54;
  --accent-glow: rgba(234, 114, 50, 0.20);
  --neutral: #A9BACB;
  --white: #FFFFFF;
  --black: #151E25;
  --shadow-main: 0 4px 24px 0 rgba(26, 77, 112, 0.10), 0 1.5px 12px 0 rgba(0,0,0,0.09);
}

/* === TYPOGRAPHY - DISPLAY AND BODY FONT STYLES === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1.18;
}
h1 { font-size: 2.2rem; margin-bottom: 16px; }
h2 { font-size: 1.7rem; margin-bottom: 12px; }
h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
h4, h5, h6 { font-size: 1rem; font-weight: 500; }
@media (min-width: 600px) {
  h1 { font-size: 2.7rem; }
  h2 { font-size: 2.0rem; }
  h3 { font-size: 1.2rem; }
}

body, p, li, ul, ol, button, input, select, textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--secondary);
}
p { margin-bottom: 10px; }

strong, b { color: var(--accent); font-weight: 600; }

/* === GENERAL LAYOUT CONTAINER === */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}

/* === SPACING AND ALIGNMENT PATTERNS (MANDATORY) === */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: var(--shadow-main);
  transition: box-shadow 0.24s, transform 0.12s;
}
.card:hover {
  box-shadow: 0 0 40px 0 var(--accent-glow), 0 6px 30px 0 rgba(26,77,112,0.12);
  transform: translateY(-2px) scale(1.02);
}
.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: flex-start;
  gap: 20px;
  padding: 20px;
  background-color: #F5FBFF;
  color: #1A4D70;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(26,77,112,0.07);
  margin-bottom: 20px;
  min-width: 235px;
  max-width: 315px;
  transition: box-shadow 0.2s, border 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 0 16px 0 var(--accent-glow), 0 8px 24px rgba(234,114,50,0.07);
  border: 1.5px solid var(--accent);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- Utility Content Wrapper --- */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* === HEADER & NAVIGATION (BURGER, NAV-CONTAINER) === */
header {
  width: 100%;
  background: var(--bg-main);
  box-shadow: 0 4px 18px 0 rgba(18,37,46,0.07);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 18px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.17s,background 0.17s,box-shadow 0.18s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--accent);
  background: rgba(234, 114, 50, 0.09);
  text-shadow: 0 0 6px var(--accent-neon);
}

.cta-btn {
  background: linear-gradient(90deg, var(--accent) 80%, var(--accent-neon) 100%);
  color: var(--white) !important;
  border-radius: 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 12px 32px;
  font-size: 1.07rem;
  letter-spacing: 0.03em;
  box-shadow: 0 0 18px 0 var(--accent-glow);
  border: none;
  cursor: pointer;
  transition: background 0.13s,transform 0.15s,box-shadow 0.18s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, var(--accent-neon) 80%, var(--accent) 100%);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 24px 0 var(--accent-glow), 0 8px 20px 0 rgba(234,114,50,0.07);
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  font-size: 2rem;
  background: none;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 16px;
  cursor: pointer;
  transition: box-shadow 0.15s, background 0.12s, color 0.13s;
  z-index: 30;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--accent-glow);
  box-shadow: 0 0 8px 0 var(--accent-glow);
}

/* Hide mobile menu toggle on desktop */
@media (min-width: 1020px) {
  .mobile-menu-toggle { display: none; }
}

/* === MOBILE MENU (BURGER NAVIGATION) === */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26, 77, 112, 0.98);
  z-index: 1002;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.65,0,.10,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  box-shadow: 0 0 32px 0 var(--accent-glow);
}
.mobile-menu-close {
  font-size: 2rem;
  background: none;
  color: var(--accent);
  align-self: flex-end;
  margin: 24px 22px 12px 0;
  border: 2px solid var(--accent);
  border-radius: 10px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1010;
  transition: background 0.13s, color 0.15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--accent-glow);
  color: var(--white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 30px;
  align-items: flex-start;
  width: 90vw;
  max-width: 420px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  padding: 12px 8px;
  border-radius: 5px;
  width: 100%;
  transition: background 0.14s, color 0.13s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--accent);
  color: var(--white);
}

/* Hide main-nav and cta-btn on mobile */
@media (max-width: 1019px) {
  .main-nav { display: none !important; }
  .cta-btn { display: none !important; }
}
/* Hide mobile-menu by default on desktop */
@media (min-width: 1020px) {
  .mobile-menu { display: none !important; }
}

/* === HERO & GENERAL SECTIONS === */
section, .section {
  width: 100%;
}
h1, h2 {
  text-shadow: 0 1.5px 10px rgba(26, 77, 112, 0.12);
}

/* === FEATURES & CONTENT GRIDS === */
.feature-grid,
.services-list,
.developers-list,
.testimonial-grid,
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
@media (max-width: 900px) {
  .feature-grid,
  .services-list,
  .developers-list,
  .testimonial-grid,
  .faq-list {
    flex-direction: column;
    gap: 20px;
  }
}
.feature-grid > div, .services-list > div, .developers-list > div, .faq-list > div {
  flex: 1 1 250px;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: var(--shadow-main);
  min-width: 215px;
  min-height: 210px;
  transition: box-shadow 0.18s, border 0.18s;
  border: 1.2px solid transparent;
  margin-bottom: 20px;
}
.feature-grid > div:hover, .services-list > div:hover, .developers-list > div:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px 0 var(--accent-glow), 0 8px 20px 0 rgba(234,114,50,0.09);
}
.feature-grid img, .services-list img, .developers-list img {
  margin-bottom: 14px;
  width: 40px;
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

/* Testimonials distinct card style */
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.testimonials-slider {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 22px;
}
@media (max-width: 700px) {
  .testimonials-slider { flex-direction: column; gap: 16px; }
  .testimonial-grid { flex-direction: column; gap: 16px; }
}

.testimonial-card p {
  font-size: 1rem;
  color: #18344D;
  margin-bottom: 10px;
  line-height: 1.35;
}
.testimonial-card span {
  font-size: 0.92rem;
  color: #344B63;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* === STEP-GUIDES, LEGAL, DETAILS, FAQ === */
.feature-stepper ul, .step-guide ol {
  padding-left: 18px;
  margin: 0 0 16px 0;
  color: var(--neutral);
  font-size: 1rem;
}
.feature-stepper ul li, .step-guide ol li {
  margin: 0 0 10px 0;
  padding-left: 0;
}
.legal-text, .details {
  background: var(--card-bg);
  border-radius: 13px;
  padding: 20px 16px;
  color: var(--secondary);
  box-shadow: var(--shadow-main);
  margin-bottom: 24px;
}

/* === CTA SECTION === */
.cta-section {
  background: linear-gradient(90deg, var(--primary-dark) 60%, var(--accent-glow) 100%);
  padding: 60px 0 50px 0;
  margin-bottom: 40px;
}
.cta-section .cta-btn {
  margin-top: 18px;
  box-shadow:0 0 24px 0 var(--accent-glow);
}

/* === FOOTER === */
footer {
  background: var(--primary);
  color: var(--white);
  border-top: 3px solid var(--accent);
  padding: 0 0 22px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  padding: 40px 20px 15px 20px;
  justify-content: space-between;
}
.footer-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--white);
}
.footer-branding img {
  width: 36px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.footer-nav a {
  color: var(--secondary);
  font-size: 1rem;
  text-decoration: underline dotted var(--accent-glow);
  padding: 2px 0;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
}
.footer-contact {
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--secondary);
  margin-top: 4px;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
    text-align: left;
    align-items: flex-start;
  }
}

/* === BUTTONS, FORMS, INTERACTIVE === */
button, .button {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.13s, color 0.14s, box-shadow 0.19s, border 0.13s;
}
.button-accent {
  background: var(--accent);
  color: var(--white);
  padding: 10px 24px;
  font-weight: 600;
  box-shadow: 0 0 6px 0 var(--accent-glow);
}
.button-accent:hover, .button-accent:focus {
  background: var(--accent-neon);
  color: var(--black);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  z-index: 2200;
  left: 0; right: 0; bottom: 0;
  background: var(--primary-dark);
  color: var(--secondary);
  box-shadow: 0 -4px 20px 0 rgba(26,77,112,0.20);
  padding: 24px 16px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100vw;
  transition: transform 0.32s cubic-bezier(.50,0,.04,.97), opacity 0.21s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
}
.cookie-banner .cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 7px;
}
.cookie-banner button {
  padding: 8px 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 7px;
  background: var(--accent);
  color: var(--white);
  border: none;
  margin: 0 3px;
  font-weight: 600;
}
.cookie-banner button.secondary {
  background: var(--neutral);
  color: var(--primary);
}
.cookie-banner button.settings {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--accent-neon);
  color: var(--black);
}

/* --- COOKIE CONSENT MODAL --- */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 2502;
  top: 0; left: 0; right: 0; bottom:0;
  width: 100vw; height: 100vh;
  background: rgba(26, 77, 112, 0.77);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  min-width: 320px;
  max-width: 95vw;
  background: var(--bg-elevated);
  color: var(--secondary);
  border-radius: 22px;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 2510;
  box-shadow: 0 2px 42px 0 rgba(26,77,112,0.13);
  animation: fadeInModal 0.26s cubic-bezier(.38,0,.10,1);
}
@keyframes fadeInModal {
  0% { opacity: 0; transform: scale(0.93); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal h3 {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 12px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 13px;
}
.cookie-modal label {
  font-size: 1rem;
  color: var(--secondary);
  cursor: pointer;
}
.cookie-modal .toggle-switch {
  width: 40px;
  height: 22px;
  border-radius: 16px;
  appearance: none;
  background: var(--neutral);
  transition: background 0.15s;
  position: relative;
  outline: none;
}
.cookie-modal .toggle-switch:checked {
  background: var(--accent);
}
.cookie-modal .toggle-switch::before {
  content: '';
  position: absolute;
  background: var(--white);
  width: 20px; height: 20px;
  border-radius: 50%;
  left: 1px; top: 1px;
  transition: transform 0.13s;
}
.cookie-modal .toggle-switch:checked::before {
  transform: translateX(18px);
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}
.cookie-modal button {
  padding: 9px 26px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 1.02rem;
}
.cookie-modal button.secondary {
  background: var(--neutral);
  color: var(--primary);
}
.cookie-modal button:focus, .cookie-modal button:hover {
  background: var(--accent-neon);
  color: var(--black);
}

/* === MEDIA QUERIES | RESPONSIVE: MOBILE-FIRST === */
@media (max-width: 900px) {
  .nav-container {
    padding-top: 10px; padding-bottom: 10px; gap: 10px;
  }
  .container {
    padding: 0 12px;
  }
  .section, section {
    margin-bottom: 36px; padding: 28px 5px;
  }
  .cta-section { padding: 37px 0 28px 0; }
}
@media (max-width: 768px) {
  .nav-container { flex-direction: row; min-height: 60px; }
  .container { padding: 0 5vw; }
  
  .content-wrapper, .feature-grid, .services-list, .developers-list, .testimonial-grid, .faq-list {
    flex-direction: column;
    gap: 15px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: center;
  }
  .card-container, .content-grid, .testimonials-slider {
    flex-direction: column;
    gap: 15px;
  }
  .cta-btn {
    width: 100%;
    padding: 14px 0;
    justify-content: center;
    text-align: center;
  }
  .footer-branding { font-size: 1rem; }
}

@media (max-width: 540px) {
  body { font-size: 0.97rem; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.12rem; }
  h3 { font-size: 1rem; }
  .content-wrapper, .feature-grid, .services-list, .developers-list, .testimonial-grid {
    gap: 10px;
  }
  .feature-grid > div, .services-list > div, .developers-list > div {
    padding: 14px 10px;
    min-width: 90vw;
  }
  .testimonial-card {
    min-width: 90vw;
    max-width: none;
    padding: 16px 8px;
  }
}

/* === MICRO-INTERACTIONS & DETAILS === */
a, .cta-btn, button, .main-nav a, .footer-nav a {
  transition: color 0.16s, background 0.13s, box-shadow 0.21s, border 0.13s, transform 0.14s;
}
a:active, button:active, .cta-btn:active {
  transform: scale(0.98);
}
h1, h2, .cta-btn, .card, .testimonial-card, .feature-grid > div { 
  transition: box-shadow 0.17s, border 0.17s, background 0.14s;
}

/* Highlight for download link/important actions in step-guide */
.step-guide a {
  display: inline-block;
  color: var(--accent);
  font-size: 1.04rem;
  font-weight: 600;
  background: rgba(234, 114, 50, 0.09);
  padding: 8px 14px;
  border-radius: 6px;
  margin-top: 10px;
  transition: background 0.13s, color 0.15s;
}
.step-guide a:focus, .step-guide a:hover {
  background: var(--accent);
  color: var(--white);
}

/* Info style for 'Formularz kontaktowy' */
.info {
  color: var(--accent);
  font-size: 1.07rem;
  font-weight: 550;
}

/* === MINOR: VISUAL FUTURISTIC ACCENTS (NEON, SHADOWS) === */
.card, .feature-grid > div, .services-list > div, .developers-list > div {
  box-shadow: 0 1px 18px 0 rgba(26,77,112,0.08), 0 0px 24px 0 var(--accent-glow);
  border: 1.2px solid transparent;
}
.card:hover, .feature-grid > div:hover, .services-list > div:hover, .developers-list > div:hover {
  box-shadow: 0 0 40px 0 var(--accent-glow), 0 8px 28px 0 rgba(26,77,112,0.14);
  border-color: var(--accent);
}

/* === ENSURE NO OVERLAP | ADEQUATE PADDING/MARGIN BETWEEN ELEMENTS === */
section, .section, .content-wrapper, .card-container, .content-grid, .testimonial-card, .card, .feature-grid > div, .services-list > div, .developers-list > div, .faq-list > div, .testimonial-card {
  margin-bottom: 20px;
}

/* === FOCUS STATES FOR ACCESSIBILITY === */
a:focus, button:focus {
  outline: 2px solid var(--accent-neon);
  outline-offset: 2px;
}

/* === Z-INDEX SAFETY FOR FIXED/ABSOLUTE ELEMENTS === */
header { z-index: 20; }
.mobile-menu { z-index: 1002; }
.mobile-menu-close { z-index: 1010; }
.cookie-banner { z-index: 2200; }
.cookie-modal-backdrop, .cookie-modal { z-index: 2510; }

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