/* --------------------- CSS RESET & 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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* HTML5 display-role reset */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FFFDF8;
  color: #2F2F2F;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  border-style: none;
}
button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* -------------------------- FONTS -------------------------- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  background: #F8F9FA;
  color: #2F2F2F;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #053B7A;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.375rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.125rem; margin-bottom: 8px; }
p { font-size: 1rem; line-height: 1.6; margin-bottom: 12px; }
strong { font-weight: 700; }
em { color: #053B7A; font-style: normal; }

/* ------------------------- LAYOUT CONTAINERS ------------------------- */
.container {
  width: 100%;
  max-width: 1060px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFFDF8;
  border-radius: 22px;
  box-shadow: 0 4px 16px rgba(255, 209, 64, 0.09);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFFDF8;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(5, 59, 122, 0.10);
  margin-bottom: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(255, 209, 64, 0.16), 0 1.5px 12px rgba(5, 59, 122, 0.06);
}

.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: #FFF8E2;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(255, 209, 64, 0.10);
  transition: box-shadow 0.18s;
  flex: 1 1 270px;
  min-width: 0;
}
.testimonial-card .stars {
  font-size: 1.5rem;
  color: #FFD140;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.1em;
}
.testimonial-card p {
  color: #053B7A;
  font-weight: 500;
  margin-bottom: 0;
}
.testimonial-card span {
  font-size: 0.93em;
  color: #846A0C;
  align-self: flex-end;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(255,209,64,0.13), 0 1.5px 10px rgba(5,59,122,0.06);
}

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

.section ul { margin-top: 8px; }
.section ul li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05em;
  color: #053B7A;
  background: #FFFDF8;
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 10px;
  font-weight: 500;
  transition: background 0.11s;
}
.section ul li img {
  width: 28px;
  height: 28px;
}
.section ul li strong {
  color: #053B7A;
}
.section ul li:hover {
  background: #FFF0BC;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.brand-tagline {
  background: #FFF0BC;
  color: #A46907;
  border-radius: 13px;
  padding: 8px 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12em;
  font-style: italic;
  letter-spacing: 0.01em;
}


