/* 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;
  outline: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  background: transparent;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F7F7F5;
  color: #24324A;
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
}
a {
  color: #24324A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E3A800;
}
ul, ol {
  margin-left: 24px;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #24324A;
  line-height: 1.2;
  letter-spacing: 0.03em;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 16px; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 16px; }
strong { font-weight: 700; }

/* UTILITIES ---------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.text-section {
  margin-bottom: 20px;
  padding: 0 0 8px 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* SPACING & FLEXBOX -------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px 0 rgba(36,50,74,0.10);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  flex: 1 1 320px;
  min-width: 280px;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(36,50,74,0.08);
  margin-bottom: 20px;
  font-size: 1.05rem;
  flex-direction: column;
  max-width: 500px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.testimonial-card p {
  margin-bottom: 10px;
}
.testimonial-card span {
  font-size: 0.95em;
  color: #24324A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
.testimonial-card:hover {
  transform: translateY(-4px) scale(1.024);
  box-shadow: 0 6px 20px rgba(36,50,74,0.16);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* GEOMETRIC STRUCTURED / VISUAL IDENTITY ----- */
.hero {
  background: #24324A url('../assets/geometric-bg.svg') no-repeat right center;
  color: #fff;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
}
.hero h1 {
  color: #fff;
  font-size: 2.25rem;
  margin-bottom: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.045em;
}
.hero p {
  color: #F7F7F5;
  font-size: 1.15rem;
  margin-bottom: 26px;
}

/* Structured icon grid for feature sections */
.feature-grid,
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}
.feature-grid > div,
.service-grid > div {
  background: #fff;
  box-shadow: 0 4px 12px rgba(36,50,74,0.08);
  border-radius: 14px;
  padding: 26px 18px 22px 18px;
  flex: 1 1 260px;
  min-width: 225px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.16s, transform 0.16s;
  border: 2px solid #E3A80010;
}
.feature-grid > div:hover,
.service-grid > div:hover {
  box-shadow: 0 8px 18px #E3A80030, 0 2px 8px #24324A10;
  border-color: #E3A800;
  transform: translateY(-4px) scale(1.02);
}
.feature-grid img,
.service-grid img {
  height: 48px;
  margin-bottom: 16px;
  filter: drop-shadow(0 1px 0 #e3a800cc);
}

/* OL icon list styling (oferta - jak pracujemy?) */
ol {
  list-style: none;
  counter-reset: step;
  padding-left: 0;
}
ol li {
  position: relative;
  padding-left: 56px;
  margin-bottom: 32px;
  min-height: 54px;
  display: flex;
  align-items: flex-start;
}
ol li img {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  background: #F7F7F5;
  border-radius: 10px;
  box-shadow: 0 1px 4px #e3a80012;
}
ol li strong {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #24324A;
  font-size: 1.12rem;
}

/* Table styling (cennik) */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px 0;
  font-size: 1rem;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0px 1px 12px #24324A10;
}
table th, table td {
  padding: 17px 21px;
  text-align: left;
  border-bottom: 1px solid #E3A80022;
}
table th {
  background: #24324A;
  color: #fff;
  font-size: 1.08rem;
}
table tbody tr:last-child td {
  border-bottom: none;
}

/* BUTTONS ----------------------------- */
.btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 999px;
  padding: 13px 38px;
  margin-top: 10px;
  letter-spacing: 0.055em;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.16s;
  box-shadow: 0 2px 12px #24324A0a;
  outline: none;
  text-align: center;
}
.btn-primary {
  background: #24324A;
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: #E3A800;
  color: #24324A;
  box-shadow: 0 4px 24px #E3A80033;
}
.btn-accent {
  background: #E3A800;
  color: #24324A;
}
.btn-accent:hover, .btn-accent:focus {
  background: #24324A;
  color: #E3A800;
  box-shadow: 0 4px 24px #24324A25;
}

