/* 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, 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 { box-sizing: border-box; font-size: 16px; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.5; background: #FFFFFF; color: #21272A; min-height:100vh; }

/* TYPOGRAPHY */
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #21272A;
  font-size: 16px;
  letter-spacing: 0.01em;
  background-color: #F5F6F8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
  color: #21272A;
  line-height: 1.13;
}
h1 { font-size: 2.7rem; margin-bottom: 24px; letter-spacing:0; }
h2 { font-size: 2rem; margin-bottom: 20px; letter-spacing:0; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 10px; }

p, ul, ol, li { font-family: 'Open Sans', Arial, sans-serif; font-weight: 400; }
p { margin-bottom: 16px; font-size: 1rem; }
ul, ol { margin-left: 20px; margin-bottom: 16px; }
li { margin-bottom: 10px; }
a { color: #4A7A96; text-decoration: none; transition: color 0.18s; }
a:hover, a:focus { color: #5692B0; text-decoration: underline; }
strong, b { font-weight: 600; }

/* CONTAINERS & GENERAL LAYOUT */
.container {
  width: 100%;
  max-width: 1180px;
  padding: 0 20px;
  margin: 0 auto;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(33,39,42,0.06);
}

@media (max-width: 768px) {
  .section {
    margin-bottom: 32px;
    padding: 24px 10px;
    border-radius: 10px;
  }
  .container {
    padding: 0 8px;
  }
}

/* FLEX LAYOUTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FFF;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(33,39,42,0.09);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  min-width: 270px;
  flex: 1 1 240px;
  transition: box-shadow 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 18px 0 rgba(86,146,176,0.15);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .card-container, .content-grid {
    gap: 14px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F5F6F8;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(33,39,42,0.10);
  margin-bottom: 20px;
  flex: 1 1 320px;
}
.testimonial-card p {
  color: #21272A;
  font-size: 1.1rem;
  margin-bottom: 0;
}
.testimonial-card span {
  color: #4A7A96;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 14px 0;
}

/* SPECIFICS: FEATURES GRID */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid > div {
  background: #FFF;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(33,39,42,0.08);
  padding: 22px 16px;
  flex: 1 1 200px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.16s;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 4px 18px 0 rgba(86,146,176,0.14);
}
.feature-grid h3 { font-size: 1.19rem; color: #4A7A96; margin-bottom: 8px; }
.feature-grid img { width: 38px; height: 38px; margin-bottom: 10px; }

/* HERO SECTION */
.hero {
  background: #EBF1F4;
  padding: 56px 0 42px 0;
  margin-bottom: 40px;
}
.hero .container { padding-top: 0; }
.hero h1 {
  font-size: 2.7rem;
  line-height: 1.08;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #21272A;
  margin-bottom: 20px;
  letter-spacing: 0;
}
.hero p { font-size: 1.17rem; line-height: 1.55; color: #434a4d; margin-bottom: 26px; }
.hero .button-primary { font-size: 1.1rem; }
@media (max-width: 768px) {
  .hero { padding: 38px 0 28px 0; margin-bottom: 16px; }
  .hero h1 { font-size: 2rem; margin-bottom: 16px; }
}

/* BUTTONS */
.button-primary {
  background: #4A7A96;
  color: #FFF;
  border: none;
  border-radius: 25px;
  padding: 12px 34px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.16s, transform 0.16s, box-shadow 0.14s;
  box-shadow: 0 2px 6px 0 rgba(86,146,176,0.09);
  outline: none;
  margin-top: 10px;
  margin-bottom: 7px;
  display: inline-block;
}
.button-primary:hover, .button-primary:focus {
  background: #5692B0;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px 0 rgba(86,146,176,0.17);
}
.button-secondary {
  background: #F5F6F8;
  color: #4A7A96;
  border: 1.5px solid #4A7A96;
  border-radius: 22px;
  padding: 10px 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-right: 14px;
  margin-bottom: 7px;
  transition: all 0.15s;
  cursor: pointer;
  outline: none;
}
.button-secondary:hover, .button-secondary:focus {
  border-color: #5692B0;
  color: #5692B0;
  background: #EAEEF1;
}
/* TABLES (Cennik) */
table {
  width: 100%;
  border-collapse: collapse;
  background: #FFF;
  margin-top: 12px;
  margin-bottom: 22px;
  border-radius: 10px;
  box-shadow: 0 2px 10px 0 rgba(33,39,42,0.08);
  overflow: hidden;
}
thead tr { background: #EBF1F4; }
th, td {
  padding: 18px 11px;
  text-align: left;
  font-size: 1rem;
  border-bottom: 1px solid #F0F2F4;
}
th { font-size: 1.07rem; font-family: 'Montserrat', Arial, sans-serif; color: #4A7A96; font-weight: 600; }
tr:last-child td { border-bottom: none; }
@media (max-width: 700px) {
  table, thead, tbody, th, td, tr { display: block; width: 100%; }
  th, td { padding: 13px 8px; }
  thead { display: none; }
  td { border: none; border-bottom: 1px solid #F0F2F4; position: relative; }
  tr { margin-bottom: 16px; border-radius: 8px; box-shadow: 0 2px 7px 0 rgba(33,39,42,0.08); }
}

/* NAVIGATION */
header {
  background: #FFF;
  border-bottom: 1.5px solid #F0F1F2;
  box-shadow: 0 2px 8px 0 rgba(33,39,42,0.04);
  position: sticky;
  top: 0; z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  height: 78px;
  gap: 0.7rem;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
header nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #23272A;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background 0.13s, color 0.13s;
}
header nav ul li a:hover, header nav ul li a:focus {
  background: #F5F6F8;
  color: #4A7A96;
}
header nav img {
  height: 39px;
  margin-right: 28px;
}
header .button-primary { margin-left: 18px; }

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: #4A7A96;
  cursor: pointer;
  margin-left: auto;
  padding: 7px 15px 7px 7px;
  border-radius: 8px;
  transition: background 0.13s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover { background: #EBF1F4; }
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: #F5F6F8;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(.6,.05,.28,1), opacity 0.18s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #4A7A96;
  font-size: 2rem;
  cursor: pointer;
  margin: 24px 0 0 24px;
  align-self: flex-start;
  padding: 6px 8px;
  border-radius: 50%;
  transition: background 0.14s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #EBF1F4;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100vw;
  margin-top: 48px;
  padding-left: 30px;
  gap: 22px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.17rem;
  color: #23272A;
  font-weight: 500;
  padding: 12px 8px 12px 0;
  border-radius: 8px;
  transition: background 0.14s, color 0.14s;
  display: inline-block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #EBF1F4;
  color: #4A7A96;
}
@media (max-width: 990px) {
  header nav ul, header .button-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 991px) {
  .mobile-menu, .mobile-menu.open { display: none !important; }
}

/* FOOTER */
footer {
  background: #FFF;
  border-top: 1.5px solid #F0F1F2;
  margin-top: 68px;
}
footer .container {
  padding: 30px 20px 16px 20px;
}
footer .content-wrapper {
  align-items: center;
  justify-content: center;
  gap: 12px;
  display: flex;
  flex-direction: column;
}
footer nav {
  margin-top: 6px;
  margin-bottom: 4px;
  font-size: 0.94rem;
  color: #4A7A96;
  font-family: 'Open Sans', Arial, sans-serif;
}
footer nav a {
  color: #4A7A96;
  text-decoration: underline;
  font-size: 0.98rem;
}
footer nav a:hover, footer nav a:focus { color: #5692B0; text-decoration: none; }
footer img {
  width: 54px; height: 54px; margin-bottom: 10px;
}
footer p {
  color: #707578;
  font-size: 0.97rem;
  text-align: center;
}
@media (max-width: 600px) {
  footer .container { padding: 18px 6px 7px 6px; }
  footer img { width: 38px; height: 38px; }
}

/* BLOG DATES */
.blog-date {
  background: #F5F6F8;
  color: #4A7A96;
  font-size: 0.86rem;
  border-radius: 5px;
  padding: 3px 8px;
  margin-left: 9px;
}

/* SERVICE BLOCKS (Usługi) */
.service-block {
  background: #F5F6F8;
  border-radius: 14px;
  margin-bottom: 22px;
  padding: 24px 18px 20px 18px;
  box-shadow: 0 2px 7px 0 rgba(33,39,42,0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-block h2 { color: #4A7A96; font-size: 1.18rem; }
.service-block strong { color: #21272A; }

/* CASE STUDY (realizacje) */
.case-study {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 2px 9px 0 rgba(33,39,42,0.08);
  padding: 18px 17px 14px 18px;
  margin-bottom: 24px;
}
.case-study h2 {
  color: #4A7A96;
  margin-bottom: 8px;
  font-size: 1.14rem;
}
.case-study ul { margin-bottom: 0; }

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  z-index: 99999;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #FFFFFF;
  box-shadow: 0 -2px 18px 0 rgba(33,39,42,0.13);
  border-top: 1.5px solid #EAEEF1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  gap: 18px;
  transition: transform 0.27s, opacity 0.22s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  font-size: 0.99rem;
  color: #21272A;
  margin-bottom: 0;
}
.cookie-banner .button-primary, .cookie-banner .button-secondary {
  margin-top: 0; margin-bottom: 0; padding: 8px 20px; font-size: 1rem;
}
.cookie-banner .cookie-buttons {
  display: flex; flex-direction: row; gap: 10px;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 7px;
    gap: 12px;
  }
  .cookie-banner .cookie-buttons { width: 100%; justify-content: flex-end; gap: 8px; }
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(33,39,42, 0.28);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.22s;
}
.cookie-modal-backdrop.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 4px 36px 0 rgba(33,39,42,0.24);
  padding: 32px 24px;
  width: 95vw;
  max-width: 390px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: appearModal 0.34s cubic-bezier(.47,.77,.43,1.33);
}
@keyframes appearModal {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.20rem;
  color: #4A7A96;
  margin-bottom: 4px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px; right: 19px;
  background: none;
  border: none;
  color: #5692B0;
  font-size: 1.6rem;
  cursor: pointer;
  border-radius: 50%;
  padding: 3px 7px;
  transition: background 0.14s;
}
.cookie-modal .close-modal:focus, .cookie-modal .close-modal:hover {
  background: #EAEEF1;
}
.cookie-categories {
  display: flex; flex-direction: column; gap: 13px;
}
.cookie-category {
  display: flex; align-items: center; gap: 11px;
  font-size: 1.01rem; color: #21272A;
}
.cookie-category input[type=checkbox] {
  accent-color: #4A7A96;
  width: 20px; height: 20px;
}
.cookie-category label {
  font-size: 1rem;
}
.cookie-modal .modal-buttons {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 17px;
}

/* Miscellaneous */
.text-section { margin-bottom: 24px; }
.text-section ul { margin-bottom: 0; }

ol { padding-left: 26px; }

/* For sections with .section class: overrides for index and cennik */
main > section { margin-bottom: 36px; }
@media (max-width: 600px) {
  main > section { margin-bottom: 18px; }
}

/* Accessibility: Focus outlines */
a:focus, button:focus, .button-primary:focus, .button-secondary:focus, input:focus, select:focus {
  outline: 2px solid #4A7A96;
  outline-offset: 2px;
  z-index: 2;
}

/* Micro-interactions (card hover, etc.) */
.card, .feature-grid > div, .service-block, .case-study, .testimonial-card {
  transition: box-shadow 0.17s, transform 0.11s;
}
.card:hover, .feature-grid > div:hover, .service-block:hover, .case-study:hover, .testimonial-card:hover {
  box-shadow: 0 4px 24px 0 rgba(86,146,176,0.13);
  transform: translateY(-1px) scale(1.015);
}

/* Print minimal and clean - hides nav/footer */
@media print {
  header, nav, footer, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-modal-backdrop { display: none !important; }
  .section, main, .container { box-shadow: none !important; background: #FFF !important; }
  body { background: #FFF !important; color: #000 !important; }
}

/* Hide visually */
.visually-hidden {
  position: absolute;
  left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}

/* Summary: Consistent spacing */
.section, .card, .feature-grid > div, .service-block, .case-study, .testimonial-card {
  margin-bottom: 24px;
}

/* Responsive heading scale */
@media (max-width: 600px) {
  h1 { font-size: 1.57rem; }
  h2 { font-size: 1.19rem; }
}

/* Ensure all images responsive */
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
