/* =====================
   RESET & BASE STYLES
====================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #FAFBFC;
  color: #113459;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #113459;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover,
a:focus {
  color: #79C140;
  outline: none;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1.2em;
}
li {
  margin-bottom: 0.5em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #113459;
  font-weight: 700;
}
h1 {
  font-size: 2.25rem; /* 36px */
  margin-bottom: 20px;
  letter-spacing: -1px;
}
h2 {
  font-size: 1.62rem; /* 26px */
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem; /* 20px */
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 10px;
}
p {
  margin-bottom: 1.2em;
  font-size: 1rem;
  color: #153764;
}
strong {
  font-weight: 700;
}

/* =====================
   LAYOUT STRUCTURE
====================== */
.container {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(17,52,89,0.05), 0 1.5px 5px rgba(46,100,126,0.02);
}

/* =====================
  HEADER/NAVIGATION
====================== */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eaf0f4;
  box-shadow: 0 2px 12px rgba(52,58,75,0.04);
  z-index: 100;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
  border-radius: 8px;
}
nav {
  display: flex;
  gap: 20px;
}
nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 9px;
  border-radius: 6px;
  transition: background 0.14s, color 0.16s;
}
nav a:hover:not(.cta-primary), nav a:focus:not(.cta-primary) {
  background: #E0F2F7;
  color: #113459;
}
.cta-primary {
  background: #113459;
  color: #fff !important;
  padding: 7px 20px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.18s, color 0.16s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(17,52,89,0.10);
  border: none;
  outline: none;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: #79C140;
  color: #113459 !important;
  box-shadow: 0 6px 30px rgba(121,193,64,0.16);
}

/* =====================
   MOBILE MENU STYLES
====================== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #113459;
  cursor: pointer;
  margin-left: 20px;
  border-radius: 8px;
  padding: 4px 10px;
  transition: background 0.18s;
  z-index: 121;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #E0F2F7;
}
.mobile-menu {
  display: none;
}
.mobile-menu.active {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #f8fafc;
  z-index: 120;
  padding: 0;
  overflow-y: auto;
  transition: transform 0.35s cubic-bezier(.64,.07,.26,.86);
  transform: translateX(0);
}
.mobile-menu {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: #f8fafc;
  z-index: 120;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  overflow-y: auto;
  transition: transform 0.35s cubic-bezier(.64,.07,.26,.86);
  transform: translateX(-100vw);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #113459;
  font-size: 2.2rem;
  padding: 14px 20px 8px 14px;
  cursor: pointer;
  align-self: flex-end;
  transition: background 0.15s;
  border-radius: 8px;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #E0F2F7;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.12rem;
  color: #113459;
  font-weight: 500;
  padding: 12px 6px;
  border-radius: 6px;
  transition: background 0.14s, color 0.14s;
  width: 100%;
  display: block;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #E0F2F7;
  color: #79C140;
}

@media (max-width: 1024px) {
  nav {
    gap: 14px;
  }
  .logo img {
    height: 37px;
  }
}

@media (max-width: 900px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* =====================
   HERO + PAGE HEADINGS
====================== */
.hero {
  background: #E0F2F7;
  border-radius: 0 0 22px 22px;
  margin-bottom: 60px;
  padding: 46px 0 40px 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
}
.hero .content-wrapper {
  gap: 18px;
  align-items: center;
  text-align: center;
}
.hero h1 {
  color: #113459;
  font-size: 2.45rem;
  line-height: 1.14;
}
.hero p {
  font-size: 1.18rem;
  color: #1d3152;
  margin-bottom: 0.8em;
}

