/*======================*
 * RESET & BASE STYLES  *
 *======================*/
html {
  box-sizing: border-box;
  font-size: 16px;
  background: #f8f9fa;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #f8f9fa;
  color: #222;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #0955a7;
  text-decoration: none;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: #0070e0;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.2em;
  margin: 8px 0 16px 0;
}
li {
  margin-bottom: 6px;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1em;
  border-radius: 6px;
  border: none;
}
button {
  cursor: pointer;
  transition: background 0.2s, color 0.18s, box-shadow 0.18s;
}


/*======================*
 * TYPOGRAPHY          *
 *======================*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Baloo 2', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  color: #143155;
  line-height: 1.12;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.14rem;
  margin-bottom: 8px;
}
p {
  color: #253045;
  margin-bottom: 14px;
}
strong {
  color: #0955a7;
  font-weight: 600;
}


/*======================*
 * LAYOUT CONTAINERS   *
 *======================*/
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(17,29,58,0.04);
  display: flex;
  flex-direction: column;
}

.features, .about, .testimonials, .contact, .services, .legal, .success, .cta {
  margin-bottom: 60px;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}


/*======================*
 * HEADER & NAVIGATION *
 *======================*/
header {
  width: 100%;
  background: #ffffffda;
  box-shadow: 0 2px 14px 0 rgba(17,29,58,0.05);
  position: sticky;
  top: 0;
  z-index: 40;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}
header a img {
  height: 44px;
  width: auto;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}
header nav a {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #143155;
  padding: 7px 2px;
  border-radius: 4px;
  font-weight: 500;
  position: relative;
  transition: background 0.11s, color 0.18s;
}
header nav a:hover, header nav a.active {
  background: #e3effb;
  color: #0955a7;
}
.cta-button {
  display: inline-block;
  background: #0955a7;
  color: #fff;
  font-family: 'Baloo 2', 'Segoe UI', Arial, sans-serif;
  font-size: 1.10rem;
  letter-spacing: 0.02em;
  padding: 10px 32px;
  border-radius: 22px;
  font-weight: 700;
  margin-left: 12px;
  text-align: center;
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow: 0 .5px 5px 0 rgba(15,58,120,.04);
}
.cta-button:hover, .cta-button:focus {
  background: #ffd43b;
  color: #143155;
  box-shadow: 0 2px 14px 0 rgba(9,85,167,.08);
}

/* Hamburger icon */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #0955a7;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.17s;
  z-index: 51;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #e3effb;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: #fff;
  z-index: 110;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.64,.03,.41,.99);
  box-shadow: 0 2px 30px 0 rgba(14,29,55,0.15);
  display: flex;
  flex-direction: column;
  padding: 0;
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: #fff;
  color: #0955a7;
  border: none;
  font-size: 2.4rem;
  padding: 18px 28px 18px 18px;
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 12px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 0 28px 24px 28px;
}
.mobile-nav a {
  font-size: 1.15rem;
  color: #143155;
  padding: 12px 0;
  display: block;
  font-family: 'Baloo 2', Arial, sans-serif;
  font-weight: 600;
  border-radius: 5px;
  width: 100%;
}
.mobile-nav a:hover {
  background: #e3effb;
  color: #0955a7;
}

