/* 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, 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 {
  scroll-behavior: smooth;
}
body {
  min-height: 100%;
  background-color: #E1EEF6;
  color: #16527B;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #16527B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #267467;
}
ul, ol {
  list-style: none;
}
button {
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.8rem; line-height: 1.1; margin-bottom: 16px; }
h2 { font-size: 2rem; line-height: 1.15; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; letter-spacing: 0.04em; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
p, ul, ol { margin-bottom: 16px; }
strong { font-weight: 700; }

/* GEOMETRIC STRUCTURED LAYOUTS */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.text-section {
  max-width: 760px;
  margin: 0 auto;
}

/* SECTION SPACING */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
  background: none;
}
@media (max-width: 768px) {
  section {
    padding: 30px 0 0 0;
    margin-bottom: 36px;
  }
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* STRUCTURED FLEX GRIDS */
.features-grid, .services-list, .checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.features-grid > div, .services-list > div {
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(22,82,123,0.06);
  padding: 32px 28px 24px 28px;
  min-width: 260px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border: 2px solid #E1EEF6;
  position: relative;
  transition: box-shadow 0.22s;
}
.features-grid > div:hover, .services-list > div:hover {
  box-shadow: 0 4px 28px rgba(22,82,123,0.11);
  border-color: #51A18E;
}
.features-grid img, .services-list img {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
  filter: drop-shadow(0px 1px 2px rgba(22,82,123,0.08));
}

/* LISTS & CHECKLISTS */
.checklist {
  flex-direction: column;
  gap: 20px;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1.05rem;
  padding: 16px 0;
  border-bottom: 1px dashed #c4dae7;
}
.checklist li:last-child { border-bottom: none; }
.checklist img {
  width: 32px;
  height: 32px;
}

.hints {
  background: #F6FBFE;
  border-radius: 20px;
  padding: 20px 24px;
  margin-top: 18px;
}
.hints h3 { margin-bottom: 8px; }

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 36px;
  margin-bottom: 20px;
  background: #F6FBFE;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(22,82,123,0.10);
  border: 1.5px solid #E1EEF6;
  position: relative;
}
.testimonial-card blockquote {
  font-size: 1.11rem;
  font-style: italic;
  margin-bottom: 8px;
  color: #16527B;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  quotes: '“' '”';
  position: relative;
}
.testimonial-card blockquote::before {
  content: open-quote;
  color: #51A18E;
  font-size: 2.2rem;
  vertical-align: -0.4em;
  margin-right: 6px;
}
.testimonial-card div {
  font-size: 0.97rem;
  color: #16527B;
}
.stars {
  color: #51A18E;
  margin-left: 10px;
  letter-spacing: 2px;
}

