/* 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, 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,
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 {
  scroll-behavior: smooth;
  background: #F2F3F8;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  color: #1B3D60;
  background: #F2F3F8;
  line-height: 1.6;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
a {
  color: #1B3D60;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}
a:focus { outline: 2px solid #4EA27B; outline-offset: 2px; }
a:hover {
  color: #4EA27B;
}

/* BRAND VARIABLES (fallbacks as needed) */
:root {
  --color-primary: #1B3D60;
  --color-secondary: #4EA27B;
  --color-accent: #F2F3F8;
  --color-bg: #F2F3F8;
  --color-white: #fff;
  --color-black: #181818;
  --shadow-md: 0 4px 14px rgba(27,61,96,0.08);
  --shadow-lg: 0 8px 32px rgba(27,61,96,0.13);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  color: #1B3D60;
  letter-spacing: 0.04em;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 24px;
  line-height: 1.18;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.2;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  line-height: 1.24;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, ul, ol, blockquote {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
}
blockquote {
  font-family: var(--font-display);
  font-weight: 700;
  background: #fff;
  border-left: 6px solid #4EA27B;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  color: #1B3D60;
  box-shadow: var(--shadow-md);
}
strong, b { font-weight: 800; color: #1B3D60; }

/* GENERIC CONTAINERS */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

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

/* CARD & GRID FLEX LAYOUTS */
.card-container,
.features-grid,
.team-grid,
.testimonial-grid, 
.posts-grid,
.case-study-list,
.company-logos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}

.card,
.feature,
.team-member,
.case-study,
article {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  position: relative;
}

.card {
  min-width: 260px;
  flex: 1 1 340px;
}

.feature {
  align-items: flex-start;
  flex: 1 1 260px;
  min-width: 200px;
  transition: box-shadow .18s, transform .18s;
}
.feature img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}
.feature:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px) scale(1.02);
}

.team-member {
  flex: 1 1 260px;
  min-width: 200px;
  border-left: 5px solid #4EA27B;
}


.company-logos-row {
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin: 20px 0 16px 0;
}
.company-logos-row img {
  height: 48px;
  width: auto;
  filter: grayscale(0.15) contrast(1.2);
  transition: filter .3s;
}
.company-logos-row img:hover {
  filter: none;
}

.posts-grid {
  gap: 24px;
  justify-content: space-between;
  align-items: stretch;
}
.posts-grid article {
  align-items: flex-start;
  flex: 1 1 320px;
  margin-bottom: 20px;
  border-left: 5px solid #1B3D60;
  transition: box-shadow .18s, transform .18s;
}
.posts-grid article:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px) scale(1.03);
}
.posts-grid article h3 {
  font-size: 1.2rem;
}
.posts-grid article a {
  margin-top: 8px;
  font-weight: 700;
  color: #4EA27B;
}
.posts-grid article a:hover {
  color: #1B3D60;
}

.case-study-list {
  gap: 32px;
}
.case-study {
  flex: 1 1 300px;
  border-left: 6px solid #1B3D60;
  align-items: flex-start;
  background: #F2F3F8;
}
.case-study h3 {
  color: #1B3D60;
}
.case-study ul {
  padding: 0 0 0 0;
  list-style: none;
  line-height: 1.6;
}

/* FLEX LAYOUTS */
.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;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* TESTIMONIALS */
.testimonials-slider,
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 32px 24px 22px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  min-width: 260px;
  max-width: 400px;
  margin-bottom: 20px;
  border-top: 6px solid #1B3D60;
  transition: box-shadow .19s, transform .17s;
}
.testimonial-card p {
  text-align: center;
  font-size: 1.1rem;
  color: #181818;
  font-weight: 600;
}
.testimonial-card span {
  color: #4EA27B;
  font-size: .98rem;
  font-weight: bold;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px) scale(1.02);
  border-top: 6px solid #4EA27B;
}

/***** HEADER *****/
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(27,61,96,0.04);
  margin-bottom: 0;
  z-index: 20;
  width: 100%;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  position: relative;
  min-height: 80px;
}
.logo img {
  height: 50px;
  transition: transform .18s;
}
.logo:hover img {
  transform: scale(1.07) rotate(-2deg);
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 26px;
  align-items: center;
  margin-left: 24px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #1B3D60;
  padding: 6px 4px;
  border-bottom: 2.5px solid transparent;
  transition: color 0.17s, border-color .19s;
}
.main-nav a:hover, .main-nav a.active {
  color: #4EA27B;
  border-bottom: 2.5px solid #4EA27B;
}
.btn-primary {
  background: #4EA27B;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  padding: 13px 32px;
  border-radius: var(--radius-lg);
  border: none;
  font-size: 1.09rem;
  letter-spacing: 0.04em;
  margin-left: 36px;
  box-shadow: 0 3px 16px rgba(78,162,123,0.08);
  cursor: pointer;
  transition: background .19s, color .17s, transform .17s;
  display: inline-block;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #1B3D60;
  color: #fff;
  box-shadow: var(--shadow-lg);
  transform: scale(1.04);
}