/* ------------------------- HERO SECTION ------------------------- */
.hero {
  background: #FFD140;
  background: linear-gradient(90deg, #FFE68D 0%, #FFD140 100%);
  border-radius: 0 0 26px 26px;
  box-shadow: 0 6px 24px rgba(255,209,64,0.12);
  margin-bottom: 60px;
  padding: 54px 0 34px 0;
}
.hero .container {
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.2rem;
  color: #053B7A;
  margin-bottom: 18px;
}
.hero p {
  color: #442F00;
  font-size: 1.15em;
  margin-bottom: 28px;
}


/* ------------------------- CTA BUTTONS ------------------------- */
.cta-btn {
  display: inline-block;
  background: #053B7A;
  color: #FFD140;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15em;
  font-weight: 700;
  padding: 13px 34px;
  border: none;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(5,59,122,0.10);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.19s, transform 0.13s;
  margin-top: 6px;
  letter-spacing: 0.04em;
}
.cta-btn:hover, .cta-btn:focus {
  background: #FFD140;
  color: #053B7A;
  box-shadow: 0 6px 16px rgba(255,209,64,0.16), 0 1.8px 12px rgba(5,59,122,0.10);
  outline: none;
  transform: translateY(-2px) scale(1.045);
}
.cta {
  background: #FFD140;
  border-radius: 23px;
  box-shadow: 0 4px 20px rgba(255,209,64,0.10);
  padding: 38px 20px;
  margin-bottom: 0;
  text-align: center;
}
.cta strong { color: #053B7A; }

/* ------------------------- NAVIGATION & HEADER ------------------------- */
header {
  width: 100%;
  background: #FFFDF8;
  box-shadow: 0 3px 10px rgba(255,209,64,0.05);
  z-index: 20;
  position: sticky;
  top: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
header nav {
  display: flex;
  gap: 26px;
  align-items: center;
  margin-left: 18px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02em;
  font-weight: 500;
  color: #053B7A;
  padding: 6px 14px;
  border-radius: 12px;
  transition: background 0.12s, color 0.13s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: #FFD140;
  color: #A46907;
}
header .cta-btn {
  font-size: 1em;
  padding: 10px 22px;
}

/* -------------------- FOOTER -------------------- */
footer {
  background: #FFF8E2;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -2px 20px rgba(255, 209, 64, 0.08);
  margin-top: 80px;
  padding: 38px 0 16px 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
footer .logo img {
  height: 38px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  font-size: 0.98em;
  color: #053B7A;
  padding: 3px 8px;
  border-radius: 8px;
  transition: background 0.13s;
}
footer nav a:hover { background: #FFD140; color: #845400; }
.footer-contact {
  background: #FFF0BC;
  color: #6D5405;
  border-radius: 13px;
  font-size: 0.97em;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-contact img {
  width: 19px;
  height: 19px;
  margin-right: 7px;
  vertical-align: middle;
  margin-bottom: 2px;
}

/* -------------------- MOBILE BURGER MENU -------------------- */
.mobile-menu-toggle {
  position: fixed;
  top: 22px;
  right: 20px;
  background: #FFD140;
  color: #053B7A;
  border: none;
  font-size: 2.1rem;
  border-radius: 15px;
  padding: 7px 15px 8px 15px;
  box-shadow: 0 3px 12px rgba(255,209,64,0.11);
  cursor: pointer;
  display: none;
  z-index: 101;
  transition: background 0.13s, color 0.1s;
}
.mobile-menu-toggle:focus {
  background: #053B7A;
  color: #FFD140;
  outline: none;
}
@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: block;
  }
  header nav, header .cta-btn {
    display: none;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #FFD140;
  box-shadow: 0 8px 36px rgba(5,59,122,0.12);
  transform: translateX(100vw);
  transition: transform 0.36s cubic-bezier(0.55, 0, 0.19, 1);
  z-index: 999;
  display: flex;
  flex-direction: column;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #053B7A;
  font-size: 2.3rem;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 7px 18px 7px 14px;
  transition: background 0.11s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #FFFDF8;
  color: #A46907;
  outline: none;
}
.mobile-nav {
  margin: 58px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.26em;
  font-weight: 700;
  color: #053B7A;
  padding: 13px 34px;
  border-radius: 16px;
  background: #FFFDF8;
  box-shadow: 0 2px 8px rgba(5,59,122,0.06);
  min-width: 200px;
  text-align: center;
  transition: background 0.12s, color 0.14s, box-shadow 0.19s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #053B7A;
  color: #FFD140;
  outline: none;
  box-shadow: 0 6px 18px rgba(5,59,122,0.13);
}

/* Overlay animation for .mobile-menu */
.mobile-menu {
  will-change: transform;
}

/* ------------- COOKIE CONSENT BANNER ------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: #FFF8E2;
  color: #6D5405;
  border-top: 2px solid #FFD140;
  box-shadow: 0 -4px 24px rgba(255,209,64,0.17);
  padding: 24px 16px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  font-size: 1.04em;
  animation: cookie-slide-in 0.45s cubic-bezier(.7,.01,.37,1);
}
@keyframes cookie-slide-in {
  0% { transform: translateY(100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 6px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1em;
  border: none;
  border-radius: 14px;
  padding: 10px 20px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(5,59,122,0.06);
  transition: background 0.17s, color 0.15s, box-shadow 0.19s;
}
.cookie-btn.accept {
  background: #053B7A;
  color: #FFD140;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #FFD140;
  color: #053B7A;
  box-shadow: 0 6px 18px rgba(5,59,122,0.13);
}
.cookie-btn.reject {
  background: #F3B560;
  color: #053B7A;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #FFD140;
  color: #A46907;
}
.cookie-btn.settings {
  background: #FFFDF8;
  color: #845400;
  border: 1.3px solid #FFD140;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #FFF0BC;
  color: #053B7A;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 96vw;
  max-width: 400px;
  background: #FFFDF8;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(5,59,122,0.22);
  padding: 32px 22px;
  transform: translate(-50%,-50%) scale(1.05);
  opacity: 0;
  pointer-events: none;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: none;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1.0);
  animation: modal-fade-in 0.4s cubic-bezier(.82,.01,.23,1);
}
@keyframes modal-fade-in {
  from { opacity: 0; transform: translate(-50%,-30%) scale(.95); }
  to { opacity: 1; transform: translate(-50%,-50%) scale(1.0); }
}
.cookie-modal .modal-title {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #053B7A;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 7px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFF0BC;
  border-radius: 11px;
  padding: 8px 13px;
}
.cookie-category label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #6D5405;
}
.cookie-category input[type='checkbox'] {
  width: 24px;
  height: 24px;
  accent-color: #FFD140;
}
.cookie-category.essential label:after {
  content: ' (wymagane)';
  color: #B88D0C;
  font-size: 0.92em;
  font-style: italic;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: flex-end;
}

/* --------------------- Typography responsive for mobile ------------------- */
@media (max-width: 550px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
  .hero h1 { font-size: 1.3rem; }
  .cta-btn { font-size: 0.98em; padding: 10px 15px; }
}
@media (max-width: 768px) {
  body { font-size: 15px; }
  .container { padding: 0 10px; }
  .hero { padding: 30px 0; }
  .section { margin-bottom: 36px; padding: 20px 7px; }
  .content-grid, .card-container { gap: 12px; }
  .footer-contact { font-size: 0.93em; padding: 8px 9px; }
  .card { padding: 16px 9px; }
  .testimonial-card { padding: 12px 9px; gap: 10px; }
  .cta { padding: 22px 6px; }
  .cookie-modal { padding: 20px 7px; }
}

/* ---------- Responsive flex containers ---------- */
@media (max-width: 900px) {
  .container, footer .container, header .container { flex-direction: column !important; gap: 18px; align-items: stretch !important; }
  footer .container { gap: 24px; }
  .footer-contact { margin-top: 20px; }
}
@media (max-width: 768px) {
  .text-image-section, .content-grid { flex-direction: column !important; gap: 16px !important; }
  .testimonial-card { flex-direction: column; align-items: flex-start; }
  .cta-btn { width: 100%; text-align: center; }
}

/* Avoid overlap on very narrow screens */
@media (max-width:480px) {
  .container, .content-wrapper { padding: 0 1.7vw; }
  .footer-contact { font-size: 0.88em; }
}

/* ------------- Miscellaneous layout spacing ------------- */
main section, .section, .card, .testimonial-card, .feature-item, .content-grid, .card-container {
  margin-bottom: 20px;
}
main section:last-child, .cta:last-child { margin-bottom: 0; }

/* ------------- INTERACTIVE/FOCUS STATES ------------- */
a, button, .cta-btn, .mobile-nav a { outline-color: #FFD140; outline-width: 2px; outline-style: solid; outline-offset: 1px; }
a:active, button:active, .cta-btn:active, .mobile-nav a:active {
  outline: 2.5px solid #053B7A;
}

/* ------------- ACCESSIBILITY: FOCUS ------------- */
a:focus-visible, button:focus-visible { outline-color: #053B7A; outline-width: 2.8px; outline-offset: 1.5px; }

/* ------------- SPECIAL CLASSES / TAGS ------------- */
.filter-info {
  display: inline-block;
  background: #FFF0BC;
  color: #A46907;
  border-radius: 9px;
  padding: 2px 8px;
  margin-left: 8px;
  font-size: 0.99em;
  letter-spacing: 0.01em;
}
.topic {
  color: #A46907;
  background: #FFF0BC;
  border-radius: 8px;
  padding: 2px 7px;
  font-size: 1em;
}

/* ------------- LINKS IN ARTICLES LIST ------------- */
.section ul li a {
  color: #A46907;
  text-decoration: underline;
  transition: color 0.12s;
}
.section ul li a:hover, .section ul li a:focus { color: #053B7A; }

/* ------------- THANK YOU PAGE STYLES ------------- */
.text-section ul {
  margin: 10px 0 16px 16px;
}
.text-section ul li {
  font-size: 1em;
  background: none;
  color: #053B7A;
  padding: 4px 0;
  border-radius: 0;
}

/* ------------- UTILITIES / Z-INDEX LAYERS ------------- */
.mobile-menu {
  z-index: 999;
}
.cookie-banner { z-index: 1001; }
.cookie-modal { z-index: 1002; }
.mobile-menu-toggle { z-index: 1001; }

/* ------------- PREVENT ABSOLUTE OVERLAP ------------- */
.card, .testimonial-card, .section, .cta {
  position: relative;
  z-index: 2;
}

/* END OF STYLE */
