/* === CSS RESET & NORMALIZE === */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', 'Times New Roman', Times, serif;
  background: #F8FAF9;
  color: #234280;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #234280;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #71A6D2;
  outline: none;
}
ul, ol {
  padding-left: 2em;
  margin-bottom: 1.5em;
}
li + li {
  margin-top: 0.5em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 700;
  color: #234280;
  margin-bottom: 0.5em;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; letter-spacing: -0.03em; }
h2 { font-size: 2rem; margin-top: 2rem; }
h3 { font-size: 1.3rem; }
h4, h5, h6 { font-size: 1.1rem; }
p, blockquote {
  font-size: 1.05rem;
  margin-bottom: 1.1em;
  color: #222d36;
}
blockquote {
  font-family: 'Georgia', Times, serif;
  font-size: 1.1rem;
  font-style: italic;
  background: #eef1f4;
  color: #234280;
  border-left: 4px solid #71A6D2;
  padding: 16px 24px;
  margin: 0 0 10px 0;
}
summary {
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 0.5em;
}
details[open] summary {
  color: #234280;
}
dt {
  font-weight: 700;
  margin-top: 16px;
}
dd {
  margin-left: 2em;
  margin-bottom: 1em;
}
/* === CONTAINER ====== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* === HEADER & NAVIGATION === */
header {
  background: #fff;
  border-bottom: 1px solid #e5e8ec;
  box-shadow: 0 2px 8px 0 rgba(35,66,128,0.03);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 30px;
  padding: 7px 0;
}
.logo img {
  height: 42px;
  width: auto;
  display: block;
}
nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', serif;
  font-weight: 600;
  font-size: 1.07rem;
  letter-spacing: 0.01em;
  color: #234280;
  padding: 6px 2px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
nav a:hover, nav a:focus {
  background: #eff2f6;
  color: #234280;
}
.cta-btn {
  background: #234280;
  color: #fff;
  font-family: 'Montserrat', serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 24px;
  padding: 10px 28px;
  margin-left: 18px;
  box-shadow: 0 3px 16px 0 rgba(35,66,128,0.06);
  cursor: pointer;
  transition: background 0.18s, transform 0.2s, box-shadow 0.2s;
  outline: none;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #71A6D2;
  color: #234280;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px 0 rgba(35,66,128,0.07);
}
.cta-link {
  color: #71A6D2;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  text-decoration: underline;
  font-size: 1.03rem;
  transition: color 0.2s;
}
.cta-link:hover, .cta-link:focus {
  color: #234280;
  text-decoration: none;
}
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.1rem;
  display: none;
  cursor: pointer;
  margin-left: 18px;
  color: #234280;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #71A6D2;
}
/* === MOBILE NAV MENU === */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  padding: 0;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(0.42, 0, 0.58, 1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #234280;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 1100;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #71A6D2;
  outline: 2px solid #234280;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 44px 32px 24px 32px;
}
.mobile-nav a {
  color: #234280;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  padding: 10px 0;
  width: 100%;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #eef1f6;
  color: #71A6D2;
}
@media (max-width: 1020px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  nav {
    gap: 16px;
  }
}
@media (max-width: 820px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .cta-btn {
    margin-left: 8px;
  }
}
@media (min-width: 821px) {
  .mobile-menu { display: none; }
}
/* === SECTION & LAYOUTS === */
main {
  padding-top: 28px;
  min-height: 60vh;
}
.section,
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 0px;
  background: none;
}
/* FLEXBOX LAYOUT CLASSES (MANDATORY) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2.5px 10px 0 rgba(71, 90, 140, 0.08);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  max-width: 400px;
  transition: box-shadow 0.19s, transform 0.19s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 32px 0 rgba(71,90,140,0.13);
  transform: translateY(-5px) scale(1.02);
}
.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;
  background: #f2f5f9;
  color: #234280;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 14px 0 rgba(35,66,128,0.07);
  min-width: 260px;
  max-width: 580px;
}
.testimonial-card blockquote {
  background: none;
  border: none;
  padding: 0;
  color: #234280;
  font-style: italic;
  margin: 0 0 4px 0;
  font-size: 1.06rem;
}
.testimonial-card p {
  color: #234280;
  margin: 0;
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* Features grid on index */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 7px 0 rgba(71,90,140,0.06);
  padding: 30px 24px;
  flex: 1 1 275px;
  min-width: 225px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s, transform 0.17s;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 6px 24px 0 rgba(71,90,140,0.08);
  transform: translateY(-3px) scale(1.017);
}
.feature-grid img {
  height: 44px; width: 44px;
  margin-bottom: 16px;
}
/* === CARDS, ARTICLES === */
article {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 7px 0 rgba(35,66,128,0.07);
  padding: 26px 20px;
  margin-bottom: 24px;
  transition: box-shadow 0.18s;
}
article:hover {
  box-shadow: 0 7px 26px 0 rgba(35,66,128,0.13);
}
/* === FOOTER === */
footer {
  background: #234280;
  color: #fff;
  padding: 38px 0 18px 0;
  font-size: 1.06rem;
  border-top: 2px solid #e5e8ec;
}
footer .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-logo img {
  height: 36px;
  margin-bottom: 8px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
}
footer nav a {
  color: #fff;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 2px 0;
  transition: color 0.19s;
}
footer nav a:hover, footer nav a:focus {
  color: #71A6D2;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.98rem;
  color: #f1f3f6;
}
.footer-contact img {
  height: 19px;
  vertical-align: baseline;
  margin-right: 8px;
}
@media (max-width: 800px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-logo {
    margin-bottom: 12px;
  }
}
/* === SPACING & UTILITY === */
.mt-2 { margin-top: 2rem!important; }
.mb-2 { margin-bottom: 2rem!important; }
.mb-3 { margin-bottom: 3rem!important; }
.gap-2 { gap: 20px!important; }
.gap-3 { gap: 32px!important; }

