/* --- CSS RESET & NORMALIZE --- */
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;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F0F5F7;
  color: #264653;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}
img, picture, video, canvas, svg {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
button {
  cursor: pointer;
  background: none;
  box-shadow: none;
}

/* --- BRAND COLORS --- */
:root {
  --color-primary: #264653;
  --color-secondary: #5B9E91;
  --color-accent: #F0F5F7;
  --color-electric-1: #E63946;
  --color-electric-2: #FDC900;
  --color-electric-3: #2196F3;
  --color-electric-4: #00D99B;
  --color-electric-5: #FF5722;
  --text-dark: #222C3B;
  --text-light: #fff;
}

/* --- TYPOGRAPHY --- */
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--text-dark);
  font-size: 16px;
  letter-spacing: 0.05em;
  background: var(--color-accent);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  text-transform: none;
  line-height: 1.2;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: var(--color-primary);
  letter-spacing: 0.01em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--color-electric-1);
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}
strong {
  font-weight: bold;
  color: var(--color-electric-2);
}

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: 1180px;
  padding: 0 20px;
  margin: 0 auto;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(45,60,120,.10), 0 1.5px 8px rgba(32,200,180,.12);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  transition: transform .17s cubic-bezier(.57,.21,.69,1.25), box-shadow .25s cubic-bezier(.57,.21,.69,1.25);
}
.card:hover {
  transform: translateY(-6px) scale(1.035);
  box-shadow: 0 18px 35px rgba(32, 150, 243, 0.16), 0 3px 20px rgba(237, 57, 70, 0.16);
}
.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 28px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 36px rgba(90,90,180,0.15);
  border-left: 7px solid var(--color-electric-3);
  margin-bottom: 20px;
  min-width: 240px;
  max-width: 400px;
  transition: border-color 0.15s, box-shadow 0.2s;
}
.testimonial-card:hover {
  border-color: var(--color-electric-1);
  box-shadow: 0 12px 45px rgba(237,57,70,.20), 0 2px 16px rgba(33, 150, 243, .13);
}

.feature-item, .feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 4px 20px rgba(91, 158, 145, .09);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  width: 100%;
}
.feature {
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 340px;
  align-items: center;
  text-align: center;
  border-top: 5px solid var(--color-electric-2);
}
.feature img {
  width: 50px;
  height: 50px;
  margin-bottom: 12px;
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(33,150,243,.08);
  padding: 30px 26px;
  margin-bottom: 20px;
  flex: 1 1 240px;
  min-width: 200px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .15s, box-shadow .20s;
  border-left: 6px solid var(--color-electric-4);
}
.service-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 40px rgba(33,150,243,.17);
  border-left: 6px solid var(--color-electric-1);
}

/* --- HERO & CTA --- */
.hero {
  background: linear-gradient(90deg, var(--color-electric-2) 0%, #F0F5F7 40%, var(--color-secondary) 100%);
  padding: 70px 0 50px;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 680px;
}
.hero h1 {
  color: var(--color-primary);
  text-shadow: 1px 1px 1px rgba(246,246,246,0.05);
}
.hero p {
  font-size: 1.17rem;
  color: var(--color-secondary);
  margin-bottom: 28px;
}

.cta {
  background: linear-gradient(83deg, var(--color-electric-1) 0%, var(--color-electric-3) 100%);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(237,57,70,0.10);
  margin-bottom: 42px;
  margin-top: 32px;
}
.cta .container {
  display: flex;
  justify-content: center;
}
.cta .content-wrapper {
  align-items: center;
  color: #fff;
}
.cta h2 {
  color: #fff;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-electric-1);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: bold;
  padding: 14px 36px;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(230,57,70,0.12);
  letter-spacing: .09em;
  margin-top: 18px;
  transition: background .16s, transform .13s, box-shadow .18s;
  border: none;
  cursor: pointer;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-electric-2);
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 38px rgba(253,201,0,0.15);
}

