/* ================================================== */
/* 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, 
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;
  box-sizing: border-box;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
html {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #181818;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
ul, ol {
  list-style: none;
}
table {
  border-collapse: collapse;
  width: 100%;
}

/* ================================================== */
/* BRAND FONTS (GOOGLE FONTS FALLBACK)               */
/* ================================================== */
@import url('https://fonts.googleapis.com/css?family=Merriweather:700,900|Roboto:400,500,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  color: #181818;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 28px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 22px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: #222;
}
h4, h5, h6 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

p, ul, ol {
  font-family: 'Roboto', Arial, sans-serif;
  color: #222;
  font-size: 1rem;
  margin-bottom: 18px;
}
strong, b {
  font-weight: 700;
  color: #222;
}

/* Typography scale supporting sophistication */
.display {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -1px;
}

/* ================================================== */
/* LAYOUT CONTAINERS & SPACING                        */
/* ================================================== */

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Section padding and dramatic white space */
section:not(:last-child) {
  border-bottom: 1px solid #ececec;
}

/* Card & Card container styles */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  box-shadow: 0 4px 24px -6px rgba(0,0,0,0.08);
  padding: 32px 24px;
  transition: box-shadow 0.2s, border 0.2s;
}
.card:hover {
  border: 1px solid #26425A;
  box-shadow: 0 6px 28px -4px rgba(38,66,90,0.15);
  z-index: 2;
}

/* Feature & Service Grids using Flexbox */
.feature-grid, .service-grid, .blog-grid, .benefits-grid, .testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature, .service, .blog-post {
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 3px 16px -4px rgba(0,0,0,0.10);
  border-radius: 12px;
  padding: 28px 20px 24px 20px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.2s, border 0.2s;
  margin-bottom: 20px;
}
.feature:hover, .service:hover, .blog-post:hover {
  border: 1.5px solid #26425A;
  box-shadow: 0 6px 32px -4px rgba(38,66,90,0.13);
}
.feature img, .service img {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  filter: grayscale(0.9) contrast(1.1);
}

/* Testimonials */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #f7f7f7;
  border-radius: 12px;
  box-shadow: 0 2px 12px -3px rgba(0,0,0,0.07);
  margin-bottom: 20px;
  flex: 1 1 300px;
  border-left: 4px solid #222;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.testimonial-card strong {
  color: #222;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 3px;
}
.testimonial-card p {
  color: #181818;
  font-size: 1.07rem;
  font-style: italic;
}
.testimonial-card:hover {
  border-left-color: #26425A;
  box-shadow: 0 4px 20px -3px rgba(38,66,90,0.10);
}

/* Table Styling (Cennik) */
table {
  width: 100%;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px -3px rgba(0,0,0,0.08);
  border: 1px solid #ececec;
}
thead tr {
  background: #222;
  color: #fff;
}
th, td {
  padding: 18px 14px;
  text-align: left;
}
tbody tr:not(:last-child) {
  border-bottom: 1px solid #ebebeb;
}
tbody tr:nth-child(odd) {
  background: #f8f8f8;
}

/* Text-Image Section (if used) */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Text Section for team/about etc */
.text-section {
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 18px;
}

/* Feature Items */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Call To Action Buttons */
.cta {
  display: inline-block;
  background: #181818;
  color: #fff;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  padding: 12px 34px;
  border-radius: 24px;
  transition: background 0.22s, color 0.22s, box-shadow 0.18s;
  box-shadow: 0 2px 8px -2px rgba(0,0,0,0.09);
  border: none;
  margin-top: 13px;
  cursor: pointer;
  outline: none;
}
.cta.primary {
  background: #26425A;
  color: #fff;
}
.cta:hover, .cta:focus {
  background: #fff;
  color: #26425A;
  border: 1.5px solid #26425A;
  box-shadow: 0 2px 20px -4px rgba(38,66,90,0.12);
}
.cta.primary:hover, .cta.primary:focus {
  background: #222;
  color: #fff;
  border: 1.5px solid #222;
}