/* HEADER & NAV ------------------------------- */
header {
  background: #fff;
  border-bottom: 3px solid #E3A800;
  position: relative;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 18px;
  position: relative;
}
header img {
  height: 45px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-right: 8px;
}
.main-nav a {
  color: #24324A;
  position: relative;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.13s, color 0.13s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #E3A800;
  background: #24324A10;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #24324A;
  cursor: pointer;
  margin-left: 12px;
  border-radius: 9px;
  width: 48px;
  height: 48px;
  transition: background 0.11s;
  z-index: 56;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #E3A80022;
  color: #E3A800;
}

/* MOBILE MENU -------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #24324ACC;
  transition: transform 0.33s cubic-bezier(0.73,0.07,0.31,0.92);
  transform: translateX(-100vw);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0); /* shown by JS */
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 30px 0 0;
  font-size: 2rem;
  background: none;
  border: none;
  color: #E3A800;
  cursor: pointer;
  border-radius: 8px;
  padding: 10px 20px;
  transition: background 0.13s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #24324A33;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin: 40px 0 0 38px;
}
.mobile-nav a {
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-weight: 600;
  padding: 12px 8px 12px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.17s, border 0.13s;
  min-width: 130px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #E3A800;
  border-bottom: 2px solid #E3A800;
}

/* CTA SECTION ------------------------------- */
.cta {
  background: #24324A;
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px #24324A0D;
  padding: 40px 24px 42px 24px;
  margin-bottom: 48px;
}
.cta h2,
.cta p {
  color: #fff;
}
.cta .btn-primary,.cta .btn-accent {
  margin-top: 24px;
}

/* FOOTER ------------------------------------ */
footer {
  background: #fff;
  border-top: 2px solid #E3A80044;
  margin-top: 36px;
  font-size: 1rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-bottom: 14px;
}
footer address {
  margin: 20px 0 10px 0;
  font-style: normal;
  color: #322;
  font-size: 0.97rem;
}
footer a {
  color: #24324A;
  border-radius: 6px;
  transition: background 0.13s, color 0.12s;
  padding: 3px 7px;
}
footer a:hover, footer a:focus {
  color: #E3A800;
  background: #24324A05;
}

/* COOKIE CONSENT BANNER ------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1100;
  background: #fff;
  border-top: 3px solid #E3A800;
  box-shadow: 0 -2px 20px #24324A17;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  padding: 24px 18px 18px 24px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 80px;
  transition: transform 0.22s cubic-bezier(.54,.09,.43,.92);
}
.cookie-banner.hide {
  transform: translateY(110%);
}
.cookie-banner .btn {
  font-size: 0.97rem;
  margin: 0 8px 0 0;
  padding: 9px 28px;
}
.cookie-banner .btn-settings {
  background: #E3A80011;
  color: #24324A;
  border: 1.5px solid #E3A800;
  transition: background 0.13s, color 0.11s;
}
.cookie-banner .btn-settings:hover {
  background: #E3A800;
  color: #24324A;
}

/* COOKIE SETTINGS MODAL ------------------- */
.cookie-modal-bg {
  display: none; /* JS: display: flex when open */
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1200;
  background: rgba(36,50,74,0.55);
  align-items: center;
  justify-content: center;
  transition: background 0.21s;
}
.cookie-modal-bg.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  padding: 32px 24px 30px 24px;
  max-width: 420px;
  box-shadow: 0 8px 32px #24324A22;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: pop-in 0.36s cubic-bezier(.48,.04,.41,.99);
}
@keyframes pop-in {
  0% { transform: scale(0.8) translateY(40px); opacity:0; }
  50% {opacity:1;}
  100% { transform: scale(1) translateY(0); opacity:1; }
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #24324A;
  cursor: pointer;
  border-radius: 7px;
  padding: 6px 13px;
  transition: background 0.13s;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  background: #E3A80022;
}
.cookie-modal h2 {
  font-size: 1.18rem;
  color: #24324A;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
  gap: 12px;
}
.cookie-modal .cookie-toggle {
  width: 44px; height: 22px;
  display: inline-flex;
  background: #E3A80044;
  border-radius: 11px;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: background 0.16s;
}
.cookie-modal .cookie-toggle[data-enabled="true"] {
  background: #E3A800;
}
.cookie-modal .cookie-toggle .toggle-knob {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 2px;
  transition: left 0.15s, background 0.13s;
  box-shadow: 0 2px 8px #24324A11;
}
.cookie-modal .cookie-toggle[data-enabled="true"] .toggle-knob {
  left: 24px;
  background: #fff9ef;
}
.cookie-modal .category-name {
  font-size: 1.01rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #24324A;
}
.cookie-modal .category-desc {
  font-size: 0.93rem;
  color: #5A6170;
}
.cookie-modal .btn-row {
  display: flex;
  align-items: center;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 9px;
}
.cookie-modal .btn {
  padding: 8px 20px;
  font-size: 0.97rem;
}

