/* --------------------------
  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 {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F3F6F9;
  color: #234059;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #20465A;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #E77022;
  outline: none;
}
ul, ol {
  list-style: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #20465A;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
p {
  font-size: 1rem;
  margin-bottom: 16px;
}
small {
  font-size: 0.89rem;
  color: #607385;
}

/* --------------------------
  CONTAINERS
---------------------------*/
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #234059;
}

/* --------------------------
  HEADER & NAVIGATION
---------------------------*/
header {
  background: #FFFFFF;
  border-bottom: 2px solid #E5EAF1;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(32,70,90,0.05);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  gap: 20px;
}
header img {
  height: 48px;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: #20465A;
  padding: 4px 0;
  position: relative;
  transition: color 0.2s;
}
header nav a:hover, header nav a:focus {
  color: #E77022;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  padding: 12px 28px;
  margin-left: 20px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.22s;
  text-decoration: none;
  outline: none;
  box-shadow: 0 4px 12px rgba(32,70,90,0.03);
}
.btn-primary {
  background: #20465A;
  color: #fff;
  border: 1.5px solid #20465A;
}
.btn-primary:hover, .btn-primary:focus {
  background: #E77022;
  border-color: #E77022;
  color: #fff;
  box-shadow: 0 8px 20px rgba(231,112,34,0.08);
}
.btn-secondary {
  background: #F3F6F9;
  color: #20465A;
  border: 1.5px solid #20465A;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #20465A;
  color: #fff;
}

/* Hamburger Icon */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #20465A;
  cursor: pointer;
  margin-left: 12px;
}

/* --------------------------
  MOBILE NAVIGATION
---------------------------*/
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(32,70,90,0.98);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.62,.28,.23,.99);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.1rem;
  color: #fff;
  background: none;
  border: none;
  margin: 28px 28px 0 0;
  padding: 0 4px;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #E77022;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  margin: 40px 32px 0 0;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 10px 4px;
  border-radius: 4px;
  transition: background 0.16s, color 0.16s;
  width: 220px;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E77022;
  color: #fff;
}

@media (max-width: 1024px) {
  header .container nav {
    display: none;
  }
  .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .mobile-nav a {
    width: 90vw;
    font-size: 1rem;
    margin-right: 0;
  }
}

/* --------------------------
  MAIN SECTIONS
---------------------------*/
section {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 15px 0 rgba(32,70,90,0.04);
  margin-bottom: 60px;
  padding: 40px 20px;
}

@media (max-width: 768px) {
  section {
    padding: 28px 7px;
    margin-bottom: 36px;
    border-radius: 8px;
  }
}

.content-wrapper > *:not(:last-child) {
  margin-bottom: 12px;
}

/* --------------------------
  FLEXBOX SPACING CLASSES
---------------------------*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(32,70,90,0.05);
  padding: 24px;
  min-width: 260px;
}
.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: #F3F6F9;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(32,70,90,0.04);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* CUSTOM FLEX CLASSES FOR SPECIFIC HTML */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
}
.feature {
  background: #F3F6F9;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(32,70,90,0.05);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  flex: 1 1 225px;
  max-width: 320px;
  transition: box-shadow 0.18s, background 0.16s;
}
.feature:hover, .feature:focus-within {
  background: #e8f0f7;
  box-shadow: 0 8px 28px 0 rgba(32,70,90,0.07);
}
.feature img {
  margin-bottom: 10px;
  width: 38px;
  height: 38px;
}
.feature h3 {
  font-size: 1.13rem;
  margin: 0 0 6px 0;
}

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.stars {
  font-size: 1.35rem;
  letter-spacing: 0.065em;
  color: #E77022;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 10px;
}

