/* =====================
   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,font,img,ins,kbd,q,s,samp,
small,strike,strong,sub,sup,tt,var,
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;
}
footer p {
  color: white;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #FFFFFF;
  color: #232943;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  font-weight: 400;
}
a {
  color: #1D2433;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #927B4A;
  outline: none;
}
ul, ol {
  margin-left: 24px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
}
button {
  border: none;
  background: none;
  cursor: pointer;
}
:focus {
  outline-color: #1D2433;
}

/* =====================
   BRAND COLORS & FONTS
   ===================== */
:root {
  --color-primary: #1D2433;
  --color-secondary: #E3E6ED;
  --color-bg: #FFFFFF;
  --color-accent: #927B4A;
  --color-accent2: #7A653A;
  --color-link: #1D2433;
  --color-neutral: #8891A2;
  --color-success: #1ca67b;
  --color-error: #e74c3c;
}

/* Responsive Container */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* =====================
   TYPOGRAPHY SCALE
   ===================== */
h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 8px;
}
p, li, label {
  font-size: 1rem;
  color: #232943;
  margin-bottom: 10px;
}
strong {
  font-weight: 700;
}

blockquote {
  border-left: 4px solid var(--color-accent);
  margin: 20px 0 20px 0;
  padding-left: 20px;
  color: var(--color-primary);
  background: #f7f9fc;
  font-style: italic;
}

/* =====================
   HEADER & NAVIGATION
   ===================== */
header {
  width: 100%;
  background: var(--color-bg);
  border-bottom: 1px solid #e6e8ef;
  box-shadow: 0 2px 8px 0 rgba(30,36,51,0.04);
  position: sticky;
  top: 0;
  z-index: 1020;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding-top: 16px;
  padding-bottom: 16px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 4px 0;
  color: var(--color-primary);
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}
.cta-button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 12px 30px;
  border-radius: 25px;
  margin-left: 40px;
  box-shadow: 0 2px 7px 0 rgba(30,36,51,0.06);
  transition: background 0.18s, box-shadow 0.18s, color 0.18s, transform 0.18s;
  border: none;
  display: inline-block;
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(146,123,74,0.08);
  transform: translateY(-2px) scale(1.04);
}

/* MOBILE NAVIGATION BUTTON */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1200;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  font-size: 2rem;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 8px rgba(30,36,51,0.10);
  transition: background 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-accent);
  color: #fff;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(29,36,51,0.96);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.88,-.26,.36,1.28);
  width: 100vw;
  height: 100vh;
  padding: 0;
  opacity: 1;
  pointer-events: all;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.18);
  opacity: 1;
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2.1rem;
  position: absolute;
  top: 16px;
  right: 24px;
  z-index: 2500;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  transition: background 0.18s;
}
.mobile-menu-close:hover,.mobile-menu-close:focus {
  background: var(--color-accent);
}
.mobile-nav {
  margin-top: 90px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding-left: 38px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 2.6rem;
  letter-spacing: 0.03em;
  transition: color 0.18s;
  padding: 6px 0;
  border-radius: 4px;
  display: block;
}
.mobile-nav a:hover,.mobile-nav a:focus {
  color: var(--color-accent);
  background: rgba(255,255,255,0.06);
}

/* =====================
   HERO SECTION (example: .hero-section)
   ===================== */
.hero-section {
  background: linear-gradient(110deg, #f7f9fc 70%, #e3e6ed 100%);
  min-height: 350px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  padding: 46px 0 0 0;
}
.hero-section .container {
  flex-direction: column;
  align-items: flex-start;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
}
.hero-section h1 {
  font-size: 2.7rem;
  margin-bottom: 14px;
}
.hero-section p {
  color: #505979;
  font-size: 1.12rem;
  margin-bottom: 28px;
}

/* =====================
   SECTIONS
   ===================== */
section {
  width: 100%;
  background: transparent;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* =====================
   FLEX LAYOUT PATTERNS
   ===================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(30,36,51,0.08);
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 300px;
  min-width: 280px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.17s, box-shadow 0.17s;
}
.card:hover, .card:focus-within {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 30px 0 rgba(30,36,51,0.16);
}
.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;
  background: #f8fafc;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px 0 rgba(30,36,51,0.06);
  color: #232943;
  font-size: 1.1rem;
  position: relative;
  min-width: 200px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 32px rgba(29,36,51,0.11);
  transform: translateY(-3px) scale(1.02);
}
.testimonial-meta {
  color: var(--color-accent2);
  font-size: 0.98rem;
  margin-left: 16px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 12px;
  padding: 24px 18px 20px 18px;
  box-shadow: 0 2px 10px 0 rgba(30,36,51,0.06);
  max-width: 320px;
  margin-bottom: 20px;
  flex: 1 1 240px;
  transition: box-shadow 0.16s, transform 0.16s;
}
.feature-item img {
  width: 40px; height: 40px;
  margin-bottom: 10px;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 8px 28px rgba(29,36,51,0.11);
  transform: translateY(-2px) scale(1.025);
}

