/* 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;
}
html {
  box-sizing: border-box;
  height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  line-height: 1.6;
  color: #222;
  background-color: #fafafb;
  font-family: 'Roboto', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  outline: none;
}

/* === VARIABLES FOR MONOCHROME (WITH BRAND PRIMARY COLOR FOR ACCENT) === */
:root {
  --monochrome-black: #111116;
  --monochrome-white: #fafafa;
  --monochrome-gray-30: #dddddf;
  --monochrome-gray-60: #b3b3b3;
  --monochrome-gray-90: #22232a;
  --monochrome-gray-95: #292930;
  --brand-primary: #22304b;
  --brand-secondary: #7dbb42;
  --text-main: #17181d;
  --text-light: #f7f7f8;
  --text-muted: #55575f;
  --shadow-md: 0 4px 24px 0 rgba(36,40,43,0.08), 0 1.5px 8px 0 rgba(36,40,43,0.04);
  --shadow-subtle: 0 2px 12px 0 rgba(40,41,45,0.08);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition: all 0.24s cubic-bezier(0.4,0.2,0.2,1);
  --font-display: 'Montserrat', 'Arial', sans-serif;
  --font-body: 'Roboto', 'Arial', sans-serif;
}

/* === TYPOGRAPHY (SOPHISTICATED SCALE) === */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--monochrome-black);
  margin-bottom: 24px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--monochrome-black);
  margin-bottom: 16px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--monochrome-black);
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--monochrome-black);
}
p, li, ul, ol, span {
  font-family: var(--font-body);
  font-size: 1rem;
}
strong {
  font-weight: 600;
  color: var(--monochrome-black);
}
.section > .container > .content-wrapper > ul,
.section > .container > .content-wrapper > ol {
  margin-bottom: 0;
}

/* === LAYOUT CONTAINERS & SPACING === */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--monochrome-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--monochrome-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  gap: 16px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 32px 0 rgba(34,48,75,0.14);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  color: var(--monochrome-black);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 0 0 16px 0;
}

/* === HEADER/NAVBAR - SOPHISTICATED MONOCHROME === */
header {
  width: 100%;
  background: var(--monochrome-white);
  padding-top: 12px;
  position: relative;
  box-shadow: 0 1px 18px rgba(34,48,75,0.06);
  z-index: 10;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 12px 20px;
}
.main-nav > a img {
  height: 38px;
  margin-right: 12px;
}
.main-nav > a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.04rem;
  color: var(--brand-primary);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  transition: background 0.24s, color 0.16s;
  position: relative;
}
.main-nav > a:not(.cta-primary):hover,
.main-nav > a:not(.cta-primary):focus {
  background: var(--monochrome-gray-30);
}
.main-nav > .cta-primary {
  background: var(--brand-primary);
  color: var(--monochrome-white);
  font-weight: 700;
  padding: 10px 28px;
  border-radius: var(--radius-md);
  margin-left: auto;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  box-shadow: 0 2px 10px rgba(34,48,75,0.08);
}
.main-nav > .cta-primary:hover,
.main-nav > .cta-primary:focus {
  background: var(--monochrome-black);
  color: var(--brand-secondary);
  transform: translateY(-2px) scale(1.025);
}

/* === BURGER (HAMBURGER) MENU (MOBILE ONLY) === */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 101;
  width: 44px;
  height: 44px;
  background: var(--monochrome-white);
  color: var(--brand-primary);
  border-radius: 50%;
  border: 1.5px solid var(--monochrome-gray-90);
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(23,24,30,0.08);
  transition: background 0.16s, color 0.2s;
  cursor: pointer;
  line-height: 1;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--monochrome-gray-30);
  color: var(--monochrome-black);
}

@media (max-width: 992px) {
  .main-nav {
    gap: 14px;
    padding-left: 8px;
    padding-right: 12px;
  }
  .main-nav > .cta-primary {
    margin-left: 0;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30,32,40,0.86);
  z-index: 1001;
  display: flex;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.77,0.02,0.36,0.99);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  color: var(--monochrome-white);
  background: transparent;
  font-size: 2.4rem;
  position: absolute;
  top: 22px;
  right: 28px;
  z-index: 1080;
  cursor: pointer;
  transition: color 0.17s;
}
.mobile-menu-close:hover { color: var(--brand-secondary);}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 auto;
  padding-top: 92px;
}
.mobile-nav a {
  color: var(--monochrome-white);
  font-size: 1.35rem;
  font-family: var(--font-display);
  font-weight: 500;
  padding: 17px 6px 17px 30px;
  border-radius: var(--radius-md);
  transition: background 0.19s, color 0.14s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--brand-primary);
  color: var(--brand-secondary);
}