/* Navigation Styles */
header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 10px 20px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 26px;
  align-items: center;
}
header nav a {
  color: #181818;
  font-weight: 500;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.18s, border-bottom 0.18s;
  padding-bottom: 2px;
}
header nav a:hover, header nav a:focus,
header nav a[aria-current="page"] {
  color: #26425A;
  border-bottom: 2px solid #26425A;
}
header img {
  height: 38px;
  width: auto;
  display: block;
}
header .cta {
  margin-left: 18px;
}

/* Footer */
footer {
  background: #222;
  color: #fff;
  padding: 38px 0 0 0;
  border-top: 1px solid #444;
  margin-top: 80px;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-menu a {
  color: #fff;
  font-size: 1rem;
  opacity: 0.9;
  transition: color 0.18s, opacity 0.22s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #87B9D9;
  opacity: 1;
}
.footer-contact {
  font-size: 0.97rem;
  color: #ddd;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-contact strong {
  color: #fff;
  font-size: 1.08rem;
  letter-spacing: 1.2px;
}
.footer-contact a {
  color: #87B9D9;
  text-decoration: underline;
}
.footer-contact p {
  color: #87B9D9;
}
footer {
  position: relative;
  z-index: 2;
  margin-top: 70px;
}

/* Categories Nav (Blog) */
.categories-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 10px;
  margin-bottom: 14px;
}
.categories-nav a {
  background: #f7f7f7;
  color: #222;
  font-weight: 500;
  padding: 7px 20px;
  border-radius: 14px;
  transition: background 0.16s, color 0.16s;
}
.categories-nav a:hover, .categories-nav a:focus {
  background: #26425A;
  color: #fff;
}

/* ================================================ */
/* MOBILE NAVIGATION: Hamburger Menu                */
/* ================================================ */
.mobile-menu-toggle {
  background: transparent;
  border: none;
  color: #222;
  font-size: 2.1rem;
  display: none;
  cursor: pointer;
  margin-left: 12px;
  z-index: 201;
  transition: color 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: #26425A;
}
.mobile-menu {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(22,24,27,0.97);
  z-index: 203;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.6,.2,.4,1);
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.25rem;
  align-self: flex-end;
  margin: 22px 28px 10px 0;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 220;
}
.mobile-menu-close:hover { color: #87B9D9; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  align-items: flex-start;
  padding: 42px 0 0 40px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  transition: color 0.16s;
  padding: 10px 0;
  border-radius: 8px;
  min-width: 210px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #87B9D9;
  background: rgba(135,185,217,0.10);
}

