/* ElectroGleam Rehabilitacja - CREATIVE_ARTISTIC FLEXBOX CSS */
/* --- RESET & BASE --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #f7f7fa;
  color: #134e68;
  line-height: 1.7;
  font-size: 1rem;
  min-height: 100vh;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #0fab8a;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #134e68;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
}
strong {
  font-weight: 700;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  color: #0fab8a;
  margin-bottom: 20px;
  line-height: 1.15;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 20px;
  font-weight: 900;
  text-shadow: 0 2px 32px rgba(19,78,104,0.07);
}
h2 {
  font-size: 1.5rem;
  font-weight: 800;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
}
h4, h5, h6 {
  font-weight: 600;
}
.subheadline {
  font-size: 1.125rem;
  color: #134e68;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 24px;
}

/* Container, Wrapper, Section spacing */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 28px;
  position: relative;
  box-shadow: 0 2px 24px 0 rgba(19,78,104,0.07);
}

/* --- MAIN HEADER --- */
header {
  position: relative;
  z-index: 1002;
  background: #134e68;
  box-shadow: 0 2px 12px 0 rgba(19,78,104,0.08);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 8px;
  border-radius: 18px;
  background: none;
  transition: background 0.16s, color 0.16s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: #0fab8a;
  color: #fff;
}
header nav a.cta {
  background: #0fab8a;
  color: #fff;
  font-weight: 800;
  padding: 8px 24px;
  border-radius: 24px;
  margin-left: 10px;
  box-shadow: 0 2px 16px 0 rgba(19,78,104,0.18);
  transition: background 0.22s, box-shadow 0.2s;
}
header nav a.cta:hover, header nav a.cta:focus {
  background: #fff;
  color: #134e68;
  box-shadow: 0 4px 32px 0 rgba(19,78,104,0.26);
}
header .container > a {
  margin-right: 32px;
  min-width: 140px;
  display: flex;
  align-items: center;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  background: #0fab8a;
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 16px;
  padding: 4px 18px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.22s;
  box-shadow: 0 2px 10px 0 rgba(19,78,104,0.06);
}
.mobile-menu-toggle:focus {
  outline: 2px solid #0fab8a;
}
@media (max-width: 992px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(19,78,104,0.98);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.8,.4,.3,1);
  z-index: 2002;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 0;
  padding-bottom: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 28px 28px 0 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0 8px;
  border-radius: 50%;
  transition: background 0.18s;
}
.mobile-menu-close:focus {
  outline: 2px solid #0fab8a;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px 28px;
  width: 100%;
}
.mobile-nav a {
  color: #0fab8a;
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 14px 0;
  text-align: left;
  border-radius: 12px;
  background: none;
  transition: color 0.18s, background 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fff;
  background: rgba(15,171,138,0.16);
  text-decoration: underline;
}

/* --- SECTIONS & FLEX LAYOUTS --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 rgba(19,78,104,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-6px) scale(1.03) rotate(-1deg);
  box-shadow: 0 6px 32px 0 rgba(15,171,138,0.21);
}
.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: 24px 28px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 rgba(19,78,104,0.09);
  margin-bottom: 24px;
  color: #134e68;
  min-width: 260px;
  max-width: 480px;
  position: relative;
  z-index: 1;
}
.testimonial-card p {
  font-size: 1.1rem;
  font-style: italic;
  font-family: 'Montserrat', serif;
  color: #134e68;
  margin-bottom: 10px;
}
.testimonial-card span {
  color: #0fab8a;
  font-weight: bold;
  font-size: .97rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  width: 100%;
  justify-content: flex-start;
}
.features-grid > div {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 22px 0 rgba(15,171,138,0.06);
  padding: 28px 24px 22px 24px;
  min-width: 220px;
  flex: 1 1 220px;
  max-width: 312px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  margin-bottom: 0;
  transition: box-shadow 0.15s, transform 0.14s;
}
.features-grid > div:hover {
  box-shadow: 0 4px 32px 0 rgba(15,171,138,0.19);
  transform: scale(1.033) rotate(0.8deg);
  z-index: 2;
}
.features-grid img {
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border-radius: 0 18px 0 18px;
  background: #0fab8a13;
  box-shadow: 0 2px 6px 0 rgba(19,78,104,0.07);
}
.features-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.features-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #134e68;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.features-list img {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 11px 0 rgba(15,171,138,0.07);
}

/* --- BUTTONS & CTAS --- */
.cta, .btn {
  background: #0fab8a;
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 14px 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 16px;
  margin-bottom: 8px;
  box-shadow: 0 2px 22px 0 rgba(15,171,138,0.17);
  letter-spacing: 0.01em;
  transition: background 0.17s, color 0.12s, box-shadow 0.2s, transform 0.13s;
  outline: none;
  display: inline-block;
}
.cta:hover, .btn:hover, .cta:focus, .btn:focus {
  background: #134e68;
  color: #fff;
  box-shadow: 0 4px 36px 0 rgba(19,78,104,0.22);
  transform: scale(1.043);
  text-decoration: none;
}

