/* ========== CSS 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;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100vh;
  background: #F8F9FA;
  color: #244C6E;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
ol, ul {
  list-style: none;
}
a {
  background-color: transparent;
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
}
input, textarea {
  font-family: inherit;
  font-size: inherit;
  background: #fff;
  border: 1px solid #B5C7D3;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 16px;
}

/* ========== BRAND VARIABLES & BASE TYPO ========== */
:root {
  --primary: #244C6E;
  --secondary: #92B4C8;
  --accent: #F8F9FA;
  --gray-700: #435368;
  --gray-500: #B5C7D3;
  --gray-300: #e7ecf0;
  --cta-shadow: 0 2px 12px 0 rgba(36,76,110,0.10);
}

body {
  background: var(--accent);
  color: var(--primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 14px; }
h4, h5, h6 { font-size: 1.15rem; margin-bottom: 10px; }
.subtitle {
  color: var(--gray-700);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 26px;
}
p, li, ol, ul {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--gray-700);
  font-size: 1rem;
}
strong, b { font-weight: 700; }
.section { margin-bottom: 60px; padding: 40px 20px; background: #fff; border-radius: 18px; box-shadow: 0 6px 36px 0 rgba(36,76,110,0.035); }

/* ========== GENERAL LAYOUTS ========== */
.container {
  width: 100%;
  max-width: 1100px;
  margin-right: auto;
  margin-left: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  box-shadow: 0 4px 18px 0 rgba(36,76,110,0.05);
  border-radius: 14px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 20px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(36,76,110,0.13);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.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;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F8F9FA;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(36,76,110,0.06);
  margin-bottom: 20px;
}
.testimonial-card p {
  margin-bottom: 0;
  color: var(--primary);
  font-size: 1.13rem;
  font-style: italic;
}
.testimonial-card strong {
  color: var(--secondary);
  font-size: 1rem;
  font-weight: 600;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

ul, ol {
  padding-left: 22px;
  margin-bottom: 20px;
}
ul li, ol li {
  margin-bottom: 10px;
  position: relative;
  line-height: 1.6;
}
ul li {
  list-style: disc inside none;
}
ol li {
  list-style: decimal inside none;
}

/* ========== HEADER/BANNER/NAVIGATION ========== */
header {
  background: #fff;
  box-shadow: 0 3px 16px 0 rgba(36,76,110,0.07);
  padding: 0;
  position: relative;
  z-index: 1002;
  min-height: 64px;
}
header .container {
  padding-top: 0;
  padding-bottom: 0;
}
header .content-wrapper {
  flex-direction: row;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
}
header nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  padding: 7px 10px;
  transition: color 0.2s;
  border-radius: 6px;
  position: relative;
}
header nav a:hover, header nav a:focus {
  color: var(--secondary);
  background: #e7ecf0;
  text-decoration: none;
}
header img {
  height: 44px;
  margin-right: 18px;
}
.cta.primary {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 28px;
  font-size: 1.08rem;
  font-weight: 700;
  box-shadow: var(--cta-shadow);
  margin-left: 16px;
  transition: background 0.2s, box-shadow 0.2s;
  border: 2px solid var(--primary);
  display: inline-block;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
  box-shadow: 0 2px 24px 0 rgba(36,76,110,0.14);
}
.cta.secondary {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #fff;
  color: var(--primary);
  padding: 11px 26px;
  border-radius: 28px;
  font-size: 1.06rem;
  font-weight: 600;
  box-shadow: var(--cta-shadow);
  border: 2px solid var(--secondary);
  margin-left: 0;
  margin-top: 8px;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--secondary);
  color: #fff;
  border-color: var(--primary);
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 22px;
  top: 16px;
  width: 46px;
  height: 46px;
  background: #fff;
  color: var(--primary);
  font-size: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(36,76,110,0.08);
  align-items: center;
  justify-content: center;
  z-index: 1101;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.mobile-menu-toggle:active {
  background: var(--accent);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  box-shadow: 0 4px 48px 0 rgba(36,76,110,0.18);
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.51,0.03,0.33,1.01);
  display: flex;
  flex-direction: column;
  padding: 36px 0 0 0;
  gap: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: #F8F9FA;
  color: var(--primary);
  font-size: 2.2rem;
  border-radius: 8px;
  padding: 6px 10px 6px 10px;
  z-index: 2002;
  box-shadow: 0 1px 7px 0 rgba(36,76,110,0.06);
  transition: background 0.2s, color 0.2s;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  margin-top: 56px;
  padding: 0 30px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  color: var(--primary);
  padding: 9px 0;
  border-radius: 8px;
  width: 100%;
  display: block;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
}

