/* -------------------------------------------------
   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, main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
  background: none;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #F6F8FB;
  color: #314066;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  border-style: none;
  max-width: 100%;
  display: block;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/* -------------------------------------------------
   SOFT PASTEL COLOR PALETTE
----------------------------------------------------*/
:root {
  --primary: #19325F;
  --secondary: #BAC5D8;
  --accent: #F6B31B;
  --white: #fff;
  --pastel-pink: #FFE8F0;
  --pastel-blue: #E6ECFA;
  --pastel-yellow: #FFF6E2;
  --pastel-green: #E8F7F1;
  --pastel-purple: #F3E8FD;
  --gray: #A8AFC5;
  --dark: #314066;
}

/* -------------------------------------------------
   TYPOGRAPHY
----------------------------------------------------*/
html {
  font-size: 16px;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--dark);
  font-size: 16px;
  background: var(--pastel-blue);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--primary);
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.4rem;
}
h4 {
  font-size: 1.1rem;
}
p, ul, li, td, label {
  font-size: 1rem;
  color: var(--dark);
  line-height: 1.7;
}
strong {
  font-weight: bold;
  color: var(--primary);
}

/* -------------------------------------------------
   LAYOUT: CONTAINERS & SECTIONS
----------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section, section, main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 24px;
}

/* Explicit section extra spacing for first/last section */
main > section:first-of-type {
  margin-top: 24px;
}

/* -------------------------------------------------
   FLEXBOX PATTERNS (MANDATORY)
----------------------------------------------------*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 6px 32px rgba(176, 194, 224, 0.14);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 10px 40px rgba(157, 176, 212, 0.25);
  transform: translateY(-4px) scale(1.013);
}
.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;
  background: var(--pastel-pink);
  padding: 20px 32px;
  margin-bottom: 20px;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(218,176,198,0.095);
  transition: box-shadow 0.16s, background 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(218,176,198,0.18);
  background: var(--pastel-purple);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* -------------------------------------------------
   HEADER & NAVIGATION
----------------------------------------------------*/
header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(185,200,220,0.07);
  border-radius: 0 0 24px 24px;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 90;
}
header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
  min-height: 72px;
  justify-content: space-between;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.87;
  transition: color 0.14s, opacity 0.14s;
  padding: 6px 10px;
  border-radius: 6px;
}
header nav a:hover, header nav a:focus {
  color: var(--accent);
  opacity: 1;
  background: var(--pastel-yellow);
}
header a.btn-primary {
  margin-left: 8px;
}
.mobile-menu-toggle {
  font-size: 2rem;
  background: var(--pastel-blue);
  border-radius: 9px;
  color: var(--primary);
  border: none;
  display: none;
  cursor: pointer;
  padding: 8px 14px 6px 14px;
  transition: background 0.14s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--pastel-yellow);
}

/* -------------------------------------------------
   HERO AREA
----------------------------------------------------*/
.hero {
  background: linear-gradient(120deg, var(--pastel-blue) 70%, var(--pastel-pink) 100%);
  border-radius: 32px;
  margin-top: 30px;
}
.hero h1 {
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.16rem;
  color: var(--dark);
  margin-bottom: 32px;
}

/* -------------------------------------------------
   BUTTON STYLES
----------------------------------------------------*/
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 48px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  border: none;
  box-shadow: 0 2px 18px rgba(251,196,210,0.08);
  text-align: center;
  text-decoration: none;
  line-height: 1.3;
  min-width: 150px;
  transition: background 0.18s, color 0.18s, transform 0.14s, box-shadow 0.14s;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary);
  letter-spacing: 0.03em;
  border: 2px solid var(--accent);
}
.btn-primary:hover, .btn-primary:focus {
  background: #ffd967;
  color: var(--primary);
  transform: translateY(-1px) scale(1.025);
  box-shadow: 0 4px 32px rgba(246,189,68,0.13);
}
.btn-secondary {
  background: var(--pastel-pink);
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--pastel-yellow);
  border-color: var(--accent);
  color: var(--primary);
  transform: translateY(-1px) scale(1.025);
}

/* -------------------------------------------------
   FEATURE CARDS & ICONS
----------------------------------------------------*/
.features, .features-oferta {
  background: var(--pastel-blue);
  border-radius: 24px;
}
.feature-grid, .features-oferta ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 24px;
}
.feature-grid > div, .features-oferta li {
  background: var(--pastel-green);
  border-radius: 20px;
  box-shadow: 0 2px 14px rgba(128,200,176,0.075);
  padding: 28px 22px 20px 22px;
  min-width: 200px;
  flex: 1 1 190px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.16s, background 0.16s;
}
.feature-grid > div:hover, .features-oferta li:hover {
  background: var(--pastel-yellow);
  box-shadow: 0 8px 32px rgba(223,226,154,0.1);
}
.feature-grid img, .features-oferta img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

