/* --- CSS RESET & NORMALIZATION --- */
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, main, 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 {
  font-family: 'Roboto', Arial, sans-serif;
  color: #183153;
  background-color: #F8F9FB;
  line-height: 1.6;
  min-height: 100vh;
  font-size: 16px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #183153;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #D13A23;
}
ul, ol {
  list-style: none;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* --- BRAND & TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #183153;
  margin-bottom: 16px;
  line-height: 1.1;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem;  margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; }
p { margin-bottom: 16px; font-size: 1rem; }
strong {
  font-weight: 600;
}

/* --- GLOBAL CONTAINERS & LAYOUTS (FLEXBOX ONLY) --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0; /* explicit gap, content wrappers control spacing */
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 6px 24px rgba(24,49,83,0.06);
  position: relative;
}
@media (max-width: 1024px) {
  .section {
    padding: 36px 8px;
    border-radius: 18px;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 24px 0;
    margin-bottom: 40px;
    border-radius: 12px;
  }
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(90deg, #183153 0%, #5375BA 100%);
  color: #fff;
  padding: 64px 0 56px 0;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  position: relative;
}
.hero h1, .hero p, .hero a {
  color: #fff;
}
.hero .container {
  flex-direction: column;
  align-items: flex-start;
}
.hero .content-wrapper {
  max-width: 700px;
  gap: 20px;
}
@media (max-width: 768px) {
  .hero {
    padding: 40px 0 32px 0;
    border-radius: 0 0 24px 24px;
  }
  .hero .content-wrapper {
    padding: 0;
  }
}

/* --- NAVBAR --- */
header {
  background: #fff;
  border-bottom: 1.5px solid #e3e8f1;
  box-shadow: 0 1px 12px rgba(24,49,83,0.04);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
}
.logo img {
  height: 42px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
.main-nav a {
  font-size: 1rem;
  color: #183153;
  padding: 8px 0;
  border-bottom: 2.5px solid transparent;
  transition: color 0.2s, border-color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #D13A23;
  border-bottom: 2.5px solid #D13A23;
}
.cta-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #E94F37 0%, #D13A23 100%);
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 32px;
  border-radius: 28px;
  box-shadow: 0 2px 16px rgba(217,58,35,0.09);
  border: none;
  transition: background 0.25s, transform 0.15s;
  margin-left: 28px;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(90deg, #D13A23 0%, #E94F37 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(217,58,35,0.21);
}
/* --- Hamburger --- */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: #183153;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 20px;
  border-radius: 8px;
  transition: background 0.14s;
  z-index: 101;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F8F9FB;
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(102deg, #183153 70%, #5375BA 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 20px;
  z-index: 200;
  transform: translateX(-110%);
  transition: transform 0.34s cubic-bezier(0.77,0,0.175,1);
  overflow-y: auto;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.25rem;
  color: #fff;
  margin-top: 28px;
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  z-index: 201;
  transition: background 0.13s;
  border-radius: 8px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(24, 49, 83, 0.11);
}
.mobile-nav {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  padding: 14px 0 14px 0;
  border-bottom: 1.5px solid rgba(255,255,255,0.13);
  width: 100%;
  transition: color 0.22s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #F8F9FB;
  background: rgba(217,58,35,0.16);
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- FEATURE GRID (used in index/about/offer/serwis-wsparcie) --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 10px;
}
.feature-grid > li, .feature-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 300px;
  background: #F8F9FB;
  border-radius: 16px;
  box-shadow: 0 1px 8px rgba(24,49,83,0.06);
  padding: 24px 16px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.18s;
}
.feature-grid > li:hover, .feature-grid > div:hover {
  background: #fff;
  box-shadow: 0 6px 30px rgba(24,49,83,0.11);
  transform: translateY(-4px) scale(1.02);
}
.feature-grid img {
  width: 52px; height: auto;
  margin-bottom: 10px;
}

/* --- CARD-RELATED FLEX LAYOUTS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(24,49,83,0.07);
  margin-bottom: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(24,49,83,0.13);
  transform: scale(1.015) translateY(-2px);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.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;
  }
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #F8F9FB;
  box-shadow: 0 2px 16px rgba(24,49,83,0.06);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  min-width: 240px;
  max-width: 550px;
  position: relative;
  font-size: 1.07rem;
  color: #183153;
}
.testimonial-card p {
  color: #183153;
  font-size: 1.09rem;
  font-weight: 500;
  line-height: 1.7;
}
.testimonial-details {
  font-size: 0.97rem;
  color: #6d7897;
  font-style: italic;
}
.testimonial-rating {
  color: #D13A23;
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
}

/* --- CONTACT DETAILS --- */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #F8F9FB;
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 1rem;
  margin-bottom: 18px;
  box-shadow: 0 1px 10px rgba(24,49,83,0.05);
}
.contact-details img {
  width: 23px; height: 23px; margin-right: 8px; vertical-align: middle;
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  color: #183153;
}

/* --- BUSINESS HOURS / MAP --- */
.business-hours, .map {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 10px rgba(24,49,83,0.03);
  padding: 12px 16px;
  margin: 20px 0 12px 0;
}

/* --- STATISTICS & BRANDS --- */
.statistics ul, .brand-values ul, .brand-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: flex-start;
}
.statistics li {
  background: #F8F9FB;
  border-radius: 12px;
  padding: 20px 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #183153;
  margin-bottom: 12px;
}
.brand-logos img {
  width: 65px;
  height: auto;
  margin-right: 6px;
  filter: grayscale(0.12);
  transition: filter 0.18s;
}
.brand-logos img:hover {
  filter: none;
  transform: scale(1.05);
}

