/* --- 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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: #F2F7F5;
  color: #22525C;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: 0.01em;
  font-smooth: always;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
a {
  color: #22525C;
  text-decoration: none;
  transition: color 0.18s;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
}
input[type="text"], input[type="email"], textarea {
  background: #fff;
  border: 1px solid #A9D9D0;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 16px;
}
::-webkit-input-placeholder { color: #888; }
::-moz-placeholder { color: #888; }
:-ms-input-placeholder { color: #888; }
::placeholder { color: #888; }

ul, ol {
  margin: 0;
  padding-left: 26px;
}
section, article, aside {
  display: block;
}

/* --- BRAND & TYPOGRAPHY --- */
:root {
  --color-primary: #22525C;
  --color-secondary: #A9D9D0;
  --color-accent: #F2F7F5;
  --color-body: #22525C;
  --color-contrast: #fff;
  --color-muted: #E2EAE7;

  --serif-base: 'Georgia', 'Times New Roman', Times, serif;
  --sans-serif-base: 'Montserrat', 'Arial', sans-serif;
}

body {
  font-family: var(--serif-base);
  background: var(--color-accent);
  color: var(--color-body);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sans-serif-base);
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.5em;
}
h1 { font-size: 2.75rem; line-height: 1.14; }
h2 { font-size: 2rem; line-height: 1.2; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }
}

p, li {
  font-size: 1rem;
  margin-bottom: 0.8em;
}
strong, b {
  font-weight: bold;
}
em, i {
  font-style: italic; }

hr {
  border: 0;
  border-top: 1px solid #A9D9D0;
  margin: 24px 0;
}

/* --- LAYOUT CONTAINERS & FLEXBOX --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(34,82,92,.045);
}

/* --- NAVIGATION BAR & HEADER --- */
header {
  background: #fff;
  border-bottom: 1px solid #E2EAE7;
  position: relative;
  z-index: 990;
}
header .container {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 80px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
header nav a {
  font-family: var(--sans-serif-base);
  font-size: 1rem;
  color: var(--color-primary);
  letter-spacing: 0.01em;
  padding: 0 7px;
  transition: color 0.17s;
  position: relative;
}
header nav a:hover,
header nav a:focus {
  color: var(--color-secondary);
  text-decoration: underline;
}
header a.cta-button {
  margin-left: 16px;
}

/* --- CTA BUTTONS --- */
.cta-button {
  font-family: var(--sans-serif-base);
  font-size: 1rem;
  background: var(--color-primary);
  color: var(--color-contrast);
  padding: 13px 36px;
  border-radius: 28px;
  border: none;
  font-weight: 600;
  box-shadow: 0 2px 12px 0 rgba(34,82,92,.09);
  transition: background 150ms, transform 100ms, box-shadow 150ms;
  cursor: pointer;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 18px 0 rgba(34,82,92,.16);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-contrast);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  border: none;
  margin-left: 12px;
  cursor: pointer;
  z-index: 1002;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  outline: 2px solid var(--color-secondary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(34,82,92,0.97);
  background: linear-gradient(150deg, #22525C 80%, #A9D9D0 120%);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.36,0.66,0.04,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  color: #fff;
  background: none;
  font-size: 2.3rem;
  position: absolute;
  top: 26px;
  right: 26px;
  z-index: 2010;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: background 0.1s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(255,255,255,0.11);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 90px 34px 28px 34px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--sans-serif-base);
  font-size: 1.25rem;
  margin: 2px 0;
  letter-spacing: 0.04em;
  padding: 0.6em 1em;
  border-radius: 8px;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(255,255,255,0.13);
  color: var(--color-secondary);
}

/* Hide nav on small screens, show burger */
@media (max-width: 900px) {
  header nav, header a.cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(125deg, #F2F7F5 60%, #A9D9D0 140%);
  min-height: 350px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  box-shadow: 0 4px 30px 0 rgba(34,82,92,.07);
  border-radius: 0 0 40px 40px;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 0 32px 0;
}
.hero h1 {
  color: var(--color-primary);
  margin-bottom: 6px;
  font-size: 2.35rem;
  letter-spacing: 0.04em;
}
.hero p {
  font-size: 1.18rem;
  color: #375e68;
  max-width: 660px;
  margin-bottom: 10px;
}
@media (max-width: 768px) {
  .hero {
    min-height: 260px;
    border-radius: 0 0 24px 24px;
  }
  .hero .content-wrapper {
    padding: 24px 0 15px 0;
  }
  .hero h1 {
    font-size: 1.3rem;
  }
}

/* --- SECTION & FLEX CONTAINERS --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 18px;
  background: #fff;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px 0 rgba(34,82,92,.07);
  padding: 24px 20px 18px 20px;
  flex: 1 1 260px;
  min-width: 260px;
  transition: box-shadow 0.17s, transform 0.12s;
}
.card:hover {
  box-shadow: 0 6px 26px 0 rgba(34,82,92,.17);
  transform: translateY(-2px) scale(1.01);
}
.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) {
  .content-grid,
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* --- SERVICES & OFFER CARDS (/, zajecia.html) --- */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 18px 0 10px 0;
}
.service-cards > div {
  background: #F9FAFA;
  border-radius: 12px;
  box-shadow: 0 1.5px 8px 0 rgba(34,82,92,.07);
  padding: 24px 20px;
  flex: 1 1 220px;
  min-width: 210px;
  min-height: 140px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  border-left: 4px solid var(--color-secondary);
  transition: box-shadow 0.15s, border-left-color 0.13s;
}
.service-cards > div:hover {
  box-shadow: 0 5px 16px 0 rgba(34,82,92,.14);
  border-left-color: var(--color-primary);
}
.service-cards h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4em;
  letter-spacing: 0.04em;
}

