/* ===========================
   CSS RESET & NORMALIZE RULES
   =========================== */
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, menu, 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,
main, 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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, main {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #fff;
  color: #174574;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  background: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  padding: 0;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid #EEC659;
}

/* ===========
  BRAND FONTS
  =========== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F7F9FB;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  color: #174574;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 700;
}

p, li, ul, ol {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #174574;
  margin-bottom: 10px;
}
strong, b {
  font-weight: 700;
}

.subheadline {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
  color: #174574;
  margin-bottom: 28px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(23,69,116,0.10);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-section, .text-image-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-image-section {
  flex-direction: row;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

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

.card-container, .content-grid, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(23,69,116,0.10);
  background: #fff;
  overflow: hidden;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  gap: 15px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F5F8FA;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(23,69,116,0.06);
  padding: 28px 20px 24px 20px;
  flex: 1 1 300px;
  min-width: 240px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s cubic-bezier(.4,0,.2,1), transform 0.17s cubic-bezier(.4,0,.2,1);
}
.feature-item:hover {
  box-shadow: 0 8px 32px rgba(23,69,116,.13);
  transform: translateY(-2px) scale(1.025);
}
.feature-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}
.service-price {
  background: #EEC659;
  color: #174574;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 8px;
  padding: 4px 16px;
  margin-top: 8px;
  letter-spacing: 0.5px;
}

/* =============
   HEADER & NAV
   ============= */
header {
  width: 100%;
  background: #174574;
  box-shadow: 0 2px 16px rgba(23,69,116,0.10);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
header img {
  height: 48px;
  width: auto;
}
nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 4px 0;
  transition: color .18s cubic-bezier(.7,.2,.3,1);
}
nav a:hover, nav a:focus {
  color: #EEC659;
}
.cta-button {
  background: #EEC659;
  color: #174574;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 13px 30px;
  border-radius: 100px;
  box-shadow: 0 2px 10px rgba(23,69,116,0.08);
  transition: background 0.18s cubic-bezier(.7,.2,.3,1), color 0.18s cubic-bezier(.7,.2,.3,1);
  margin-left: 32px;
  cursor: pointer;
  border: none;
  outline: none;
  letter-spacing: 1px;
}
.cta-button:hover, .cta-button:focus {
  background: #174574;
  color: #FFF;
}

/* ========
  HERO
  ======== */
.hero {
  background: linear-gradient(120deg, #B8CADD 0%, #fff 100%);
  min-height: 360px;
  display: flex;
  align-items: center;
  padding: 56px 0 44px 0;
}
.hero .container {
  justify-content: center;
}
.hero .content-wrapper {
  max-width: 650px;
  background: rgba(255,255,255,0.92);
  border-radius: 24px;
  padding: 32px 30px;
  box-shadow: 0 8px 44px rgba(23,69,116,0.08);
}
@media (max-width: 600px) {
  .hero .content-wrapper {
    padding: 18px 8px;
  }
  .hero {
    padding: 30px 0 20px 0;
  }
}
.hero h1 {
  color: #174574;
  font-size: 2.3rem;
  line-height: 1.18;
  margin-bottom: 18px;
}

/* =============
   ARTICLE PREVIEW (BLOG)
   ============= */
.article-preview {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(23,69,116,0.07);
  padding: 24px 22px;
  flex: 1 1 310px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  margin-bottom: 20px;
  transition: box-shadow .21s cubic-bezier(.4,0,.2,1), transform .17s;
}
.article-preview:hover {
  box-shadow: 0 7px 28px rgba(23,69,116,0.15);
  transform: translateY(-3px) scale(1.025);
}
.tags {
  background: #EEC659;
  color: #174574;
  font-size: 0.91rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 4px 14px;
  align-self: flex-start;
}

/* ================
  TESTIMONIAL CARDS
  ================ */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 20px rgba(23,69,116,0.10);
  padding: 32px 30px;
  margin-bottom: 20px;
  max-width: 490px;
  transition: box-shadow 0.15s, transform 0.13s;
  position: relative;
}
.testimonial-card p {
  color: #174574;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.6;
}
.client-name {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.04rem;
  color: #174574;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-top: 4px;
}
.testimonial-card:before {
  content: "\201C";
  color: #EEC659;
  font-size: 4rem;
  font-family: 'Montserrat', Arial, sans-serif;
  position: absolute;
  left: 24px;
  top: 18px;
  opacity: .16;
  pointer-events: none;
}
@media (max-width: 768px) {
  .testimonial-card {
    padding: 20px 14px;
  }
  .testimonial-card:before {
    left: 8px;
    top: 4px;
    font-size: 2.6rem;
  }
}

