/* ===================
   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;
}
/* HTML5 display-role reset */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #19232A;
  color: #F5F8FA;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  margin-left: 20px;
  margin-bottom: 20px;
}
a {
  color: #2EA09C;
  text-decoration: none;
  background: transparent;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F5F8FA;
  text-decoration: underline;
  outline: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
  border: none;
  background: none;
  outline: none;
  box-sizing: border-box;
}
button {
  cursor: pointer;
  background: none;
}

/* =========================
   INDUSTRIAL MODERN PALETTE
   ========================= */
:root {
  --primary: #205072;   /* Steel blue */
  --secondary: #2EA09C; /* Urban teal */
  --accent: #F5F8FA;    /* Light accent */
  --gray-900: #19232A;  /* Deep slate base */
  --gray-800: #232D34;
  --gray-700: #29343a;
  --gray-600: #495865;
  --gray-500: #6F7A85;
  --gray-400: #9CABB8;
  --gray-200: #D1D9DF;
  --gray-100: #E5E9EC;
  --metal: #B1BCC7;
  --warning: #E6A545;
  --danger: #C75C5C;
  --success: #50B77B;
  --shadow: 0 4px 16px rgba(37,40,46,0.24);
  --rounded: 12px;
}

/* ===============================
   TYPOGRAPHY – INDUSTRIAL MODERN 
   =============================== */
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: var(--accent);
  background: var(--gray-900);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #F5F8FA;
  margin-top: 0;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}
p, li, span, label {
  font-size: 1rem;
  color: var(--gray-200);
}
strong, b {
  color: var(--metal);
  font-weight: 600;
}
.content-wrapper {
  max-width: 870px;
  margin: 0 auto;
  width: 100%;
}

/* ===============
   FLEX CONTAINERS
   =============== */