/* --- LISTS WITH ICONS --- */
ul li, ol li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.45em;
}
ul li img, ol li img {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-muted);
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(34,82,92,.09);
  margin-bottom: 20px;
  flex: 1 1 260px;
  position: relative;
  color: #224548;
  font-size: 1.06rem;
  font-family: var(--serif-base);
  transition: box-shadow 0.12s, background 0.13s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(34,82,92,.13);
  background: #e5f1ea;
}
.testimonial-card p {
  font-style: italic;
  color: #1b333a;
  margin: 0 0 0.15em 0;
  max-width: 600px;
  line-height: 1.6;
}
.testimonial-card span {
  color: #22525c;
  font-size: 0.97rem;
  letter-spacing: 0.02em;
  font-family: var(--sans-serif-base);
  font-weight: 600;
}
@media (max-width: 700px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 17px;
  }
}

/* --- FEATURES --- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  padding: 22px 22px 18px 22px;
  border-radius: 12px;
  box-shadow: 0 2px 14px 0 rgba(34,82,92,.07);
}

/* --- BLOG LISTING --- */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.blog-list article {
  background: #F9FAFA;
  border-radius: 10px;
  box-shadow: 0 1.5px 8px 0 rgba(34,82,92,.07);
  padding: 23px 20px;
  flex: 1 1 280px;
  min-width: 210px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 4px solid var(--color-secondary);
  transition: box-shadow 0.13s, border-left-color 0.12s;
}
.blog-list article:hover {
  box-shadow: 0 5px 16px 0 rgba(34,82,92,.10);
  border-left-color: var(--color-primary);
}

/* --- BLOG SEARCH/FILTER --- */
.search-filter {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.search-filter label {
  font-family: var(--sans-serif-base);
  font-size: 1rem;
}
.search-filter input {
  padding: 7px 14px;
  border-radius: 7px;
  border: 1px solid #A9D9D0;
  min-width: 160px;
  background: #fff;
  transition: border 0.11s;
}
.search-filter input:focus {
  border: 1.5px solid var(--color-primary);
}

/**** TABLE STYLING (for grafik.html, cennik.html) ****/
table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  font-size: 1rem;
  margin: 24px 0;
  box-shadow: 0 1.5px 8px 0 rgba(34,82,92,.07);
}
caption {
  text-align: left;
  font-family: var(--sans-serif-base);
  font-size: 1.11rem;
  color: #22525C;
  margin-bottom: 8px;
  padding-top: 4px;
}
thead {
  background: #A9D9D0;
}
th, td {
  padding: 13px 14px;
  text-align: left;
}
tr:nth-child(even) td {
  background: #f7fbf8;
}
th {
  color: #24525c;
  font-family: var(--sans-serif-base);
  font-weight: 600;
}
td {
  color: #25424c;
}
tbody tr:hover td {
  background: #e7f3ed;
}
.legend {
  font-size: 0.95rem;
  margin-top: 6px;
  color: #2b515b;
  letter-spacing: 0.01em;
}

@media (max-width: 700px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }
  th, td {
    padding: 9px 8px;
    font-size: 0.97rem;
  }
}

/* --- FOOTER --- */
footer {
  background: #fff;
  border-top: 1px solid #E2EAE7;
  padding: 36px 0 22px 0;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
footer nav a {
  color: #22525C;
  opacity: 0.87;
  font-size: 0.97rem;
  font-family: var(--sans-serif-base);
  margin-bottom: 4px;
  transition: color 0.16s, opacity 0.14s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-secondary);
  opacity: 1;
}
.footer-info {
  color: #406e76;
  font-size: 0.97rem;
  margin: 8px 0;
}
.footer-legal {
  color: #466F74;
  font-size: 0.96rem;
  opacity: 0.96;
  margin-top: 6px;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  margin-bottom: 8px;
}
.footer-social a img {
  width: 27px;
  height: 27px;
  filter: grayscale(35%);
  transition: filter 0.16s;
}
.footer-social a:hover img, .footer-social a:focus img {
  filter: grayscale(0%) brightness(1.15); }

