/* -----------------------------------------------------------
   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;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: #22232A;
}
body {
  background: #22232A;
  color: #F5F2ED;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
a {
  color: #A298CA;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E9DEB8;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}
img, svg {
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}
button {
  cursor: pointer;
}

/* -----------------------------------------------------------
   FONT IMPORT: industrial style
----------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Lato:wght@400;700&display=swap');

/* ----------------------------------------------------------
   VARIABLES: Brand palette
---------------------------------------------------------- */
:root {
  --primary: #3B436A;
  --secondary: #A298CA;
  --accent: #F5F2ED;
  --bg-dark: #22232A;
  --metal: #7A7E86;
  --bg-card: #292B34;
  --bg-modal: #24252F;
  --text-main: #F5F2ED;
  --text-muted: #A7A9AC;
  --btn-shadow: rgba(58,62,70,0.25);
  --border-metal: #76777B;
  --section-shadow: 0 4px 14px 0 rgba(30,32,38,0.16);
}

/* --------------------------------------------------
   TYPOGRAPHY
-------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--accent);
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 {
  font-size: 2.5rem;
  color: var(--secondary);
}
h2 {
  font-size: 2rem;
  color: var(--secondary);
}
h3 {
  font-size: 1.25rem;
  color: var(--accent);
}
h4, h5, h6 {
  font-size: 1.125rem;
}
p, li, td, th, span {
  font-family: 'Lato', Arial, sans-serif;
  color: var(--text-main);
}
strong {
  color: var(--secondary);
  font-weight: 700;
}

/* Hierarchy for subtitle/section */
.text-section h2 {
  color: var(--secondary);
  margin-bottom: 12px;
}
.text-section h3 {
  color: var(--accent);
  margin-bottom: 8px;
}
.text-section p, .text-section ul, .text-section li {
  color: var(--text-main);
}

/* -----------------------------------------------
   CONTAINER & FLEX LAYOUTS
----------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}

.card {
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: var(--section-shadow);
  border: 1.5px solid var(--border-metal);
  padding: 28px 24px 28px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.25s, transform 0.15s;
}
.card:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 8px 28px 0 rgba(50,54,67,0.23);
  border-color: var(--secondary);
}
.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 {
  background: var(--accent);
  color: #232a33;
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: 18px;
  border: 1.5px solid var(--border-metal);
  box-shadow: 0 4px 18px 0 rgba(80,82,90,0.18);
  padding: 20px;
  margin-bottom: 20px;
  min-width: 0;
  max-width: 630px;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1.06em;
}
.testimonial-card p {
  color: #232a33;
  font-size: 1.16em;
  flex: 1;
}
.testimonial-card span {
  color: var(--secondary);
  font-weight: 700;
  font-size: 1em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 18px;
  background: var(--bg-card);
  border-radius: 12px;
  border-left: 4px solid var(--secondary);
}

/**** Spacing for Section Containers ****/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

/* Service list on offer & home */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-list > div {
  flex: 1 1 280px;
  min-width: 240px;
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--border-metal);
  box-shadow: 0 2px 10px 0 rgba(58,62,70,0.13);
  padding: 24px 18px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  transition: border 0.18s, box-shadow 0.18s, transform 0.18s;
}
.service-list > div:hover {
  border-color: var(--secondary);
  box-shadow: 0 6px 22px 0 rgba(80,82,90,0.22);
  transform: translateY(-3px) scale(1.02);
}
.service-list span {
  color: var(--secondary);
  font-weight: 700;
  font-size: 1.02em;
}

/* ---------------- Table – Cennik ---------------- */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}
thead th {
  background: var(--primary);
  color: var(--accent);
  font-size: 1.125em;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 0.85em 1em;
  font-weight: 900;
}
tbody td {
  color: var(--text-main);
  font-family: 'Lato', Arial, sans-serif;
  padding: 0.8em 1em;
  border-top: 1px solid var(--border-metal);
  font-size: 1em;
}
tbody tr:nth-child(odd) td {
  background: #282a36;
}

/* -------------------------------------------------
   BUTTONS
------------------------------------------------- */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.09em;
  border-radius: 24px;
  box-shadow: 0 4px 12px var(--btn-shadow);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.9em 2em;
  margin-top: 10px;
  margin-bottom: 10px;
  border: 2px solid var(--secondary);
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.15s;
}
.cta-button:hover, .cta-button:focus {
  background: var(--secondary);
  color: #232a33;
  border-color: var(--accent);
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 8px 22px 0 rgba(90,100,170,0.16);
}

button, .btn {
  background: var(--primary);
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 18px;
  padding: 0.5em 1.5em;
  border: 1.5px solid var(--secondary);
  box-shadow: 0 2px 8px var(--btn-shadow);
  transition: background 0.18s, color 0.18s, border 0.18s, transform 0.14s;
}
button:hover, .btn:hover, button:focus, .btn:focus {
  background: var(--secondary);
  color: #232a33;
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.03);
}

