/* --- CSS RESET & BASE --- */
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;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #181d1f;
  color: #F6F6F6;
  min-height: 100%;
}
body {
  background: #181d1f;
  color: #F6F6F6;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #3EA3C2;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: #96dae8;
}

/* --- BRAND FONTS LOADER & FALLBACKS --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  color: #F6F6F6;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
h1 { font-size: 2.5rem; line-height: 1.13; margin-top: 8px; }
h2 { font-size: 2rem; margin-top: 8px; }
h3 { font-size: 1.25rem; letter-spacing: 0.01em; font-weight: 700; }
h4 { font-size: 1.05rem; }

p, ul, ol, li { font-family: 'Open Sans', Arial, Helvetica, sans-serif; font-size: 1rem; color: #d2d6db; }
strong, b { color:#F6F6F6; font-weight: bold; }
em, i { color: #96dae8; }

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

/* --- FLEXBOX DESIGN PATTERNS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #23292c;
  border-radius: 12px;
  box-shadow: 0 2px 16px 0 rgba(40, 46, 54, 0.27);
  margin-bottom: 20px;
  position: relative;
  border: 1px solid #262e33;
  padding: 32px 24px;
  min-width: 280px;
  flex: 1 1 280px;
  transition: box-shadow 0.2s cubic-bezier(.4,0,.2,1), transform 0.2s cubic-bezier(.4,0,.2,1);
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(62, 163, 194, 0.18),0 2px 16px 0 rgba(40,46,54,0.19);
  transform: translateY(-4px) scale(1.03);
  border-color: #3EA3C2;
}
.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: 16px;
  background: #F6F6F6;
  color: #21272a;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  min-width: 240px;
  box-shadow: 0 1px 12px 0 rgba(40, 46, 54, 0.13);
  border-left: 5px solid #3EA3C2;
  transition: box-shadow 0.2s cubic-bezier(.4,0,.2,1), background 0.2s;
}
.testimonial-card p {
  font-size: 1.07rem;
  color: #21282a;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #888c90;
  font-style: italic;
}
.testimonial-card:hover {
  box-shadow: 0 4px 28px 0 rgba(62,163,194,0.12);
  background: #e6eced;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* --- Responsive grids for features & services --- */