@media (max-width: 1020px) {
  header nav, .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (min-width: 1021px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
  header nav, .cta-button {
    display: initial;
  }
}


/*======================*
 * HERO SECTION        *
 *======================*/
.hero {
  background: linear-gradient(135deg, #eafbff 0%, #f7f9fb 100%);
  padding: 56px 0 64px 0;
  display: flex;
  flex-direction: column;
}
.hero .container {
  align-items: flex-start;
  justify-content: center;
}
.hero h1 {
  color: #0955a7;
  font-size: 2.7rem;
  margin-bottom: 18px;
}
.hero p {
  color: #2c4463;
  font-size: 1.25rem;
  margin-bottom: 28px;
}


/*======================*
 * FLEXBOX GRIDS       *
 *======================*/
.features-grid, .post-grid, .advice-grid, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.features-grid {
  margin-top: 24px;
  width: 100%;
}
.feature-item {
  background: #f6f8fa;
  border-radius: 16px;
  flex: 1 1 190px;
  min-width: 220px;
  max-width: 260px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 2px 8px 0 rgba(10,34,65,0.05);
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-item:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px 0 rgba(14,29,55,0.10);
}
.feature-item img {
  width: 36px;
  height: 36px;
}
.feature-item h3 {
  margin-bottom: 4px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(14,29,55,0.08);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

/* Advice topics in Poradniki */
.advice-grid {
  flex-wrap: wrap;
  gap: 24px;
  margin: 18px 0 32px 0;
}
.advice-topic {
  background: #f6f8fa;
  border-radius: 14px;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 340px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  box-shadow: 0 1px 7px 0 rgba(10,34,65,0.04);
  transition: box-shadow 0.18s, transform 0.16s;
}
.advice-topic:hover {
  box-shadow: 0 5px 18px 0 rgba(10,34,65,0.13);
  transform: translateY(-1px) scale(1.01);
}

/* Blog post grid */
.post-grid {
  flex-wrap: wrap;
  gap: 24px;
  margin: 20px 0 28px 0;
}
.post-item {
  background: #f6f8fa;
  border-radius: 14px;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 340px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  box-shadow: 0 1px 7px 0 rgba(10,34,65,0.04);
  transition: box-shadow 0.18s, transform 0.16s;
}
.post-item:hover {
  box-shadow: 0 5px 18px 0 rgba(10,34,65,0.13);
  transform: translateY(-1px) scale(1.01);
}


/*======================*
 * BUTTONS             *
 *======================*/
button, .cta-button {
  outline: none;
}
button:focus, .cta-button:focus {
  outline: 2px solid #ffd43b;
  outline-offset: 2px;
}

/*======================*
 * TESTIMONIALS        *
 *======================*/
.testimonials {
  padding: 40px 0 30px 0;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 28px 32px 20px 32px;
  background: #fffbea;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 2px 16px 0 rgba(245,202,31,0.06), 0 6px 24px 0 rgba(50,72,110,0.04);
  max-width: 680px;
}
.testimonial-card .stars {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 6px;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #143155;
  margin-bottom: 6px;
  text-align: center;
}
.testimonial-card span {
  color: #0955a7;
  font-size: 1rem;
  font-weight: 500;
}

/*======================*
 * CTA SECTION        *
 *======================*/
.cta {
  background: #eafbff;
  border-radius: 20px;
  box-shadow: 0 2px 12px 0 rgba(9,85,167,.04);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 10px;
}
.cta .cta-button {
  margin-top: 20px;
}

.success {
  background: #eafbff;
  border-radius: 20px;
  box-shadow: 0 2px 12px 0 rgba(9,85,167,.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0 64px 0;
}
.success .content-wrapper {
  align-items: center;
  text-align: center;
}

/*======================*
 * CONTACT INFO        *
 *======================*/
.contact ul {
  margin: 16px 0 10px 0;
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.07rem;
  color: #2c4463;
}
.contact ul img {
  width: 24px;
  height: 24px;
}

/*======================*
 * FOOTER              *
 *======================*/
footer {
  background: #143155;
  color: #fff;
  padding: 40px 0 24px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
}
footer nav {
  display: flex;
  gap: 24px;
  margin-bottom: 6px;
}
footer nav a {
  color: #ffd43b;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  position: relative;
  border-radius: 4px;
  padding: 5px 10px;
  transition: background 0.12s, color 0.13s;
}
footer nav a:hover {
  color: #fff;
  background: #0955a7;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-size: 1rem;
  color: #fffddd;
  margin-bottom: 10px;
}
.footer-contact img {
  width: 20px;
  height: 20px;
  margin-right: 7px;
}
.footer-brand {
  color: #e0e7ef;
  font-size: 0.98rem;
  margin-top: 3px;
  opacity: 0.77;
}


/*======================*
 * LEGAL PAGES         *
 *======================*/
.legal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(14,29,55,0.03);
}


/*======================*
* SPACING & MOBILE     *
*======================*/
@media (max-width: 900px) {
  .container {
    max-width: 96vw;
    padding: 0 9px;
  }
  .features-grid, .post-grid, .advice-grid {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.37rem; }
  .container {
    max-width: 99vw;
    padding: 0 2vw;
  }
  .section, .features, .about, .testimonials, .contact, .services, .legal, .success, .cta {
    margin-bottom: 40px;
    padding: 22px 0;
    border-radius: 10px;
  }
  .features-grid, .post-grid, .advice-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-item, .post-item, .advice-topic {
    min-width: unset;
    max-width: 100%;
    width: 100%;
  }
  .footer-contact, .footer-brand {
    font-size: 0.9rem;
  }
  footer .container {
    gap: 18px;
    padding-bottom: 10px;
  }
}

/*============================*
* COOKIE CONSENT BANNER        *
*=============================*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9000;
  width: 100vw;
  background: #143155;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  box-shadow: 0 -1px 18px 0 rgba(17, 29, 58, 0.07);
  font-size: 1rem;
  animation: slideInCookie 0.55s cubic-bezier(.72,.04,.53,1.09);
}
@keyframes slideInCookie {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__message {
  flex: 1 1 300px;
}
.cookie-banner__actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  background: #ffd43b;
  color: #143155;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 16px;
  padding: 7px 18px;
  border: none;
  font-weight: 600;
  box-shadow: 0 1px 6px 0 rgba(20,49,85,0.07);
  margin-left: 4px;
  transition: background 0.18s, color 0.15s, box-shadow 0.16s;
}
.cookie-btn.reject {
  background: #e3effb;
  color: #0955a7;
}
.cookie-btn.settings {
  background: #143155;
  color: #ffd43b;
  border: 1.5px solid #ffd43b;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #ffd43b;
  color: #143155;
  box-shadow: 0 2px 12px 0 rgba(245,202,31,0.11);
}

@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 10px;
    gap: 14px;
    font-size: 1rem;
  }
  .cookie-banner__actions {
    gap: 12px;
  }
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(17, 29, 58, 0.65);
  z-index: 12000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal.active {
  visibility: visible;
  opacity: 1;
}
.cookie-modal__content {
  background: #fff;
  border-radius: 19px;
  box-shadow: 0 2px 38px 0 rgba(17,29,58,0.13);
  width: 97vw;
  max-width: 420px;
  padding: 38px 28px 29px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: slideInCookieModal 0.39s cubic-bezier(.67,-0.03,.47,.94);
}
@keyframes slideInCookieModal {
  from { transform: translateY(48px) scale(.92); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal__close {
  position: absolute;
  top: 10px; right: 16px;
  background: none;
  border: none;
  font-size: 1.5em;
  color: #0955a7;
  cursor: pointer;
  padding: 2px 8px 2px 2px;
  border-radius: 12px;
  transition: background 0.14s;
}
.cookie-modal__close:hover,
.cookie-modal__close:focus {
  background: #e3effb;
}
.cookie-modal__content h3 {
  margin-bottom: 12px;
  font-size: 1.17em;
  color: #0955a7;
}
.cookie-modal__categories {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  width: 100%;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category input[type="checkbox"] {
  accent-color: #0955a7;
  width: 20px; height: 20px;
  margin: 0 0 0 0;
}
.cookie-category input:disabled {
  opacity: 0.55;
}
.cookie-category label {
  font-size: 1.02em;
  color: #2c4463;
}
.cookie-category.essential label {
  font-weight: 600;
  color: #0955a7;
}
.cookie-modal__actions {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

/*======================*
 * MICRO-INTERACTIONS   *
 *======================*/
.card, .feature-item, .testimonial-card, .post-item, .advice-topic {
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover, .post-item:hover, .advice-topic:hover {
  box-shadow: 0 8px 28px 0 rgba(14,29,55,0.11);
  transform: translateY(-2px) scale(1.02);
}

.cta-button, .cookie-btn {
  transition: background 0.18s, color 0.15s, box-shadow 0.16s, transform 0.16s;
}
.cta-button:active, .cookie-btn:active {
  transform: scale(0.96);
}

/*======================*
 * CUSTOM SCROLLBAR     *
 *======================*/
::-webkit-scrollbar { width: 10px; background: #eafbff; }
::-webkit-scrollbar-thumb { background: #bfdaf5; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #a7c7e7; }


/*======================*
 * PRINT OPTIMIZATION   *
 *======================*/
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff; color: #222; }
}

/*======================*
 * UTILITY CLASSES      *
 *======================*/
.mt-8 { margin-top: 8px !important; }
.mb-12 { margin-bottom: 12px !important; }
.mb-24 { margin-bottom: 24px !important; }
.text-center { text-align: center !important; }
.d-flex { display: flex !important; }
.flex-column { flex-direction: column; }


/*======================*
 * ACCESSIBILITY        *
 *======================*/
:focus-visible {
  outline: 2px solid #ffd43b;
  outline-offset: 2px;
}

/*======================*
 * SCANDINAVIAN MOOD    *
 *======================*/
body, .section, .about, .features, .cta, .contact, .success, .testimonials, .legal {
  background: #f8f9fa;
}
.card, .feature-item, .testimonial-card, .post-item, .advice-topic {
  box-shadow: 0 2px 12px 0 rgba(20,56,99,0.06);
  border-radius: 16px;
  background: #fff;
}
h1, h2, h3, .footer-brand, .cta-button {
  font-family: 'Baloo 2', 'Segoe UI', Arial, sans-serif;
}
