/* CSS 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F5F1ED;
  color: #233144;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
  scroll-behavior: smooth;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}
a {
  color: #23653B;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, button:focus {
  outline: 2px solid #7C1B23;
  outline-offset: 2px;
}
::-webkit-input-placeholder { color: #74809A; }
::-moz-placeholder { color: #74809A; }
:-ms-input-placeholder { color: #74809A; }
::placeholder { color: #74809A; }

/* FONT FACES */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Lato:wght@400;700&display=swap');

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: #233144;
  font-weight: 700;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 20px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 18px; }
h3 { font-size: 1.25rem; line-height: 1.35; margin-bottom: 10px; }
h4 { font-size: 1.1rem; margin-bottom: 9px; }

p, ul, ol, li, dl, dt, dd, blockquote {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  color: #233144;
  font-size: 1rem;
}

/* UTILITY CLASSES AND CONTAINERS */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px; /* MANDATORY SPACING */
}
.text-section {
  padding: 32px 0;
  background: #fff;
  margin-bottom: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.045);
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(54, 74, 102, 0.07);
  padding: 0 0 0 0;
}
.main-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px 12px 20px;
  min-height: 72px;
  position: relative;
}
.main-navigation > a > img {
  height: 48px;
}
.main-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  list-style: none;
  align-items: center;
}
.main-navigation ul li {
  margin: 0 0 0 0;
}
.main-navigation ul li a {
  padding: 7px 15px;
  font-size: 1rem;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  color: #233144;
  border-radius: 6px;
  transition: background 0.15s, color 0.2s;
}
.main-navigation ul li a:hover, .main-navigation ul li a:focus, .main-navigation ul li.active a {
  background: #23653b18;
  color: #23653B;
}
.btn-primary {
  padding: 11px 28px;
  background: #7C1B23;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 1.07rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 1.5px 6px rgba(124, 27, 35, 0.13);
  transition: background 0.18s, transform 0.2s;
  display: inline-block;
  margin-left: 18px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #92272d;
  color: #fff;
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 4px 16px rgba(124, 27, 35, 0.14);
}

/* MOBILE MENU BURGER */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #7C1B23;
  position: absolute;
  right: 20px;
  top: 18px;
  z-index: 1095;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #23653B;
}
@media (max-width: 992px) {
  .main-navigation ul,
  .main-navigation .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 0 40px rgba(35,49,68,0.15);
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.77,.2,.2,1);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #7C1B23;
  font-size: 2.2rem;
  padding: 20px 24px 10px 0;
  font-family: 'Playfair Display', serif;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #23653B;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 0 0 0 36px;
  margin-top: 10vh;
}
.mobile-nav a {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 1.22rem;
  color: #233144;
  line-height: 1.25;
  padding: 10px 0;
  transition: color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #23653B;
}
/* MAIN SECTIONS */
.hero-section {
  background: #e8eef6;
  border-bottom: 1.5px solid #cad3df;
  padding: 56px 0 44px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-section .container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-section .content-wrapper {
  max-width: 680px;
  align-items: flex-start;
  gap: 20px;
}
.hero-section h1 {
  color: #223048;
  font-size: 2.45rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}
.hero-section p {
  font-size: 1.12rem;
  color: #233144;
}

/* Features (example: .feature-grid) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  margin: 30px 0 20px 0;
  list-style: none;
}
.feature-grid li {
  flex: 1 1 220px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 .5px 6px rgba(80,120,154,0.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 28px 22px;
  min-width: 200px;
  min-height: 230px;
  transition: box-shadow 0.23s, transform 0.22s;
}
.feature-grid li:hover, .feature-grid li:focus-within {
  box-shadow: 0 4px 24px rgba(35,101,59,0.13);
  transform: translateY(-2px) scale(1.027);
}
.feature-grid li img {
  height: 37px;
  width: 37px;
  margin-bottom: 8px;
}
.feature-grid li h3 {
  color: #7C1B23;
  margin-bottom: 7px;
  font-size: 1.13rem;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}
.feature-grid li p {
  color: #233144;
}

.icon-features {
  margin-top: 28px;
}
.icon-features ul {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin-top: 8px;
}
.icon-features li {
  display: flex;
  align-items: center;
  background: #e8eedf;
  border-radius: 90px;
  gap: 9px;
  padding: 6px 16px 6px 9px;
  font-size: 0.97rem;
  color: #23653B;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
}
.icon-features img {
  height: 22px;
  width: 22px;
}

/* Service Overview */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 20px;
  justify-content: space-between;
}
.service-list > div {
  flex: 1 1 220px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 1px 10px rgba(35, 49, 68, 0.06);
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: flex-start;
  padding: 22px 20px;
  min-width: 180px;
  min-height: 165px;
  transition: box-shadow 0.22s, transform 0.18s;
}
.service-list > div:hover {
  box-shadow: 0 6px 19px rgba(124, 27, 35, 0.09);
  transform: translateY(-2px) scale(1.03);
}
.service-list h3 {
  color: #23653B;
  margin-bottom: 7px;
}