/* Cards for contact and service list */
ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #234059;
  font-size: 1rem;
  background: none;
}
ul li img {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

/* CTA Lists & Contact Cards */
footer .footer-contact p {
  color: #607385;
  font-size: 0.97rem;
  margin-top: 8px;
}

/* ----------------------
   TABLES (Cennik)
-----------------------*/
table {
  width: 100%;
  border-collapse: collapse;
  background: #F3F6F9;
  margin: 0 0 16px 0;
  border-radius: 10px;
  overflow: hidden;
  font-size: 1rem;
  box-shadow: 0 1px 4px rgba(32,70,90,0.04);
}
thead tr {
  background: #20465A;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
}
thead th {
  padding: 14px 12px;
  font-weight: 600;
  text-align: left;
  border-bottom: 2px solid #DEE6EF;
}
tbody td {
  padding: 13px 12px;
  border-bottom: 1px solid #E5EAF1;
  color: #20465A;
}
tbody td:last-child {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
table tr:last-child td {
  border-bottom: none;
}

/* --------------------
   FOOTER
---------------------*/
footer {
  background: #20465A;
  color: #fff;
  padding: 32px 0 0 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
footer .container {
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
  gap: 10px;
}
footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
footer nav a {
  color: #E77022;
  font-weight: 500;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
  text-decoration: underline;
}
footer p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: #F9FBFC;
}
footer .footer-contact {
  margin-top: 12px;
  text-align: center;
}

/* --------------------
   COOKIE BANNER
---------------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: #234059;
  color: #fff;
  padding: 26px 14px 26px 24px;
  box-shadow: 0 -2px 16px 0 rgba(32,70,90,0.18);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  font-size: 1rem;
  transition: transform 0.28s;
}
.cookie-banner.hidden {
  transform: translateY(120%);
}
.cookie-banner .cookie-banner-message {
  max-width: 430px;
  color: #fff;
  font-size: 1rem;
}
.cookie-banner .cookie-banner-btns {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 6px;
  padding: 9px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, color 0.13s, box-shadow 0.13s;
  margin: 0 2px;
}
.cookie-banner .accept {
  background: #E77022;
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #B65212;
}
.cookie-banner .settings {
  background: #fff;
  color: #20465A;
  border: 1px solid #DEE6EF;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #F3F6F9;
  color: #E77022;
}
.cookie-banner .reject {
  background: #DEE6EF;
  color: #20465A;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #E77022;
  color: #fff;
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 250;
  background: rgba(32,70,90,0.83);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.33s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  color: #20465A;
  border-radius: 14px;
  box-shadow: 0 8px 40px 0 rgba(32,70,90,0.18);
  padding: 34px 28px 22px 28px;
  min-width: 300px;
  max-width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: relative;
}
.cookie-modal-content h2 {
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 10px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.cookie-modal-category label {
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  color: #20465A;
}
.cookie-modal-category input[type="checkbox"] {
  accent-color: #E77022;
  width: 18px;
  height: 18px;
}
.cookie-modal-category .always {
  color: #607385;
  font-size: 0.98rem;
  font-style: italic;
  margin-left: 8px;
}
.cookie-modal-content .cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal-content button {
  border: none;
}
.cookie-modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  color: #20465A;
  border: none;
  font-size: 1.22rem;
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-modal-close-btn:hover, .cookie-modal-close-btn:focus {
  color: #E77022;
}

/* ----------------------
   RESPONSIVENESS
-----------------------*/
@media (max-width: 880px) {
  .feature-grid {
    justify-content: center;
    gap: 20px;
  }
  .feature {
    min-width: 200px;
    max-width: 90vw;
    flex: 1 1 180px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 6px;
  }
  .content-wrapper {
    gap: 15px;
  }
  .feature-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .testimonial-slider,
  .testimonial-list {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  nav {
    gap: 14px;
    font-size: 0.98rem;
  }
  header .container {
    padding: 13px 6px;
  }
}
@media (max-width: 540px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.28rem;
  }
  h3 {
    font-size: 1.07rem;
  }
  .feature {
    padding: 14px 10px;
    min-width: 150px;
  }
  .testimonial-card,
  .card {
    padding: 12px 7px;
  }
  .cookie-modal-content {
    padding: 14px 8px 14px 8px;
    min-width: unset;
  }
}
@media (max-width: 420px) {
  .footer-contact p {
    font-size: 0.85rem;
  }
  .card {
    min-width: 90vw;
  }
}

/* ----------------------
   MISCELLANEOUS
-----------------------*/
::-webkit-input-placeholder { color: #607385; opacity: 1; }
::-moz-placeholder { color: #607385; opacity:1; }
:-ms-input-placeholder { color: #607385; opacity: 1; }
::placeholder { color: #607385; opacity: 1; }

[tabindex]:focus,
a:focus, button:focus {
  outline: 2px solid #E77022 !important;
  outline-offset: 1px;
}

/* Slight transition for all clickable */
a, button, .btn-primary, .btn-secondary {
  transition: color 0.13s, background 0.13s, border-color 0.13s, box-shadow 0.21s;
}

/* Micro-interaction - subtle lift */
button:active, .btn-primary:active, .btn-secondary:active {
  transform: translateY(2px) scale(0.99);
}

/* -------------------------
   TYPOGRAPHY HIERARCHY
--------------------------*/
@media (min-width: 900px) {
  h1 { font-size: 2.85rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.24rem; }
  p { font-size: 1.08rem; }
}

/* --------------------
  SHADOWS
---------------------*/
.card, .testimonial-card, .feature {
  box-shadow: 0 2px 8px rgba(32,70,90,0.07);
}

/* --------------------
  TESTIMONIAL/OPINIE
---------------------*/
.testimonial-card {
  background: #F3F6F9;
  color: #20465A;
  border-left: 4px solid #E77022;
  box-shadow: 0 4px 20px 0 rgba(32,70,90,0.06);
}
.testimonial-card p {
  color: #234059;
  font-size: 1.05rem;
}
.testimonial-card span {
  color: #607385;
  font-size: 0.99rem;
  font-style: italic;
}

/* -------------
  THANK YOU PAGE
 ------------- */
.thankyou-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* --------------
  PRINT
--------------- */
@media print {
  * {
    background: none !important;
    color: #000 !important;
    box-shadow: none !important;
  }
  header, footer, .cookie-banner, .cookie-modal { display:none !important; }
  body { background: #fff !important; }
  section { box-shadow: none !important; border-radius: 0 !important; }
  .container { padding: 0 !important; }
}

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