/* RESET & NORMALIZE */
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.5;
  background: #FAFAFA;
  color: #1A2334;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  color: #3C77C2;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #1A2334;
}
blockquote {
  margin: 0;
  padding: 0;
}
address {
  font-style: normal;
  line-height: 1.7;
  margin-bottom: 16px;
  color: #1A2334;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1A2334;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.18;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
p, ul li, ol li {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #1A2334;
  font-size: 1rem;
  margin-bottom: 14px;
  font-weight: 400;
}
strong {
  font-weight: 700;
}

/* LAYOUT */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(32, 43, 90, 0.10);
  display: flex;
  flex-direction: column;
}

/* HEADER & NAVIGATION */
header {
  background: #1A2334;
  color: #FAFAFA;
  width: 100%;
  padding: 0;
  box-shadow: 0 4px 16px 0 rgba(26,35,52,0.09);
  z-index: 101;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  min-height: 65px;
  position: relative;
}
header nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
header nav a {
  color: #FAFAFA;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 8px 0;
  transition: color 0.2s;
  position: relative;
}
header nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  background: #3C77C2;
  border-radius: 2px;
  transition: width 0.3s;
  margin-top: 3px;
}
header nav a:hover::after, header nav a:focus::after {
  width: 100%;
}
header nav a:hover, header nav a:focus {
  color: #3C77C2;
}
header img {
  height: 46px;
}
.cta-button {
  background: #3C77C2;
  color: #FAFAFA;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  padding: 12px 36px;
  font-size: 1.02rem;
  box-shadow: 0 2px 10px rgba(60,119,194,0.14);
  letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.13s;
  cursor: pointer;
  margin-left: 24px;
  outline: none;
  text-align: center;
  display: inline-block;
  position: relative;
  z-index: 1;
}
.cta-button:hover, .cta-button:focus {
  background: #1A2334;
  color: #FAFAFA;
  box-shadow: 0 4px 18px rgba(60,119,194,0.18);
  transform: translateY(-2px) scale(1.03);
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: #3C77C2;
  color: #FAFAFA;
  border: none;
  border-radius: 6px;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 20px;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #223358;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  background: #1A2334;
  color: #FAFAFA;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.5,1.5,.5,1);
  visibility: hidden;
}
.mobile-menu.active {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.35s cubic-bezier(.5,1.5,.5,1);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #FAFAFA;
  font-size: 2rem;
  position: absolute;
  top: 24px;
  right: 32px;
  z-index: 2100;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #3C77C2;
  color: #fff;
}
.mobile-nav {
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.23rem;
  color: #FAFAFA;
  font-weight: 700;
  padding: 14px 0;
  letter-spacing: 0.02em;
  width: 80vw;
  text-align: center;
  border-radius: 8px;
  transition: background 0.18s, color 0.15s;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: #3C77C2;
  color: #fff;
}

/* Hide nav and cta in header on mobile */
@media (max-width: 1020px) {
  header nav {
    display: none;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* MAIN */
main {
  min-height: 70vh;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 12px;
}

/* FLEXBOX LAYOUTS (MANDATORY) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(60,119,194,0.12);
  display: flex;
  flex-direction: column;
}
.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;
  background: #FAFAFA;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(26,35,52,0.09);
  margin-bottom: 20px;
  margin-top: 12px;
  border: 2px solid #3C77C2;
  max-width: 720px;
}
.testimonial-card blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.14rem;
  font-weight: 600;
  color: #1A2334;
  margin-right: 10px;
}
.testimonial-card footer {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #3C77C2;
  margin-left: 15px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 24px;
}
.service-item {
  flex: 1 1 250px;
  min-width: 260px;
  background: #FAFAFA;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(60,119,194,0.12);
  padding: 28px 24px 22px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  border: 2px solid #3C77C2;
  transition: box-shadow 0.2s, border 0.2s;
}
.service-item:hover, .service-item:focus-within {
  box-shadow: 0 6px 30px rgba(60,119,194,0.15);
  border: 2px solid #1A2334;
}
.service-item h2, .service-item h3 {
  color: #1A2334;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}
.service-price {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  background: #3C77C2;
  color: #fff;
  padding: 7px 15px;
  border-radius: 10px;
  font-weight: 600;
  margin-top: auto;
  display: inline-block;
  align-self: flex-start;
}

/* SPACING AND ALIGNMENT PATTERNS */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}

.spatial-icons {
  display: flex;
  gap: 32px;
  justify-content: flex-start;
  margin: 24px 0 0 0;
}

/* FAQ & ACCORDION */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 30px;
}
.faq-item {
  background: #FAFAFA;
  border-radius: 12px;
  padding: 20px 22px;
  border: 2px solid #3C77C2;
  box-shadow: 0 1px 8px rgba(60,119,194,0.10);
}
.faq-item h2 {
  font-size: 1.13rem;
  margin-bottom: 10px;
  color: #1A2334;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.faq-item p {
  margin: 0;
  font-size: 1rem;
  color: #223358;
}