/* RESPONSIVE DESIGN ---------------------------- */
@media (max-width: 1020px) {
  .container {
    max-width: 97vw;
  }
  .main-nav {
    gap: 16px;
    font-size: 0.97rem;
  }
  .feature-grid {
    gap: 22px;
  }
  .service-grid {
    gap: 14px;
  }
}
@media (max-width: 850px) {
  .feature-grid > div,
  .service-grid > div {
    min-width: 170px;
    flex: 1 1 170px;
    padding: 18px 10px 14px 10px;
  }
  .feature-grid img,
  .service-grid img {
    height: 36px;
    margin-bottom: 8px;
  }
  .cta {
    padding: 33px 12px 28px 12px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .footer-nav {
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.98rem;
  }
  .hero {
    padding: 30px 0 20px 0;
    min-height: 230px;
    background-size: auto 90px;
    background-position: top right;
  }
  .feature-grid, .service-grid {
    flex-direction: column;
    gap: 17px;
  }
  .content-grid {
    flex-direction: column;
    gap: 13px;
  }
  .card-container {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .testimonial-card {
    max-width: 100%;
    min-width: 0;
    font-size: 1.01rem;
    padding: 17px 10px;
  }
  .section {
    padding: 25px 2px;
    margin-bottom: 39px;
  }
  .cta {
    margin-bottom: 30px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 6vw 14px 4vw;
    font-size: 0.98rem;
    min-height: 70px;
  }
  .cookie-modal {
    max-width: 92vw;
    padding: 22px 8vw 22px 8vw;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.17rem; }
  h3 { font-size: 1.07rem; }
  .hero {
    min-height: auto;
    padding: 17px 0 12px 0;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .footer-nav { font-size: 0.95rem; }
  .btn {
    width: 100%;
    font-size: 0.98rem;
    padding: 9px 0;
  }
}

/* MICROINTERACTIONS & EFFECTS ----------------------------- */
section, .card, .cta, .testimonial-card {
  transition: box-shadow 0.19s, transform 0.19s;
}
.btn, .cookie-banner .btn, .cookie-modal .btn {
  transition: background 0.15s, color 0.13s, box-shadow 0.13s;
}

/* GEOMETRIC DECORATIVE ANGLES (for _structured_ accent) */
.hero .content-wrapper::before {
  content: '';
  display: block;
  width: 60px;
  height: 8px;
  background: #E3A800;
  border-radius: 0 18px 0 18px;
  margin-bottom: 21px;
}
.feature-grid > div h3, .service-grid > div h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 7px;
}

/* FORMS & INPUTS (for future use/contact) ----------- */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  border: 1.5px solid #24324A33;
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 1rem;
  outline: none;
  margin-bottom: 13px;
  color: #24324A;
  background: #fff;
  transition: border 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: #E3A800;
}

/* ACCESSIBILITY FOCUS VISIBLE ------------------- */
:focus-visible {
  outline: 2px solid #E3A800CC;
  outline-offset: 2px;
}

/* Hide visual clutter from mobile menu when not open */
.mobile-menu {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s, transform 0.33s cubic-bezier(0.73,0.07,0.31,0.92);
}
.mobile-menu.open {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
}

/* Avoid absolute for cards/text blocks; only used for modal/controls */

/* NO display:grid, NO columns -- audit complete. ONLY FLEXBOX layouts used. */
