/* CSS RESET & BASELINE 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;
}

html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #1E3557;
  background-color: #F7F9FA;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #F7F9FA;
  transition: background 0.2s;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: #1E3557;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F2A74B;
  outline: none;
  text-decoration: underline;
}

ul, ol {
  margin: 16px 0 16px 20px;
}
li {
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #1E3557;
  margin-bottom: 20px;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p {
  color: #1E3557;
  margin-bottom: 18px;
  font-size: 1.06rem;
}

address {
  font-style: normal;
  font-size: 1rem;
  color: #384962;
  margin-top: 12px;
}

/* CONTAINER AND CORE LAYOUTS */
.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(30,53,87,0.03), 0 1.5px 4px rgba(30,53,87,0.05);
}

/* FLEXBOX LAYOUTS AND GAPS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  flex: 1 1 270px;
  min-width: 240px;
  max-width: 360px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(30,53,87,0.04), 0 1.5px 4px rgba(30,53,87,0.03);
  padding: 32px 28px 24px 28px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 6px 16px rgba(30,53,87,0.08), 0 2.5px 10px rgba(30,53,87,0.10);
  transform: translateY(-2px) scale(1.015);
}
.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: #F7F9FA;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(30,53,87,0.05);
  margin-bottom: 20px;
  flex: 1 1 330px;
  transition: box-shadow 0.2s;
}
.testimonial-card p {
  flex: 1;
  font-size: 1.13rem;
  color: #1E3557;
}
.testimonial-card cite {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #757D88;
  font-size: 1rem;
  margin-left: auto;
  font-style: normal;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* TIPS/ARTICLE CARDS */
.tip-box {
  background: #F7F9FA;
  border-left: 4px solid #F2A74B;
  border-radius: 12px;
  box-shadow: 0 1.5px 4px rgba(30,53,87,0.04);
  padding: 18px 20px 18px 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.15s;
}
.tip-box:hover {
  box-shadow: 0 4px 16px rgba(30,53,87,0.09);
}

.article-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}
.article-links a {
  background: #fff;
  border: 1px solid #e2e5e9;
  border-radius: 10px;
  padding: 12px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #1E3557;
  transition: background 0.18s, color 0.18s, box-shadow 0.15s;
  box-shadow: 0 1.5px 3px rgba(30,53,87,0.035);
}
.article-links a:hover {
  background: #F2A74B;
  color: #fff;
  box-shadow: 0 4px 12px rgba(30,53,87,0.09);
}

/* BUTTONS & CALL TO ACTION */
.cta-btn {
  display: inline-block;
  background: #1E3557;
  color: #fff;
  border-radius: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  font-weight: 600;
  padding: 14px 34px;
  border: none;
  box-shadow: 0 2.5px 7px rgba(30,53,87,0.09);
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 6px;
  transition: background 0.22s, color 0.18s, transform 0.15s, box-shadow 0.15s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #F2A74B;
  color: #fff;
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 6px 20px rgba(242,167,75,0.07);
  outline: none;
}

/* HEADER & NAV */
header {
  background: #fff;
  box-shadow: 0 2px 20px rgba(30,53,87,0.04), 0 1px 3px rgba(30,53,87,0.03);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  min-height: 64px;
}
header a img {
  height: 42px;
  width: auto;
  margin-right: 24px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 20px;
  flex: 1;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #1E3557;
  padding: 8px 0;
  position: relative;
  font-weight: 500;
  border-radius: 2px;
  transition: color 0.18s;
}
.main-nav a:hover, .main-nav a.active {
  color: #F2A74B;
}

/* Hide nav on mobile, show burger */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  padding: 7px 13px;
  cursor: pointer;
  margin-left: 16px;
  color: #1E3557;
  display: none;
  border-radius: 8px;
  transition: background 0.17s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: rgba(30,53,87,0.07);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(0.86, 0, 0.07, 1);
  box-shadow: 0 6px 38px rgba(30,53,87,0.18);
  padding: 36px 24px 18px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #1E3557;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 22px;
  border-radius: 50%;
  padding: 8px 10px;
  transition: background 0.13s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: rgba(30,53,87,0.07);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 18px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  color: #1E3557;
  padding: 10px 2px;
  width: 100%;
  border-radius: 7px;
  transition: background 0.16s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F2A74B;
  color: #fff;
}

