/* RESET & NORMALIZE (modern, minimal) */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body, html { height: 100%; width: 100%; }
body { background: #fff; color: #222933; font-family: 'Roboto', Arial, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', 'Roboto', Arial, sans-serif; color: #1C3655; margin-bottom: 16px; font-weight: 700; }
h1 { font-size: 2.25rem; line-height: 1.2; margin-bottom: 24px; }
h2 { font-size: 1.5rem; line-height: 1.2; margin-bottom: 20px; }
h3 { font-size: 1.12rem; margin-bottom: 12px; font-weight: 600; }
p, ul, ol, dl, blockquote { margin-bottom: 16px; }
ul, ol { padding-left: 20px; }
a { color: #1C3655; text-decoration: none; transition: color 0.18s; }
a:hover, a:focus { color: #51B36C; }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
table { width: 100%; border-collapse: collapse; margin-bottom: 24px; background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(28,54,85,0.03); overflow: hidden; }
th, td { padding: 12px 18px; border-bottom: 1px solid #EFEFEF; text-align: left; font-family: 'Roboto', Arial, sans-serif; }
th { background: #F8F9FA; font-family: 'Montserrat', 'Roboto', Arial, sans-serif; }
tr:last-child td { border-bottom: none; }

/* CONTAINER & LAYOUT */
.container { width:100%; max-width: 1100px; margin: 0 auto; padding: 0 18px; }
.content-wrapper { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
main { min-height: 60vh; }

/* FLEXBOX PATTERNS */
.section { margin-bottom: 60px; padding: 40px 20px; background: #fff; border-radius: 18px; box-shadow: 0 2px 24px rgba(28,54,85,0.04); }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 20px; }
.card { margin-bottom: 20px; position: relative; border-radius: 14px; box-shadow: 0 2px 14px rgba(28, 54, 85, 0.06); background: #fff; padding: 30px 24px; transition: box-shadow .18s; }
.card:hover { box-shadow: 0 4px 28px rgba(80,140,110,0.10); }
.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; flex-direction: column; align-items: flex-start; gap: 20px; padding: 20px; background: #EFEFEF; border-radius: 14px; box-shadow: 0 2px 12px rgba(28,54,85,0.065); margin-bottom: 20px; min-width: 0; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* RESPONSIVE FLEX ADJUSTMENTS */
@media (max-width: 900px) {
  .container { max-width: 98vw; }
  .section { margin-bottom: 36px; padding: 28px 10px; }
}
@media (max-width: 768px) {
  .content-grid, .feature-grid, .card-container, .text-image-section { flex-direction: column !important; gap: 24px !important; }
  .section { padding: 22px 4vw; margin-bottom: 32px; }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.15rem; }
  header nav { gap: 7px !important; }
}

/* BUTTONS */
.btn-primary,
a.btn-primary {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  background: #1C3655;
  color: #fff !important;
  font-size: 1rem;
  border: none;
  border-radius: 32px;
  padding: 12px 32px;
  margin-top: 10px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(28,54,85,0.045);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background .18s, box-shadow .18s, color .18s;
  display: inline-block;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus, a.btn-primary:hover, a.btn-primary:focus {
  background: #51B36C;
  color: #fff;
  box-shadow: 0 3px 20px rgba(81,179,108,0.11);
  text-decoration: none;
}

/* HEADER & NAVIGATION */
header { background: #fff; position: relative; box-shadow: 0 2px 14px rgba(28, 54, 85, 0.05); z-index: 10; }
header nav { display: flex; align-items: center; gap: 18px; padding: 18px 0; flex-wrap: wrap; justify-content: flex-start; }
header nav img { height: 44px; width: auto; margin-right: 18px; }
header nav a { font-family: 'Montserrat', 'Roboto', Arial, sans-serif; color: #1C3655; font-size: 1rem; font-weight: 500; padding: 8px 10px; border-radius: 7px; transition: background .15s, color .15s; }
header nav a:hover, header nav a:focus { background: #EFEFEF; color: #51B36C; text-decoration: none; }
header nav a.btn-primary { margin-left: auto; margin-right: 0; }

/* MOBILE HEADER NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  border: 1.5px solid #ECECEC;
  border-radius: 50%;
  font-size: 2.1rem;
  color: #222;
  padding: 6px 16px 8px 16px;
  margin-left: auto;
  cursor: pointer;
  transition: box-shadow 0.13s, border-color 0.13s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  border-color: #51B36C;
  box-shadow: 0 2px 8px #51B36C22;
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(28,54,85, 0.13);
  display: flex;
  flex-direction: column;
  z-index: 99;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .27s, visibility .27s;
  /* transform used for smooth slide animation */
}
.mobile-menu.open {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.mobile-menu nav.mobile-nav {
  background: #fff;
  position: absolute;
  top: 0; right: 0;
  height: 100vh;
  width: 88vw;
  max-width: 340px;
  min-width: 225px;
  box-shadow: -6px 1px 32px #1c365514;
  display: flex; flex-direction: column;
  gap: 14px;
  padding: 48px 26px 24px 32px;
  transform: translateX(110%);
  transition: transform .28s cubic-bezier(.69,.29,.36,1);
}
.mobile-menu.open nav.mobile-nav {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #1C3655;
  font-size: 2.1rem;
  position: absolute;
  top: 13px; right: 18px;
  cursor: pointer;
  padding: 2px 10px;
  z-index: 102;
  transition: color 0.14s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover { color: #51B36C; }
.mobile-nav a {
  color: #1C3655;
  font-size: 1.04rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  padding: 10px 6px;
  border-radius: 6px;
  margin-bottom: 2px;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus { background: #EFEFEF; color: #51B36C; }
@media (max-width: 1080px) {
  header nav { gap: 10px; }
  nav a.btn-primary { margin-left: 0; margin-right: 0; }
}
@media (max-width: 900px) {
  header nav img { height: 36px; margin-right: 10px; }
}
@media (max-width: 768px) {
  header nav { display: none; }
  .mobile-menu-toggle { display: inline-block; z-index: 100; margin: 13px; }
}
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
  header nav { display: flex !important; }
}

/* HERO & TAGLINE */
.tagline {
  font-size: 1.25rem;
  color: #51B36C;
  margin-bottom: 30px;
  font-weight: 500;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}
/* FEATURE GRID (index + flex wrapper) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 18px;
  justify-content: flex-start;
}
.feature-grid > div {
  flex: 1 1 200px;
  min-width: 205px;
  max-width: calc(50% - 18px);
  background: #F8F9FA;
  border-radius: 14px;
  box-shadow: 0 1px 7px #1c365508;
  padding: 26px 18px 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.16s;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 14px #51B36C1A;
}
.feature-grid img { width: 36px; height: 36px; margin-bottom: 8px; }
@media (max-width: 900px) {
  .feature-grid > div { max-width: 100%; }
}
@media (max-width: 768px) {
  .feature-grid { flex-direction: column; gap: 24px; }
  .feature-grid > div { width: 100%; max-width: 100%; }
}

/* SERVICE LIST (index.php) */
.service-list { list-style: none; margin-bottom: 16px; display: flex; flex-direction: column; gap: 14px; }
.service-list li { display: flex; align-items: center; gap: 12px; padding: 13px 6px; background: #F8F9FA; border-radius: 10px; box-shadow: 0 1px 7px #1C365509; font-size: 1rem; }
.service-list li span { display: inline-flex; align-items: center; justify-content: center; width: 32px; margin-right: 2px; }
.service-highlight { margin-bottom: 14px; background: #EFEFEF; border-radius: 6px; padding: 15px 16px; color: #1C3655; font-size: 1.01rem; }

/* STEP LIST (index, jak-to-dziala) */
.step-list, .step-by-step-guide { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 16px; list-style: none; flex-direction: row; }
.step-list li, .step-by-step-guide li {
  display: flex; align-items: center; gap: 11px; background: #F8F9FA; border-radius: 10px; padding: 15px 16px; box-shadow: 0 2px 12px #1C365509; flex: 1 1 180px; min-width:200px; }
.step-list img, .step-by-step-guide img { width: 30px; height: 30px; margin-right: 4px; }
@media (max-width: 900px) {
  .step-list, .step-by-step-guide { flex-direction: column; gap: 14px; }
  .step-list li, .step-by-step-guide li { width: 100%; max-width: 100%; }
}

/* TESTIMONIALS */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.testimonial-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  padding: 22px 19px;
  background: #EFEFEF;
  color: #1C3655;
  border-radius: 14px;
  min-width: 0;
  box-shadow: 0 2px 12px #1C365509;
  flex: 1 1 320px;
  max-width: 420px;
  margin-bottom: 0;
}
.testimonial-card blockquote {
  font-size: 1.06rem;
  font-style: italic;
  margin-bottom: 10px;
  line-height: 1.6;
  color: #1C3655;
}
.testimonial-info {
  font-size: 0.98rem;
  font-weight: 500;
  color: #222;
  margin-bottom: 4px;
}
.star-ratings { display: flex; align-items: center; gap: 2px; }
.star-ratings img { width: 19px; height: 19px; }
.star-rating-summary, .testimonial-rating-summary {
  display: flex; align-items: center; gap: 9px; font-size: 1rem;
  color: #222;
  margin-top: 10px; margin-bottom: 0;
  background: #fff; border-radius: 8px; box-shadow: 0 1px 7px #1C365509; padding: 8px 14px;
}
.testimonial-rating-summary img, .star-rating-summary img { width: 22px; height: 22px; margin-right: 2px; }
@media (max-width: 900px) {
  .testimonial-list { flex-direction: column; gap: 18px; }
  .testimonial-card { max-width: 100%; }
}

/* FORMS, DETAILS, DL/DT/DD */
dt { font-weight: 700; margin-bottom: 3px; color: #1C3655; }
dd { margin-bottom: 10px; color: #35516B; font-size: 0.99rem; }

/* CARDS (about, kontakt, etc.) */
.text-section, .confirmation-message, .reassurance-messaging { background: #F8F9FA; border-radius: 8px; padding: 18px 16px; margin-bottom: 16px; color: #1C3655; font-size: 1.01rem; }
.next-steps ul { margin-bottom: 0; }
.next-steps li { margin-bottom: 5px; }
.certificates { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.certificates img { width: 32px; height: 32px; }

/* PRICES/CENNIK */
.price-notes p { font-size: 0.98rem; color: #525252; margin-bottom: 8px; }

/* FOOTER */
footer { background: #F8F9FA; padding: 32px 0 18px 0; border-top: 1px solid #F0F0F0; }
footer nav { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-start; align-items: center; margin-bottom: 18px; }
footer nav a { color: #383C40; font-size: 0.97rem; font-family: 'Montserrat', 'Roboto', Arial, sans-serif; font-weight: 500; padding: 7px 8px; border-radius: 7px; transition: background .15s, color .15s; }
footer nav a:hover, footer nav a:focus { background: #EFEFEF; color: #51B36C; text-decoration: none; }
.footer-info { display: flex; flex-wrap: wrap; gap: 16px; align-items: baseline; font-size: 0.96rem; color: #999; flex-direction: row; }
.footer-info img { height: 20px; width: auto; vertical-align: middle; margin-right: 7px; }
@media (max-width: 780px) {
  footer nav, .footer-info { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* MISC SECTIONS */
.legal-text, .map-embed, .service-faq { background: #F8F9FA; border-radius: 9px; padding: 14px 16px; color: #222;
  font-size: 1.01rem; margin-bottom: 18px; }
.legal-text ul { margin-bottom: 10px; }
.legal-text ol { margin-bottom: 8px; }

/* COOKIE CONSENT BANNER & MODAL */
.cookie-consent-banner {
  position: fixed; bottom: 0; left: 0; width: 100vw;
  background: #fff; box-shadow: 0 -2px 26px #1C36551A;
  display: flex; align-items: flex-start; gap: 26px;
  z-index: 199;
  padding: 24px 4vw 20px 4vw;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  transition: transform .28s cubic-bezier(.69,.29,.36,1), opacity .18s;
}
.cookie-consent-banner.hide { transform: translateY(100%); opacity: 0; pointer-events: none; }
.cookie-consent-banner p { flex: 2 1 235px; font-size: 1rem; color: #1C3655; margin-bottom: 0; }
.cookie-consent-banner .cookie-buttons { display: flex; flex-direction: row; gap: 13px; align-items: center; }
.cookie-consent-banner button {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 0.99rem;
  border: none;
  border-radius: 19px;
  padding: 8px 22px;
  background: #EFEFEF;
  color: #1C3655;
  font-weight: 500;
  cursor: pointer;
  margin: 0 2px;
  transition: background .17s, color .16s;
}
.cookie-consent-banner button.accept { background: #1C3655; color: #fff; }
.cookie-consent-banner button.accept:hover, .cookie-consent-banner button.accept:focus { background: #51B36C; color: #fff; }
.cookie-consent-banner button.reject {
  background: #f7f7f7;
  color: #1C3655;
}
.cookie-consent-banner button.reject:hover, .cookie-consent-banner button.reject:focus { background: #e4eaea; color: #1C3655; }
.cookie-consent-banner button.settings { background: #EFEFEF; color: #1C3655; }
.cookie-consent-banner button.settings:hover, .cookie-consent-banner button.settings:focus { background: #dde2e2; color: #51B36C; }
@media (max-width: 900px) {
  .cookie-consent-banner { padding: 12px 2vw 10px 2vw; }
  .cookie-consent-banner p { font-size: 0.98rem; }
}
@media (max-width: 600px) {
  .cookie-consent-banner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 15px 3vw 14px 3vw; }
  .cookie-consent-banner .cookie-buttons { flex-direction: row; gap: 7px; }
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  position: fixed; top:0; left:0; right:0; bottom:0; background: rgba(28,54,85,0.19);
  z-index: 201; display: flex; justify-content: center; align-items: center;
  opacity: 0; pointer-events: none; transition: opacity .24s;
}
.cookie-modal-overlay.open { opacity: 1; pointer-events: auto; }
.cookie-modal {
  background: #fff; border-radius: 16px; box-shadow: 0 9px 40px #1C365515;
  padding: 36px 28px 28px 28px; min-width: 275px; max-width: 98vw; width: 100%; max-width: 410px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 24px;
  position: relative;
}
.cookie-modal h3 { margin-bottom: 14px; font-size: 1.1rem; }
.cookie-category-list { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.cookie-category {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: #F8F9FA; border-radius: 8px; padding: 9px 13px; font-size: 1rem;
}
.cookie-category .switch { pointer-events: auto;
  --switch-bg: #c8cfd6;
  --switch-bg-checked: #51B36C;
  --switch-thumb: #fff;
  width: 34px; height: 18px; border-radius: 10px; background: var(--switch-bg); position: relative; cursor: pointer; transition: background .15s; display: inline-block; margin-left: 8px;
}
.cookie-category .switch.checked { background: var(--switch-bg-checked); }
.cookie-category .switch .thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--switch-thumb); position: absolute; top:1px; left:2px; transition: left .18s; }
.cookie-category .switch.checked .thumb { left: 16px; }
.cookie-category .essential { color: #51B36C; font-weight: 600; }
.cookie-modal .modal-actions { display: flex; align-items: center; gap: 13px; margin-top: 8px; }
.cookie-modal button {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 0.99rem;
  border: none; border-radius: 17px; padding: 8px 20px;
  cursor: pointer; transition: background .15s, color .15s;
  background: #EFEFEF; color: #1C3655; font-weight: 500;
  margin-top: 0; margin-bottom: 0;
}
.cookie-modal button.save { background: #1C3655; color: #fff; }
.cookie-modal button.save:hover, .cookie-modal button.save:focus { background: #51B36C; color: #fff; }
.cookie-modal-close {
  background: none; border: none; color: #222;
  position: absolute; right: 18px; top: 12px;
  font-size: 1.5rem; cursor: pointer;
  padding: 3px 8px;
  z-index: 4;
  transition: color 0.13s; }
.cookie-modal-close:hover, .cookie-modal-close:focus { color: #51B36C; }

/* TRANSITIONS & MICRO-INTERACTIONS */
.btn-primary,
header nav a,
footer nav a,
.card, .feature-grid > div, .cookie-consent-banner button, .cookie-modal button {
  transition: background 0.18s, color 0.16s, box-shadow 0.17s;
}
.card, .feature-grid > div { transition: box-shadow .17s; }
input, select, textarea { font-family: 'Roboto', Arial, sans-serif; font-size: 1rem; border: 1px solid #E0E3E7; border-radius: 8px; padding: 8px 13px; background: #F8F9FA; color: #1C3655; margin-bottom: 12px; transition: border-color .16s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #51B36C; background: #fff; }

/* ACCESSIBILITY/UTILITIES */
.sr-only { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

::selection { background: #D5F5E3; color: #1C3655; }

@media (max-width: 480px) {
  .container { padding: 0 3vw; }
  .btn-primary { width: 100%; text-align: center; }
  .section { padding: 1.1rem 0.7rem; margin-bottom: 16px; }
  .testimonial-card { padding: 13px 7px; }
  .feature-grid > div { padding: 15px 9px; }
}

/* ENSURE SPACING/MINIMALIST GAPS (overwrite if necessary) */
.section, .card, .testimonial-card, .feature-grid > div, .faq, .service-highlight, .text-section, .confirmation-message, .reassurance-messaging, .legal-text, .map-embed, .price-notes { margin-bottom: 20px; }
.card-container, .content-grid, .text-image-section, .testimonial-list { gap: 20px; }
.card { margin-bottom: 20px; }
/* Never use grid or columns or break-inside. All layout is flex. */