/* === MAIN LAYOUT SECTIONS/MINOR GENERAL SPACING === */
main {
  padding-top: 12px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--monochrome-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
section:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  section {
    padding: 25px 5px;
    margin-bottom: 36px;
  }
}

/* === ABOUT/FEATURES CARDS & BADGES === */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 24px 0 4px 0;
}
.trust-badges img {
  height: 36px;
  width: auto;
  background: var(--monochrome-gray-30);
  border-radius: var(--radius-sm);
  padding: 7px;
  box-shadow: 0px 2px 9px rgba(35,40,45,0.05);
}

/* === SERVICES/CARDS === */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 32px 0 0 0;
}
.service-card {
  flex: 1 1 275px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 230px;
  max-width: 350px;
  transition: box-shadow 0.18s;
}
.service-card:hover {
  box-shadow: 0 6px 24px 0 rgba(34,48,75,0.14);
}
.service-card h3 {
  font-size: 1.24rem;
  color: var(--brand-primary);
}
.service-card span {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 3px;
}

@media (max-width:768px) {
  .service-list {
    flex-direction: column;
    gap: 16px;
  }
  .service-card {
    max-width: 100%;
    min-width: 0;
    width: 100%;
    padding: 20px 10px;
  }
}

/* === CASE STUDIES === */
.case-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.case-study {
  flex: 1 1 280px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 14px;
  transition: box-shadow 0.18s;
}
.case-study:hover {
  box-shadow: 0 6px 24px 0 rgba(34,48,75,0.13);
}
@media (max-width:768px){
  .case-list {
    flex-direction: column;
    gap: 18px;
  }
  .case-study {
    width: 100%;
    padding: 20px 10px;
  }
}

/* === BLOG POST LISTING === */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 20px;
}
.post-list li {
  background: #fff;
  box-shadow: var(--shadow-subtle);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  margin-bottom: 0;
}
.post-list h3 {
  font-size: 1.18rem;
  color: var(--brand-primary);
  font-family: var(--font-display);
  margin-bottom: 7px;
}
.post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 15px;
}
.post-categories li {
  background: var(--monochrome-gray-30);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-family: var(--font-body);
  color: var(--brand-primary);
  letter-spacing: 0.04em;
}

/* === FAQ (Jak to dziala) === */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-list h3 {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 4px;
}
.faq-list p {
  font-size: 1rem;
  color: var(--monochrome-gray-95);
}

/* === BUTTONS & CTAS === */
.cta-primary {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--monochrome-white);
  background: var(--brand-primary);
  padding: 14px 36px;
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 10px rgba(34,48,75,0.07);
  transition: var(--transition);
  border: none;
  margin-top: 9px;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--monochrome-black);
  color: var(--brand-secondary);
  transform: translateY(-1.5px) scale(1.028);
}
.cta-secondary {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brand-primary);
  background: var(--monochrome-white);
  padding: 10px 26px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  border: 1.5px solid var(--brand-primary);
  box-shadow: 0 1px 5px rgba(34,48,75,0.04);
  transition: var(--transition);
}
.cta-secondary:hover,.cta-secondary:focus {
  background: var(--brand-primary);
  color: var(--monochrome-white);
  border-color: var(--brand-secondary);
}

/* === TESTIMONIALS === */
.testimonial-card {
  background: #fff;
  color: #18181e;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  padding: 24px 24px 18px 24px;
  font-size: 1.1rem;
  transition: box-shadow 0.17s;
}
.testimonial-card p {
  color: #161619;
  margin-bottom: 9px;
  font-size: 1.13rem;
}
.testimonial-card span {
  color: var(--brand-primary);
  font-size: 1rem;
  font-style: italic;
}
.testimonial-card:hover {
  box-shadow: 0 7px 34px 0 rgba(34,48,75,0.17);
}