.container {
  width: 94%;
  max-width: 1140px;
  margin: 0 auto;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 80px;
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container, .articles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--gray-800);
  border-radius: var(--rounded);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 24px 24px 24px;
  transition: box-shadow 0.2s, border 0.2s;
  border: 1.5px solid var(--gray-800);
}
.card:hover {
  border-color: var(--secondary);
  box-shadow: 0 6px 28px rgba(46,160,156,0.19);
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  background: var(--accent);
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: var(--rounded);
  box-shadow: 0 3.5px 16px rgba(32,80,114, 0.18);
  margin-bottom: 20px;
  padding: 20px;
  flex: 1 1 300px;
}
.testimonial-card p {
  color: var(--gray-700);
  font-style: italic;
  flex: 3 1 0;
}
.testimonial-card span {
  color: var(--primary);
  font-family: 'Montserrat', 'Roboto', Arial,sans-serif;
  font-weight: 600;
  flex: 1 1 0;
  text-align: right;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features-grid > div {
  background: var(--gray-700);
  border-radius: var(--rounded);
  padding: 18px 20px 16px 20px;
  min-width: 240px;
  flex: 1 1 220px;
  box-shadow: 0 2px 10px rgba(32,80,114,0.11);
  border: 1.2px solid var(--gray-800);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border 0.2s, box-shadow 0.2s;
  margin-bottom: 20px;
}
.features-grid > div:hover {
  border-color: var(--metal);
  box-shadow: 0 4.5px 20px rgba(176,188,199,0.15);
}
.features-grid img {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  filter: grayscale(40%) contrast(1.08) drop-shadow(0 1px 1.5px rgba(46,160,156,0.06));
}
.partners-logos {
  display: flex;
  align-items: center;
  gap: 36px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.kantory-search, .articles-filter {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.kantor-map, .location-map {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-main {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 36px 0 20px 0;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* ===============
   HEADER & LOGO
   =============== */
header {
  width: 100%;
  background: var(--gray-900);
  border-bottom: 1.5px solid var(--gray-800);
  z-index: 110;
  position: sticky;
  top: 0;
}
.logo img {
  display: block;
  height: 38px;
  filter: grayscale(16%);
  /* subtle metallic accent */
}
nav a {
  color: var(--accent);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.15s, background .18s;
  position: relative;
}
nav a:hover, nav a:focus {
  color: var(--secondary);
  background: var(--gray-800);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(90deg, var(--primary) 85%, var(--metal) 130%);
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(46,160,156,0.08);
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  transition: box-shadow 0.18s, background 0.23s, color 0.13s;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(92deg, var(--secondary) 85%, var(--metal) 133%);
  color: var(--accent);
  box-shadow: 0 4px 18px rgba(46,160,156,0.19);
}

/* ========================
   HERO & GENERAL SECTIONS
   ======================== */
.hero {
  background: linear-gradient(120deg, var(--gray-900) 65%, var(--primary) 100%);
  padding: 60px 0 40px 0;
  box-shadow: 0 6px 22px rgba(46,160,156,0.07);
  margin-bottom: 60px;
}
.hero h1 {
  color: #F5F8FA;
  font-size: 2.45rem;
  margin-bottom: 22px;
}
.hero p {
  color: var(--gray-400);
  font-size: 1.18rem;
  margin-bottom: 22px;
}
.hero .btn-primary {
  margin-top: 10px;
}
main section {
  margin-bottom: 60px;
  padding: 40px 0;
}

/* ====================
   TABLE STYLING
   ==================== */
.results-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--gray-800);
  border-radius: var(--rounded);
  box-shadow: 0 2.5px 10px rgba(176,188,199,0.07);
  margin-bottom: 20px;
  overflow: hidden;
}
.results-table thead th {
  background: var(--primary);
  color: var(--accent);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.01rem;
  letter-spacing: 0.02em;
  padding: 15px 10px;
  border-right: 1px solid var(--gray-700);
}
.results-table thead th:last-child {
  border-right: 0;
}
.results-table tbody td {
  padding: 13px 10px;
  color: var(--gray-200);
  border-bottom: 1px solid var(--gray-700);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  text-align: left;
}
.results-table tbody tr:last-child td {
  border-bottom: none;
}
.results-table a {
  color: var(--primary);
  font-weight: 600;
}
.results-table a:hover {
  color: var(--secondary);
}

/* ====================
   FORMS & INPUTS
   ==================== */
input[type="text"],
input[type="number"],
input[type="date"],
select {
  background: var(--gray-700);
  color: var(--accent);
  border: 1.2px solid var(--gray-600);
  border-radius: 8px;
  padding: 9px 14px;
  margin-bottom: 0;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  transition: border 0.2s, box-shadow 0.19s;
  box-shadow: none;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 2px 10px rgba(46,160,156,0.06);
}
label {
  color: var(--metal);
  font-weight: 500;
}

/* ================
   ARTICLES SECTION
   ================ */
.articles-list {
  list-style: none;
  gap: 24px;
}
.articles-list li {
  background: var(--gray-800);
  border-radius: var(--rounded);
  box-shadow: 0 3.5px 13px rgba(46,160,156,.07);
  margin-bottom: 20px;
  flex: 1 1 320px;
  padding: 26px 18px 20px 24px;
  border: 1.1px solid var(--gray-700);
  transition: border 0.18s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.articles-list li:hover {
  border-color: var(--secondary);
  box-shadow: 0 5px 18px rgba(46,160,156,0.12);
}
.read-more {
  display: inline-block;
  margin-top: 10px;
  color: var(--secondary);
  font-weight: 700;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  letter-spacing: .03em;
  transition: color 0.15s;
}
.read-more:hover {
  color: var(--primary);
}

/* ============================
   KANTORY PAGE, LISTS, MAP ETC
   ============================ */
#lista-kantorow ol {
  list-style: none;
  padding: 0;
}
#lista-kantorow li {
  background: var(--gray-800);
  border-radius: var(--rounded);
  margin-bottom: 20px;
  box-shadow: 0 2.5px 12px rgba(46,160,156,0.11);
  padding: 24px 18px 16px 24px;
  border: 1px solid var(--gray-700);
  max-width: 700px;
  transition: border 0.17s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#lista-kantorow li:hover {
  border-color: var(--secondary);
  box-shadow: 0 5px 19px rgba(46,160,156,0.13);
}
#lista-kantorow h3 {
  color: var(--secondary);
  margin-bottom: 5px;
}
#lista-kantorow span {
  color: var(--primary);
  font-weight: 600;
}
#lista-kantorow a {
  margin-top: 7px;
  font-weight: 600;
  color: var(--secondary);
}
#lista-kantorow a:hover {
  color: var(--primary);
}

/* =============
   FOOTER
   ============= */
footer {
  width: 100%;
  background: var(--gray-900);
  border-top: 1.5px solid var(--gray-800);
  padding: 0;
}
.footer-main nav {
  flex-wrap: wrap;
  gap: 18px;
}
.footer-main nav a {
  color: var(--gray-400);
  font-size: 0.99rem;
  font-weight: 500;
}
.footer-main nav a:hover {
  color: var(--secondary);
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-400);
}
.footer-contact img {
  width: 19px;
  height: 19px;
  filter: grayscale(25%) contrast(1.13);
}


/* =========================
   MOBILE MENU
   ========================= */
.mobile-menu-toggle {
  display: none;
  background: var(--gray-800);
  color: var(--accent);
  border-radius: 6px;
  font-size: 2.1rem;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 8px rgba(32,80,114,0.05);
  border: 1px solid var(--gray-700);
  transition: background 0.17s, box-shadow 0.18s;
}
.mobile-menu-toggle:hover {
  background: var(--secondary);
  color: var(--gray-900);
  box-shadow: 0 2.5px 14px rgba(46,160,156, 0.10);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(98deg,var(--gray-900) 79%,var(--primary) 102%);
  z-index: 5000;
  box-shadow: 0 8px 60px rgba(32,80,114, .23);
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(.77,0,.18,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.3rem;
  margin: 20px 24px 16px 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.17s, color 0.15s;
  border: none;
  z-index: 6;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--gray-900);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 22px;
  width: 100%;
}
.mobile-nav a {
  color: var(--accent);
  text-transform: uppercase;
  font-family: 'Montserrat', 'Roboto', Arial,sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: .07em;
  padding: 15px 18px;
  border-radius: 8px;
  width: 80vw;
  text-align: center;
  background: var(--gray-700);
  transition: background 0.15s, color 0.11s;
}
.mobile-nav a:hover {
  background: var(--secondary);
  color: var(--gray-900);
}