@media (max-width: 900px) {
  .footer-social {
    gap: 13px;
  }
}

/* --- RESPONSIVE: GENERAL --- */
@media (max-width: 1140px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  .section { padding: 24px 7px; }
  .service-cards, .blog-list, .card-container, .content-grid { gap: 15px; }
}
@media (max-width: 700px) {
  .container { padding: 0 5px; }
  .section { margin-bottom: 35px; }
}

/* --- COOKIE CONSENT BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -4px 24px 0 rgba(34,82,92,.09);
  padding: 26px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 3000;
  border-top: 1px solid #A9D9D0;
  transition: transform 0.32s;
  transform: translateY(0);
  max-width: 680px;
  margin: 0 auto;
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateY(0);
  border-radius: 20px 20px 0 0;
}
.cookie-banner.hide {
  transform: translateX(-50%) translateY(120%);
}
.cookie-banner p {
  color: #224548;
  font-size: 1.03rem;
  margin-bottom: 2px;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-start;
}
.cookie-banner button, .cookie-modal button {
  padding: 8px 25px;
  border-radius: 21px;
  font-family: var(--sans-serif-base);
  font-size: 1rem;
  border: none;
  margin-top: 2px;
  font-weight: 600;
  box-shadow: 0 2px 8px 0 rgba(34,82,92,.055);
  cursor: pointer;
  background: var(--color-secondary);
  color: #22525C;
  transition: background 0.16s, color 0.13s, transform 0.13s;
}
.cookie-banner button.accept {
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner button.accept:hover,
.cookie-banner button.accept:focus {
  background: #18363c;
}
.cookie-banner button.reject {
  background: #A9D9D0;
  color: #22525C;
}
.cookie-banner button.reject:hover,
.cookie-banner button.reject:focus {
  background: #224548;
  color: #fff;
}
.cookie-banner button.settings {
  background: #F2F7F5;
  color: #195960;
  border: 1.5px solid #A9D9D0;
}
.cookie-banner button.settings:hover,
.cookie-banner button.settings:focus {
  background: #e0ece7;
  color: #18363c;
}
@media (max-width: 600px) {
  .cookie-banner {
    max-width: 99vw;
    padding: 17px 5px 10px 5px;
    border-radius: 17px 17px 0 0;
  }
  .cookie-banner .cookie-btns {
    flex-direction: column;
    gap: 8px;
  }
}
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(34,82,92,0.81);
  z-index: 3100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  color: var(--color-primary);
  border-radius: 20px;
  padding: 38px 30px 24px 30px;
  min-width: 330px;
  max-width: 98vw;
  box-shadow: 0 8px 40px 0 rgba(34,82,92,.20);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal-content h2 {
  font-size: 1.22rem;
  margin-bottom: 5px;
  font-family: var(--sans-serif-base);
  color: #22525C;
}
.cookie-modal-content .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}
.cookie-modal-content label {
  font-size: 1rem;
  margin-left: 3px;
  color: #234246;
}
.cookie-modal-content input[type="checkbox"] {
  width: 21px;
  height: 21px;
  accent-color: var(--color-primary);
}
.cookie-modal-content .essential {
  opacity: 0.63;
}
.cookie-modal-content .close-modal {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.9rem;
  background: none;
  border: none;
  color: #22525c;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  transition: background 0.13s;
  cursor: pointer;
}
.cookie-modal-content .close-modal:hover,
.cookie-modal-content .close-modal:focus {
  background: #f1f6f2;
}

@media (max-width: 480px) {
  .cookie-modal-content {
    min-width: 90vw;
    padding: 13vw 3vw 5vw 3vw;
  }
  .cookie-modal-content h2 { font-size: 1.09rem; }
}

/* -- SPACING & GAP REINFORCEMENT -- */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* --- MISC/UTILITY CLASSES --- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}
.filters {
  color: #386573;
  background: #eaf3f1;
  border-radius: 8px;
  font-size: 0.97rem;
  padding: 13px 18px;
  margin: 20px 0 0 0;
  font-family: var(--sans-serif-base);
}
.featured-post {
  background: #E2EAE7;
  border-radius: 8px;
  padding: 14px 17px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px 0 rgba(34,82,92,.055);
  font-style: italic;
}
.featured-post h3 {
  margin-bottom: 5px;
  font-family: var(--sans-serif-base);
  color: #224548;
  font-size: 1.04rem;
}

/* --- MICRO-INTERACTIONS --- */
a, button, .cta-button {
  transition: background 0.16s, color 0.15s, box-shadow 0.13s, transform 0.12s;
}
.card, .service-cards > div, .blog-list article, .testimonial-card {
  transition: box-shadow 0.14s, border-color 0.13s, background 0.13s, transform 0.11s;
}
input, select, textarea {
  transition: border 0.13s, box-shadow 0.13s;
}
input:focus, textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 2px #a9d9d086;
}

/* ------ END ------ */