/* Show/hide nav for mobile/desktop */
@media (max-width: 1000px) {
  header .content-wrapper nav {
    display: none;
  }
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1001px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* Fade background on menu open */
body.menu-open {
  overflow: hidden;
  position: relative;
}
body.menu-open:before {
  content: '';
  display: block;
  background: rgba(36,76,110,0.13);
  position: fixed;
  z-index: 1100;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: all;
}

/* ========== MAIN CONTENT ========== */
main {
  margin-top: 0px;
  min-height: 60vh;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 36px 0 rgba(36,76,110,0.035);
}
@media (max-width: 600px) {
  section {
    padding: 28px 6px;
  }
}

/* ========== FOOTER ========== */
footer {
  background: #244C6E;
  color: #fff;
  padding: 34px 0 10px 0;
  margin-top: 24px;
}
footer .container {
  padding-left: 20px;
  padding-right: 20px;
}
footer .content-wrapper {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 34px;
}
footer a {
  color: #F8F9FA;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.18s;
  margin-right: 18px;
}
footer a:hover, footer a:focus {
  color: #92B4C8;
}
footer img {
  height: 40px;
}
footer p {
  margin-top: 18px;
  color: #D4E0ED;
  font-size: 0.98rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}

/* ========== BUTTONS & INTERACTIVES ========== */
button, .cta, a.cta, .cookie-btn {
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
a.cta:active, .cta:active, .cookie-btn:active {
  opacity: 0.92;
}

/* For simulated input fields (kontakt.html) */
.text-section p:has([pole tekstowe]) {
  margin: 0 0 8px 0;
}

/* ========== RESPONSIVE FLEX LAYOUTS ========== */
@media (max-width: 800px) {
  .card-container,
  .content-grid,
  .text-image-section,
  .content-wrapper,
  footer .content-wrapper {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 24px !important;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }
  header .content-wrapper {
    flex-direction: row;
    gap: 24px;
  }
}

/* ========== HINT DECORATION/ICONS ========== */
ul li img, ol li img {
  height: 22px;
  width: 22px;
  margin-right: 8px;
  vertical-align: text-bottom;
  display: inline-block;
}

/* ========== MICRO-ANIMATIONS ========== */
.card, .testimonial-card, .cta, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.20s, background 0.20s, color 0.20s, transform 0.18s;
}
.card:active, .testimonial-card:active {
  transform: translateY(2px) scale(0.99);
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #244C6E;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 32px;
  z-index: 3000;
  box-shadow: 0 -3px 24px 0 rgba(36,76,110,0.17);
  font-size: 1.05rem;
}
.cookie-banner p {
  margin: 0;
  color: #fff;
  font-size: 1.08rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  padding: 9px 18px;
  font-size: 1rem;
  border-radius: 18px;
  margin-left: 0;
  box-shadow: var(--cta-shadow);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
.cookie-btn.accept {
  background: #92B4C8;
  color: #fff;
  border: 2px solid #92B4C8;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #244C6E;
  border-color: #244C6E;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: #244C6E;
  border: 2px solid #92B4C8;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #F8F9FA;
}
.cookie-btn.settings {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #244C6E;
  color: #92B4C8;
  border-color: #92B4C8;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 17px;
    align-items: flex-start;
    padding: 16px 16px 16px 10px;
    font-size: 0.99rem;
  }
}

/* ========== COOKIE MODAL ========== */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  z-index: 3200;
  background: rgba(36,76,110,0.25);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.cookie-modal.open {
  display: flex;
  animation: fadeIn 0.18s;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 36px 0 rgba(36,76,110,0.2);
  padding: 44px 30px 22px 30px;
  min-width: 320px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  animation: scaleIn 0.24s;
}
@keyframes scaleIn {
  from { transform: scale(0.98); opacity: 0; } to { transform: scale(1); opacity: 1; }
}
.cookie-modal-content h2 {
  color: var(--primary);
  margin-bottom: 14px;
  font-size: 1.45rem;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
  font-size: 1.05rem;
}
.cookie-category input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--secondary);
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 17px;
}
.cookie-close {
  position: absolute;
  top: 22px;
  right: 26px;
  background: transparent;
  font-size: 2.1rem;
  color: var(--gray-700);
  border-radius: 7px;
  transition: background 0.16s;
}
.cookie-close:hover,
.cookie-close:focus { background: #f3f5fa; }

/* Ensure modal content is above overlay */
.cookie-modal-content {
  position: relative;
  z-index: 3202;
}

/* ========== MEDIA QUERIES: MOBILE FIRST ========== */
@media (max-width: 700px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .section { padding: 22px 6px; }
  .card { padding: 18px 10px; }
}
@media (max-width: 600px) {
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  header img, footer img {
    height: 32px;
  }
  .cta.primary, .cta.secondary { font-size: 0.97rem; padding: 10px 17px; }
}

/* ========== ACCESSIBILITY ========== */
:focus {
  outline: 2px solid var(--secondary) !important;
  outline-offset: 2px;
}

/* ========== MISC ========== */
::-webkit-scrollbar { width: 7px; background: #e6e8f0; }
::-webkit-scrollbar-thumb { background: #cfd6dd; border-radius: 7px; }

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