@media (max-width: 1020px) {
  .container {
    max-width: 90vw;
    padding: 0 5vw;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 12px;
    margin-left: 10px;
  }
}
@media (max-width: 850px) {
  header .container {
    gap: 10px;
  }
  .main-nav {
    gap: 7px;
  }
}
@media (max-width: 768px) {
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
  }
  .container {
    max-width: 100vw;
    padding: 0 11px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 24px 7px;
    margin-bottom: 40px;
  }
  .content-wrapper, .card-container {
    gap: 14px;
  }
  .testimonial-card {
    padding: 13px 10px;
    font-size: 1rem;
  }
  .tip-box {
    padding: 12px 10px;
  }
}

/* FOOTER LAYOUT */
footer {
  background: #fff;
  padding: 0 0 36px 0;
}
footer .container {
  padding-top: 36px;
  padding-bottom: 0;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.footer-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 0;
}
.footer-nav a {
  color: #757D88;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  padding: 6px 2px;
  transition: color 0.17s;
}
.footer-nav a:hover {
  color: #F2A74B;
}
footer img {
  height: 34px;
  width: auto;
  margin-bottom: 0.5em;
}
/* Hide address label on mobile */
@media (max-width: 600px) {
  footer .content-wrapper {
    gap: 12px;
  }
  .footer-nav {
    gap: 7px;
  }
  footer img {
    height: 26px;
  }
}

/* TEXT SECTIONS and LISTS */
.text-section h1, .text-section h2, .text-section h3 {
  margin-bottom: 13px;
}
.text-section p, .text-section ul, .text-section ol {
  margin-bottom: 12px;
}
.text-section ul, .content-wrapper ul, .content-wrapper ol {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
}
.text-section ul li, .content-wrapper ul li, .content-wrapper ol li {
  padding: 10px 0;
  border-bottom: 1px solid #ECF0F3;
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.05rem;
}
.text-section ul li:last-child, .content-wrapper ul li:last-child, .content-wrapper ol li:last-child {
  border-bottom: none;
}
.content-wrapper ul img, .text-section ul img {
  width: 32px;
  height: 32px;
  margin-right: 4px;
  display: inline-block;
  vertical-align: middle;
}
.text-section ul strong, .content-wrapper ul strong {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
}

