/* VIVID MIRAGE POLSKA – WARM FRIENDLY CSS DESIGN (NO GRID – FLEXBOX ONLY) */

/* RESET & NORMALIZE */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  background: #FFF9F2;
  color: #2F2F2F;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #16477C;
  line-height: 1.12;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
h2 {
  font-size: 2.1rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.33rem;
  margin-bottom: 12px;
}
.subtitle {
  font-size: 1.2rem;
  color: #198940;
  margin-bottom: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
}
p, ul, ol, table, blockquote {
  margin-bottom: 18px;
}
strong { color: #16477C; }
em { color: #BC5104; }
ul, ol {
  margin-left: 1.35em;
  padding-left: 0.4em;
}
li {
  margin-bottom: 10px;
  font-size: 1rem;
}
a {
  text-decoration: none;
  color: #198940;
  font-weight: 500;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #16477C;
}

/* GLOBAL CONTAINERS */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 24px 0 rgba(22,71,124,0.07);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* FLEXBOX LAYOUTS AS REQUIRED */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 26px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(22,71,124,0.08);
  padding: 24px 18px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.17s, transform 0.17s;
}
.card:hover {
  box-shadow: 0 7px 24px 0 rgba(25,137,64,0.14);
  transform: translateY(-2px) scale(1.012);
}
.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;
  border-radius: 20px;
  background: #FFF9F2;
  box-shadow: 0 3px 16px rgba(22,71,124,0.07);
  margin-bottom: 20px;
  color: #1C232E;
  flex: 1 1 340px;
  min-width: 240px;
}
.testimonial-card blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 12px 0;
  color: #16477C;
  quotes: '“' '”';
}
.testimonial-card blockquote:before { content: open-quote; color: #198940;}
.testimonial-card blockquote:after { content: close-quote; color: #198940;}
.testimonial-card strong {
  color: #198940;
  font-size: 0.95rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features-list > ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin-bottom: 18px;
  padding: 0;
}
.features-list li {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 7px rgba(22,71,124,0.07);
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 200px;
  margin-bottom: 0;
}
.features-list img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFF9F2;
  object-fit: contain;
  box-shadow: 0 1px 4px rgba(25,137,64,0.21);
}

/* HEADER & NAV */
header {
  width: 100%;
  box-shadow: 0 5px 18px 0 rgba(25,137,64,0.08);
  background: #FFF9F2;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 51;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 22px;
}
header img {
  max-height: 46px;
  border-radius: 12px;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #16477C;
  font-size: 1.03rem;
  border-radius: 10px;
  padding: 7px 13px;
  transition: background 0.16s, color 0.14s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #EAF5D8;
  color: #198940;
}
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 26px;
  font-size: 1.09rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  padding: 13px 34px;
  margin: 10px 0;
  text-decoration: none;
  box-shadow: 0 3px 14px 0 rgba(25,137,64,0.10);
  outline: none;
  transition: background 0.24s, color 0.21s, box-shadow 0.19s, transform 0.14s;
  min-width: 160px;
}
.btn-primary {
  background: #16477C;
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: #198940;
  color: #fff;
  box-shadow: 0 6px 24px 0 rgba(22,71,124,0.14);
  transform: translateY(-1px) scale(1.02);
}
.btn-secondary {
  background: #fff;
  color: #198940;
  border: 2px solid #198940;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #198940;
  color: #fff;
  border-color: #16477C;
  box-shadow: 0 4px 16px 0 rgba(198,114,40,0.09);
}

/* SERVICES LIST/GRID */
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 22px;
}
.services-list > div {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 12px rgba(25,137,64,0.07);
  padding: 24px 16px;
  flex: 1 1 265px;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  margin-bottom: 0;
  transition: box-shadow 0.17s, transform 0.17s;
}
.services-list > div:hover {
  box-shadow: 0 7px 24px 0 rgba(25,137,64,0.15);
  transform: scale(1.02);
}

/* FOOTER STYLES */
footer {
  background: #16477C;
  color: #fff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -2px 18px 0 rgba(22,71,124,0.10);
  margin-top: 40px;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 42px 20px 18px 20px;
  gap: 22px;
}
.footer-logo img {
  max-height: 60px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(25,137,64,0.07);
  padding: 7px;
}
.footer-nav {
  display: flex;
  gap: 20px;
}
.footer-nav a {
  color: #fff;
  opacity: 0.88;
  font-size: 1rem;
  border-radius: 10px;
  padding: 6px 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  transition: background 0.18s, color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #198940;
  color: #FFF9F2;
  opacity: 1;
}
.footer-meta {
  color: #FFF9F2;
  opacity: 0.82;
  font-size: 0.98rem;
  margin-top: 12px;
}