/* ----------------------------------------------
   HEADER & NAVIGATION
---------------------------------------------- */
header {
  background: var(--bg-card);
  border-bottom: 2.5px solid var(--border-metal);
  box-shadow: 0 2px 14px rgba(35,36,44,0.15);
  z-index: 100;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 28px;
}
header img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.07em;
  color: var(--accent);
  letter-spacing: 0.05em;
  position: relative;
  padding: 4px 0;
  transition: color 0.13s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
}
.main-nav a.active {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}

/* ----------------------------------------------------------
   MOBILE MENU / BURGER NAV
---------------------------------------------------------- */

.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 26px;
  right: 18px;
  z-index: 220;
  background: var(--primary);
  color: var(--accent);
  border-radius: 40px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 2px solid var(--secondary);
  box-shadow: 0 4px 14px rgba(58,62,70,0.18);
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
  color: #232a33;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  max-width: 88vw;
  height: 100vh;
  background: var(--bg-card);
  z-index: 500;
  box-shadow: -8px 0 30px rgba(30,32,38,0.22);
  padding: 0;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4,0.14,0.3,1.12);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 26px 24px 12px 0;
  color: var(--secondary);
  background: none;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px 28px;
}
.mobile-nav a {
  color: var(--accent);
  font-size: 1.18em;
  letter-spacing: 0.05em;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-metal);
  transition: color 0.17s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
}

/* Overlay for menu shadow */
.mobile-menu-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 400;
  background: rgba(34,35,42,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.mobile-menu.open ~ .mobile-menu-overlay {
  opacity: 1;
  pointer-events: all;
}

/* Hide desktop nav on mobile */
@media (max-width: 990px) {
  .main-nav, .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header .container {
    justify-content: flex-start;
  }
}

/* Hide burger on desktop */
@media (min-width: 991px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ----------------------------------------------
   FOOTER
---------------------------------------------- */
footer {
  background: var(--bg-card);
  border-top: 1.5px solid var(--border-metal);
  box-shadow: 0 -2px 10px rgba(35,36,44,0.12);
  margin-top: 60px;
  font-size: 1em;
}
footer .container {
  padding: 28px 18px 26px 18px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  flex-wrap: wrap;
}
footer nav a {
  color: var(--secondary);
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1em;
  font-weight: 700;
  transition: color 0.18s;
}
footer nav a:hover {
  color: var(--accent);
}
footer p {
  color: var(--text-muted);
  font-size: 0.95em;
  margin-top: 8px;
}

footer img {
  height: 38px;
  width: auto;
}

/* ----------------------------------------------
   COOKIE CONSENT BANNER
---------------------------------------------- */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--bg-card);
  box-shadow: 0 -2px 22px rgba(30,32,38,0.21);
  border-top: 2.5px solid var(--border-metal);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 26px;
  font-family: 'Lato', Arial, sans-serif;
  color: var(--accent);
  font-size: 1em;
  animation: fadeInUp 0.53s cubic-bezier(0.56,1.35,0.47,0.56);
}
#cookie-banner p {
  font-size: 1.01em;
  color: var(--accent);
}
.cookie-buttons {
  display: flex;
  gap: 18px;
  align-items: center;
}
.cookie-btn {
  background: var(--primary);
  color: var(--accent);
  border-radius: 15px;
  border: 1.3px solid var(--secondary);
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 0.52em 1.4em;
  font-size: 1em;
  transition: background 0.21s, color 0.21s, border 0.21s, transform 0.13s;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: #232a33;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--metal);
  color: var(--accent);
  transform: scale(1.04) translateY(-1px);
}
.cookie-btn.settings {
  background: none;
  color: var(--secondary);
  border: 1.3px solid var(--secondary);
}
.cookie-btn.reject {
  background: transparent;
  color: #D5473B;
  border: 1.3px solid #D5473B;
}

/* Hide by default, show by JS */
#cookie-banner.hide { display: none; }