/* --- SERVICE-LIST, FAQ-LIST, OL & UL --- */
.service-list, .faq-list, ul, ol {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}
.service-list li, .faq-list li, ul li, ol li {
  padding-left: 0.5em;
}
.faq-list li { background: #F8F9FB; border-radius: 10px; padding: 16px; }

/* --- BUTTONS --- */
button, .cta-primary {
  outline: none;
}
.cta-primary:active {
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(217,58,35,0.09);
}

/* --- FOOTER --- */
footer {
  background: linear-gradient(90deg, #183153 0%, #5375BA 100%);
  color: #fff;
  padding: 38px 0 24px 0;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  color: #fff;
}
.footer-logo img {
  width: 38px;
  height: auto;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.06));
}
.footer-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.17s, border-color 0.17s;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #FFD3CA;
  border-color: #FFD3CA;
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .footer-nav {
    flex-direction: column;
    gap: 7px;
  }
}

/* --- NEXT STEPS --- */
.next-steps {
  margin-top: 32px;
  background: #F8F9FB;
  border-radius: 16px;
  padding: 24px;
}
.next-steps h2 { margin-bottom: 14px; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 9px;
  }
  .main-nav {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding-left: 8px;
    padding-right: 8px;
  }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.18rem; }
  .feature-grid {
    gap: 14px;
  }
  .feature-grid > li, .feature-grid > div {
    min-width: 90%;
    max-width: 100%;
    padding: 16px 8px;
    gap: 10px;
  }
  .testimonial-card {
    padding: 14px;
    border-radius: 11px;
  }
}

/* --- TRANSITIONS AND MICRO-INTERACTIONS --- */
div, nav, section, .card, .card-content, .feature-grid > li, .cta-primary, .testimonial-card, .footer-nav a, .main-nav a, .mobile-menu, .mobile-menu-close, .mobile-nav a {
  transition: all 0.19s cubic-bezier(.6,.1,.19,1) 0s;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 24px;
  z-index: 2100;
  background: #fff;
  color: #183153;
  border-radius: 18px;
  box-shadow: 0 10px 48px rgba(24,49,83,0.18);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 34px;
  justify-content: space-between;
  padding: 24px 32px;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(32px);
  transition: opacity 0.35s, transform 0.35s;
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cookie-banner p {
  max-width: 550px;
  color: #183153;
  margin-bottom: 0;
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
}
.cookie-banner .cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  min-width: 125px;
  border: none;
  padding: 10px 22px;
  border-radius: 22px;
  cursor: pointer;
  background: #F8F9FB;
  color: #183153;
  transition: background 0.16s, color 0.15s, box-shadow 0.14s;
}
.cookie-banner .cookie-btn.accept {
  background: #D13A23;
  color: #fff;
}
.cookie-banner .cookie-btn.accept:hover, .cookie-banner .cookie-btn.accept:focus {
  background: #E94F37;
  color: #fff;
}
.cookie-banner .cookie-btn.reject {
  background: #F8F9FB;
  color: #183153;
  border: 1.5px solid #d4dae6;
}
.cookie-banner .cookie-btn.reject:hover, .cookie-banner .cookie-btn.reject:focus {
  background: #e3e8f1;
  color: #D13A23;
}
.cookie-banner .cookie-btn.settings {
  background: #F8F9FB;
  color: #D13A23;
  border: 1.5px solid #D13A23;
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: #FFD3CA;
  color: #183153;
}
@media (max-width: 576px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 11px;
    font-size: 0.98rem;
  }
  .cookie-banner p {
    max-width: 100%;
  }
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(24,49,83,0.28);
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.38s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 50px rgba(24,49,83,0.23);
  padding: 38px 38px 22px 38px;
  min-width: 310px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-content h2 {
  margin-bottom: 10px;
  font-size: 1.22rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 13px;
}
.cookie-category span {
  font-weight: 500;
}
.toggle-switch {
  width: 46px;
  height: 24px;
  background: #F8F9FB;
  border-radius: 16px;
  position: relative;
  cursor: pointer;
  border: 1.2px solid #e3e8f1;
  transition: background 0.13s;
}
.toggle-switch input {
  display: none;
}
.toggle-switch .slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 20px; height: 20px;
  background: #D13A23;
  border-radius: 50%;
  transition: left 0.21s, background 0.14s;
}
.toggle-switch.active {
  background: #FFD3CA;
}
.toggle-switch.active .slider {
  left: 24px;
  background: #183153;
}
.cookie-modal-close {
  background: none;
  border: none;
  position: absolute;
  top: 11px; right: 13px;
  font-size: 1.5rem;
  color: #183153;
  cursor: pointer;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 22px;
}
.cookie-modal-actions .cookie-btn {
  min-width: 110px;
  font-size: 1rem;
  border-radius: 22px;
}
@media (max-width: 576px) {
  .cookie-modal-content {
    padding: 16px 6px 8px 10px;
  }
}

/* --- SCROLLBAR (modern look) --- */
::-webkit-scrollbar {
  width: 8px;
  background: #F8F9FB;
}
::-webkit-scrollbar-thumb {
  background: #e2e6ef;
  border-radius: 7px;
}

/* --- MISCELLANEOUS --- */
::-webkit-input-placeholder { color: #8393b4; }
::-moz-placeholder { color: #8393b4; }
:-ms-input-placeholder { color: #8393b4; }
::placeholder { color: #8393b4; }

hr {
  border: none;
  border-top: 1.5px solid #e3e8f1;
  margin: 24px 0;
  width: 100%;
}

/* --- FEATURE ITEM FLEX PATTERN (for consistency) --- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 0;
}

/* --- Z-INDEX LAYERING (hamburger/cookie/dialog > rest) --- */
.mobile-menu { z-index: 200; }
.mobile-menu-close { z-index: 201; }
.cookie-banner { z-index: 2100; }
.cookie-modal { z-index: 2200; }

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

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