/* --- NAVIGATION --- */
header {
  background: #fff;
  align-items: center;
  width: 100%;
  min-height: 64px;
  box-shadow: 0 2px 8px rgba(38, 70, 83, 0.08);
  position: relative;
  z-index: 19;
}
nav {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  gap: 36px;
}
nav ul {
  display: flex;
  flex-direction: row;
  gap: 24px;
}
nav li {
  list-style: none;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 7px 18px;
  border-radius: 25px;
  transition: background .13s, color .13s;
}
nav a:hover, nav a:focus {
  background: var(--color-electric-2);
  color: var(--color-primary);
}
/* Active CTA */
nav .cta-btn {
  margin-left: 22px;
  padding: 12px 26px;
  background: linear-gradient(90deg, var(--color-electric-3), var(--color-electric-1));
  color: #fff;
  font-weight: bold;
  border-radius: 900px;
  box-shadow: 0 2px 12px rgba(230,57,70,0.18);
  border: none;
  font-size: 1.05rem;
  transition: background .15s, box-shadow .16s, color .13s;
}
nav .cta-btn:hover {
  background: var(--color-electric-2);
  color: var(--color-primary);
  box-shadow: 0 5px 20px rgba(253,201,0,0.18);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-electric-2);
  color: var(--color-primary);
  font-size: 2rem;
  padding: 8px 14px;
  border-radius: 40px;
  position: absolute;
  right: 26px;
  top: 16px;
  z-index: 40;
  border: none;
  transition: background 0.16s, color 0.16s;
}
.mobile-menu-toggle:active {
  background: var(--color-electric-1);
  color: #fff;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #fff;
  z-index: 109;
  transition: transform 0.33s cubic-bezier(.52,.18,.67,1.05);
  transform: translateX(-100%);
  flex-direction: column;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 24px;
  top: 28px;
  font-size: 2.5rem;
  color: var(--color-electric-1);
  background: none;
  border: none;
  z-index: 120;
  cursor: pointer;
  padding: 4px 10px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 80px;
  gap: 24px;
  width: 100%;
}
.mobile-nav a {
  width: 100%;
  font-size: 1.3rem;
  color: var(--color-primary);
  padding: 18px 34px;
  border-radius: 0 60px 60px 0;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-electric-1);
  color: #fff;
}

/* --- ARTICLE LIST / PORADNIK --- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.article-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.article-list article {
  background: #fff;
  padding: 22px 18px;
  border-left: 6px solid var(--color-electric-4);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(33,150,243,0.12);
  transition: border-color 0.14s, box-shadow 0.18s, transform 0.15s;
}
.article-list article:hover {
  border-color: var(--color-electric-1);
  box-shadow: 0 8px 30px rgba(230,57,70,0.12);
  transform: translateY(-3px);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.tags span {
  font-size: 0.95rem;
  padding: 6px 16px;
  background: var(--color-electric-2);
  color: var(--color-primary);
  border-radius: 22px;
  font-weight: bold;
}
.text-section input[type="text"] {
  border: 2px solid var(--color-secondary);
  border-radius: 30px;
  padding: 13px 24px;
  font-size: 1rem;
  margin-bottom: 10px;
  box-shadow: 0 1px 6px rgba(91,158,145,0.07);
  transition: border-color .13s;
}
.text-section input[type="text"]:focus {
  border-color: var(--color-electric-1);
}

/* --- TABLES (cennik) --- */
table {
  width: 100%;
  border-spacing: 0;
  border-collapse: separate;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(91,158,145,0.12);
  margin-bottom: 18px;
}
thead {
  background: var(--color-electric-2);
}
thead th {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1.02rem;
  letter-spacing: .04em;
  padding: 16px 10px;
  text-align: left;
}
tbody td {
  padding: 13px 10px;
  font-size: 1rem;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-accent);
}
tbody tr:last-child td {
  border-bottom: none;
}

/* --- FAQ ACCORDION --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(91,158,145,.12);
  padding: 18px 20px;
  transition: box-shadow .13s;
}
.faq-item:hover {
  box-shadow: 0 7px 25px rgba(33,150,243,0.12);
}
.faq-item h3 {
  color: var(--color-electric-3);
  font-size: 1.08rem;
  cursor: pointer;
}

/* --- MAP ICON --- */
.location-map {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
}
.location-map img {
  width: 60px;
  height: 60px;
}