/* For ordered steps (jak-to-dziala page) */
.content-wrapper ol {
  list-style: decimal inside;
  margin-left: 0;
  margin-bottom: 16px;
  padding: 0;
  font-size: 1.06rem;
}
.content-wrapper ol li {
  background: #F7F9FA;
  border-radius: 8px;
  padding: 12px 16px;
  border-bottom: none;
  margin-bottom: 10px;
  color: #1E3557;
  font-size: 1.02rem;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 15000;
  background: #fff;
  border-top: 1.8px solid #E4E6EA;
  box-shadow: 0 2.5px 15px rgba(30,53,87,0.06);
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  padding: 18px 10vw 16px 10vw;
  transition: transform 0.34s, opacity 0.26s;
  opacity: 1;
  font-size: 1rem;
}
.cookie-banner.closed {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-message {
  color: #1E3557;
  font-family: 'Roboto', Arial, sans-serif;
  flex: 1 1 auto;
  max-width: 600px;
  font-size: 1.04rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 11px;
  align-items: center;
}
.cookie-btn, .cookie-settings-btn {
  background: #1E3557;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 9px 22px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s, color 0.13s, transform 0.10s, box-shadow 0.09s;
  box-shadow: 0 1.5px 8px rgba(30,53,87,0.05);
}
.cookie-btn.reject {
  background: #757D88;
}
.cookie-settings-btn {
  background: #F2A74B;
  color: #fff;
  font-weight: 500;
  margin-left: 2px;
}
.cookie-btn:hover, .cookie-btn:focus, .cookie-settings-btn:hover, .cookie-settings-btn:focus  {
  background: #F2A74B;
  color: #fff;
  outline: none;
}
.cookie-btn.reject:hover {
  background: #384962;
}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 16000;
  background: rgba(30,53,87,0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.19s;
}
.cookie-modal.closed {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal .cookie-popup {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(30,53,87,0.10);
  padding: 36px 34px 28px 34px;
  min-width: 310px;
  max-width: 99vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.19s, opacity 0.17s;
  animation: modalPopupIn 0.34s cubic-bezier(.63,.01,.41,1.02);
}
@keyframes modalPopupIn {
  0% {transform: scale(0.84) translateY(60px); opacity: 0.15;}
  80% {transform: scale(1.01) translateY(-6px); opacity: 1;}
  100% {transform: scale(1) translateY(0); opacity: 1;}
}
.cookie-modal .cookie-popup h2 {
  font-size: 1.2rem;
  margin-bottom: 11px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #F7F9FA;
  border-radius: 10px;
  padding: 14px 14px;
}
.cookie-category label {
  flex: 1 1 auto;
  font-size: 1.05rem;
  color: #1E3557;
}
.cookie-category input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: #F2A74B;
  cursor: pointer;
  margin-right: 13px;
}
.cookie-category.disabled label { color: #757D88; opacity: 0.6; }
.cookie-category.disabled input[type="checkbox"] {
  pointer-events: none;
  accent-color: #ECEEEF;
}
.cookie-category .cookie-info {
  font-size: 0.98rem;
  color: #757D88;
  margin-left: 12px;
}
.cookie-modal .cookie-popup .popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}
.popup-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #757D88;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.13s;
  margin-bottom: 8px;
}
.popup-close:hover, .popup-close:focus {
  color: #F2A74B;
  outline: none;
}
@media (max-width: 600px) {
  .cookie-modal .cookie-popup {
    padding: 17px 7px 18px 7px;
    min-width: 94vw;
    font-size: 1rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 6vw 13px 5vw;
    font-size: 0.96rem;
  }
}

/* GENERAL UTILITY CLASSES */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 32px; }
.mb-3 { margin-bottom: 32px; }

/* SPACING HELPERS for SECTION/CARDS */
@media (max-width: 900px) {
  .card-container, .content-grid {
    gap: 13px;
  }
  .testimonial-card {
    gap: 10px;
  }
}
/* CARD responsiveness */
@media (max-width: 700px) {
  .card-container {
    flex-direction: column;
    gap: 11px;
  }
  .card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    padding: 18px 14px 17px 14px;
  }
  .testimonial-card, .tip-box {
    padding: 12px 8px;
  }
}

/* FLEX-DIRECTION SWAPS FOR SECTIONS */
@media (max-width: 768px) {
  .content-wrapper, .card-container, .content-grid, .feature-item {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* MICRO-INTERACTIONS */
.card, .testimonial-card, .tip-box, .article-links a,
.cta-btn, .cookie-btn, .cookie-settings-btn {
  transition: box-shadow 0.19s, background 0.19s, color 0.16s, transform 0.15s;
}

/* Input Fields BASE (for future forms) */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #1E3557;
  background: #fff;
  border: 1px solid #E2E5E9;
  border-radius: 8px;
  padding: 11px 16px;
  transition: border 0.16s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #F2A74B;
}

/* Miscellaneous */
::-webkit-input-placeholder { color: #757D88; opacity: 1; }
::-moz-placeholder { color: #757D88; opacity: 1; }
:-ms-input-placeholder { color: #757D88; opacity: 1; }
::placeholder { color: #757D88; opacity: 1; }

hr {
  border: none;
  border-bottom: 1.8px solid #E2E5E9;
  margin: 32px 0;
}

/* Accessibility/Focus Styles */
:focus-visible {
  outline: 2px solid #F2A74B;
  outline-offset: 1px;
}

/* Hide visually (for a11y utility) */
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
}

/* END OF CSS */