/* CARD FLEX CONTAINERS (e.g. packages, features) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 260px;
  background: #FFF;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(22,82,123,0.06);
  padding: 28px 24px 24px 24px;
  transition: box-shadow 0.19s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(22,82,123,0.22);
  border-color: #51A18E;
}
.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: 20px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* BUTTONS */
.cta-btn,
.cta-nav {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 13px 36px;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  border: none;
  background: #16527B;
  color: #fff;
  border-radius: 35px;
  box-shadow: 0 4px 16px rgba(81,161,142,0.06);
  transition: background 0.21s, box-shadow 0.22s, color 0.21s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus,
.cta-nav:hover, .cta-nav:focus {
  background: #267467;
  color: #fff;
  box-shadow: 0 8px 32px rgba(22,82,123,0.16);
}

/* NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 2px 20px rgba(22,82,123,0.04);
  position: relative;
  z-index: 50;
}
header .container {
  min-height: 80px;
}
.content-wrapper {
  min-height: 72px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 14px;
  border-radius: 15px;
  transition: background 0.13s, color 0.13s;
  color: #16527B;
}
nav a:hover, nav a:focus {
  background: #E1EEF6;
  color: #267467;
}
nav .cta-nav {
  background: #51A18E;
  color: #fff;
  border-radius: 20px;
  margin-left: 10px;
  box-shadow: 0 2px 12px rgba(81,161,142,0.10);
}
nav .cta-nav:hover, nav .cta-nav:focus {
  background: #16527B;
  color: #fff;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  color: #16527B;
  border-radius: 12px;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid #E1EEF6;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  margin-left: 10px;
  z-index: 103;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #E1EEF6;
  color: #267467;
}
@media (max-width: 991px) {
  nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (min-width: 992px) {
  .mobile-menu { display: none !important; }
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(22,82,123, 0.97);
  z-index: 9999;
  transform: translateX(105vw);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.36s cubic-bezier(.71,.16,.23,.94), opacity 0.21s;
  box-shadow: 0 8px 40px rgba(22,82,123,0.21);
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 18px 22px 0 0;
  border-radius: 40px;
  padding: 2px 12px; 
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #16527B;
  color: #51A18E;
}
.mobile-nav {
  flex: 1 1 auto;
  width: 100vw;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  color: #fff;
  background: none;
  border-radius: 16px;
  padding: 16px 32px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(81,161,142,0.16);
  color: #51A18E;
}
.mobile-nav a.cta-nav {
  background: #51A18E;
  color: #fff;
}
.mobile-nav a.cta-nav:hover {
  background: #fff;
  color: #16527B;
}

/* FOOTER */
footer {
  background: #16527B;
  color: #fff;
  padding: 64px 0 28px 0;
  box-shadow: 0 -2px 48px rgba(22,82,123,0.06);
}
footer .container {
  padding-bottom: 0;
}
footer .content-wrapper {
  flex-direction: row;
  gap: 36px;
  justify-content: space-between;
  align-items: flex-start;
}
footer nav {
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
footer a, footer nav a {
  color: #fff;
  font-weight: 500;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 0.99rem;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
footer a:hover, footer nav a:hover {
  color: #51A18E;
}
footer .social-links {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 8px;
}
footer .social-links a img {
  width: 28px; height: 28px;
  filter: brightness(0) invert(1) drop-shadow(0px 2px 6px rgba(22,82,123,0.36));
  transition: filter 0.2s;
}
footer .social-links a:hover img {
  filter: brightness(0) saturate(12) hue-rotate(-35deg) drop-shadow(0px 2px 10px #51A18E);
}
footer p {
  color: #D1E5F1;
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width:992px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 30px;
  }
}

/* TABLES (Cennik, etc.) */
table {
  width: 100%;
  border-collapse: collapse;
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 2px 20px rgba(22,82,123,0.05);
  overflow: hidden;
  font-size: 1rem;
  margin-bottom: 24px;
}
table th, table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid #E1EEF6;
}
table th {
  background: #F6FBFE;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
table tr:last-child td {
  border-bottom: none;
}
@media (max-width: 600px) {
  table, tbody, thead, tr, td, th { display: block; }
  table thead { display: none; }
  table td {
    padding: 10px 8px;
    border-bottom: none;
    position: relative;
  }
}

/* GUARANTEE & PRICING SECTIONS */
.guarantee, .pricing-policy, .package-desc, .info-additional {
  background: #F6FBFE;
  border-radius: 18px;
  padding: 20px 28px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(22,82,123,0.04);
}
.guarantee p {
  font-weight: 700;
  color: #267467;
}

/* CONTACT INFO */
.contact-info {
  margin-bottom: 24px;
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(22,82,123,0.06);
  padding: 22px 24px;
}
.info-additional ul {
  margin-top: 10px;
  list-style: disc;
  padding-left: 1.5em;
}

/* FORMS (if any, for future expansion) */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: 11px 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1.5px solid #E1EEF6;
  background: #fff;
  outline: none;
  box-shadow: 0 2px 8px rgba(22,82,123,0.03);
  transition: border 0.16s, box-shadow 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: #267467;
  box-shadow: 0 2px 12px rgba(81,161,142,0.14);
}

/* VISUAL ELEMENTS (Geometric) */
.features-grid > div, .services-list > div, .card {
  border-radius: 20px 4px 20px 4px;
}
.cta-btn, .cta-nav {
  border-radius: 35px 8px 35px 8px;
}

/* SPACING UTILITIES */
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.pt-20 { padding-top: 20px; }

/* RESPONSIVE FLEX ADJUSTMENTS */
@media (max-width: 1100px) {
  .features-grid > div, .services-list > div {
    min-width: 46vw;
    flex-basis: 46vw;
  }
}
@media (max-width: 768px) {
  .features-grid, .services-list, .checklist {
    flex-direction: column;
    gap: 14px;
  }
  .features-grid > div, .services-list > div {
    min-width: 90vw;
    flex-basis: 100%;
    padding: 20px 14px 18px 14px;
  }
  .testimonial-card {
    padding: 20px 12px;
  }
}

/* COOKIE BANNER & MODAL */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #16527B;
  color: #fff;
  z-index: 12000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  gap: 18px;
  box-shadow: 0 -4px 32px rgba(22,82,123,0.18);
  font-size: 1.02rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.36s, visibility 0.22s;
}
.cookie-banner.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
.cookie-banner .cookie-btn {
  background: #51A18E;
  color: #fff;
  border-radius: 18px;
  margin: 0 5px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 22px;
  border: none;
  box-shadow: 0 2px 8px rgba(22, 82, 123, 0.08);
  transition: background 0.2s, color 0.2s;
}
.cookie-banner .cookie-btn.cookie-settings {
  background: none;
  border: 2px solid #51A18E;
  color: #51A18E;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #267467;
  color: #fff;
}
.cookie-banner .cookie-btn.cookie-settings:hover, .cookie-banner .cookie-btn.cookie-settings:focus {
  background: #16527B;
  color: #fff;
}
@media (max-width: 623px) {
  .cookie-banner {
    flex-direction: column;
    font-size: 0.98rem;
    gap: 10px;
    padding: 16px 4px;
    align-items: stretch;
  }
}

.cookie-modal-overlay {
  position: fixed;
  z-index: 17000;
  inset: 0;
  background: rgba(22,82,123,0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.24s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
.cookie-modal {
  background: #FFFFFF;
  min-width: 310px;
  max-width: 430px;
  border-radius: 24px;
  box-shadow: 0 16px 58px rgba(22,82,123,0.41);
  padding: 34px 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: slideUp 0.33s cubic-bezier(.61,.46,.57,1.19);
}
@keyframes slideUp {
  from { transform: translateY(44px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  color: #16527B;
  font-size: 1.6rem;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  display: flex;
  transition: background 0.16s;
}
.cookie-modal-close:hover {
  background: #E1EEF6;
}
.cookie-modal h3 {
  font-size: 1.18rem;
  color: #16527B;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category label {
  font-size: 0.99rem;
  font-weight: 600;
  color: #16527B;
}
.cookie-category input[type='checkbox'] {
  appearance: none;
  width: 22px; height: 22px;
  border: 2.2px solid #51A18E;
  border-radius: 5px;
  background: #F6FBFE;
  outline: none;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s;
  position: relative;
}
.cookie-category input[type='checkbox']:checked {
  background: #51A18E;
  border-color: #267467;
}
.cookie-category input[type='checkbox']:checked:after {
  content: '\2713';
  color: #fff;
  position: absolute;
  left: 4px; top: -1px;
  font-size: 1.3em;
}
.cookie-category.essential input[type='checkbox'] {
  background: #c9eae1;
  border-color: #9ad0c2;
}
.cookie-category.essential label:after {
  content: ' (zawsze włączone)';
  color: #51A18E;
  font-size: 0.95em;
  font-weight: 400;
  margin-left: 2px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal-actions .cookie-btn {
  padding: 10px 22px;
  border-radius: 16px;
  font-weight: 700;
  background: #16527B;
  color: #fff;
  border: none;
}
.cookie-modal-actions .cookie-btn.secondary {
  background: #E1EEF6;
  color: #16527B;
}
.cookie-modal-actions .cookie-btn:hover, .cookie-modal-actions .cookie-btn:focus {
  background: #267467;
  color: #fff;
}

/* --- FOCUS & INTERACTION STYLES --- */
*:focus {
  outline: 2px solid #51A18E;
  outline-offset: 2px;
}

/* --- ANIMATIONS & MICROINTERACTIONS --- */
.cta-btn, .cta-nav, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.2s, color 0.2s, box-shadow 0.16s, transform 0.13s;
}
.cta-btn:active, .cookie-btn:active, .mobile-menu-toggle:active {
  transform: scale(0.97);
}
.features-grid > div, .services-list > div, .card {
  transition: box-shadow 0.22s, border-color 0.17s, transform 0.17s;
}
.features-grid > div:active, .services-list > div:active, .card:active {
  transform: scale(1.021);
}

/* --- SCROLLBARS (for nice geometric look) --- */
::-webkit-scrollbar {
  width: 8px;
  background: #F6FBFE;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: #c4dae7;
  border-radius: 7px;
}

/* --- END --- */
