/* ========================================
   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;
  vertical-align: baseline;
  font-size: 100%;
  font: inherit;
  box-sizing: border-box;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: #fff;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #2C3E50;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  letter-spacing: 0.01em;
}
*, *:before, *:after {
  box-sizing: border-box;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}
a:focus,
a:active {
  outline: 2px solid #FF8B36;
  outline-offset: 2px;
}
ul, ol {
  list-style: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.21;
  color: #2C3E50;
}
h1 {font-size: 2.75rem;margin-bottom: 24px;}
h2 {font-size: 2rem;margin-bottom: 18px;}
h3 {font-size: 1.25rem;margin-bottom: 10px;}
p {
  font-size: 1rem;
  line-height: 1.7;
  color: #2C3E50;
  margin-bottom: 16px;
}
strong { font-weight: 700; }


/* ===============
   GENERAL SPACING
================= */
.container {
  width: 100%;
  max-width: 1210px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.section,
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}


/* =============
   HEADER & NAV
============ */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 16px rgba(44,62,80,0.04);
  position: relative;
  z-index: 1001;
  margin-bottom: 10px;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 20px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 33px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 7px 0;
  position: relative;
  color: #2C3E50;
  transition: color 0.18s;
  border-bottom: 2px solid transparent;
}
header nav a:hover,
header nav a:focus {
  color: #FF8B36;
  border-bottom: 2px solid #FF8B36;
}
header img {
  height: 42px;
  margin-right: 24px;
}
.cta-btn {
  background: #FF8B36;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 28px;
  padding: 10px 32px;
  margin-left: 24px;
  box-shadow: 0 2px 16px rgba(44,62,80,0.14);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.23s, color 0.14s;
  outline: none;
}
.cta-btn:hover,
.cta-btn:focus {
  background: #2C3E50;
  color: #fff;
  box-shadow: 0 6px 36px rgba(44,62,80,0.19);
}

/* ===== MOBILE NAV ===== */
.mobile-menu-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 2.2rem;
  color: #2C3E50;
  cursor: pointer;
  margin-left: 8px;
  padding: 4px 12px;
  transition: color 0.17s;
  z-index: 1101;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #FF8B36;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(44,62,80,0.98);
  z-index: 1200;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(105%);
  transition: transform 0.32s cubic-bezier(.7,0,.3,1), opacity 0.23s;
  opacity: 0;
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0%);
  opacity: 1;
}
.mobile-menu-close {
  border: none;
  background: none;
  color: #fff;
  font-size: 2.1rem;
  margin: 24px 0 24px 24px;
  cursor: pointer;
  align-self: flex-start;
  transition: color 0.17s;
}
.mobile-menu-close:focus {
  outline: 2px solid #FF8B36;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  align-items: flex-start;
  margin-left: 36px;
  margin-top: 24px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  padding: 4px 0;
  transition: color 0.18s;
  border-bottom: 2px solid transparent;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #FF8B36;
  border-bottom: 2px solid #FF8B36;
}
/* Make touch targets large */
.mobile-nav a {
  min-height: 44px;
  min-width: 120px;
  display: inline-block;
}

