/* -------------------------------------
   CSS RESET + BASE NORMALIZE (flexbox-safe)
-------------------------------------- */
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;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #f5f7fa;
  color: #263271;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 16px;
}

*, *:before, *:after {
  box-sizing: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #263271;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover, a:focus {
  color: #4556a6;
  outline: none;
}

ul, ol {
  list-style: none;
  padding-left: 0;
}

/* -- Typography -- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #263271;
}
h1 { font-size: 2.75rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.4rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.1rem; }

p, .text-section, .client-name {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #263271;
}
strong, b {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #263271;
}

.text-section {
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
  p, .text-section, .client-name { font-size: 0.95rem; }
}


/* -- Layout Containers -- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(38, 50, 113, 0.10);
  margin-bottom: 20px;
  position: relative;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.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: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(38, 50, 113, 0.13);
  margin-bottom: 24px;
  min-width: 260px;
  max-width: 420px;
  border: 2px solid #C1CEFE;
}

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

/* HERO SECTION */
.hero {
  background: #263271;
  color: #fff;
  padding: 70px 0 60px 0;
  position: relative;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
  z-index: 2;
}
.hero h1, .hero p { color: #fff; }
.hero .btn-primary { margin-top: 20px; }

@media (max-width:768px) {
  .hero { padding: 48px 0 40px 0; }
  .hero .content-wrapper { gap: 10px; }
}

/* FEATURE-GRID/FEATURE-LIST */
.feature-grid, .feature-list, .guide-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.feature-grid li, .feature-list li, .guide-list li {
  background: #fff;
  border: 2px solid #C1CEFE;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(38, 50, 113, 0.06);
  flex: 1 1 200px;
  padding: 22px 16px;
  min-width: 230px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.feature-grid img {
  width: 40px; height: 40px; margin-bottom: 8px;
}

/* SERVICE-LIST */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.service-list > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(38, 50, 113, 0.07);
  flex: 1 1 270px;
  min-width: 230px;
  max-width: 320px;
  padding: 26px 18px 26px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 2px solid #e4eaff;
  position: relative;
  transition: box-shadow 0.18s;
}
.service-list > div img {
  width: 48px; height: 48px; margin-bottom: 12px;
}
.service-list > div:hover {
  box-shadow: 0 6px 26px rgba(38, 50, 113, 0.17);
  border-color: #263271;
  z-index: 1;
}
.service-price {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #263271;
  background: #C1CEFE;
  border-radius: 8px;
  padding: 6px 12px;
  margin-bottom: 8px;
  display: inline-block;
}

@media (max-width:1024px) {
  .feature-grid, .feature-list, .guide-list, .service-list {
    gap: 14px;
  }
}

@media (max-width:768px) {
  .feature-grid li, .feature-list li, .guide-list li, .service-list > div {
    min-width: 120px;
    max-width: 100%;
    flex: 1 1 100%;
  }
  .service-list {
    flex-direction: column;
  }
  .feature-grid, .feature-list, .guide-list {
    flex-direction: column;
    gap: 16px;
  }
}

/* CTA SECTION */
.cta-section {
  background: #C1CEFE;
  text-align: center;
  padding: 50px 0;
  border-radius: 20px;
  margin-bottom: 40px;
}
.cta-section .content-wrapper {
  align-items: center;
  gap: 18px;
}
.cta-section h2 {
  color: #263271;
}

@media (max-width: 768px) {
  .cta-section { padding: 32px 0; }
}


/* PROJECT-LIST (realizacje.html) */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.project-list li {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 10px 0 rgba(38, 50, 113, 0.09);
  padding: 24px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.project-results {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #263271;
  background: #C1CEFE;
  border-radius: 6px;
  padding: 5px 10px;
  display: inline-block;
  margin-top: 8px;
}

/* TESTIMONIAL SLIDER (/) */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-slider .testimonial-card {
  min-width: 220px;
  flex: 1 1 260px;
}
.client-name {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #263271;
  font-size: 1rem;
}

@media (max-width:768px) {
  .testimonial-slider { flex-direction: column; gap: 16px; }
  .testimonial-slider .testimonial-card { min-width: 160px; }
}

/* PRICING TABLE */
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 2px 17px rgba(38, 50, 113,0.07);
}
.pricing-table th,
.pricing-table td {
  padding: 20px 14px;
  text-align: left;
  font-size: 1rem;
}
.pricing-table th {
  background: #263271;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
}
.pricing-table tr {
  border-bottom: 1px solid #e4eaff;
}
.pricing-table tr:last-child { border-bottom: none; }

@media (max-width:600px) {
  .pricing-table th, .pricing-table td { padding: 10px 6px; font-size: 0.92rem; }
}

/* ------------- BUTTONS ------------- */
.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  padding: 14px 34px;
  transition: background 0.19s, color 0.17s, box-shadow 0.17s;
  text-align: center;
  margin-right: 8px;
  margin-bottom: 12px;
  box-shadow: 0 2px 9px rgba(38,50,113,0.09);
  letter-spacing: 0.01em;
}
.btn-primary {
  background: #263271;
  color: #fff;
  border: 2px solid #263271;
}
.btn-primary:hover, .btn-primary:focus {
  background: #1b244b;
  color: #C1CEFE;
}
.btn-secondary {
  background: #C1CEFE;
  color: #263271;
  border: 2px solid #C1CEFE;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #fff;
  color: #263271;
  border-color: #263271;
}