/* Testimonial cards */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 14px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 28px 22px 28px;
  background: #ffffff;
  border-radius: 13px;
  box-shadow: 0 1.5px 10px rgba(35,49,68,0.08);
  max-width: 370px;
  min-width: 220px;
  min-height: 170px;
  font-size: 1rem;
  color: #233144;
  transition: box-shadow 0.19s, transform 0.19s;
  margin-bottom: 20px;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 22px rgba(35,101,59,0.11);
  transform: translateY(-1.5px) scale(1.02);
}
.testimonial-card blockquote {
  color: #233144;
  font-style: italic;
  margin-bottom: 0;
  line-height: 1.45;
}
.testimonial-card strong {
  color: #7C1B23;
}
.testimonial-card img[alt*="gwiazdka"],
.testimonial-card img[alt*="pół gwiazdki"] {
  display: inline-block;
  margin-right: 3px;
  height: 18px;
}

/* Callout */
.callout {
  background: #23653B;
  color: #fff;
  border-radius: 14px;
  padding: 38px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(35,49,68,0.07);
  margin-bottom: 28px;
}
.callout h2 {
  color: #fff;
  font-size: 2.0rem;
}
.callout .btn-primary {
  background: #fff;
  color: #23653B;
  margin-left: 0;
  font-weight: 700;
  border: 2px solid #23653B;
}
.callout .btn-primary:hover, .callout .btn-primary:focus {
  background: #eaf8ef;
  color: #23653B;
}

/* FOOTER */
footer {
  background: #223048;
  color: #fff;
  padding-top: 34px;
  padding-bottom: 22px;
  margin-top: 48px;
}
.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-columns > div {
  flex: 1 1 170px;
  margin-right: 10px;
}
.footer-columns img {
  height: 48px;
  margin-bottom: 12px;
}
.footer-links {
  list-style: none;
  margin-top: 8px;
}
.footer-links li {
  margin-bottom: 7px;
}
.footer-links a {
  color: #fff;
  text-decoration: underline;
  font-size: 1rem;
  transition: color 0.18s;
}
.footer-links a:hover, .footer-links a:focus {
  color: #F5F1ED;
}
footer h4 {
  color: #F5F1ED;
  font-family: 'Playfair Display', serif;
  font-size: 1.01rem;
  margin-bottom: 7px;
}
footer p,
footer li {
  color: #dde5f2;
  font-size: 0.97rem;
  line-height: 1.52;
}

footer p img {
  vertical-align: text-bottom;
  width: 1.1em;
  height: 1.1em;
  margin-right: 8px;
}
@media (max-width: 800px) {
  .footer-columns {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

/* Responsive FLEXBOX Adapts */
@media (max-width: 992px) {
  .feature-grid, .service-list, .testimonials, .footer-columns {
    flex-direction: column;
    gap: 24px;
  }
  .callout, .hero-section .content-wrapper {
    align-items: center;
    text-align: center;
  }
  .feature-grid li, .service-list > div, .testimonial-card {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }
  .section, .text-section {
    padding: 24px 10px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .hero-section {
    padding: 34px 0 20px 0;
  }
  .hero-section h1 {
    font-size: 1.45rem;
  }
}

@media (max-width: 540px) {
  .main-navigation {
    padding: 7px 6px 8px 8px;
  }
  .callout {
    padding: 22px 6px;
  }
  .footer-columns img {
    height: 39px;
  }
}

/* HTML LISTS, DL-FAQ, GENERAL */
ul, ol {
  margin-left: 16px;
  margin-bottom: 14px;
  padding-left: 12px;
}
dt {
  font-weight: 700;
  margin-top: 12px;
  color: #233144;
}
dd {
  margin-left: 12px;
  margin-bottom: 7px;
}

blockquote {
  border-left: 3px solid #7C1B23;
  padding-left: 16px;
  font-style: italic;
  color: #233144;
}

/* Utility Gaps for Custom Flex Containers */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 9px rgba(60,67,76,0.07);
  padding: 22px 14px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  transition: box-shadow 0.17s;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  flex: 1 1 0;
}
.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: stretch;
    gap: 18px;
  }
}

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