/* Feature Grid specifically */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 12px;
}
/* =========== ARTICLE & LISTS =========== */
.brand-values, .features-list, .services-list, .articles-list {
  margin-bottom: 24px;
  margin-top: 8px;
}
.brand-values li, .features-list li, .services-list li, .articles-list li {
  margin-bottom: 16px;
  font-size: 1.08rem;
}
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.articles-list a {
  color: var(--color-accent2);
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.16s;
}
.articles-list a:hover, .articles-list a:focus {
  color: var(--color-primary);
}

/* =========== SERVICES =========== */
.services-detailed {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  align-items: stretch;
}
.service-item {
  background: #f8fafc;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(29,36,51,0.08);
  padding: 26px 20px 22px 20px;
  flex: 1 1 325px;
  min-width: 260px;
  max-width: 370px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.16s, box-shadow 0.16s;
}
.service-item h2 span {
  color: var(--color-accent);
  font-weight: 500;
  font-size: 1rem;
  padding-left: 8px;
}
.service-item:hover,.service-item:focus-within {
  box-shadow: 0 8px 32px rgba(29,36,51,0.12);
  transform: translateY(-3px) scale(1.02);
}

/* Case Studies / Realizacje */
.case-study {
  background: #f8fafc;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(29,36,51,0.05);
  padding: 24px 18px 20px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: box-shadow 0.16s, transform 0.16s;
}
.case-study:hover, .case-study:focus-within {
  box-shadow: 0 8px 28px rgba(29,36,51,0.10);
  transform: translateY(-2px) scale(1.012);
}
.case-study blockquote {
  margin-top: 4px;
  font-size: 1rem;
}
.case-study blockquote span {
  display: block;
  color: var(--color-accent2);
  margin-top: 6px;
}

/* =========== CONTACT DETAILS =========== */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-details img {
  width: 22px; height: 22px;
  vertical-align: middle;
  margin-right: 8px;
}
.map-address {
  margin-bottom: 22px;
}
.map-address h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
}

