/* RESET & BASELINE ==================== */
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 {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100%;
  background: #F5F7FA;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #233045;
  font-size: 16px;
  line-height: 1.6;
}

/* FONT FAMILIES ======================= */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700&family=Open+Sans:wght@400;600;700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Baloo 2', 'Open Sans', Arial, sans-serif;
  color: #265F99;
  font-weight: 700;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #233045;
  margin-bottom: 16px;
  font-size: 1rem;
}
strong, b {
  font-weight: 700;
  color: #265F99;
}

/* LINKS =============================== */
a {
  color: #2D7BC4;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #FBC56A;
  text-decoration: underline;
}

/* LAYOUT CONTAINERS ================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 18px rgba(38, 95, 153, 0.07);
}
.benefits {
  background: #ECEFF4;
  border-radius: 18px;
}
.cta {
  background: #2D7BC4;
  border-radius: 16px;
  color: #fff;
  text-align: center;
}
.cta h2, .cta p {
  color: #fff;
}

/* HERO SECTION ======================= */
.hero {
  background: linear-gradient(90deg, #265F99 80%, #fff 100%);
  padding-top: 48px;
  padding-bottom: 48px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero .content-wrapper {
  gap: 24px;
  align-items: flex-start;
  background: none;
}
.hero h1 {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 18px;
}
.hero p {
  color: #F7FAFC;
  font-size: 1.15rem;
}
.hero .cta-btn {
  background: #FBC56A;
  color: #233045;
  font-weight: 700;
}

/* NAVBAR & HEADER ==================== */
header {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-bottom: 1px solid #E7ECF3;
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}
header > a img {
  height: 52px;
  width: auto;
  margin-right: 32px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
header nav a {
  color: #265F99;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: #FBC56A;
  color: #233045;
}
.cta-btn {
  display: inline-block;
  background: #2D7BC4;
  color: #fff;
  border-radius: 8px;
  padding: 10px 26px;
  font-family: 'Baloo 2', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  box-shadow: 0 2px 8px rgba(38,95,153,.11);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  border: none;
  cursor: pointer;
  margin-left: 26px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #FBC56A;
  color: #233045;
  box-shadow: 0 4px 16px rgba(38,95,153,.12);
}

/* MOBILE NAVIGATION ================== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #2D7BC4;
  padding: 12px;
  margin-left: auto;
  cursor: pointer;
  z-index: 40;
  border-radius: 6px;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #E3F0FC;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #265F99;
  box-shadow: 0 6px 32px rgba(38,95,153,0.22);
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(.59, .01, .48, .99), opacity 0.09s;
  opacity: 1;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 2.2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 202;
  outline: none;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #FBC56A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 80vw;
  max-width: 340px;
  margin: 96px 0 0 32px;
  gap: 24px;
}
.mobile-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 10px 0;
  border-radius: 6px;
  transition: background 0.19s, color 0.19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FBC56A;
  color: #233045;
}

/* Main NAV disappears on mobile  */
@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none; }
}

/* SECTIONS & FLEXBOX PATTERNS ============= */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 1px 9px rgba(38,95,153,0.10);
  position: relative;
  transition: box-shadow 0.21s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 5px 25px rgba(38,95,153,0.15);
  transform: translateY(-2px) scale(1.017);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 1px 8px rgba(38,95,153,0.10);
  margin-bottom: 20px;
}
.testimonial-card p {
  font-size: 1.09rem;
  color: #233045;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.testimonial-card span {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #265F99;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #F1F5F9;
  border-radius: 13px;
  gap: 15px;
  padding: 24px 18px 20px 18px;
  min-width: 240px;
  max-width: 280px;
  min-height: 220px;
  box-shadow: 0 2px 10px rgba(38,95,153,0.07);
  transition: box-shadow 0.21s, transform 0.13s;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 6px 18px rgba(38,95,153,0.13);
  transform: translateY(-2px) scale(1.014);
}
.feature-item img {
  width: 46px;
  height: 46px;
  margin-bottom: 7px;
}
.feature-item h3 {
  font-size: 1.19rem;
  color: #2D7BC4;
  margin-bottom: 8px;
  font-weight: 700;
}
.feature-item p {
  font-size: 1rem;
  color: #233045;
}
.feature-item span {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.98rem;
  color: #FBC56A;
  font-weight: bold;
  align-self: flex-end;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  justify-content: flex-start;
}