/* ===============
   CTA SECTION
   =============== */
.cta-section {
  background: #174574;
  color: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 28px rgba(23,69,116,0.13);
  margin: 40px 0 0 0;
  padding: 44px 0;
  text-align: center;
}
.cta-section .container {
  align-items: center;
  justify-content: center;
}
.cta-section h2, .cta-section p {
  color: #fff;
}
.cta-section .cta-button {
  background: #EEC659;
  color: #174574;
  margin-top: 18px;
  box-shadow: 0 3px 20px rgba(238,198,89,0.29);
}
.cta-section .cta-button:hover {
  background: #fff;
  color: #174574;
}

/* ===============
   FOOTER
   =============== */
footer {
  background: #174574;
  color: #fff;
  border-top: 8px solid #EEC659;
  padding: 40px 0 27px 0;
  font-size: 1rem;
}
footer .container {
  gap: 18px;
  align-items: flex-start;
}
.footer-nav, .footer-legal, .footer-info {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-legal {
  font-size: 0.95rem;
  color: #B8CADD;
  margin-bottom: 7px;
}
.footer-nav a,
.footer-legal a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  opacity: .92;
  transition: color 0.15s, opacity 0.15s;
}
.footer-nav a:hover,
.footer-legal a:hover {
  color: #EEC659;
  opacity: 1;
}
.footer-info {
  color: #B8CADD;
  font-size: 0.97rem;
  gap: 14px;
}

/* ================================
   MAP PLACEHOLDER (Contact Page)
   ================================ */
.map-placeholder {
  width: 100%;
  max-width: 480px;
  min-height: 220px;
  background: #B8CADD url('../assets/icons/map.svg') no-repeat center center/contain;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-placeholder img {
  width: 70%;
  height: auto;
}