@media (max-width: 1020px) {
  header nav {
    gap: 18px;
  }
  .cta-btn {
    padding: 9px 20px;
    font-size: 0.97rem;
    margin-left: 12px;
  }
  header .container {
    gap: 6px;
    padding: 14px 12px;
  }
}
@media (max-width: 800px) {
  header .container {
    flex-wrap: wrap;
    gap: 12px;
  }
}
@media (max-width: 768px) {
  header nav,
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

/* ===============
     HERO BLOCK
================= */
.hero {
  background: #E7ECEE;
  border-radius: 0 0 36px 36px;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 56px rgba(44,62,80,0.048);
  margin-bottom: 48px;
  padding: 56px 20px;
}
.hero .container {
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 660px;
  gap: 16px;
}
.hero h1 {
  font-size: 2.75rem;
  color: #2C3E50;
  margin-bottom: 12px;
}
.subheadline {
  font-size: 1.18rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  color: #2C3E50;
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .hero {
    min-height: 210px;
    padding: 34px 8vw;
    border-radius: 0 0 22px 22px;
    margin-bottom: 32px;
  }
  .hero h1 { font-size: 2rem; }
  .subheadline { font-size: 1.05rem; }
}


/* ================
   FLEX LAYOUTS
================= */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(44,62,80,0.05);
  padding: 30px;
  min-width: 250px;
  flex: 1 1 250px;
  transition: box-shadow 0.18s;
  display: flex;
  flex-direction: column;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 8px 36px rgba(44,62,80,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;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; gap: 18px; }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 24px rgba(44,62,80,0.09);
  margin-bottom: 20px;
  font-size: 1.13rem;
  color: #2C3E50;
  min-width: 220px;
  max-width: 550px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 9px 38px rgba(44,62,80,0.18);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-card strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #FF8B36;
  margin-top: 6px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* ==============
     FEATURES
=============== */
.features .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features .feature-grid > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(44,62,80,0.07);
  padding: 26px 22px 22px 22px;
  flex: 1 1 190px;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s, transform 0.16s;
  margin-bottom: 20px;
}
.features .feature-grid > div:hover {
  box-shadow: 0 6px 32px rgba(44,62,80,0.12);
  transform: translateY(-2px) scale(1.02);
}
.features .feature-grid img {
  height: 48px; width: 48px;
  margin-bottom: 9px;
}
.features ul,
.features ol {
  gap: 14px;
  display: flex;
  flex-direction: column;
}
.features ul li:not(:last-child),
.features ol li:not(:last-child) { margin-bottom: 10px; }

@media (max-width: 850px) {
  .features .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .features .feature-grid > div {
    width: 100%;
    min-width: 0;
  }
}

/* ================
     SERVICES
================= */
.services ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}
.services ul li {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 1px 10px rgba(44,62,80,0.05);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  border-left: 5px solid #FF8B36;
  transition: box-shadow 0.16s;
}
.services ul li:hover {
  box-shadow: 0 6px 28px rgba(44,62,80,0.12);
}
/* Oferta detailed layout */
.service-detailed-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.service-detailed-list > div {
  flex: 1 1 270px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 12px rgba(44,62,80,0.07);
  padding: 22px 26px;
  margin-bottom: 20px;
  min-width: 230px;
  max-width: 370px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 4px solid #FF8B36;
  transition: box-shadow 0.15s;
}
.service-detailed-list > div:hover {
  box-shadow: 0 8px 44px rgba(44,62,80,0.11);
}
@media (max-width: 900px) {
  .service-detailed-list {
    flex-direction: column;
    gap: 14px;
  }
  .service-detailed-list > div {
    width: 100%;
    max-width: 100%;
  }
}


/* ================
PROJECT CATEGORY LIST (realizacje)
================= */
.project-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
}
.project-category-list li {
  background: #E7ECEE;
  color: #2C3E50;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 6px 20px;
  border-radius: 24px;
  font-weight: 500;
  margin-bottom: 6px;
}

/* ==============
     CTA SECTION
=============== */
.cta {
  background: #E7ECEE;
  border-radius: 22px;
  box-shadow: 0 2px 24px rgba(44,62,80,0.06);
  padding: 38px 20px;
  text-align: center;
  margin-bottom: 66px;
}
.cta .content-wrapper {
  align-items: center;
  text-align: center;
}
.cta .cta-btn {
  min-width: 170px;
  margin-top: 18px;
  margin-left: 0;
}

/* ==============
FOOTER
=============== */
footer {
  background: #E7ECEE;
  border-top: 2px solid #fff;
  box-shadow: 0 -2px 16px rgba(44,62,80,0.04);
  padding: 34px 0 24px 0;
  width: 100%;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
footer nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #2C3E50;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.17s;
  padding: 3px 0;
}
footer nav a:hover,
footer nav a:focus {
  color: #FF8B36;
}
footer .contact-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.97rem;
  color: #2C3E50;
  font-family: 'Roboto', Arial, sans-serif;
  margin-left: 8px;
}
footer img {
  margin-left: auto;
  margin-top: 8px;
  width: 54px;
  height: auto;
  opacity: 0.94;
}
@media (max-width: 950px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
  footer img {margin-left: 0;}
}