.feature-grid, .service-cards, .service-list, .testimonial-list, .testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: start;
}
.feature-grid > div, .service-cards > div, .service-list > div {
  background: #23292c;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(40, 46, 54, 0.17);
  padding: 32px 24px 24px 24px;
  flex: 1 1 260px;
  min-width: 250px;
  margin-bottom: 20px;
  border: 1px solid #262e33;
  transition: box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-grid > div:hover, .service-cards > div:hover, .service-list > div:hover {
  box-shadow: 0 8px 32px 0 rgba(62, 163, 194, 0.18),0 2px 12px 0 rgba(40,46,54,0.14);
  border-color: #3EA3C2;
}

.feature-grid img, .service-cards img, .service-list img {
  width: 44px; height: 44px; margin-bottom: 14px;
  filter: brightness(1.1) contrast(1.3);
}
.price {
  color: #3EA3C2;
  font-weight: 900;
  font-size: 1.05rem;
  margin-top: 8px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* --- TABLES (CENNIK) --- */
table {
  width: 100%;
  border-collapse: collapse;
  background: #23292c;
  border-radius: 10px;
  margin-bottom: 32px;
  margin-top: 8px;
  overflow: hidden;
  font-size: 1rem;
  box-shadow: 0 1px 14px 0 rgba(40, 46, 54, 0.13);
}
thead tr {
  background: #1A2327;
}
th, td {
  padding: 18px 12px;
  text-align: left;
}
th {
  color: #3EA3C2;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  border-bottom: 2px solid #23292c;
}
td {
  color: #e6eced;
  border-bottom: 1px solid #262e33;
}
@media (max-width: 600px) {
  table, thead, tbody, tr, th, td {
    display: block;
  }
  thead {
    display: none;
  }
  tr {
    margin-bottom: 15px;
  }
  td {
    padding: 14px 8px;
    border-bottom: none;
    position: relative;
  }
}

/* --- BUTTONS & LINKS --- */
.button, a.button, button.button {
  display: inline-block;
  background: #23292c;
  color: #3EA3C2;
  border: 2px solid #3EA3C2;
  border-radius: 8px;
  padding: 14px 32px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  margin: 8px 0 0 0;
  box-shadow: 0 1px 8px 0 rgba(40,46,54,0.14);
}
.button.primary, a.button.primary, button.button.primary {
  background: #3EA3C2;
  color: #23292c;
  border-color: #3EA3C2;
  box-shadow: 0 3px 18px 0 rgba(62, 163, 194, 0.22);
}
.button:hover, .button:focus {
  background: #23292c;
  color: #fff;
  border-color: #6ac5df;
  box-shadow: 0 6px 32px 0 rgba(62, 163, 194, 0.25);
  outline: none;
}
.button.primary:hover, .button.primary:focus {
  background: #2996BA;
  color: #F6F6F6;
  border-color: #43caff;
}

/* --- NAVIGATION --- */
header {
  background: #1A2327;
  border-bottom: 1px solid #262e33;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 12px 16px 12px 18px;
}
header nav a {
  color: #EEF2F3;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1rem;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
header nav a.button {
  margin-left: 16px;
}
header nav a:hover, header nav a:focus {
  background: #232b2f;
  color: #3EA3C2;
}
header nav img {
  height: 44px;
  width: auto;
  margin-right: 24px;
  filter: brightness(1.25) contrast(1.35);
}

/* --- FOOTER --- */
footer {
  background: #1A2327;
  border-top: 1px solid #262e33;
  padding: 36px 0 24px 0;
}
footer .container {
  width: 100%;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
footer nav a {
  color: #96dae8;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 2px 0;
  transition: color 0.2s;
}
footer nav a:hover, footer nav a:focus {
  color: #3EA3C2;
}
footer img {
  height: 44px;
  width: auto;
  margin-bottom: 14px;
  filter: grayscale(0.2) brightness(1.25);
}
.social-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.social-links a img {
  width: 30px;
  height: 30px;
  filter: grayscale(1) brightness(1.5) contrast(1.5);
  transition: filter 0.2s;
}
.social-links a:hover img {
  filter: none;
}

/* --- UTILITY & SPECIALIZED SECTIONS --- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.text-section ul, .text-section ol {
  margin-left: 24px;
  margin-bottom: 12px;
  color: #bfc6cb;
}
.pricing-notes ul {
  margin-left:24px;
  color: #bfc6cb;
}
.average-rating {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #3EA3C2;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.review-summary { margin-bottom: 18px; }

/* -- MAP EMBED, CONTACT INFO ETC -- */
.contact-info {
  background: #22282a;
  padding: 24px;
  border-radius: 10px;
  margin-bottom: 18px;
  color: #d2d6db;
  font-size: 1.06rem;
  box-shadow: 0 2px 12px 0 rgba(40, 46, 54, 0.13);
}
.map-embed {
  background: #23292c;
  border-radius: 10px;
  padding: 20px;
  color: #bfc6cb;
  font-style: italic;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 1080px) {
  .feature-grid > div, .service-cards > div, .service-list > div {
    min-width: 200px;
    flex: 1 1 200px;
  }
  .container {
    max-width: 100%;
    padding: 0 8px;
  }
}
@media (max-width: 850px) {
  .testimonial-slider, .feature-grid, .service-cards, .service-list {
    flex-direction: column;
    gap: 18px;
  }
  .footer .content-wrapper {
    flex-direction: column;
    gap: 28px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.34rem; }
  .section { padding: 24px 8px; margin-bottom: 42px; }
  .feature-grid > div, .service-cards > div, .service-list > div {
    min-width: unset;
    padding: 20px 12px 18px 12px;
  }
  .content-wrapper { gap: 16px; }
  .testimonial-card { min-width: unset; }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  header nav {
    flex-wrap: wrap;
    padding: 12px 8px 12px 8px;
    gap: 6px;
  }
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #3EA3C2;
  font-size: 2.2rem;
  padding: 7px 16px;
  cursor: pointer;
  margin-left: auto;
  z-index: 1012;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #3EA3C2;
}
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  z-index: 2000;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(26,35,39,0.98);
  transform: translateX(100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  align-items: flex-start;
  transition: transform 0.38s cubic-bezier(.77,0,.18,1);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.mobile-menu.open {
  transform: translateX(0%);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #3EA3C2;
  font-size: 2.2rem;
  padding: 13px 18px;
  align-self: flex-end;
  cursor: pointer;
  margin: 18px 18px 12px 0;
  transition: color 0.2s;
}
.mobile-menu-close:focus {
  outline: 2px solid #3EA3C2;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 0 0 36px;
  margin-top:40px;
}
.mobile-nav a {
  color: #F6F6F6;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  padding: 10px 0;
  border-radius: 6px;
  transition: color 0.18s, background 0.18s;
  margin: 0;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  color: #3EA3C2;
  background: rgba(62, 163, 194, 0.05);
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 2500;
  background: #151b1e;
  color: #eef2f3;
  box-shadow: 0 -4px 30px 0 rgba(40,42,50,0.24);
  border-top: 1px solid #262e33;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 12px 20px 12px;
  gap: 18px;
  animation: cookieSlideIn 0.44s cubic-bezier(.77,0,.18,1);
}
@keyframes cookieSlideIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #eef2f3;
  font-size: 1rem;
  margin-bottom: 4px;
  text-align: center;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.cookie-banner .button, .cookie-banner button {
  min-width: 110px;
  font-size: 0.98rem;
  padding: 12px 18px;
  margin: 0;
}
.cookie-banner .button.settings {
  background: #23292c;
  color: #3EA3C2;
  border: 2px solid #3EA3C2;
}
.cookie-banner .button.settings:hover,
.cookie-banner .button.settings:focus {
  background: #262e33;
  color: #F6F6F6;
}

/* --- COOKIE MODAL POPUP --- */
#cookie-modal {
  display: none;
  position: fixed;
  z-index: 4000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(26,35,39,0.89);
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  animation: fadeIn 0.28s ease-in;
}
#cookie-modal.active{
  display: flex;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-content {
  background: #23292c;
  color: #F6F6F6;
  padding: 36px 24px;
  border-radius: 16px;
  box-shadow: 0 6px 32px 0 rgba(40,46,54,0.25);
  min-width: 315px; max-width: 95vw;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px;
  border: 1px solid #3EA3C2;
}
.cookie-modal-content h2 {
  color: #3EA3C2;
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.cookie-modal-content ul {
  margin-left: 24px;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.cookie-category label {
  font-size: 1.04rem;
  font-weight: 700;
  color: #F6F6F6;
}
.cookie-category input[type="checkbox"] {
  accent-color: #3EA3C2;
  width: 18px; height: 18px;
  margin-right: 4px;
}
.cookie-modal-content .modal-btns {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal-content .button {
  font-size: 1rem;
  padding: 9px 20px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  color: #3EA3C2;
  border: none;
  font-size: 1.55rem;
  font-family: inherit;
  cursor: pointer;
}
.cookie-modal-close:focus {
  outline: 2px solid #3EA3C2;
}

/* Hide when not present */
.cookie-banner.hide {
  display: none !important;
}

/* --- MICRO-INTERACTIONS + EFFECTS --- */
.button, a.button, button.button, .feature-grid > div, .service-cards > div, .service-list > div, .testimonial-card, .card {
  transition: box-shadow 0.2s cubic-bezier(.4,0,.2,1), border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
}
.button:active { transform: scale(0.97); }
.feature-grid > div:active, .service-cards > div:active, .service-list > div:active, .card:active {
  transform: scale(0.987);
}

/* --- STRONG VISUAL HIERARCHY --- */
h1, h2, h3 {
  text-shadow: 0 2px 6px rgba(16,32,40,0.18);
}
.section {
  box-shadow: 0 2px 16px 0 rgba(17,22,30,0.06);
  border-radius: 14px;
  background: #23292c;
}
.section:nth-child(odd) {
  background: #1A2327;
}

/* --- INDUSTRIAL MODERN ACCENTS --- */
.card, .feature-grid > div, .service-cards > div, .service-list > div {
  border-left: 5px solid #3EA3C2;
  box-shadow: 0 2px 18px 0 rgba(62,163,194,0.11);
}
.card:before, .feature-grid > div:before {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: #b3c2c6;
  border-radius: 2px;
  margin-bottom: 12px;
}

/* --- ACCESSIBILITY: FOCUS/HOVER STYLES --- */
*:focus {
  outline: 2px solid #3EA3C2;
  outline-offset: 2px;
}
header nav a:focus, .mobile-nav a:focus {
  background: #262e33;
  color: #3EA3C2;
}

/* --- SPACING ENFORCEMENT --- */
.feature-grid > div, .service-cards > div, .service-list > div, .card, .testimonial-card {
  margin-bottom: 20px !important;
}
.content-wrapper, .feature-grid, .service-cards, .service-list, .testimonial-slider, .testimonial-list {
  gap: 24px !important;
}
@media (max-width: 600px) {
  .card-container, .feature-grid, .service-cards, .service-list, .testimonial-slider, .testimonial-list {
    gap: 15px !important;
  }
  .section { margin-bottom: 20px; padding: 16px 4px; }
}

/* --- MODAL OVERLAY BARRIER (behind cookie modal, multiple overlays case) --- */
.modal-overlay {
  position: fixed;
  left:0; right:0; top:0; bottom:0;
  z-index:3999;
  background: rgba(34,40,43,0.6);
  pointer-events: auto;
  display: none;
}
.modal-overlay.active { display: block; }

/* --- PRINT FRIENDLY --- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, #cookie-modal { display:none!important; }
  .section, .container, .content-wrapper { box-shadow:none!important; }
  body { background: #fff; color: #111; }
}