/* === FOOTER === */
footer {
  padding: 48px 0 16px 0;
  background: var(--monochrome-black);
  color: var(--text-light);
  margin-top: 68px;
  position: relative;
  z-index: 1;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.footer-nav a {
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 1.02rem;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  transition: background 0.22s, color 0.19s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: var(--brand-primary);
  color: var(--brand-secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 11px;
  font-size: 1.01rem;
}
.footer-contact img {
  height: 30px;
  width: auto;
  margin-bottom: 7px;
}
.footer-contact a {
  color: var(--brand-secondary);
  text-decoration: underline;
  word-break: break-all;
}
.footer-copyright {
  text-align: center;
  font-size: 0.98rem;
  color: var(--monochrome-gray-60);
}
@media (max-width: 768px) {
  .footer-nav {gap: 9px;}
  .footer-contact {font-size: 0.93rem;}
  footer {padding: 32px 4px 12px 4px;}
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 3000;
  width: 100vw;
  background: #131313ee;
  color: var(--monochrome-white);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -2px 18px rgba(20,20,23,0.15);
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.38s cubic-bezier(0.35,0.88,0.37,1.01);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.cookie-banner p {
  font-family: var(--font-body);
  font-size: 1.03rem;
  color: var(--monochrome-white);
  margin-bottom: 13px;
  text-align: center;
  max-width: 700px;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}
.cookie-actions button, .cookie-actions .cta-settings {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: none;
  padding: 10px 22px;
  transition: background 0.18s, color 0.14s, box-shadow 0.18s;
  cursor: pointer;
}
.cookie-accept {
  background: var(--brand-primary);
  color: var(--monochrome-white);
  box-shadow: var(--shadow-subtle);
}
.cookie-accept:hover, .cookie-accept:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.cookie-reject {
  background: var(--monochrome-gray-30);
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
}
.cookie-reject:hover, .cookie-reject:focus {
  background: var(--brand-primary);
  color: var(--monochrome-white);
  border: 1px solid var(--brand-secondary);
}
.cta-settings {
  background: transparent;
  color: var(--brand-secondary);
  border: 1px solid var(--brand-secondary);
}
.cta-settings:hover, .cta-settings:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
@media (max-width: 540px) {
  .cookie-banner p {font-size: 0.98rem;}
  .cookie-actions button, .cta-settings {padding: 10px 10px; font-size: .98rem;}
}

/* === COOKIE MODAL === */
.cookie-modal {
  position: fixed;
  z-index: 4000;
  left: 50%;
  top: 50%;
  min-width: 320px;
  max-width: 99vw;
  width: 420px;
  background: var(--monochrome-white);
  color: var(--monochrome-black);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(30,32,40,.18);
  padding: 38px 32px 28px;
  transform: translate(-50%,48%) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: all 0.36s cubic-bezier(.34,.67,.32,1.17);
}
.cookie-modal.visible {
  opacity: 1;
  transform: translate(-50%,-50%) scale(1);
  pointer-events: all;
}
.cookie-modal h3 {
  color: var(--brand-primary);
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.cookie-modal label {
  font-family: var(--font-body);
  font-size: 1.06rem;
  color: var(--monochrome-black);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--brand-secondary);
  width: 18px;
  height: 18px;
  margin-right: 7px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 21px;
  justify-content: flex-end;
}
.cookie-modal .modal-actions button {
  border-radius: var(--radius-md);
  padding: 8px 18px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
}
.cookie-modal .accept {
  background: var(--brand-primary);
  color: var(--monochrome-white);
}
.cookie-modal .accept:hover {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.cookie-modal .cancel {
  background: var(--monochrome-gray-30);
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-primary);
}
.cookie-modal .cancel:hover {
  background: var(--brand-primary);
  color: var(--monochrome-white);
  border-color: var(--brand-secondary);
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px;
  right: 18px;
  color: var(--brand-primary);
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

@media (max-width:550px) {
  .cookie-modal {width: 98vw; padding: 20px 5vw 17px; min-width: unset;}
}

/* === RESPONSIVE FLEX LAYOUT SHIFTS === */
@media (max-width: 900px) {
  .container {max-width: 97vw;}
}
@media (max-width: 768px) {
  .container {padding: 0 7px;}
  .content-wrapper, .card-container, .content-grid {gap: 11px;}
  .text-image-section {flex-direction: column;align-items: flex-start;gap: 12px;}
}

/* === MISC: HERO/ICONS/TABLES === */
section ul, section ol {
  margin: 7px 0 7px 12px;
  padding: 0 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
section li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.01rem;
  color: var(--monochrome-gray-95);
}
section li img {
  height: 22px;
  width: 22px;
  background: var(--monochrome-gray-30);
  border-radius: 50%;
  padding: 2px;
}
.section h2 {
  margin-top: 0;
  margin-bottom: 18px;
}

/* === MICRO-INTERACTIONS & TRANSITIONS === */
a, button, .cta-primary, .cta-secondary, .cta-settings, .cookie-banner button {
  transition: color 0.18s, background 0.18s, box-shadow 0.15s, border 0.15s, transform 0.14s;
}
.card, .service-card, .case-study, .testimonial-card {
  transition: box-shadow 0.23s, transform 0.13s;
}
.card:hover, .service-card:hover, .case-study:hover, .testimonial-card:hover {
  box-shadow: 0 9px 32px rgba(24,24,26,0.13);
  transform: translateY(-2.5px) scale(1.011);
}
nav a:focus, .cta-primary:focus, .cta-secondary:focus, .mobile-nav a:focus {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}

/* === PRINT OPTIMIZATION (light theme, no nav/footer) === */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal, footer {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #18181e !important;
    font-size: 12pt;
  }
}