/* ================
    LEGAL SECTIONS
================= */
.legal .text-section {
  padding: 18px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #2c3e50;
}
.legal ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.legal li {color: #2c3e50; font-size: 1rem;}
.legal h2, .legal h3 {
  margin-top: 18px;
  font-size: 1.1rem;
}

/* ================================
      THANK YOU PAGE
================================ */
.confirmation .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 18px;
}
.confirmation ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px 0;
  font-size: 1rem;
  color: #2C3E50;
  font-family: 'Roboto', Arial, sans-serif;
}
.confirmation a.cta-btn {margin: 16px auto 0 auto;}

/* ================================
      CONTACT PAGE / FORMS
================================ */
.contact-info .text-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 1rem;
  color: #2C3E50;
}
.contact-info strong {color: #2C3E50; font-weight: 600;}

/* ================================
      INTERACTIVE ELEMENTS
================================ */
button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.17s;
  outline: none;
}
button:focus {
  outline: 2px solid #FF8B36;
}

/* ====================
     COOKIE BANNER
==================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #2C3E50;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px 18px 20px;
  z-index: 3000;
  box-shadow: 0 -2px 18px rgba(44,62,80,0.13);
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(.7,0,.3,1);
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: all;
}
.cookie-banner-main {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.cookie-banner-text {
  font-size: 1rem;
  color: #fff;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 13px;
}
.cookie-btn {
  background: #FF8B36;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 28px;
  padding: 9px 24px;
  border: none;
  transition: background 0.15s, color 0.14s;
}
.cookie-btn.alt {
  background: #E7ECEE;
  color: #2C3E50;
  border: none;
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: #2C3E50;
  color: #fff;
}
.cookie-btn.alt:hover,
.cookie-btn.alt:focus {
  background: #FF8B36;
  color: #fff;
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 12px 18px 12px;
    gap: 13px;
  }
  .cookie-banner-main {flex-direction: column; gap: 12px;}
  .cookie-banner-buttons {gap: 7px;}
}

/* COOKIE MODAL */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0; height: 100vh; width: 100vw;
  background: rgba(44,62,80,0.82);
  z-index: 4001;
  align-items: center;
  justify-content: center;
  transition: opacity 0.21s, visibility 0.21s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 18px;
  padding: 36px 29px 29px 29px;
  max-width: 380px;
  min-width: 0;
  box-shadow: 0 8px 48px rgba(44,62,80,0.17);
  color: #2C3E50;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: fadeInModal 0.28s;
}
@keyframes fadeInModal {
  from {opacity: 0;transform: translateY(32px) scale(.97);}
  to {opacity: 1;transform: translateY(0) scale(1);}
}
.cookie-modal-title {font-family: 'Montserrat', Arial, sans-serif;font-size: 1.3rem;font-weight: 700;}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
}
.cookie-category label {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #2C3E50;
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #FF8B36;
}
.cookie-category .essential-label {
  color: #2C3E50;
  font-weight: 500;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 14px;
}
@media (max-width: 540px) {
  .cookie-modal-content {
    padding: 22px 7vw 18px 7vw;
    max-width: 97vw; min-width: 0;
  }
}

/* ============================
   RESPONSIVE
============================= */
@media (max-width: 650px) {
  .container {padding: 0 9px;}
  .section, section {padding: 19px 3vw; margin-bottom: 38px;}
  .hero {margin-bottom: 24px; padding: 27px 3vw;}
  .features .feature-grid, .service-detailed-list {gap: 9px;}
}

@media (max-width: 480px) {
  h1 {font-size: 1.41rem;}
  h2 {font-size: 1.11rem;}
  .hero h1 {font-size: 1.41rem;}
  .section, section {padding: 11px 1vw; margin-bottom: 20px;}
  .cta {border-radius: 12px;padding: 18px 7px;margin-bottom: 29px;}
}

/* ==========
SCROLLBAR
=========== */
::-webkit-scrollbar { width: 9px; background: #E7ECEE; }
::-webkit-scrollbar-thumb {background: #2C3E50; border-radius: 8px;}

/* ======================
   MISCELLANEOUS
====================== */
body.no-scroll { overflow: hidden !important; height: 100vh; }

/* ============
ACCESSIBILITY
============ */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