/***** MOBILE MENU ******/
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.4rem;
  padding: 6px 12px;
  color: #4EA27B;
  cursor: pointer;
  transition: color .2s, transform .17s;
  z-index: 999;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: #1B3D60;
  transform: scale(1.18);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #1B3D60;
  color: #fff;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.71,.12,.29,.97);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 32px;
  box-shadow: -8px 0 32px rgba(27,61,96,0.10);
}
.mobile-menu.active {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.3rem;
  margin-left: auto;
  margin-right: 16px;
  margin-bottom: 32px;
  cursor: pointer;
  transition: color .12s, transform .12s;
  z-index: 1002;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #4EA27B;
  transform: scale(1.1);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 24px;
  align-items: flex-start;
  padding: 0 32px;
  margin-top: 24px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  padding: 11px 0;
  letter-spacing: 0.03em;
  border-left: 4.5px solid transparent;
  transition: color .14s, border-color .13s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #4EA27B;
  border-left: 4.5px solid #4EA27B;
  background: rgba(78,162,123,0.09);
}

/**** HERO & UTILITIES ****/
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.section:last-child {
  margin-bottom: 0;
}
.hero {
  display: flex;
  align-items: center;
  min-height: 420px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  gap: 36px;
  padding: 40px 20px 40px 40px;
}
.hero h1 {
  font-size: 2.8rem;
  color: #1B3D60;
}
.hero p {
  color: #181818;
  margin-bottom: 24px;
  font-size: 1.07rem;
}
.hero .btn-primary {
  margin-left: 0;
}

/**** CONTACT DETAILS & MAP ****/
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-details div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: #1B3D60;
}
.contact-details img {
  width: 28px; height: 28px;
}
.map-placeholder {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 18px;
  margin-top: 16px;
  font-size: 1rem;
  color: #1B3D60;
}

/**** FAQ COLLAPSIBLE ****/
.faq-question {
  background: #F2F3F8;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  padding: 22px 24px;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
  border-left: 5px solid #4EA27B;
}
.faq-question h3 {
  font-size: 1.13rem;
  margin: 0;
  font-weight: 800;
}
.faq-answer {
  margin-top: 12px;
  margin-bottom: 2px;
  color: #181818;
  font-size: 1.03rem;
  font-weight: 500;
}
.faq-question:hover {
  box-shadow: var(--shadow-lg);
  border-color: #1B3D60;
}