/* -------------------------------------------------
   SERVICE CARDS, PROJECT CARDS
----------------------------------------------------*/
.services-summary ul, .about-short ul, .faq-cennik ul, .features-oferta ul, .stepper ol {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.project-card {
  margin-bottom: 36px;
  padding: 30px 24px 20px 24px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(203,194,238,0.09);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.project-card h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

/* -------------------------------------------------
   MAP EMBED, CONTACT DETAILS
----------------------------------------------------*/
.map-embed {
  background: var(--pastel-yellow);
  border-radius: 12px;
  padding: 18px;
  font-size: 1.08rem;
  color: var(--primary);
  margin-top: 18px;
}
.contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-details img {
  width: 24px;
  height: 24px;
}

/* -------------------------------------------------
   CTA BLOCKS (CALL TO ACTION)
----------------------------------------------------*/
.cta-fin, .cta-oferta, .cta-process, .cta-portfolio, .cta-contact, .cta-cennik {
  background: var(--pastel-purple);
  border-radius: 24px;
  text-align: center;
  margin-top: 28px;
}
.cta-fin h2,
.cta-oferta h2,
.cta-process h2,
.cta-portfolio h2,
.cta-contact h2,
.cta-cennik h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 10px;
}
.cta-fin p,
.cta-oferta p, .cta-process p, .cta-portfolio p, .cta-contact p, .cta-cennik p {
  color: var(--primary);
  font-size: 1.16rem;
  margin-bottom: 22px;
}

/* -------------------------------------------------
   TABLE, FAQ
----------------------------------------------------*/
table {
  width: 100%;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(128,200,176,0.08);
  margin-bottom: 28px;
  overflow: hidden;
}
thead th {
  background: var(--pastel-blue);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  font-weight: 700;
  color: var(--primary);
  padding: 18px 10px;
  text-align: left;
}
tbody td {
  padding: 16px 10px;
  border-top: 1px solid var(--secondary);
}
tbody tr:nth-child(even) td {
  background: var(--pastel-pink);
}
tbody tr:nth-child(odd) td {
  background: var(--white);
}

.faq-cennik ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* -------------------------------------------------
   ADDRESS AND FOOTER
----------------------------------------------------*/
footer {
  background: var(--pastel-blue);
  border-radius: 24px 24px 0 0;
  padding: 45px 0 35px 0;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
}
.logo-footer img {
  width: 48px;
}
footer address {
  font-style: normal;
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
footer nav a {
  color: var(--primary);
  font-size: 0.96rem;
  opacity: 0.8;
  transition: color 0.13s;
}
footer nav a:hover {
  color: var(--accent);
  opacity: 1;
}
footer img {
  vertical-align: middle;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  margin-bottom: -4px;
}

/* -------------------------------------------------
   STEP LIST / PROGRESS (for .stepper)
----------------------------------------------------*/
.stepper ol {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 18px;
  margin-top: 18px;
}
.stepper li {
  background: var(--pastel-yellow);
  border-radius: 12px;
  padding: 16px 18px;
  font-weight: 500;
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background 0.15s;
  box-shadow: 0 2px 10px rgba(246,179,27,0.07);
}
.stepper li strong {
  color: var(--accent);
}

/* -------------------------------------------------
   TABLE & HIERARCHY
----------------------------------------------------*/
section ul li, section ol li {
  margin-bottom: 0;
  padding-left: 0;
  position: relative;
}
section ul li:before {
  content: '\2022';
  color: var(--accent);
  font-size: 1.4em;
  position: absolute;
  left: -18px;
  top: 0.2em;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
}
section ul li img, section ol li img {
  margin-right: 7px;
  vertical-align: middle;
}

/* -------------------------------------------------
   TESTIMONIALS
----------------------------------------------------*/
.testimonials {
  background: var(--pastel-green);
  border-radius: 24px;
}
.testimonials h2 {
  margin-bottom: 18px;
}
.testimonial-card span {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.8;
}

.testimonial-card p {
  color: var(--primary);
  font-size: 1.12rem;
}

/* Contrast guarantee for reviews */
.testimonial-card, .testimonial-card * {
  color: #22294a;
}
.testimonial-card span {
  margin-top: 0.4rem;
}

/* -------------------------------------------------
   MODALS,BANNERS, COOKIE CONSENT
----------------------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: var(--pastel-yellow);
  box-shadow: 0 -4px 32px rgba(246,179,27,0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px;
  gap: 24px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  transition: transform 0.33s cubic-bezier(.65,.01,.20,1), opacity 0.2s;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-banner-text {
  flex: 1 1 0;
  margin-right: 24px;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-banner button {
  min-width: 120px;
  padding: 9px 24px;
  background: var(--accent);
  color: var(--primary);
  border: 1.5px solid var(--accent);
  border-radius: 64px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, border 0.16s;
}
.cookie-banner button.cookie-reject {
  background: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--secondary);
}
.cookie-banner button.cookie-settings {
  background: var(--pastel-purple);
  color: var(--primary);
  border: 1.5px solid var(--secondary);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #FFD967;
  border-color: var(--accent);
}

/* Cookie modal popup */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(24,35,71, 0.27);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.23s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal .modal-content {
  background: var(--pastel-blue);
  border-radius: 20px;
  padding: 38px 30px 28px 30px;
  min-width: 320px;
  max-width: 95vw;
  box-shadow: 0 8px 48px rgba(37,58,120, 0.10);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal h2 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 5px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 22px;
}
.cookie-category label {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--primary);
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--accent);
  width: 22px; height: 22px;
}
.cookie-category.essential input { /* visually disabled */
  opacity: 0.7;
  pointer-events: none;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}