/* TABLE STYLES */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 9px rgba(22,71,124,0.06);
}
th, td {
  padding: 13px 12px;
  border-bottom: 1px solid #EAF5D8;
  text-align: left;
  font-family: 'Montserrat', Arial, sans-serif;
}
th {
  background: #198940;
  color: #fff;
  font-size: 1.04rem;
}
tr:last-child td {
  border-bottom: none;
}

/* BLOCKQUOTE */
blockquote {
  background: #EAF5D8;
  padding: 14px 24px;
  border-left: 5px solid #198940;
  border-radius: 10px;
  font-style: italic;
  font-size: 1.05rem;
}

/* FORMS (if any) */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  border: 1.7px solid #E1E4E8;
  border-radius: 12px;
  padding: 11px 14px;
  margin-bottom: 14px;
  font-size: 1rem;
  background: #fff;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: #198940;
  box-shadow: 0 0 0 2px #EAF5D8;
}

/* MOBILE MENU STYLES */
.mobile-menu-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  background: #198940;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  border-radius: 15px;
  box-shadow: 0 3px 14px 0 rgba(22,71,124,0.13);
  cursor: pointer;
  z-index: 151;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.21s, box-shadow 0.17s, transform 0.13s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #16477C;
  box-shadow: 0 9px 32px 0 rgba(25,137,64,0.14);
  transform: scale(1.07);
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  max-width: 87vw;
  height: 100vh;
  background: #FFF9F2;
  box-shadow: -6px 0 32px rgba(22,71,124,0.08),-1px 0 8px #19894033;
  z-index: 1600;
  transform: translateX(110%);
  transition: transform 0.38s cubic-bezier(0.6,0,0.3,1);
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-top: 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #16477C;
  font-size: 2.15rem;
  align-self: flex-end;
  margin: 0 18px 0 0;
  padding: 3px 6px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .18s, color .14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #EAF5D8;
  color: #198940;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 10px 24px 0 24px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.17rem;
  color: #16477C;
  padding: 11px 4px 11px 16px;
  border-radius: 13px;
  transition: background .14s, color .13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #EAF5D8;
  color: #198940;
}

/* COOKIE BANNER – FIXED BOTTOM */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #16477C;
  color: #fff;
  z-index: 2100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 38px;
  box-shadow: 0 0 48px 0 rgba(25,137,64,0.21);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.32s, transform 0.3s;
  font-family: 'Montserrat', Arial, sans-serif;
  gap: 16px;
  border-radius: 22px 22px 0 0;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
.cookie-banner .cookie-message {
  max-width: 585px;
  font-size: 1.03rem;
  margin-right: 16px;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 13px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 13px;
  padding: 7px 19px;
  margin: 0 2px;
  border: none;
  cursor: pointer;
  transition: background .13s, color .17s, box-shadow .16s;
}
.cookie-banner .accept-all {
  background: #198940;
  color: #fff;
  box-shadow: 0 2px 7px rgba(25,137,64,0.11);
}
.cookie-banner .accept-all:hover, .cookie-banner .accept-all:focus {
  background: #2BD66A;
}
.cookie-banner .reject-all {
  background: #fff;
  color: #198940;
  border: 1px solid #198940;
}
.cookie-banner .reject-all:hover, .cookie-banner .reject-all:focus {
  background: #FFE6E2;
  color: #BC5104;
}
.cookie-banner .cookie-settings-btn {
  background: transparent;
  color: #FFF9F2;
  text-decoration: underline;
  border: none;
  box-shadow: none;
  padding: 7px 8px;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  color: #2BD66A;
}