/* =========== CTA SECTION =========== */
.cta-section {
  width: 100%;
  background: linear-gradient(95deg, #e3e6ed 80%, #f7f9fc 100%);
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(29,36,51,.08);
  padding: 48px 18px;
  margin-bottom: 60px !important;
  display: flex;
  align-items: center;
}
.cta-section .container {
  align-items: flex-start;
}
.cta-section h2 {
  color: var(--color-primary);
}

/* =========== FOOTER =========== */
footer {
  background: var(--color-primary);
  color: #f3f5f9;
  padding: 44px 0 30px 0;
  border-top: 4px solid var(--color-accent2);
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
}
footer img {
  height: 46px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: #f3f5f9;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  opacity: 0.85;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
  opacity: 1;
}
.footer-contact {
  font-size: 1rem;
  line-height: 1.8;
}
.footer-contact strong {
  color: #fff;
  font-weight: 600;
}
.footer-contact a {
  color: var(--color-accent);
  text-decoration: underline;
  transition: color 0.17s;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: #fff;
}

/* ==========================
   COOKIE CONSENT BANNER
   ========================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #f7f9fc;
  color: #232943;
  box-shadow: 0 -2px 16px rgba(29,36,51,0.16);
  padding: 28px 20px 24px 20px;
  z-index: 2200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  transition: transform 0.36s cubic-bezier(.88,-0.26,.36,1.28), opacity 0.36s;
  opacity: 1;
  pointer-events: all;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  text-align: center;
  color: #232943;
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  min-width: 220px;
  justify-content: center;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 22px;
  border: none;
  margin: 0 2px;
  background: var(--color-primary);
  color: #fff;
  transition: background 0.19s, color 0.19s, box-shadow 0.17s;
}
.cookie-banner button.cookie-settings {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.cookie-banner button.accept {
  background: var(--color-accent);
  color: #fff;
}
.cookie-banner button.reject {
  background: #b7bac2;
  color: #232943;
}
.cookie-banner button:hover,.cookie-banner button:focus {
  background: var(--color-accent2);
  color: #fff;
  box-shadow: 0 2px 16px rgba(146,123,74,0.11);
}
.cookie-banner button.cookie-settings:hover,.cookie-banner button.cookie-settings:focus {
  background: var(--color-secondary);
  color: var(--color-accent2);
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  min-width: 330px;
  max-width: 96vw;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(29,36,51,0.16);
  z-index: 3000;
  padding: 28px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.3s, transform 0.3s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.8);
}
.cookie-modal h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-modal .category-name {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
}
.cookie-modal .category-desc {
  font-size: 0.97rem;
  color: #505979;
}
.cookie-modal .switch {
  appearance: none;
  width: 42px;
  height: 22px;
  background: #e6e6f1;
  border-radius: 15px;
  position: relative;
  transition: background 0.19s;
}
.cookie-modal .switch:checked {
  background: var(--color-accent);
}
.cookie-modal .switch:before {
  content: '';
  display: block;
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(30,36,51,0.10);
  transition: left 0.19s, background 0.19s;
}
.cookie-modal .switch:checked:before {
  left: 23px;
  background: #fff;
}
.cookie-modal .switch[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal button {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border-radius: 18px;
  border: none;
  padding: 8px 20px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  transition: background 0.18s, color 0.18s, box-shadow 0.19s;
}
.cookie-modal button.close {
  background: #b7bac2;
  color: #232943;
}
.cookie-modal button:hover,.cookie-modal button:focus {
  background: var(--color-accent2);
  color: #fff;
}

/* =====================
   MEDIA QUERIES
   ===================== */
@media (max-width: 1200px) {
  .container {
    max-width: 970px;
    padding: 0 14px;
  }
  .footer-nav, .footer-contact {
    font-size: 0.98rem;
  }
}
@media (max-width: 950px) {
  .main-nav {
    gap: 18px;
  }
  footer .container {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .main-nav, .cta-button {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .feature-grid, .services-detailed,
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .cta-section {
    border-radius: 10px;
    padding: 30px 8px;
  }
  .footer-nav, .footer-contact {
    font-size: 1rem;
  }
  h1, .h1 {
    font-size: 2rem;
  }
  h2, .h2 {
    font-size: 1.35rem;
  }
  .card, .service-item, .feature-item, .case-study {
    min-width: 0;
    max-width: unset;
    padding: 18px 11px;
  }
}
@media (max-width: 560px) {
  .container {
    padding: 0 7px;
  }
  .hero-section {
    padding-top: 23px;
    min-height: 230px;
  }
  .footer-nav, .footer-contact {
    gap: 8px;
    font-size: 0.95rem;
  }
  .cta-section {
    padding: 16px 2px;
  }
  .card, .service-item, .feature-item, .case-study {
    padding: 12px 6px;
    margin-bottom: 12px;
  }
}

/* ================
   MICRO & UI EFFECTS
   ================ */
/* Card hover up */
.card, .service-item, .feature-item, .case-study {
  cursor: pointer;
}
.card:active, .service-item:active, .feature-item:active {
  transform: translateY(1px) scale(.99);
}

/* Button focus style */
button:focus-visible, .cta-button:focus-visible {
  outline: 3px solid var(--color-accent2);
  outline-offset: 2px;
}

/* =====================
   FORM ELEMENTS (if exists)
   ===================== */
input[type="text"], input[type="email"], textarea {
  background: #f2f4f9;
  border: 1px solid #ccd0db;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 14px;
  transition: border 0.17s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: var(--color-accent2);
  background: #fff;
}
label {
  display: block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-primary);
}

/* =====================
   Z-INDEX LAYERS
   ===================== */
header, .mobile-menu-toggle { z-index: 1200; }
.mobile-menu { z-index: 2000; }
.cookie-banner { z-index: 2200; }
.cookie-modal { z-index: 3000; }

/* =====================
   UTILITIES
   ===================== */
.gap-8 { gap: 8px !important; }
.gap-16 { gap: 16px !important; }
.m-0 { margin: 0 !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mb-60 { margin-bottom: 60px !important; }

/* =====================
 Hide cookie/modal/popups by default (for JS control)
   ===================== */
.cookie-banner, .cookie-modal {
  display: none;
}
.cookie-banner.active, .cookie-modal.active {
  display: flex;
}