/* ------------------ HEADER NAV ---------------- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 10px rgba(38,50,113,0.07);
  position: relative;
  z-index: 1000;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
header nav > a img {
  height: 36px;
}
header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}
header nav ul li a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #263271;
  padding: 7px 12px;
  border-radius: 6px;
  transition: background 0.18s, color 0.15s;
}
header nav ul li a:hover, header nav ul li a:focus {
  background: #C1CEFE;
  color: #263271;
}

header .btn-primary {
  margin-right: 0;
  font-size: 1rem;
  padding: 12px 30px;
}

header .mobile-menu-toggle {
  display: none;
  background: #263271;
  color: #fff;
  padding: 9px 18px;
  font-size: 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  margin-left: 14px;
  z-index: 1101;
}
header .mobile-menu-toggle:focus, header .mobile-menu-toggle:hover {
  background: #4556a6;
}

@media (max-width:1000px) {
  .container { padding-left: 10px; padding-right: 10px; }
}
@media (max-width:900px) {
  header nav ul {
    gap: 11px;
  }
}

@media (max-width: 850px) {
  header nav ul, header .btn-primary {
    display: none;
  }
  header .mobile-menu-toggle {
    display: block;
  }
}

/* ----------- MOBILE MENU ------------- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #263271;
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.6,.09,.44,1.15);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #C1CEFE;
  color: #263271;
  border: none;
  font-size: 2.5rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border-radius: 10px;
  position: absolute;
  top: 20px;
  right: 22px;
  z-index: 2050;
  padding: 2px 18px 2px 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.17s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #fff;
  color: #1b244b;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 84px;
  margin-left: 34px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
  background: none;
  padding: 10px 2px 10px 0;
  border-radius: 0 18px 18px 0;
  transition: background 0.18s, color 0.16s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #C1CEFE;
  color: #263271;
}
@media (min-width: 851px) {
  .mobile-menu { display: none !important; }
}

/* ----------- FOOTER ------------- */
footer {
  background: #263271;
  color: #fff;
  width: 100%;
  padding: 0;
  margin-top: 32px;
  border-radius: 22px 22px 0 0;
}
footer>.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 10px 18px 10px;
}
footer nav, footer .text-section {
  color: #C1CEFE;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  text-align: center;
}
footer nav a {
  color: #C1CEFE;
  margin: 0 8px;
  transition: color .15s;
  font-weight: bold;
  font-size: 1rem;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
  text-decoration: underline;
}
footer .text-section span {
  margin-right: 7px;
}
footer img {
  height: 38px;
  margin-bottom: 7px;
}

@media (max-width:700px) {
  footer>.container {
    padding: 30px 3px 12px 3px;
    gap: 13px;
  }
  footer .text-section { font-size: 0.93rem; }
}