.cookie-modal button {
  padding: 9px 24px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 48px;
  border: 1.5px solid var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.17s, border 0.17s;
}
.cookie-modal button.cookie-reject {
  background: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--secondary);
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: #FFD967;
  border-color: var(--accent);
}

/* -------------------------------------------------
   MOBILE NAVIGATION (BURGER MENU)
----------------------------------------------------*/
.mobile-menu {
  position: fixed;
  z-index: 1100;
  top: 0; right: 0; left: 0; height: 100vh;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(25,50,95,.13);
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(.72,0,.24,1), opacity 0.17s;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 23px;
  font-size: 1.8rem;
  background: var(--pastel-pink);
  color: var(--primary);
  border-radius: 7px;
  border: none;
  cursor: pointer;
  padding: 7px 14px;
  z-index: 1111;
  transition: background 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--pastel-yellow);
}
.mobile-nav {
  margin-top: 85px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center;
  justify-content: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 500;
  padding: 14px 26px;
  border-radius: 18px;
  width: 90vw;
  max-width: 340px;
  text-align: left;
  transition: background 0.15s, color 0.15s;
  margin: 0 auto;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-green);
  color: var(--accent);
}

/* Hide desktop nav on mobile, show burger */
@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 1280px) {
  .container {
    max-width: 95vw;
  }
}
/* -------------------------------------------------
   RESPONSIVE DESIGN
----------------------------------------------------*/
@media (max-width: 900px) {
  .content-grid {
    gap: 12px;
  }
  .container {
    padding-left: 10px; padding-right: 10px;
  }
}
@media (max-width: 768px) {
  /* FLEX COLUMNS TO ROWS */
  .content-wrapper, .section, section {
    padding: 28px 6px;
  }
  .feature-grid, .features-oferta ul, .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .footer .container, footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .project-card {
    padding: 22px 10px 15px 10px;
  }
}
@media (max-width: 600px) {
  html {
    font-size: 15px;
  }
  .hero h1 {
    font-size: 1.45rem;
  }
  .section, section {
    margin-bottom: 36px;
    padding: 14px 1px;
  }
  h1 {
    font-size: 1.3rem;
  }
  h2 {
    font-size: 1.07rem;
  }
  .cta-fin, .cta-oferta, .cta-process, .cta-portfolio, .cta-contact, .cta-cennik {
    padding: 18px 3vw;
    border-radius: 14px;
  }
  .cookie-modal .modal-content {
    padding: 22px 10px 14px 10px;
    min-width: 0;
    border-radius: 11px;
  }
  .feature-grid > div, .features-oferta li {
    padding: 16px 10px 8px 10px;
    border-radius: 11px;
  }
  .testimonial-card {
    padding: 12px 13px;
    border-radius: 8px;
  }
  header .container {
    height: 56px;
    min-height: 56px;
    padding: 0 3vw;
  }
  .mobile-nav a {
    font-size: 1rem;
    max-width: 95vw;
  }
}
/* -------------------------------------------------
   ANIMATIONS
----------------------------------------------------*/
.btn-primary, .btn-secondary, .cookie-banner button, .cookie-modal button {
  transition: background 140ms, color 120ms, border 140ms, transform 130ms, box-shadow 140ms;
}
.mobile-menu, .mobile-menu-close, .cookie-banner, .cookie-modal {
  transition: all 0.33s cubic-bezier(.65,.01,.20,1);
}

/* -------------------------------------------------
   MISC.
----------------------------------------------------*/
::-webkit-input-placeholder, ::placeholder {
  color: var(--gray);
  opacity: 1;
}
a {
  transition: color .14s;
}
a:focus {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
}

/* Focus visible for accessibility */
button:focus-visible, a:focus-visible {
  outline: 2.5px solid var(--accent);
}

/* Spacing helpers */
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }


/* END OF STYLE */
