/* RESET & BASE TYPOGRAPHY */
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;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Lato', Arial, sans-serif;
  background: #F8FAFB;
  color: #34513B;
  min-height: 100vh;
  font-size: 16px;
  font-weight: 400;
  transition: background 0.3s;
}
img {
  max-width: 100%; height: auto;
}
a {
  color: #34513B;
  text-decoration: none;
  transition: color 0.2s;
}

/* SOFT PASTEL BRAND PALETTE (SUMMER HERB GARDEN) */
:root {
  --clr-primary: #34513B;
  --clr-secondary: #87906B;
  --clr-accent: #F4F2EE;
  --clr-pastel-blue: #D4E3EC;
  --clr-pastel-green: #DFF3E3;
  --clr-pastel-yellow: #FFF5D6;
  --clr-pastel-pink: #F5E6EF;
  --clr-error: #D07C7C;
  --shadow-card: 0 2px 16px 0 rgba(187,206,186,0.11), 0 1.5px 4px 0 rgba(71,72,73,0.04);
}

/* TYPOGRAPHY SYSTEM */
h1, .h1 {
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--clr-primary);
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}
h2, .h2 {
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--clr-primary);
  letter-spacing: 0.01em;
}
h3, .h3 {
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--clr-secondary);
}
h4, .h4 {
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--clr-primary);
}
p, ul, ol {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  color: var(--clr-primary);
  margin-bottom: 16px;
  line-height: 1.6;
}
strong, b {
  color: var(--clr-primary);
}