/**** COOKIE MODAL ****/
#cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 14000;
  width: 100vw;
  height: 100vh;
  background: rgba(40,40,55,0.67);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s;
}
#cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-inner {
  background: var(--bg-modal);
  box-shadow: 0 8px 26px 0 rgba(28,28,38,0.27);
  border-radius: 18px;
  padding: 38px 30px 32px 30px;
  width: 96vw;
  max-width: 410px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInScale 0.42s cubic-bezier(0.68,0.21,0.8,1.26);
  position: relative;
}
.cookie-modal-inner h2 {
  font-size: 1.4em;
  margin-bottom: 0px;
  color: var(--secondary);
}
.cookie-prefs {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-pref-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  font-size: 1em;
  color: var(--accent);
}
.cookie-switch {
  appearance: none;
  width: 48px;
  height: 24px;
  background: var(--border-metal);
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-switch:checked {
  background: var(--secondary);
}
.cookie-switch:disabled {
  background: #55575F;
  cursor: default;
}
.cookie-switch::before {
  content: '';
  display: block;
  position: absolute;
  left: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(34,35,42,0.09);
  transition: left 0.18s, background 0.18s;
}
.cookie-switch:checked::before {
  left: 26px;
  background: var(--metal);
}
.cookie-switch:disabled::before {
  background: #d6d7db;
}
.cookie-modal-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  padding-top: 8px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  color: var(--secondary);
  font-size: 1.6em;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--accent);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  0% { opacity: 0; transform: scale(0.7); }
  100% { opacity: 1; transform: scale(1); }
}

/* -----------------------------------------------
   FORMS (generic for kontakt, modals, etc)
----------------------------------------------- */
input, textarea, select {
  border-radius: 7px;
  border: 1.2px solid var(--border-metal);
  background: var(--bg-card);
  color: var(--accent);
  padding: 10px 13px;
  margin-bottom: 16px;
  font-size: 1em;
  transition: border 0.17s, box-shadow 0.17s;
}
input:focus, textarea:focus, select:focus {
  border: 1.2px solid var(--secondary);
  box-shadow: 0 2px 10px 0 rgba(140,120,255,0.10);
}
label {
  font-family: 'Lato', Arial, sans-serif;
  color: var(--secondary);
  font-size: 1em;
  font-weight: 700;
  margin-bottom: 5px;
  display: inline-block;
}

/* ------------------------------------------------
   RESPONSIVE: Mobile First
------------------------------------------------ */
/* Base mobile: everything stacked */
.container { padding-left: 10px; padding-right: 10px; }
.section, .content-wrapper, .text-section {
  padding: 20px 5px 20px 5px;
  margin-bottom: 38px;
}
.service-list, .content-grid, .card-container {
  flex-direction: column;
  gap: 20px;
}
.text-image-section {
  flex-direction: column;
  gap: 22px;
}
footer .container, footer nav {
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

@media (min-width: 600px) {
  .service-list, .content-grid, .card-container {
    flex-direction: row;
    gap: 24px;
  }
  .section, .content-wrapper, .text-section {
    padding: 40px 20px;
  }
  .text-image-section {
    flex-direction: row;
    gap: 32px;
  }
  footer .container {
    flex-direction: row;
    gap: 34px;
    align-items: center;
    justify-content: space-between;
  }
  footer nav {
    flex-direction: row;
    gap: 22px;
  }
}
@media (max-width: 420px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.18rem; }
  .service-list > div, .card, .testimonial-card { padding: 13px 8px; }
  .cookie-modal-inner { padding: 23px 9px; }
}
@media (max-width: 420px) {
  #cookie-banner {
    flex-direction: column;
    gap: 10px;
  }
  .cookie-buttons {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Hide cookie modal on print */
@media print {
  #cookie-banner,
  #cookie-modal,
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ---------------------------------------------
   MISC: utility classes for spacing
--------------------------------------------- */
.mt-20 { margin-top: 20px !important; }
.mt-40 { margin-top: 40px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-40 { margin-bottom: 40px !important; }
.pt-20 { padding-top: 20px !important; }
.pt-40 { padding-top: 40px !important; }
.pb-20 { padding-bottom: 20px !important; }
.pb-40 { padding-bottom: 40px !important; }

/* Hide visually - for accessibility */
.visually-hidden {
  position: absolute !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  height: 1px !important;
  width: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
}

/* -------------------------------------------
   ALL INTERACTIVE, FOCUS STATES
------------------------------------------- */
a, button, .cta-button, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close, .cookie-modal-close {
  outline: none;
}
a:focus-visible, button:focus-visible, .cta-button:focus-visible,
.cookie-btn:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible, .cookie-modal-close:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

/* -------------------------------------------
   INDUSTRIAL_DECORATIVE ACCENTS
------------------------------------------- */
.section, .card, .testimonial-card, .footer, .header {
  position: relative;
}
.section:before {
  content: '';
  display: block;
  position: absolute;
  left: 15px;
  top: 15px;
  width: 38px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--metal) 100%);
  opacity: 0.21;
  pointer-events: none;
}
.card:after {
  content: '';
  display: block;
  position: absolute;
  right: 13px;
  top: 13px;
  width: 16px;
  height: 16px;
  border-radius: 40% 45% 24% 38%;
  background: var(--metal);
  opacity: 0.12;
  z-index: 1;
}

/**** No element should overlap: all cards/sections require gap/margin-bottom, verified above. */