/* === BUTTONS & INTERACTIVES === */
button,
input[type='button'],
input[type='submit'] {
  font-family: 'Montserrat', serif;
  border: none;
  border-radius: 22px;
  padding: 9px 26px;
  background: #234280;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 14px 0 rgba(35,66,128,0.07);
  transition: background 0.18s, color 0.14s, transform 0.18s;
}
button:hover, button:focus, .cta-btn:focus {
  background: #71A6D2;
  color: #234280;
  transform: translateY(-1px) scale(1.035);
  outline: none;
}
button:active {
  background: #234280;
  color: #fff;
}
/* === FORMS === */
input, select, textarea {
  font-family: 'Roboto', serif;
  font-size: 1.04rem;
  border: 1px solid #d6dee9;
  border-radius: 6px;
  padding: 10px 13px;
  width: 100%;
  background: #f8faf9;
  color: #234280;
  margin-bottom: 14px;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid #71A6D2;
  border-color: #71A6D2;
  background: #fff;
}
label {
  font-family: 'Montserrat', serif;
  font-weight: 600;
  margin-bottom: 0.15em;
  color: #234280;
}
/* === TYPOGRAPHY === */
.subtitle {
  color: #234280cc;
  font-size: 1.22rem;
  font-family: 'Montserrat', serif;
  font-weight: 500;
  margin-bottom: 1.5em;
}
.text-section {
  background: #fff;
  border-radius: 9px;
  padding: 22px;
  box-shadow: 0 2px 6px 0 rgba(71,90,140,0.06);
  margin-bottom: 18px;
}
.contact-info {
  margin-bottom: 1.5em;
  background: #f4f7fa;
  border-radius: 8px;
  padding: 19px 18px;
  font-size: 1.08rem;
  color: #234280;
  box-shadow: 0 1px 5px 0 rgba(35,66,128,0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-info img {
  height: 20px;
  vertical-align: middle;
  margin-inline: 3px 5px;
}
/* === RESPONSIVENESS === */
@media (max-width: 768px) {
  main {
    padding-top: 15px;
  }
  .section,
  section {
    padding: 24px 7px;
    margin-bottom: 36px;
  }
  .content-wrapper {
    gap: 17px;
  }

  .content-grid,
  .feature-grid {
    flex-direction: column;
    gap: 19px;
  }
  .feature-grid > div {
    max-width: 100%;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    max-width: 100%;
    padding: 16px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 13px;
  }
  .card-container, .card {
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    padding: 19px 10px;
  }
  .card {
    padding: 20px 13px;
  }
  .contact-info, .text-section {
    padding: 15px 7px;
  }
  header .container {
    padding: 0 10px;
    min-height: 60px;
  }
}
/* Hide CTA btn on mobile nav menu open to avoid overlap */
@media (max-width: 820px) {
  .mobile-menu.active + main, .mobile-menu.active + footer {
    filter: blur(2.5px);
    pointer-events: none;
  }
  .cta-btn {
    position: relative;
    z-index: 20;
  }
}
/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 2px solid #23428022;
  box-shadow: 0 -1px 17px 0 rgba(35,66,128,0.08);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 16px 22px 20px;
  z-index: 1200;
  transition: transform 0.33s cubic-bezier(0.42, 0, 0.58, 1), opacity 0.33s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(180px);
}
.cookie-banner__text {
  flex: 1 1 250px;
  font-family: 'Montserrat', serif;
  color: #234280;
  font-size: 1.06rem;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
  justify-content: center;
}
.cookie-btn {
  font-family: 'Montserrat', serif;
  padding: 7px 21px;
  font-size: 1rem;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  margin: 0 1px;
  transition: background 0.2s, color 0.16s, box-shadow 0.19s;
  box-shadow: 0 2px 12px 0 rgba(35,66,128,0.07);
}
.cookie-btn.accept {
  background: #234280;
  color: #fff;
  font-weight: 700;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #71A6D2;
  color: #234280;
}
.cookie-btn.reject {
  background: #eef1f4;
  color: #234280;
  font-weight: 600;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #d9e6f0;
  color: #234280;
}
.cookie-btn.settings {
  background: #fff;
  color: #234280;
  border: 1px solid #23428022;
  font-weight: 500;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #71A6D2;
  color: #fff;
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    gap: 11px;
    align-items: flex-start;
    padding: 15px 7px;
    font-size: 0.97rem;
  }
  .cookie-banner__actions {
    gap: 7px;
    width: 100%;
    margin-top: 5px;
    justify-content: flex-start;
  }
}
/* ==== COOKIE SETTINGS MODAL ==== */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(35,66,128,0.18);
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(.49,.05,.52,.92);
}
.cookie-modal-overlay.active {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  border-radius: 19px;
  box-shadow: 0 5px 38px 0 rgba(71,90,140,0.17);
  max-width: 410px;
  min-width: 260px;
  padding: 34px 30px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s, transform 0.3s cubic-bezier(.53,.13,.61,.93);
}
.cookie-modal-overlay:not(.active) .cookie-modal {
  opacity: 0;
  transform: scale(0.95);
}
.cookie-modal h3 {
  font-size: 1.2rem;
  font-family: 'Montserrat', serif;
  color: #234280;
  margin-bottom: 0.47em;
}
.cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 11px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #234280;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 50%;
  transition: background 0.2s, color 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #eef1f4;
  color: #71A6D2;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.04rem;
}
.cookie-category label {
  margin-bottom: 0;
  font-family: 'Montserrat', serif;
}
.cookie-category input[type='checkbox'], .cookie-category input[type='radio'] {
  accent-color: #71A6D2;
  margin-right: 7px;
}
.cookie-category .required {
  color: #aaa;
  font-size: 0.94em;
  margin-left: 9px;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 13px;
  align-items: center;
}
@media (max-width: 480px) {
  .cookie-modal {
    min-width: 95vw;
    max-width: 99vw;
    padding: 15px 7px 11px 12px;
  }
  .cookie-modal-actions {
    gap: 7px;
    flex-direction: column;
  }
}
/* === MICRO-INTERACTIONS === */
.card, .feature-grid > div, .testimonial-card, .cta-btn, .cookie-btn,
.cookie-modal, .article, .mobile-menu,
.mobile-menu-close, nav a, .mobile-nav a {
  transition-property: box-shadow, background, color, transform, opacity, filter;
  transition-duration: 0.17s, 0.2s, 0.18s, 0.22s, 0.26s;
  transition-timing-function: cubic-bezier(.41,.09,.61,.93);
}
/* === VISUALS, SHADOWS, BORDERS === */
.card, .feature-grid > div, .testimonial-card, .cookie-modal {
  border: 1px solid #e6eae9;
}
.card, .feature-grid > div {
  box-shadow: 0 2.5px 10px 0 rgba(71, 90, 140, 0.08);
}
.testimonial-card {
  box-shadow: 0 3px 14px 0 rgba(35,66,128,0.07);
}
.cookie-modal {
  box-shadow: 0 5px 38px 0 rgba(71,90,140,0.17);
}
/* === Z-INDEX SAFETY === */
header, .mobile-menu, .cookie-banner, .cookie-modal-overlay { z-index: 1040; }
.mobile-menu { z-index: 1050; }
.cookie-banner { z-index: 1200; }
.cookie-modal-overlay { z-index: 1250; }
/* === OUTLINES FOR ACCESSIBILITY === */
:focus {
  outline: 2px solid #71A6D2 !important;
  outline-offset: 1px;
}
::-webkit-input-placeholder { color: #979ca8; }
::-moz-placeholder { color: #979ca8; }
:-ms-input-placeholder { color: #979ca8; }
::placeholder { color: #979ca8; }
/* === ICON OVERRIDES ===== */
img[alt="gwiazdka"], img[alt="pół gwiazdki"] {
  height: 18px;
  display: inline-block;
  margin-bottom: -3px;
}
/* === MISC ==== */
hr {
  border: none;
  border-top: 1px solid #e0e5ed;
  margin: 28px 0;
}
/* === END === */