/* COOKIE MODAL STYLES */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22,71,124,0.38);
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.hide { opacity: 0; pointer-events: none; }
.cookie-modal {
  background: #FFF9F2;
  border-radius: 24px;
  box-shadow: 0 6px 34px 0 rgba(25,137,64,0.13);
  max-width: 420px;
  width: 94vw;
  padding: 44px 32px 38px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  font-family: 'Montserrat', Arial, sans-serif;
  animation: pop-in .38s cubic-bezier(.49,.04,.81,1.16);
}
@keyframes pop-in {
  0% { opacity: 0; transform: scale(.91) translateY(70px); }
  90% { opacity: 1; transform: scale(1.01) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h3 {
  font-size: 1.22rem;
  margin-bottom: 11px;
}
.cookie-modal .cookie-cat {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(25,137,64,0.13);
  padding: 12px 15px;
  margin-bottom: 8px;
}
.cookie-modal .cookie-cat label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  flex: 1 1 auto;
}
.cookie-modal .cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #EAF5D8;
  border-radius: 20px;
  position: relative;
  transition: background .14s;
  cursor: pointer;
  margin-left: 5px;
}
.cookie-modal .cookie-toggle:checked {
  background: #198940;
}
.cookie-modal .cookie-toggle::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .14s;
}
.cookie-modal .cookie-toggle:checked::before {
  transform: translateX(16px);
}
.cookie-modal .cookie-toggle[disabled],
.cookie-modal .cookie-toggle[aria-disabled='true'] {
  opacity: 0.65;
  cursor: not-allowed;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 13px;
  right: 14px;
  background: none;
  border: none;
  color: #16477C;
  font-size: 1.7rem;
  border-radius: 11px;
  cursor: pointer;
  z-index: 20;
  padding: 2px 7px;
}
.cookie-modal .close-cookie-modal:hover,
.cookie-modal .close-cookie-modal:focus {
  background: #EAF5D8;
  color: #198940;
}
.cookie-modal .accept-all,
.cookie-modal .save-cookies {
  background: #198940;
  color: #fff;
  border: none;
  font-weight: 600;
}
.cookie-modal .accept-all:hover,
.cookie-modal .save-cookies:hover {
  background: #2BD66A;
}
.cookie-modal .reject-all {
  background: #fff;
  color: #198940;
  border: 1.5px solid #198940;
}
.cookie-modal .reject-all:hover {
  background: #FFE6E2;
  color: #BC5104;
}

/* RESPONSIVE DESIGN (MOBILE-FIRST) */
@media (max-width: 990px) {
  .container,
  header .container,
  footer .container {
    flex-direction: column;
    gap: 20px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .main-nav, .footer-nav {
    gap: 13px;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-bottom: 6px;
  }
  .content-wrapper {
    padding: 28px 13px;
  }
  .services-list {
    gap: 13px;
  }
  .features-list > ul {
    gap: 13px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding: 13px 10px;
  }
  .main-nav {
    display: none;
  }
  .btn-primary {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .section {
    margin-bottom: 33px;
    padding: 24px 8px;
    border-radius: 18px;
  }
  .content-wrapper {
    padding: 15px 5px;
    gap: 10px;
  }
  .services-list, .card-container, .content-grid, .features-list > ul {
    flex-direction: column;
    gap: 13px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 13px;
  }
  .footer-logo img {
    max-height: 45px;
  }
  .footer-meta {
    font-size: 0.93rem;
    margin-top: 5px;
  }
}
@media (max-width: 510px) {
  .container,
  .content-wrapper,
  .section {
    padding-left: 4px;
    padding-right: 4px;
  }
  .content-wrapper,
  .section {
    border-radius: 11px;
  }
  h1 {
    font-size: 1.55rem;
    letter-spacing: -0.5px;
  }
  h2 {
    font-size: 1.22rem;
    margin-bottom: 10px;
  }
  .subtitle {
    font-size: 0.97rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 7px;
    font-size: .92rem;
    gap: 8px;
  }
  .cookie-banner .cookie-message {
    margin-right: 0;
    margin-bottom: 7px;
    max-width: 100%;
  }
  .cookie-modal {
    border-radius: 14px;
    padding: 24px 7px 19px 7px;
    gap: 7px;
    max-width: 99vw;
  }
}

/* SMOOTH TRANSTIONS FOR INTERACTIONS */
section, .card, .testimonial-card, .services-list > div, .features-list li, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.18s, transform 0.13s, background 0.18s, border-color 0.16s;
}

/* OVERRIDES FOR FLEX GAPS, SPACING, AND NON-GRID DESIGN */
.section > .container > .content-wrapper > *:not(:last-child) {
  margin-bottom: 17px;
}
.services-list > div:not(:last-child), .features-list li:not(:last-child) {
  margin-bottom: 0;
}

/* ACCESSIBILITY: FOCUS STATES */
a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus {
  outline: 3px solid #EAF5D8;
  outline-offset: 2px;
}

/* Z-INDEX LAYERING */
header { z-index: 51; }
.mobile-menu { z-index: 1600; }
.mobile-menu-toggle { z-index: 151; }
.cookie-banner { z-index: 2100; }
.cookie-modal-overlay { z-index: 2200; }

/* CUSTOM SELECTION COLORS */
::selection {
  background: #ffe1ba;
  color: #16477C;
}

/* PRINT SAFEGUARDS */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
}