/* TABLES */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 22px;
}
th, td {
  padding: 12px 10px;
  border-bottom: 1px solid #cad3df;
}
th {
  background: #23653b07;
  color: #23653B;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}

/* TRANSITIONS */
.btn-primary, a, .card, .testimonial-card, .feature-grid li, .service-list > div {
  transition: box-shadow 0.18s, background 0.18s, color 0.17s, transform 0.18s;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 9999;
  background: #223048;
  color: #fff;
  box-shadow: 0 -2px 16px rgba(35,49,68,0.11);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px;
  gap: 20px;
  font-size: 1rem;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  border-radius: 12px 12px 0 0;
  animation: cookieBannerEntrance 0.8s cubic-bezier(.13,1,.53,1);
}
@keyframes cookieBannerEntrance {
  from { transform: translateY(120px); opacity: 0; } to { transform: none; opacity: 1; }
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn {
  border: none;
  border-radius: 999px;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 10px 21px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.19s, color 0.16s, box-shadow 0.13s;
  background: #23653B;
  color: #fff;
  box-shadow: 0 1px 6px rgba(35,101,59,0.14);
  margin-left: 0;
}
.cookie-btn.reject {
  background: #7C1B23;
}
.cookie-btn.settings {
  background: #fff;
  color: #233144;
  border: 1px solid #cad3df;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #153C22;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #941e31;
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #e8eef6;
}

/* Cookie Modal Popup */
.cookie-modal-overlay {
  position: fixed;
  z-index: 10001;
  left: 0; right: 0;
  top: 0; bottom: 0;
  background: rgba(56, 70, 92, 0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalFade 0.34s cubic-bezier(.13,1,.53,1);
}
@keyframes cookieModalFade {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #223048;
  border-radius: 13px;
  box-shadow: 0 3px 28px rgba(35,49,68,0.14);
  max-width: 435px;
  width: 96vw;
  padding: 32px 26px 24px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookieModalShow 0.38s cubic-bezier(.21,1.12,.53,1.09);
}
@keyframes cookieModalShow {
  from { transform: translateY(68px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  border: none;
  background: none;
  color: #7C1B23;
  font-size: 1.65rem;
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #23653B;
}
.cookie-modal-title {
  font-size: 1.25rem;
  color: #233144;
  font-family: 'Playfair Display', serif;
  margin-bottom: 10px;
}
.cookie-modal-list {
  margin: 10px 0 0 0;
  padding: 0;
  list-style: none;
}
.cookie-modal-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 17px;
}
.cookie-modal-list strong {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  color: #23653B;
}
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #d1d5da;
  border-radius: 22px;
  transition: background 0.2s;
}
.cookie-switch input:checked + .cookie-slider {
  background: #23653B;
}
.cookie-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
  box-shadow: 0 1px 4px rgba(80,120,154,.11);
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(16px);
}
/* Essential cookies always active */
.cookie-switch.essential .cookie-slider {
  background: #23653B;
  opacity: 0.5;
}
.cookie-switch.essential .cookie-slider:before {
  background: #ccc;
}
.cookie-switch.essential input {
  pointer-events: none;
}

/* HELPER CLASSES */
.hide-desktop { display: none !important; }
@media (max-width: 992px) {
  .hide-mobile { display: none !important; }
  .hide-desktop { display: inline-block !important; }
}

/* SCROLLBAR STYLES */
::-webkit-scrollbar {
  width: 10px;
  background: #e8eef6;
}
::-webkit-scrollbar-thumb {
  background: #cad3df;
  border-radius: 8px;
}

/* SELECTION COLORS */
::selection {
  background: #23653B;
  color: #fff;
}

/* FINAL ACCESSIBILITY/CONTRAST CHECKS */
.testimonial-card, .feature-grid li, .service-list > div, .card {
  color: #233144;
  background: #fff;
  border: none;
}
.testimonial-card blockquote, .testimonial-card strong {
  color: #233144;
}

/* END OF STYLE.CSS */