/***** FOOTER *****/
footer {
  background: #1B3D60;
  color: #fff;
  padding: 38px 0 8px 0;
  margin-top: 80px;
  box-shadow: 0 -2px 14px rgba(27,61,96,0.06);
  font-family: var(--font-body);
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
footer a {
  color: #fff;
  font-weight: 700;
  margin-right: 22px;
  font-family: var(--font-display);
  transition: color .14s, text-decoration .17s;
  font-size: 1rem;
}
footer a:hover { color: #4EA27B; text-decoration: underline;}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
  color: #F2F3F8;
  opacity: 0.88;
}
footer img { height: 42px; margin-bottom: 16px; }
.footer-copyright {
  width: 100%;
  margin-top: 18px;
  font-size: .98rem;
  color: #fff;
  opacity: 0.7;
  letter-spacing: 0.04em;
  text-align: left;
}

/**** BLOG & CATEGORIES ****/
.blog-categories {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.blog-categories a {
  color: #4EA27B;
  font-weight: 700;
  padding: 2px 8px;
  transition: background .13s, color .11s;
  border-radius: 6px;
}
.blog-categories a:hover {
  background: #e3f4ec;
  color: #1B3D60;
}
.featured-post {
  background: #4EA27B;
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 24px;
  box-shadow: 0 7px 28px rgba(78,162,123,0.13);
  font-family: var(--font-display);
  max-width: 700px;
}
.featured-post h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}
.featured-post a {
  color: #fff;
  background: rgba(27,61,96,0.09);
  padding: 7px 17px;
  border-radius:4px;
  font-weight: 800;
}
.featured-post a:hover {
  background: #1B3D60;
}

/***** COOKIE CONSENT BANNER *****/
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 1500;
  background: #fff;
  color: #1B3D60;
  box-shadow: 0 -4px 36px rgba(27,61,96,0.09);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 34px 21px 20px;
  font-family: var(--font-display);
  font-size: 1.09rem;
  border-top: 4px solid #4EA27B;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 13px;
}
.cookie-banner button {
  background: #4EA27B;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 8px 20px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(78,162,123,0.09);
  transition: background .13s, color .13s;
  min-width: 130px;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: #1B3D60;
  color: #fff;
}
.cookie-banner .cookie-settings {
  background: #fff;
  color: #1B3D60;
  border: 1.7px solid #1B3D60;
}
.cookie-banner .cookie-settings:hover { background: #F2F3F8; color: #4EA27B; }

/***** COOKIE CONSENT MODAL *****/
.cookie-modal-overlay {
  position: fixed; left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(27,61,96,0.47);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
  animation: fadeIn .27s;
}
.cookie-modal {
  background: #fff;
  max-width: 420px;
  width: 94vw;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px 28px 26px 28px;
  color: #1B3D60;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeUp .33s;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: #1B3D60;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F2F3F8;
  border-radius: 8px;
  padding: 11px 18px;
  margin-bottom: 10px;
}
.cookie-category .cookie-label {
  font-weight: 700;
}
.cookie-toggle {
  width: 44px;
  height: 26px;
  background: #ddd;
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: background .18s;
  border: 1px solid #ccd;
}
.cookie-toggle[data-checked="true"] {
  background: #4EA27B;
}
.cookie-toggle .knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(27,61,96,0.08);
  transition: left .19s;
}
.cookie-toggle[data-checked="true"] .knob {
  left: 20px;
}
.cookie-modal-close {
  position: absolute;
  top: 10px; right: 16px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #1B3D60;
  cursor: pointer;
  transition: color .16s;
}
.cookie-modal-close:hover { color: #4EA27B; }

@keyframes fadeUp {
  0% { transform: translateY(26px) scale(0.98); opacity:0; }
  100% { transform: translateY(0); opacity:1; }
}
@keyframes fadeIn {
  0% { opacity:0; }
  100% { opacity:1; }
}

/***** TIMELINE VISUAL for proces-wspolpracy *****/
.timeline-visual {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
  margin-top: 20px;
  min-height: 22px;
}
.timeline-visual::before {
  content: '';
  height: 6px;
  flex:1 1 auto;
  border-radius: 3px;
  background: #4EA27B;
  box-shadow: 0 1px 7px #4EA27B66;
}
/* Decorative only; main steps are in content */

/****** GENERAL INTERACTIONS ******/
button, .btn, .btn-primary {
  transition: background .16s, color .14s, box-shadow .14s, transform .14s;
}
*:focus-visible { outline: 2px solid #1B3D60; outline-offset: 1px; }

/****** RESPONSIVE DESIGN (MOBILE FIRST) ******/
@media (max-width: 992px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.4rem; }
  .main-nav {
    gap: 13px;
    font-size: 1rem;
  } 
}
@media (max-width: 850px) {
  header .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-contact {
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: inline-block; }
  .btn-primary { margin-left: 14px; }
  .company-logos-row {
    justify-content: flex-start;
    gap: 16px;
  }
  .posts-grid, .card-container, .features-grid, .testimonial-grid, .team-grid, .case-study-list {
    flex-direction: column;
    gap: 18px;
  }
  .section, section {
    padding: 24px 6px;
    margin-bottom: 35px;
  }
  .hero {
    flex-direction: column;
    padding: 28px 8px;
    min-height: unset;
    gap: 23px;
  }
  .contact-details, .content-wrapper, .map-placeholder {
    padding: 0;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .timeline-visual { gap: 12px; }
}
@media (max-width: 520px) {
  .btn-primary, .cookie-banner button {
    width: 100%;
    min-width: unset;
    margin-left: 0;
    padding: 11px 8px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    font-size: .97rem;
    padding: 18px 8px 16px 8px;
    align-items: flex-start;
  }
  .cookie-banner .cookie-buttons { width: 100%; gap: 7px; }
  .testimonial-card { padding: 19px 11px 17px 11px; }
}

/****** SPACING - Modern_Bold strict rules ******/
.card-container, .features-grid, .testimonial-grid, .team-grid, .posts-grid, .case-study-list {
  gap: 24px;
}
.card, .feature, .team-member, .case-study, article {
  margin-bottom: 20px;
}
.content-grid {
  gap: 20px;
}
.text-image-section {
  gap: 30px;
}
.testimonial-card {
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
}
.feature-item { gap: 15px; }
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
/* END MODERN_BOLD SPACING RULES */