/* =====================
   GENERIC FLEX UTILITIES
====================== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
  justify-content: space-between;
}
.features-grid > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(17,52,89,0.07);
  flex: 1 1 220px;
  min-width: 230px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 28px 18px 21px 18px;
  position: relative;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.features-grid > div:hover,
.features-grid > div:focus-within {
  box-shadow: 0 4px 18px rgba(17,52,89,0.12);
  transform: translateY(-3px) scale(1.02);
}
.features-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border-radius: 6px;
  background: #E0F2F7;
  object-fit: contain;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1.5px 7px rgba(17,52,89,0.06);
  padding: 28px 20px 22px 20px;
  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;
  margin-bottom: 22px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f8fcfd;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 1.5px 7px rgba(51,103,146,0.09);
  flex: 1 1 300px;
  max-width: 440px;
  min-width: 220px;
  flex-direction: column;
  text-align: left;
}
.testimonial-card p {
  font-size: 1.06rem;
  color: #153764;
  margin-bottom: 12px;
}
.testimonial-card span {
  color: #3a4e62;
  font-size: 0.95rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
}

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

.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E0F2F7;
  border-radius: 10px;
  padding: 32px 0;
  font-size: 1.12rem;
  color: #153764;
  margin-top: 16px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}
.contact-info p,
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: #153764;
}
.contact-info img,
.footer-contact img {
  width: 18px; height: 18px;
}

/* =====================
   TESTIMONIAL SLIDER/GRID
====================== */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 8px;
}

/* =====================
   BUTTONS STYLES
====================== */
button,
input[type="button"],
input[type="submit"],
.mobile-menu-toggle,
.mobile-menu-close {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  cursor: pointer;
  border: none;
  outline: none;
}

/* =====================
   FOOTER STYLES
====================== */
footer {
  background: #E0F2F7;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -2px 14px rgba(51,103,146,0.03);
  padding-top: 34px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 20px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  padding: 0;
  font-size: 1rem;
  color: #226ca7;
  font-weight: 500;
}
footer nav a:hover,
footer nav a:focus {
  color: #79C140;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.98rem;
}
footer .content-wrapper > a img {
  width: 54px;
  height: auto;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(17,52,89,0.06);
}