/* TEXT SECTIONS ============================ */
.text-section {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

ul, ol {
  padding-left: 22px;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 8px;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #233045;
  font-size: 1rem;
}

/* BUTTONS ================================ */
button,
input[type="submit"],
input[type="button"],
.cta-btn {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.11s;
}
button:focus, .cta-btn:focus {
  outline: 2px solid #FBC56A;
  outline-offset: 2px;
}

/* FOOTER =============================== */
footer {
  margin-top: 40px;
  padding: 36px 20px 22px 20px;
  background: #1E293B;
  color: #fff;
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.99rem;
  box-shadow: 0 -2px 12px rgba(38, 95, 153, 0.08);
}
footer nav {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  margin-bottom: 12px;
}
footer nav a {
  color: #FBC56A;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.15s;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
  text-decoration: underline;
}
.contact-details {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  color: #DDDEDF;
  font-size: 0.98rem;
}
.contact-details img {
  height: 17px;
  margin-right: 5px;
  vertical-align: middle;
}
footer > div:last-child {
  color: #8a9cad;
  margin-top: 10px;
  font-size: 0.93rem;
}

/* RESPONSIVE DESIGN ===================== */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
  header {
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 18px;
    justify-content: flex-start;
  }
  .feature-item {
    min-width: 180px;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 25px 8px;
    margin-bottom: 34px;
    border-radius: 7px;
  }
  .feature-grid,.card-container,.content-grid {
    flex-direction: column;
    gap: 15px;
  }
  .testimonial-card {
    width: 100%;
    border-radius: 8px;
    gap: 10px;
    padding: 12px 10px;
    margin-bottom: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .container {
    padding: 0 4px;
    max-width: 100vw;
  }
  .hero {
    padding-top: 25px;
    padding-bottom: 25px;
    border-radius: 0 0 15px 15px;
  }
  .hero h1 {
    font-size: 1.24rem;
    margin-bottom: 10px;
  }
  header > a img {
    height: 31px;
    margin-right: 10px;
  }
  .cta-btn {
    margin-left: 9px;
    border-radius: 6px;
    font-size: 1rem;
    padding: 8px 14px;
  }
  footer {
    border-radius: 10px 10px 0 0;
    font-size: .91rem;
    padding: 15px 3px 12px 3px;
  }
}
@media (max-width: 530px) {
  .feature-item {
    min-width: 145px;
    padding: 13px 6px;
    font-size: .95rem;
  }
  .feature-item img {
    width: 31px;
    height: 31px;
  }
}

/* ANIMATIONS & EFFECTS =============== */
.cta-btn, .feature-item, .card, .testimonial-card, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal {
  will-change: transform, box-shadow, opacity;
}

/* COOKIES CONSENT BANNER  ============= */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(100%);
  background: #F7FAFC;
  color: #233045;
  box-shadow: 0 -6px 32px rgba(38,95,153,.11);
  padding: 22px 24px 22px 24px;
  border-radius: 18px 18px 0 0;
  width: 98vw;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  font-size: 1rem;
  z-index: 4000;
  transition: transform 0.45s cubic-bezier(.52,0,.28,1);
  opacity: 0.98;
}
.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.cookie-banner p {
  color: #233045;
  margin-bottom: 6px;
  font-size: 1rem;
}
.cookie-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-btn, .cookie-btn-accept, .cookie-btn-reject, .cookie-btn-settings {
  padding: 8px 18px;
  border-radius: 7px;
  border: none;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  margin-right: 6px;
  background: #265F99;
  color: #fff;
  transition: background 0.15s, color 0.15s, box-shadow 0.11s;
  box-shadow: 0 1px 4px rgba(38,95,153,0.08);
}
.cookie-btn-accept {
  background: #2D7BC4;
  color: #fff;
}
.cookie-btn-accept:hover { background: #FBC56A; color:#233045; }
.cookie-btn-reject {
  background: #ECEFF4;
  color: #2D7BC4;
}
.cookie-btn-reject:hover { background: #E57373; color: #fff; }
.cookie-btn-settings {
  background: #FBC56A;
  color: #233045;
}
.cookie-btn-settings:hover { background: #265F99; color: #fff; }

/* COOKIES MODAL ================== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 5001;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(38, 95, 153, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s;
}
.cookie-modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  padding: 30px 26px 20px 26px;
  border-radius: 18px;
  max-width: 420px;
  min-width: 270px;
  box-shadow: 0 11px 38px rgba(38,95,153,0.17);
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
  animation: fadein 0.5s;
}
@keyframes fadein { 0% { opacity:0; transform:scale(.97);} 100% { opacity:1; transform:scale(1); } }
.cookie-modal h3 {
  font-family: 'Baloo 2', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  color: #265F99;
  margin-bottom: 8px;
  font-size: 1.12rem;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 1rem;
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: #CCE8FD;
  position: relative;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-toggle[aria-checked="true"] {
  background: #2D7BC4;
}
.cookie-toggle-slider {
  display: block;
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(38,95,153,0.14);
  transition: left 0.18s;
}
.cookie-toggle[aria-checked="true"] .cookie-toggle-slider {
  left: 18px;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.cookie-modal-close {
  background: none;
  border: none;
  position: absolute;
  right: 16px;
  top: 12px;
  color: #233045;
  font-size: 1.65rem;
  cursor: pointer;
  transition: color 0.15s;
  z-index: 5;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #FBC56A;
}

/* MISC ============================= */
::-webkit-scrollbar { width: 11px; background: #ECEFF4; }
::-webkit-scrollbar-thumb { background: #C1D8F0; border-radius: 8px; }
::-webkit-selection { background: #FBC56A; color: #233045; }
::selection { background: #FBC56A; color: #233045; }

/* ICONS ALIGNMENT =================== */
img[alt^="Adres"], img[alt^="Telefon"], img[alt^="E-mail"] {
  display: inline;
  height: 18px;
  vertical-align: middle;
  margin-right: 5px;
}

/* OVERRIDES & CARD MICROINTERACTIONS */
.card:active, .feature-item:active { transform: scale(.995); }
.cta-btn:active { transform: scale(.96); }

/* FOCUS STYLES FOR ACCESSIBILITY */
a:focus, .cta-btn:focus, button:focus, .cookie-btn:focus, .cookie-modal-close:focus {
  outline: 2px solid #FBC56A;
  outline-offset: 2px;
}

/* VISUAL HIERARCHY & SPACING */
main {
  margin-top: 26px;
  margin-bottom: 38px;
}