/* ----------- TEXT-IMAGE, ETC ----------- */
@media (max-width:768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ----------- COOKIE CONSENT BANNER ------------- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #263271;
  color: #fff;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 10px 22px 10px;
  box-shadow: 0 -2px 15px rgba(38,50,113,0.15);
  align-items: center;
  transition: transform 0.25s, opacity 0.24s;
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(80px);
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.btn-cookie-consent, .btn-cookie-settings, .btn-cookie-reject {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border-radius: 7px;
  border: none;
  font-size: .98rem;
  cursor: pointer;
  padding: 10px 22px;
  margin-right: 5px;
  transition: background 0.18s, color 0.17s;
  margin-bottom: 0;
}
.btn-cookie-consent {
  background: #C1CEFE;
  color: #263271;
}
.btn-cookie-consent:hover, .btn-cookie-consent:focus {
  background: #fff;
  color: #263271;
}
.btn-cookie-settings {
  background: #fff;
  border: 2px solid #C1CEFE;
  color: #263271;
}
.btn-cookie-settings:hover, .btn-cookie-settings:focus {
  background: #C1CEFE;
  color: #263271;
}
.btn-cookie-reject {
  background: #263271;
  color: #fff;
  border: 2px solid #C1CEFE;
}
.btn-cookie-reject:hover, .btn-cookie-reject:focus {
  background: #fff;
  color: #263271;
}

/* --- Cookie Modal Preferences ---- */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(38,50,113,0.82);
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: #263271;
  border-radius: 24px;
  min-width: 310px;
  max-width: 96vw;
  width: 410px;
  padding: 38px 26px 22px 26px;
  box-shadow: 0 7px 38px rgba(38,50,113,0.20);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  z-index: 3550;
  text-align: left;
}
.cookie-modal-title {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 5px;
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 20px;
  background: #C1CEFE;
  border: none;
  border-radius: 7px;
  font-size: 1.5rem;
  color: #263271;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  padding: 2px 13px 2px 9px;
  transition: background .15s, color .17s;
}
.cookie-modal-close:hover,.cookie-modal-close:focus {
  background: #263271;
  color: #fff;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-category label {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
}
.cookie-toggle {
  appearance: none;
  width: 36px;
  height: 22px;
  background: #C1CEFE;
  border-radius: 11px;
  position: relative;
  outline: none;
  transition: background 0.17s;
  margin-right: 6px;
}
.cookie-toggle:checked {
  background: #263271;
}
.cookie-toggle:before {
  content:'';
  display: block;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 5px;
  transition: left 0.17s;
}
.cookie-toggle:checked:before {
  left: 15px;
  background: #C1CEFE;
}
.cookie-category input[disabled],
.cookie-toggle[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

@media (max-width:500px) {
  .cookie-modal {
    min-width: 0;
    width: 97vw;
    padding: 24px 10px 14px 10px;
  }
}

/* --------- UTILITY CLASSES --------- */
.gap-20 {gap:20px;}
.gap-24{gap:24px}
.mt-16{margin-top:16px}
.mb-32{margin-bottom:32px}
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.topic-tag {
  background: #263271;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border-radius: 7px;
  padding: 2px 10px 2px 10px;
  font-size: 0.94rem;
  margin-left: 6px;
}

/* ------- TABLES (cennik.html) ------ */
.table-responsive { overflow-x: auto; }

/* -------- MICRO-INTERACTIONS --------- */
.btn-primary, .btn-secondary, .mobile-menu-toggle, .mobile-menu-close, .cookie-modal-close,
.btn-cookie-consent, .btn-cookie-settings, .btn-cookie-reject {
  outline: none;
  position: relative;
}
.btn-primary:active, .btn-secondary:active, .mobile-menu-toggle:active, .mobile-menu-close:active, .cookie-modal-close:active {
  top: 2px;
}
button:focus-visible, a:focus-visible {
  box-shadow: 0 0 0 2px #C1CEFE;
  outline: none;
}

/* ---- HIGHLIGHTED CODE (if any in poradnik) ---- */
pre, code {
  background: #C1CEFE;
  color: #263271;
  border-radius: 6px;
  padding: 3px 8px;
  font-family: 'Fira Mono', monospace, 'Open Sans', Arial;
  font-size: 95%;
  margin-bottom: 3px;
}

/* --------- OVERRIDES FOR CONTENT ------- */
.text-section ul, .content-wrapper ul {
  padding-left: 24px;
  margin-bottom: 15px;
}
.text-section ul ul {
  padding-left: 19px;
  margin-bottom: 0;
}
.text-section li {
  margin-bottom: 7px;
  font-size: 1rem;
}
@media (max-width:600px) {
  .text-section ul, .content-wrapper ul { padding-left: 12px; }
}

/* ------------- ACCESSIBILITY ------------- */
:focus {
  outline: none;
}

/* ----------- END OF CSS ------------- */