@media (max-width: 1024px) {
  header .container {
    padding: 18px 12px 10px 12px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .service-grid, .blog-grid, .benefits-grid, .testimonials {
    gap: 18px;
  }
  .feature, .service, .blog-post, .testimonial-card {
    min-width: 280px;
    flex: 1 1 260px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 7px;
  }
  header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    padding: 10px 7px 7px 7px;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .cta {
    display: none;
  }
  .feature-grid, .service-grid, .blog-grid, .benefits-grid, .testimonials {
    flex-direction: column;
    gap: 18px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .section {
    padding: 22px 7px;
    margin-bottom: 38px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .footer-menu, .footer-contact {
    align-items: flex-start;
  }
  footer .container {
    flex-direction: column;
    gap: 26px;
    padding: 0 7px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.03rem; }
  .container, footer .container {
    padding: 0 4px;
  }
  .section {
    padding: 13px 2px;
  }
  .card, .feature, .service, .testimonial-card {
    padding: 14px 9px 16px 9px;
  }
}

/* ================================================ */
/* COOKIE CONSENT BANNER & MODAL                    */
/* ================================================ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #222;
  color: #fff;
  width: 100%;
  z-index: 250;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 32px 18px 32px;
  box-shadow: 0 -2px 18px -3px rgba(38,66,90,0.13);
  border-top: 2px solid #26425A;
  font-size: 1rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s, transform 0.33s cubic-bezier(.5,.15,.4,1);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
.cookie-banner__content {
  flex: 2 1 0;
  font-size: 1rem;
  margin-right: 18px;
}
.cookie-banner__actions {
  display: flex;
  gap: 12px;
}
.cookie-btn {
  background: #26425A;
  color: #fff;
  border: none;
  padding: 10px 23px;
  border-radius: 16px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 7px -2px rgba(60,60,60,0.06);
  margin-left: 0;
  margin-right: 0;
  transition: background 0.18s, color 0.16s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #fff;
  color: #26425A;
  border: 1.5px solid #26425A;
}
.cookie-btn.secondary {
  background: #fff;
  color: #222;
  border: 1.2px solid #ddd;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  color: #87B9D9;
  border: 1.6px solid #26425A;
  background: #222;
}

@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 12px 6px 10px 6px;
    font-size: 0.97rem;
  }
  .cookie-banner__actions {
    justify-content: flex-end;
    gap: 9px;
  }
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(22,24,27,0.87);
  z-index: 255;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: #181818;
  border-radius: 18px;
  box-shadow: 0 12px 60px -10px rgba(38,66,90,0.19); 
  width: 98vw;
  max-width: 400px;
  padding: 34px 32px 30px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 260;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.21s, transform 0.36s cubic-bezier(.6,.1,.2,1);
}
.cookie-modal.hide {
  opacity: 0;
  transform: translateY(40px);
}
.cookie-modal h2, .cookie-modal h3 {
  margin: 0 0 12px 0;
  font-size: 1.3rem;
  color: #26425A;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}
.cookie-modal .cookie-btn {
  margin-top: 12px;
  width: 100%;
}
.cookie-modal-close {
  position: absolute;
  right: 18px; top: 18px;
  background: none;
  border: none;
  color: #87B9D9;
  font-size: 1.7rem;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal-close:hover { color: #26425A; }
.toggle-switch {
  position: relative;
  width: 46px;
  height: 26px;
  display: inline-block;
}
.toggle-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  left: 0; top: 0;
  width: 46px; height: 26px;
  background: #ddd;
  border-radius: 16px;
  transition: background 0.2s;
}
.toggle-slider:before {
  content: "";
  position: absolute;
  left: 2px; top: 2px;
  width: 22px; height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
  box-shadow: 0 2px 7px -2px rgba(38,66,90,0.11);
}
.toggle-switch input:checked + .toggle-slider {
  background: #26425A;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
  background: #87B9D9;
}
.toggle-switch input:disabled + .toggle-slider {
  background: #eee;
  opacity: 0.7;
  cursor: default;
}

/* ================================================== */
/* MICRO-INTERACTIONS & SCROLL                       */
/* ================================================== */
a, .cta, .cta.primary, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: color 0.16s, background 0.22s, box-shadow 0.18s, border 0.18s;
}
section, .card, .feature, .service, .testimonial-card, .blog-post {
  transition: box-shadow 0.18s, border 0.22s, background 0.20s;
}
::-webkit-scrollbar {
  width: 9px;
  background: #f9f9f9;
}
::-webkit-scrollbar-thumb {
  background: #e2e2e2;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #cccccc;
}
/* Focus outlines for accessibility */
:focus {
  outline: 2px solid #87B9D9;
  outline-offset: 2px;
}

/* ================================================== */
/* MISC UTILITIES & DEFAULTS                          */
/* ================================================== */
.section:last-child {
  margin-bottom: 0;
}
hr {
  border: none;
  border-bottom: 1.5px solid #ddd;
  margin: 28px 0;
}
blockquote {
  font-style: italic;
  background: #f7f7f7;
  border-left: 3px solid #222;
  padding: 8px 20px;
  margin-bottom: 20px;
  color: #444;
}

/* List bullet styles in about/service pages */
ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 7px;
}
ul li:before {
  content: '';
  position: absolute;
  left: 2px; top: 10px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #222;
}

/* ======================= BRAND COLORS ============ */
:root {
  --primary: #26425A;
  --secondary: #87B9D9;
  --accent: #fff;
  --brand-dark: #181818;
  --gray-1: #232323;
  --gray-2: #444;
}

/* ================================================== */
/* PRINT OVERRIDE (for legal, cennik)                 */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  body, .container, .section {
    background: #fff !important;
    color: #222 !important;
    box-shadow: none !important;
  }
}
section {
  padding: 10px 0;
}