/* =====================
   COOKIE CONSENT BANNER
====================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  color: #113459;
  box-shadow: 0 -1.5px 16px rgba(17,52,89,0.08);
  z-index: 200;
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 1rem;
  border-radius: 18px 18px 0 0;
  animation: cookieBannerIn 0.8s cubic-bezier(.54,.12,.38,1.18);
}
@keyframes cookieBannerIn {
  0% { transform: translateY(100%); opacity: 0; }
  96% { transform: translateY(-10px); }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-banner button {
  border-radius: 7px;
  padding: 7px 16px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  outline: none;
  transition: background 0.18s, color 0.14s, box-shadow 0.14s;
  box-shadow: 0 1.5px 4px rgba(121,193,64,0.04);
}
.cookie-banner .accept {
  background: #79C140;
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #68aa37;
  color: #fff;
  box-shadow: 0 3px 16px rgba(121,193,64,0.10);
}
.cookie-banner .reject {
  background: #E0F2F7;
  color: #113459;
  border: 1px solid #C5E6F1;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #cce0ed;
  color: #113459;
}
.cookie-banner .settings {
  background: #fff;
  color: #113459;
  border: 1px solid #B0C7D4;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #E0F2F7;
}

/* =====================
   COOKIE MODAL
====================== */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 205;
  left: 0; top: 0; right:0; bottom: 0;
  background: rgba(17,52,89,0.37);
  justify-content: center;
  align-items: center;
  animation: fadeIn .28s;
}
.cookie-modal-overlay.active {
  display: flex;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(17,52,89,0.19);
  padding: 38px 32px 28px 32px;
  max-width: 410px;
  width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1rem;
  position: relative;
}
.cookie-modal h3 {
  font-size: 1.20rem;
  margin-bottom: 14px;
}
.cookie-modal-category {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.03rem;
}
.cookie-toggle {
  appearance: none;
  width: 36px;
  height: 20px;
  background: #E0F2F7;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  outline: none;
  border: 1px solid #B0C7D4;
  transition: background 0.18s, border 0.18s;
}
.cookie-toggle:checked {
  background: #79C140;
  border: 1px solid #68aa37;
}
.cookie-toggle::after {
  content: "";
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1.5px; left: 2.5px;
  transition: left 0.18s;
  box-shadow: 0 1px 4px rgba(51,103,146,0.03);
}
.cookie-toggle:checked::after {
  left: 17px;
}
.cookie-modal-footer {
  display: flex;
  gap: 13px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal button {
  border-radius: 7px;
  padding: 7px 16px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  outline: none;
  transition: background 0.14s, color 0.12s;
}
.cookie-modal .accept {
  background: #79C140;
  color: #fff;
}
.cookie-modal .accept:hover {
  background: #68aa37;
}
.cookie-modal .cancel {
  background: #E0F2F7;
  color: #113459;
  border: 1px solid #C5E6F1;
}
.cookie-modal .cancel:hover {
  background: #cce0ed;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 12px; right: 15px;
  background: none;
  border: none;
  font-size: 1.42rem;
  color: #adb7c2;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  color: #113459;
}

/* =====================
   RESPONSIVE DESIGN
====================== */
@media (max-width: 990px) {
  .container {
    max-width: 99vw;
    padding-left: 11px;
    padding-right: 11px;
  }
  .features-grid {
    gap: 18px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .footer-contact {
    font-size: 0.92rem;
  }
}
@media (max-width: 800px) {
  .section {
    padding: 26px 7px;
    border-radius: 14px;
  }
  .hero {
    border-radius: 0 0 12px 12px;
    padding: 32px 0 26px 0;
    margin-bottom: 38px;
  }
  .features-grid > div {
    min-width: 120px;
    max-width: 100%;
    padding: 18px 9px 17px 9px;
  }
  .testimonial-card {
    padding: 15px 10px;
    min-width: 120px;
    max-width: 100%;
  }
}
@media (max-width: 650px) {
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  h3 {
    font-size: 1.06rem;
  }
  .footer-contact p,
  .contact-info p {
    font-size: 0.93rem;
  }
  .features-grid {
    gap: 14px;
  }
  .testimonial-slider {
    gap: 12px;
  }
}
@media (max-width: 600px) {
  .content-wrapper {
    gap: 11px;
  }
  .container {
    max-width: 99vw;
    padding-left: 6px;
    padding-right: 6px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
  .footer .content-wrapper,
  footer .content-wrapper {
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .features-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .testimonial-slider {
    flex-direction: column;
    align-items: stretch;
  }
  .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
  }
}
@media (max-width: 450px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 18px 5px 10px 5px;
    font-size: 0.98rem;
  }
  .cookie-modal {
    padding: 19px 6px 18px 6px;
    max-width: 97vw;
  }
}

/* =====================
   MISCELLANEOUS
====================== */
.section ul {
  margin-left: 1.2em;
  margin-bottom: 0.7em;
}
.section li {
  margin-bottom: 0.32em;
  font-size: 1rem;
}
.section ul:last-child {
  margin-bottom: 0;
}

.map-placeholder p {
  margin-bottom: 0;
}

::-webkit-input-placeholder { color: #B8BDC5; opacity:1; }
:-moz-placeholder { color: #B8BDC5; opacity:1; }
::-moz-placeholder { color: #B8BDC5; opacity:1; }
:-ms-input-placeholder { color: #B8BDC5; opacity:1; }

input, textarea, select {
  border-radius: 6px;
  border: 1px solid #D6E8F5;
  padding: 8px 12px;
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 0.8em;
  background: #fafbfc;
}
input:focus, textarea:focus, select:focus {
  outline: 1.5px solid #79C140;
  box-shadow: 0 1.5px 8px rgba(121,193,64,0.10);
}

/* Card links and article list styles (for blog/poradnik) */
.section ul > li > h3 {
  margin-bottom: 4px;
  font-size: 1.08rem;
  font-weight: 600;
  color: #113459;
}
.section ul > li > p,
.section ul > li > strong {
  font-size: 1rem;
}
/* Return/primary buttons */
.section a.cta-primary,
.section .cta-primary {
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 0;
}

/* Disable tap highlight on buttons/links for smoother animations */
button, a {
  -webkit-tap-highlight-color: rgba(0,0,0,0.05);
}

/* Micro-interactions for buttons */
button:active, .cta-primary:active {
  transform: scale(0.97);
}
/* Hide outline on mouse but keep for access keys */
button:not(:focus-visible) {
  outline: none;
}

/* Hide native scrollbars for cookie modal (cosmetic only) */
.cookie-modal::-webkit-scrollbar,
.mobile-menu::-webkit-scrollbar {
  width: 0.5em;
  background: #E0F2F7;
}

/* ===============
   COLORS SUMMARY
   - primary: #113459 (navy blue)
   - secondary: #E0F2F7 (ice blue)
   - accent: #79C140 (green)
   - backgrounds: #FAFBFC (almost white), #fff
   - text: mostly #113459, #153764, #3a4e62
=================== */