/* --- FOOTER --- */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 48px 0 20px 0;
  margin-top: 60px;
  border-top: 7px solid var(--color-electric-2);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 10px 0;
  background: none;
  box-shadow: none;
  padding: 0;
}
footer nav a {
  color: var(--color-electric-2);
  font-size: 0.97rem;
  padding: 6px 18px;
  border-radius: 15px;
  transition: background 0.16s, color 0.13s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--color-electric-4);
  color: var(--color-primary);
}
.footer-bottom {
  margin-top: 34px;
  font-size: 0.93rem;
  color: #c0e6e6;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  padding: 22px 16px 19px;
  background: #fff;
  border-top: 4px solid var(--color-electric-1);
  box-shadow: 0 -6px 24px rgba(38, 70, 83, 0.10);
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  transition: transform .34s cubic-bezier(.66,.01,.98,.22);
  font-size: 1rem;
}
.cookie-banner p {
  color: var(--color-primary);
  font-size: 1rem;
}
.cookie-banner .cookie-btn-group {
  display: flex;
  gap: 18px;
  margin-top: 5px;
}
.cookie-btn {
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 40px;
  padding: 9px 33px;
  margin-right: 6px;
  background: var(--color-electric-2);
  color: var(--color-primary);
  transition: background .12s, color .13s, box-shadow 0.15s;
}
.cookie-btn.accept {
  background: var(--color-electric-4);
  color: var(--color-primary);
}
.cookie-btn.reject {
  background: var(--color-electric-1);
  color: #fff;
}
.cookie-btn.settings {
  background: var(--color-electric-3);
  color: #fff;
}
.cookie-btn:hover {
  filter: brightness(1.1) saturate(1.1);
  box-shadow: 0 2px 18px rgba(24, 220, 156, 0.13);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 96vw;
  max-width: 410px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(91,158,145,0.18);
  border-radius: 18px;
  padding: 28px 26px 20px 26px;
  transform: translate(-50%, -60%) scale(0.9);
  opacity: 0;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 16px;
  pointer-events: none;
  transition: opacity 0.23s cubic-bezier(.56,.16,.7,1.05), transform .20s cubic-bezier(.56,.16,.7,1.05);
}
.cookie-modal.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: all;
}
.cookie-modal h2 {
  color: var(--color-electric-3);
  margin-bottom: 5px;
  font-size: 1.15rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 9px;
}
.cookie-category label {
  font-weight: 500;
  color: var(--color-primary);
}
.cookie-modal .toggle {
  width: 46px;
  height: 24px;
  border-radius: 16px;
  background: var(--color-accent);
  box-shadow: 0 1px 2px rgba(33,150,243,0.08);
  position: relative;
  transition: background .14s;
  border: 1.7px solid var(--color-electric-4);
  cursor: pointer;
}
.cookie-modal .toggle input[type="checkbox"] {
  display: none;
}
.cookie-modal .toggle .slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-electric-2);
  transition: left .12s, background .13s;
}
.cookie-modal .toggle input[type="checkbox"]:checked + .slider {
  left: 24px;
  background: var(--color-electric-1);
}
.cookie-modal .cookie-modal-btns {
  margin-top: 10px;
  display: flex;
  gap: 14px;
}
.cookie-modal .cookie-btn {
  padding: 8px 20px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 13px;
  right: 22px;
  color: var(--color-electric-1);
  font-size: 1.55rem;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 25px;
  transition: background .12s;
}
.cookie-modal .close-modal:hover {
  background: var(--color-accent);
}

/* --- MEDIA QUERIES: RESPONSIVE --- */
@media (max-width: 992px) {
  .hero .content-wrapper { max-width: 98vw; }
  nav ul { gap: 14px; }
  nav .cta-btn { margin-left: 8px; }
  .feature, .service-card { max-width: 98vw; }
}
@media (max-width: 768px) {
  nav ul, nav .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero {
    padding: 34px 0 18px;
  }
  .section {
    margin-bottom: 42px;
    padding: 24px 3vw;
  }
  .content-wrapper, .feature-grid, .service-cards, .card-container, .content-grid {
    flex-direction: column !important;
    gap: 18px !important;
    align-items: stretch !important;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
  .card, .feature, .service-card {
    min-width: 0;
    max-width: 100vw;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 22px !important;
    align-items: stretch;
  }
  .footer-top img {
    width: 54px;
  }
}
@media (max-width: 500px) {
  .container {
    padding: 0 8px;
  }
  .section {
    padding: 12px 2px;
  }
  .cta-btn {
    padding: 12px 16px;
    font-size: 0.95rem;
  }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.16rem; }
}

/* --- INTERACTIVE SLIDER-like (testimonials basic) --- */
.testimonial-slider {
  display: flex;
  flex-direction: row;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
}
.testimonial-card {
  scroll-snap-align: start;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.testimonial-card span {
  font-size: .98rem;
  color: var(--color-electric-3);
  font-weight: 600;
}

/* --- Z-INDEX LAYERING (for nav, cookie, modal) --- */
header { z-index: 19; }
.mobile-menu { z-index: 109; }
.cookie-banner { z-index: 950; }
.cookie-modal { z-index: 1500; }

/* --- MISC --- */
::-webkit-scrollbar {
  width: 7px; background: #eee;
}
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 4px;
}
a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px dashed var(--color-electric-1);
  outline-offset: 1.5px;
}

/* --- INFO & SUCCESS --- */
.info-section {
  background: #fff;
  border-left: 7px solid var(--color-electric-2);
  box-shadow: 0 2px 10px rgba(230,57,70,0.08);
  padding: 24px 22px;
  border-radius: 13px;
  margin-bottom: 20px;
  font-size: 1.07rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --- PRINT OVERRIDE --- */
@media print {
  header, footer, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #fff; }
}