/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}
main {
  flex: 1 0 auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  background: rgba(255,255,255,0.68);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
/* Cta is more vivid */
.cta-section {
  background: linear-gradient(120deg, #DFF3E3 0%, #F5E6EF 100%);
  box-shadow: 0 2px 18px 0 rgba(200, 217, 204, .12);
  border-radius: 32px;
  align-items: center;
  text-align: center;
}
.text-section {
  background: #F8FAFB;
  box-shadow: none;
}

/* HERO */
.hero-section {
  background: linear-gradient(90deg, #F5E6EF 0%, #DFF3E3 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 32px;
}
.hero-section p {
  max-width: 640px;
  margin-bottom: 28px;
}

/* FLEXBOX GRIDS & GAPS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}
.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: center;
  gap: 20px;
  background: #fff;
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  border: 2px solid #DFF3E3;
  transition: transform 0.17s, box-shadow 0.17s;
}
.testimonial-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 7px 32px 0 rgba(140,160,130,.10);
}
.testimonial-meta {
  font-size: 1.02rem;
  color: var(--clr-secondary);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-item {
  background: linear-gradient(100deg, #FFF5D6 0%, #D4E3EC 100%);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 22px 18px;
  min-width: 220px;
  max-width: 100%;
  margin-bottom: 20px;
  border: 1px solid #F4F2EE;
  transition: box-shadow 0.18s, transform 0.14s;
}
.feature-item img {
  width: 38px; height: 38px; margin-bottom: 8px;
}
.feature-item:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 32px 0 rgba(153,181,159, .16);
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.service-item {
  flex: 1 1 220px;
  background: linear-gradient(100deg, #DFF3E3 0% , #F5E6EF 100%);
  border-radius: 17px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 18px 16px;
  margin-bottom: 16px;
  border: 1px solid #F4F2EE;
  min-width: 210px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.service-item:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 25px 0 rgba(140,160,130,.11);
}
.service-price {
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  color: var(--clr-primary);
  font-weight: 700;
  font-size: 1.03rem;
  margin-top: 9px;
  padding: 2px 10px;
  background: #FFF5D6;
  border-radius: 8px;
  letter-spacing: 0.03em;
}
/* Case study grid for realizacje */
.case-study-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.case-item {
  flex: 1 1 285px;
  background: linear-gradient(100deg, #D4E3EC 0%, #F4F2EE 100%);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 22px 16px;
  margin-bottom: 20px;
  border: 1px solid #F4F2EE;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* FAQ */
.faq {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.faq-item {
  flex: 1 1 265px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 16px 14px;
  border: 1px solid #D4E3EC;
  margin-bottom: 18px;
  transition: box-shadow 0.15s, transform 0.11s;
}
.faq-item:hover {
  transform: scale(1.01);
  box-shadow: 0 6px 14px 0 rgba(156,167,124,.10);
}

/* PRICING TABLES */
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 18px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.pricing-table th, .pricing-table td {
  padding: 16px 14px;
  text-align: left;
}
.pricing-table thead th {
  background: #DFF3E3;
  font-size: 1.04rem;
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
}
.pricing-table tbody td {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  border-bottom: 1px solid #F4F2EE;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}
.price-notes {
  background: #FFF5D6;
  color: var(--clr-secondary);
  font-size: 0.98rem;
  padding: 14px 12px;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* FOOTER */
footer {
  background: linear-gradient(90deg, #DFF3E3 0%, #F5E6EF 100%);
  padding: 26px 0 8px 0;
  text-align: center;
  border-top: 2px solid #D4E3EC;
}
.footer-menu {
  margin-bottom: 18px;
  font-size: 1.03rem;
}
.footer-menu a {
  color: var(--clr-primary);
  opacity: 0.84;
  margin: 0 8px;
  transition: color 0.18s, opacity 0.2s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--clr-secondary);
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
  font-size: 0.98rem;
  color: var(--clr-primary);
  margin-bottom: 8px;
}
.footer-contact span {
  display: block;
  margin: 2px 8px;
}

/* BUTTONS & LINKS */
.btn-primary, .btn-secondary {
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: 25px;
  font-size: 1.16rem;
  cursor: pointer;
  border: none;
  outline: none;
  margin-top: 14px;
  margin-bottom: 4px;
  margin-right: 8px;
  box-shadow: 0 1.5px 3px 0 rgba(92,120,100,.12);
  transition: background 0.18s, color 0.15s, box-shadow 0.18s, transform 0.14s;
  display: inline-block;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(100deg, #DFF3E3 0%, #34513B 100%);
  color: #34513B;
  border: 2px solid #DFF3E3;
}
.btn-primary:hover, .btn-primary:focus {
  background: #34513B;
  color: #fff;
  border-color: #34513B;
  box-shadow: 0 4px 20px 0 rgba(80,117,96,0.11);
  transform: translateY(-1.5px) scale(1.021);
}
.btn-secondary {
  background: #F5E6EF;
  color: var(--clr-primary);
  border: 2px solid #FFD9EC;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #FFF5D6;
  color: #87906B;
  border-color: #FFF5D6;
  transform: translateY(-1px) scale(1.015);
}
/* Inline links in text */
a:link, a:visited {
  color: #34513B;
  font-weight: 500;
  text-decoration: underline dotted rgba(134,144,107,0.35) 2px;
  text-underline-offset: 4px;
  transition: color 0.16s;
}
a:hover, a:focus {
  color: #69836C;
  text-decoration: underline solid #DFF3E3 2px;
}

/* NAVIGATION */
header {
  background: linear-gradient(90deg, #F4F2EE 0%, #DFF3E3 100%);
  padding: 0 0 4px 0;
  border-bottom: 2px solid #D4E3EC;
  position: sticky; top: 0; z-index: 25;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
  padding: 18px 0;
}
.logo {
  margin-right: 20px;
  flex-shrink: 0;
}
.main-nav a {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1.08rem;
  color: #34513B;
  padding: 8px 14px;
  border-radius: 16px;
  transition: background 0.15s, color 0.17s;
  font-weight: 500;
}
.main-nav a:hover, .main-nav a:focus {
  background: #DFF3E3;
  color: #69836C;
}
.main-nav .btn-primary {
  margin-left: auto;
  background: linear-gradient(100deg, #DFF3E3 0%, #34513B 100%);
  color: #34513B;
  border: 2px solid #DFF3E3;
}
.main-nav .btn-primary:hover, .main-nav .btn-primary:focus {
  color: #fff;
  background: #34513B;
  border-color: #34513B;
}

.mobile-menu-toggle {
  display: none;
  background: #FFD9EC;
  color: #34513B;
  border-radius: 12px;
  border: none;
  font-size: 2.2rem;
  z-index: 101;
  padding: 8px 18px;
  cursor: pointer;
  margin-right: 16px;
  margin-top: 4px;
  transition: background 0.16s, color 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #DFF3E3;
  color: #87906B;
}
/* MOBILE MENU (flexbox only, no grid) */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  z-index: 120;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(244,242,238, 0.98);
  transform: translateX(100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.88,0.18,0.18,1.11), opacity 0.23s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #34513B;
  font-size: 2.1rem;
  margin: 18px 20px 8px 0;
  cursor: pointer;
  z-index: 121;
  transition: color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #87906B;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: center;
  margin-top: 28px;
}
.mobile-nav a {
  color: #34513B;
  font-size: 1.23rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 16px 0;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid #F5E6EF;
  transition: background 0.15s, color 0.13s;
  border-radius: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFF5D6;
  color: #87906B;
}

/* COOKIE CONSENT BANNER (fixed bottom) */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1020;
  background: linear-gradient(90deg,#F5E6EF 0%, #DFF3E3 100%);
  box-shadow: 0 -6px 32px 0 rgba(180,180,148,0.13);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: center;
  padding: 16px 28px;
  border-top: 1px solid #D4E3EC;
  font-size: 1.05rem;
  font-family: 'Lato', Arial, sans-serif;
  color: var(--clr-primary);
  opacity: 1;
  transition: opacity 0.23s, transform 0.32s cubic-bezier(.87,.19,.22,1);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
.cookie-banner .btn-primary,
.cookie-banner .btn-secondary {
  font-size: 0.98rem;
  padding: 8px 20px;
  margin: 0 6px 0 0;
}
.cookie-banner .btn-cookie-settings {
  background: #fff;
  border: 2px solid #D4E3EC;
  color: #34513B;
  border-radius: 18px;
  padding: 8px 18px;
  font-weight: 600;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 0.98rem;
  margin-right: 8px;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, border 0.13s;
}
.cookie-banner .btn-cookie-settings:hover, .cookie-banner .btn-cookie-settings:focus {
  background: #F5E6EF;
  color: #87906B;
  border-color: #FFD9EC;
}

/* COOKIE MODAL DIALOG */
.cookie-modal {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 1100;
  background: rgba(244, 242, 238, 0.87);
  animation: fadeInModalBg 0.32s;
}
.cookie-modal.open {
  display: flex;
}
@keyframes fadeInModalBg {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-dialog {
  background: #fff;
  border-radius: 22px;
  min-width: 310px;
  max-width: 98vw;
  box-shadow: 0 8px 42px 0 rgba(120,135,143,0.23);
  padding: 32px 28px 18px 28px;
  animation: bounceModalIn 0.41s cubic-bezier(0.66,-0.18,0.33,1.23);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@keyframes bounceModalIn {
  0% { transform: translateY(38px) scale(0.96); opacity: 0; }
  70% { transform: translateY(-8px) scale(1.03); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-dialog h2 {
  font-size: 1.23rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 12px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category-label {
  font-size: 1rem;
  color: var(--clr-primary);
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 500;
}
.cookie-category-toggle {
  width: 38px; height: 20px;
  appearance: none;
  background: #E5E5E5;
  border-radius: 11px;
  position: relative;
  outline: none;
  transition: background 0.17s;
}
.cookie-category-toggle:checked {
  background: #DFF3E3;
}
.cookie-category-toggle::before {
  content: '';
  display: block;
  position: absolute;
  left: 2px; top: 2px;
  width: 16px; height: 16px;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1.5px 6px 0 rgba(141,179,142,0.12);
  transition: transform 0.19s;
}
.cookie-category-toggle:checked::before {
  transform: translateX(18px);
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal-actions .btn-primary,
.cookie-modal-actions .btn-secondary {
  font-size: 1.02rem;
  padding: 8px 18px;
  margin: 0 0 0 8px;
}

/* FORM STYLES, MAP PLACEHOLDER */
.contact-details ul {
  margin-bottom: 18px;
}
.map-placeholder {
  background: #D4E3EC;
  border-radius: 12px;
  padding: 24px;
  margin: 18px 0 12px 0;
  text-align: center;
  color: #87906B;
  font-family: 'Lato', Arial, sans-serif;
  opacity: 0.92;
  font-style: italic;
}

/* OTHER LISTS */
ul, ol {
  margin-left: 20px;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 8px;
}

/* TABLE RESPONSIVENESS */
@media (max-width: 600px) {
  .pricing-table tr,
  .pricing-table th,
  .pricing-table td {
    display: block;
    width: 100%;
  }
  .pricing-table td, .pricing-table th { padding: 13px 7px; }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1080px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 900px) {
  .content-wrapper,
  .cta-section,
  .hero-section {
    padding: 24px 8px;
  }
  .footer-contact { gap: 8px; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .content-grid,
  .feature-grid,
  .service-list,
  .card-container,
  .testimonial-slider,
  .case-study-grid,
  .faq {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card,
  .feature-item,
  .case-item,
  .service-item,
  .faq-item,
  .card {
    min-width: 0;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}
@media (max-width: 600px) {
  .section {
    margin-bottom: 36px;
    padding: 26px 5px;
  }
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.18rem; }
  .cta-section, .hero-section, .content-wrapper {
    padding: 15px 0;
    border-radius: 18px;
  }
}

/* MICRO-INTERACTIONS, FOCUS STATES */
a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus, input:focus {
  outline: 2px solid #DFF3E3;
  outline-offset: 2px;
}

/* SCROLLBAR (subtle pastel style) */
::-webkit-scrollbar {
  width: 8px; background: #F5E6EF;
}
::-webkit-scrollbar-thumb {
  background: #D4E3EC; border-radius: 5px;
}

/* UTILITY */
.d-none { display: none!important; }

/* ACCESSIBILITY: Ensure testimonial and review text is dark enough for good contrast */
.testimonial-card p, .testimonial-card .testimonial-meta {
  color: #222d24; /* Explicitly set dark color on white/pastel cards */
  background: none;
}

/* END */