/* ===============
   COOKIE BANNER
   =============== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 99999;
  background: var(--gray-900);
  border-top: 2px solid var(--primary);
  box-shadow: 0 -2px 18px rgba(32,80,114,0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px 16px 20px;
  gap: 20px;
  flex-wrap: wrap;
  animation: slideUp 0.7s cubic-bezier(.77,0,.18,1);
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity:0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: var(--accent);
  font-size: 1.04rem;
  flex: 2 1 240px;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 9px 19px;
  border-radius: 7px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.17s, color 0.14s;
}
.cookie-btn.accept {
  background: var(--success);
  color: var(--gray-900);
}
.cookie-btn.accept:hover {
  background: var(--secondary);
  color: var(--accent);
}
.cookie-btn.reject {
  background: var(--danger);
  color: var(--accent);
}
.cookie-btn.reject:hover {
  background: var(--gray-700);
}
.cookie-btn.settings {
  background: var(--gray-700);
  color: var(--metal);
  border: 1px solid var(--gray-500);
}
.cookie-btn.settings:hover {
  background: var(--secondary);
  color: var(--gray-900);
}
/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 100000;
  inset: 0;
  background: rgba(32,80,114,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .38s;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: var(--gray-800);
  padding: 38px 28px 30px 28px;
  border-radius: 14px;
  box-shadow: 0 7px 32px rgba(32,80,114,0.19);
  max-width: 369px;
  width: 96vw;
  color: var(--accent);
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: modalpop .4s cubic-bezier(.77,0,.18,1);
}
@keyframes modalpop {
  from { transform: translateY(30px) scale(.99); opacity:0; }
  to { transform:none; opacity:1; }
}
.cookie-modal h3 {
  color: var(--secondary);
  font-size: 1.18rem;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cookie-switch label {
  color: var(--metal);
  font-weight: 500;
}
/* Toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 26px;
}
.switch input {opacity:0;width:0;height:0;}
.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gray-600);
  border-radius: 26px;
  transition: .2s;
  box-shadow: 0 1.5px 6px rgba(46,160,156,0.07);
}
.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  top: 4px;
  background: var(--metal);
  border-radius: 50%;
  transition: .2s;
}
.switch input:checked + .switch-slider {
  background: var(--secondary);
}
.switch input:checked + .switch-slider:before {
  transform: translateX(16px);
  background: var(--primary);
}

/* ===============
   UTILS
   =============== */
.show {
  display: flex !important;
}
.hide {
  display: none !important;
}
.bold {
  font-weight: 600;
}
.text-center { text-align: center; }

/* ===========
   RESPONSIVE
   =========== */
@media (max-width: 1050px) {
  .footer-main, .header-content, .partners-logos {
    flex-wrap: wrap;
    gap: 20px;
  }
}
@media (max-width: 900px) {
  .header-content { flex-wrap: wrap; gap: 10px; }
  .partners-logos { gap: 12px; }
}
@media (max-width: 768px) {
  .header-content nav,
  .header-content .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .features-grid, .content-grid, .card-container, .articles-list,
  .footer-main, .footer-contact, .partners-logos, .faq-list {
    flex-direction: column !important;
    align-items: stretch;
    gap: 16px !important;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    text-align: left;
  }
  .section, main section {
    padding: 28px 5vw;
    margin-bottom: 36px;
  }
  .hero {
    padding: 35px 0 20px 0;
    margin-bottom: 32px;
  }
  .partners-logos img {
    max-width: 120px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 600px) {
  .footer-main, .footer-contact {
    flex-direction: column;
    gap: 12px;
    padding: 20px 0 8px 0;
  }
  .container { width: 99%; }
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.06rem; }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 9px 10px 9px 8px;
  }
}
/* Hide scroll on mobile menu open */
body.mobile-menu-open {
  overflow: hidden;
  position: fixed;
  width: 100vw;
}

/* ==================
   TRANSITIONS
   ================== */
* {
  transition: background 0.18s, color 0.18s, border 0.15s, box-shadow 0.16s;
}

/* Custom scrollbar for that urban feel */
::-webkit-scrollbar {width: 10px; background: var(--gray-900);}
::-webkit-scrollbar-thumb {background: var(--gray-700); border-radius: 6px;}
::-webkit-scrollbar-thumb:hover {background: var(--secondary);}

/* ===== Scrollbar for Firefox ===== */
@-moz-document url-prefix() {
  html {
    scrollbar-width: thin;
    scrollbar-color: var(--gray-700) var(--gray-900);
  }
}