/* ================
   MOBILE MENU
   ================ */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: #EEC659;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  z-index: 101;
  margin-left: 14px;
}
@media (max-width: 1024px) {
  nav {
    display: none;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #174574;
  color: #fff;
  z-index: 120;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.7,.2,.3,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0;
  box-shadow: 2px 0 30px rgba(23,69,116,0.22);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #EEC659;
  font-size: 2.2rem;
  border: none;
  cursor: pointer;
  margin: 28px 28px 12px 0;
  z-index: 122;
  transition: color 0.2s;
}
.mobile-menu-close:hover {
  color: #FFF;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100vw;
  align-items: flex-start;
  margin-top: 18px;
  padding-left: 36px;
}
.mobile-nav a {
  color: #EEC659;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.32rem;
  font-weight: 700;
  padding: 8px 0;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  min-width: 90vw;
}
.mobile-nav a:hover {
  background: #EEC659;
  color: #174574;
}

/* ====================
   COOKIE CONSENT BANNER
   ==================== */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  z-index: 130;
  background: #174574;
  color: #fff;
  padding: 22px 16px 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  box-shadow: 0 -2px 18px rgba(23,69,116,0.23);
  animation: slideUp 0.28s cubic-bezier(.36,.33,.62,.73);
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cookie-banner .cookie-text {
  color: #fff;
  font-size: 1.05rem;
  max-width: 700px;
  line-height: 1.55;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  width: 100%;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 100px;
  border: none;
  background: #EEC659;
  color: #174574;
  padding: 11px 28px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.19s cubic-bezier(.6,0,.38,1), color 0.19s cubic-bezier(.6,0,.38,1);
  box-shadow: 0 1px 7px rgba(238,198,89,0.10);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #fff;
  color: #174574;
}
.cookie-banner .cookie-settings-btn {
  background: #fff;
  color: #174574;
  border: 2px solid #EEC659;
  padding: 11px 22px;
}
.cookie-banner .cookie-settings-btn:hover {
  background: #EEC659;
  color: #174574;
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23, 69, 116, 0.71);
  z-index: 140;
  display: none;
  justify-content: center;
  align-items: center;
}
.cookie-modal-overlay.open {
  display: flex;
  animation: fade-in-modal 0.18s cubic-bezier(.2,.5,.36,1);
}
@keyframes fade-in-modal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  padding: 36px 34px;
  border-radius: 18px;
  box-shadow: 0 2px 34px rgba(23,69,116,0.20);
  width: 90vw;
  max-width: 460px;
  color: #174574;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  animation: modal-slide-in 0.28s cubic-bezier(.36,.33,.62,.73);
}
@keyframes modal-slide-in {
  from {
    opacity: 0;
    transform: translateY(48px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.cookie-modal h2 {
  font-size: 1.35rem;
  font-weight: 800;
  padding-bottom: 6px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: #174574;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 151;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 13px;
}
.cookie-modal label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  font-weight: 700;
  color: #174574;
  cursor: pointer;
  min-width: 170px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #EEC659;
  width: 22px; height: 22px;
  margin-right: 16px;
}
.cookie-modal .cookie-category.essential label {
  color: #b3ac51;
}
.cookie-modal .cookie-category.essential input[type="checkbox"] {
  display: none;
}
.cookie-modal .cookie-category.essential::after {
  content: "(wymagane)";
  font-size: 0.97rem;
  color: #b3ac51;
  margin-left: 7px;
}
.cookie-modal-save {
  display: flex;
  gap: 18px;
  flex-direction: row;
  margin-top: 10px;
}
.cookie-modal-save button {
  background: #EEC659;
  color: #174574;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 100px;
  transition: background 0.19s, color 0.19s;
}
.cookie-modal-save button:hover {
  background: #174574;
  color: #fff;
}

/* ===================
   GENERAL SPACING, GAPS
   =================== */
.card-container {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  gap: 30px;
  align-items: center;
}
.testimonial-card {
  padding: 20px;
  gap: 20px;
}
.feature-item {
  gap: 15px;
  margin-bottom: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ==========
   RESPONSIVE
   ========== */
@media (max-width: 1024px) {
  .container {
    max-width: 97vw;
    padding: 0 8px;
  }
  .feature-item {
    min-width: 160px;
    padding: 20px 10px 16px 10px;
  }
  .card-content {
    padding: 13px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.65rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  .section {
    margin-bottom: 40px;
    padding: 22px 3px;
  }
  .card-container,
  .content-grid,
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .footer-nav, .footer-legal, .footer-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .map-placeholder {
    min-height: 140px;
    border-radius: 10px;
  }
  .cta-section {
    padding: 30px 0;
  }
  .cookie-banner {
    padding: 14px 4px 17px 4px;
    font-size: .97rem;
  }
  .cookie-modal {
    padding: 22px 8px;
    gap: 19px;
  }
}

/* ============
   ANIMATIONS
   ============ */
.cta-button, .feature-item, .article-preview, .testimonial-card {
  transition: box-shadow 0.18s, background 0.18s, transform 0.15s;
}
.cta-button:focus {
  box-shadow: 0 0 0 2.5px #EEC659;
}
.card:hover,
.article-preview:hover,
.feature-item:hover,
.testimonial-card:hover {
  box-shadow: 0 12px 32px rgba(23,69,116,0.12);
  transform: translateY(-2px) scale(1.015);
}

/* Hide scroll for mobile menu when open */
body.menu-open {
  overflow: hidden;
}

/* =============
   UTILITY CLASSES
   ============= */
.d-none { display: none !important; }
.text-center { text-align: center; }

/* ===============
 ENFORCE FLEXBOX
 =============== */
/* Forbid display: grid, grid-*, columns */
/* All layout containers in this CSS are flex-based */