/* TABLES (CENNIK) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(60,119,194,0.10);
  overflow: hidden;
}
thead th {
  background: #1A2334;
  color: #FAFAFA;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 13px 8px;
  letter-spacing: 0.04em;
  text-align: left;
}
tbody td {
  padding: 13px 8px;
  font-size: 1.02rem;
  border-bottom: 1px solid #e0e0e2;
  color: #23354d;
  font-family: 'Open Sans', Arial, sans-serif;
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr:hover td {
  background: #f5f8fc;
}

/* MAP EMBED INFO */
.map-embed .info {
  background: #1A2334;
  color: #fff;
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 1.02rem;
  margin: 10px 0 0 0;
}

/* FOOTER */
footer {
  background: #1A2334;
  color: #FAFAFA;
  padding: 40px 0 16px 0;
  width: 100%;
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
footer nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
footer nav a {
  color: #FAFAFA;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.13s;
}
footer nav a:hover, footer nav a:focus {
  color: #3C77C2;
}
.footer-copy {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  opacity: 0.8;
}

/* BUTTONS, LINKS & EFFECTS */
button, .cta-button, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.17s, color 0.13s, box-shadow 0.2s;
}
button:active, .cta-button:active {
  transform: scale(0.97);
}
cta-button:focus {
  outline: 2px solid #3C77C2;
  outline-offset: 2px;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1A2334;
  color: #fff;
  width: 100%;
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 12px 26px 12px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  box-shadow: 0 -4px 18px rgba(26,35,52,0.25);
  gap: 26px;
  transition: transform 0.33s, opacity 0.21s;
}
.cookie-banner.hide {
  pointer-events: none;
  opacity: 0;
  transform: translateY(50px);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 11px;
  padding: 10px 22px;
  cursor: pointer;
  margin-left: 0;
  margin-right: 0;
}
.cookie-accept {
  background: #3C77C2;
  color: #fff;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: #2598fb;
}
.cookie-reject {
  background: #fff;
  color: #1A2334;
  border: 1.6px solid #3C77C2;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #f3f7fb;
}
.cookie-settings {
  background: none;
  color: #FAFAFA;
  border: 1.5px solid #3C77C2;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #223358;
  color: #fff;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,35,52,0.81);
  z-index: 4000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.27s;
  pointer-events: auto;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: #1A2334;
  padding: 38px 32px 28px 32px;
  border-radius: 14px;
  box-shadow: 0 8px 36px rgba(60,119,194,0.22);
  min-width: 280px;
  max-width: 96vw;
  font-family: 'Open Sans', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  margin-bottom: 9px;
  color: #1A2334;
  font-weight: 700;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 7px 0;
}
.cookie-category label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #213150;
  cursor: pointer;
}
.cookie-category input[type='checkbox'] {
  accent-color: #3C77C2;
  width: 20px;
  height: 20px;
}
.cookie-category input[disabled] {
  opacity: 0.39;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 15px;
}
.cookie-modal .cookie-accept, .cookie-modal .cookie-reject, .cookie-modal .cookie-settings {
  min-width: 93px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 13px;
  background: none;
  border: none;
  color: #3C77C2;
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #f7f9fa;
}

/* UTILITY */
.centered {
  display: flex;
  align-items: center;
  justify-content: center;
}
.gap-20 {
  gap: 20px;
}
.gap-32 {
  gap: 32px;
}

/* RESPONSIVE (Mobile-First) */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.32rem;
  }
  header .container {
    height: 56px;
    min-height: 47px;
    padding: 0 13px;
  }
  .section {
    margin-bottom: 36px;
    padding: 22px 6px;
  }
  .service-list {
    flex-direction: column;
    gap: 20px;
  }
  .service-item {
    min-width: 0;
    padding: 14px 11px 15px 13px;
  }
  .testimonial-card, .faq-item, .card {
    padding: 13px 9px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    max-width: 99vw;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .spatial-icons {
    gap: 18px;
  }
  .content-wrapper {
    gap: 20px;
  }
  .cookie-modal {
    padding: 17px 6vw 21px 6vw;
    min-width: 96vw;
  }
}

@media (max-width: 450px) {
  .cookie-banner {
    flex-direction: column;
    gap: 15px;
    padding: 20px 3px;
    font-size: 0.97rem;
  }
  .cookie-actions {
    gap: 4vw;
    width: 100%;
    justify-content: center;
  }
  .container {
    padding: 0 6px;
  }
}