/* --- TABLE STYLES (CENNIK) --- */
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin: 25px 0 30px 0;
  font-size: 1rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(19,78,104,0.07);
  overflow: hidden;
}
thead tr {
  background: #134e68;
  color: #fff;
}
thead th {
  padding: 18px 12px;
  font-size: 1.13rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
tbody td {
  padding: 16px 12px;
  border-bottom: 1px solid #def8f6;
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr:nth-child(odd) {
  background: #f7f7fa;
}
tbody tr:hover {
  background: #e8fdf7;
}

/* --- FOOTER --- */
footer {
  background: #134e68;
  color: #fff;
  padding: 48px 0 24px 0;
  margin-top: 64px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 160px;
}
footer nav a {
  color: #0fab8a;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: color 0.17s;
}
footer nav a:hover {
  color: #fff;
  text-decoration: underline;
}
footer .text-section {
  font-size: .97rem;
  color: #fff;
  max-width: 320px;
}
footer .text-section span {
  display: block;
  color: #fff;
  opacity: 0.75;
  font-size: 0.86rem;
  margin-top: 18px;
  font-family: 'Roboto', Arial, sans-serif;
}
footer .container > a {
  min-width: 92px;
  margin-top: -12px;
}

/* --- MISC ELEMENTS --- */
li img, .map img {
  vertical-align: middle;
  margin-right: 8px;
}
.map {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #eefdfa;
  border-radius: 11px;
  padding: 18px 18px 16px 18px;
  box-shadow: 0 2px 6px 0 rgba(19,78,104,0.05);
  margin: 12px 0;
  min-width: 200px;
}
.map img {
  width: 56px;
  height: 56px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #0fab8a;
  color: #fff;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 12px 22px 12px;
  box-shadow: 0 -2px 22px 0 rgba(19,78,104,0.14);
  flex-wrap: wrap;
  gap: 18px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.35s, transform 0.35s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner button {
  margin-left: 10px;
  border: none;
  font-size: 1rem;
  padding: 10px 28px;
  border-radius: 16px;
  background: #fff;
  color: #0fab8a;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  transition: background 0.15s, color 0.17s, box-shadow 0.13s;
  cursor: pointer;
  box-shadow: 0 2px 9px 0 rgba(19,78,104,0.05);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #134e68;
  color: #fff;
}
.cookie-banner .cookie-settings {
  background: #f7f7fa;
  color: #134e68;
  margin-left: 10px;
}
.cookie-banner .cookie-settings:hover {
  background: #0fab8a;
  color: #fff;
}

/* --- COOKIE MODAL (PREFERENCES) --- */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  min-width: 320px;
  max-width: 94vw;
  background: #fff;
  color: #134e68;
  border-radius: 28px;
  box-shadow: 0 6px 64px 0 rgba(19,78,104,0.14);
  z-index: 4000;
  transform: translate(-50%,-54%) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.29s, transform 0.33s;
  padding: 30px 30px 24px 30px;
}
.cookie-modal.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h2 {
  color: #0fab8a;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal .close-btn {
  position: absolute;
  right: 24px;
  top: 18px;
  background: none;
  border: none;
  color: #0fab8a;
  font-size: 1.6rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.13s;
}
.cookie-modal .close-btn:hover {
  background: #eefdfa;
}
.cookie-modal .categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 20px 0 24px 0;
}
.cookie-modal label {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #134e68;
  font-weight: 500;
}
.cookie-modal input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0fab8a;
}
.cookie-modal .cookie-accept, .cookie-modal .cookie-reject {
  margin-right: 12px;
}
.cookie-modal .cookie-accept, .cookie-modal .cookie-reject, .cookie-modal .cookie-close {
  border: none;
  padding: 10px 26px;
  margin-bottom: 0;
  border-radius: 16px;
  background: #0fab8a;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.cookie-modal .cookie-reject {
  background: #f7f7fa;
  color: #134e68;
}
.cookie-modal .cookie-reject:hover {
  background: #134e68;
  color: #fff;
}
.cookie-modal .cookie-accept:hover {
  background: #134e68;
}
.cookie-modal .cookie-close {
  background: #f7f7fa;
  color: #134e68;
  margin-left: 10px;
}
.cookie-modal .cookie-close:hover {
  background: #0fab8a;
  color: #fff;
}

/* --- QUERIES & RESPONSIVENESS --- */
@media (max-width: 1200px) {
  .container {
    max-width: 1000px;
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 992px) {
  .container {
    max-width: 764px;
  }
  .features-grid {
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 98vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  header .container {
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .content-wrapper {
    gap: 24px;
  }
  .features-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .features-grid > div {
    min-width: 0;
    max-width: 100%;
    padding: 22px 13px 16px 13px;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .section {
    padding: 26px 7px;
    margin-bottom: 34px;
  }
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}

@media (hover: none) and (pointer: coarse) {
  a:hover, .cta:hover, .btn:hover {
    background: none;
    box-shadow: none;
    color: #0fab8a;
  }
}

/* --- CUSTOM ARTISTIC ELEMENTS --- */
.features-grid > div {
  border: 2px dashed #0fab8a13;
  background-image: repeating-linear-gradient(-30deg, #0fab8a11 0 8px, transparent 10px 20px);
}
.features-grid > div h3, .features-grid > div h2 {
  color: #134e68;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.features-grid > div:hover, .card:hover {
  border-color: #0fab8a;
  background-image: none;
}
.features-list li::before {
  content: '♦';
  color: #0fab8a;
  margin-right: 7px;
  font-size: 1.25em;
}
.features-list img {
  margin-right: 8px;
}

.testimonial-card {
  border-left: 9px solid #0fab8a;
  background-image: linear-gradient(105deg, #f7f7fa 85%, #e8fdf7 100%);
  font-style: italic;
  box-shadow: 0 2px 26px 0 rgba(19,78,104,0.12);
}

/* --- Q&A / FAQ --- */
h3 + p {
  margin-bottom: 14px;
}

/* --- FORMS (if any used in the future) --- */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  border: 2px solid #0fab8a22;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 1rem;
  color: #134e68;
  margin-bottom: 14px;
  outline: none;
  transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #0fab8a;
}

/* --- ARTISTIC FONTS FOR HEADLINES --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Roboto:wght@400;500;700&display=swap');

/* --- END CSS --- */
