/* === 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;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  box-sizing: border-box;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  background: #F4F8F2;
  color: #22404B;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F4F8F2;
  font-family: 'Roboto', Arial, sans-serif;
  color: #22404B;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 16px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === TYPOGRAPHY === */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #22404B;
  margin-bottom: 24px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-rendering: optimizeLegibility;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #22404B;
  margin-bottom: 20px;
  line-height: 1.2;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #22404B;
  margin-bottom: 14px;
  line-height: 1.3;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #22404B;
  margin-bottom: 10px;
}
p, ul, ol {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #22404B;
  margin-bottom: 14px;
}
strong {
  font-weight: 600;
}
a {
  color: #22404B;
  text-decoration: none;
  transition: color .15s;
}
a:focus, a:hover {
  color: #6FA26B;
  outline: none;
}

ul, ol {
  padding-left: 1.2em;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 8px;
}

/* === LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 780px;
  margin: 0 auto;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

/* === FLEXBOX GRID & CARDS === */
.features-grid,
.service-list,
.service-grid,
.project-grid,
.tip-grid,
.timeline,
.tips-list,
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.features-grid > .feature,
.service-list > div,
.service-list > li,
.service-grid > .service-detail,
.project-grid > .project-item,
.tip-grid > div,
.team-list > li {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(34,64,75,0.04),0 1px 3px rgba(34,64,75,0.04);
  padding: 28px 22px;
  min-width: 220px;
  flex: 1 1 250px;
  margin-bottom: 20px;
  transition: box-shadow .21s,transform .18s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.features-grid > .feature:hover,
.service-list > div:hover,
.project-grid > .project-item:hover {
  box-shadow: 0 6px 24px rgba(34,64,75,0.12);
  transform: translateY(-4px) scale(1.02);
}

.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px 22px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(34,64,75,0.05);
  margin-bottom: 20px;
  min-width: 220px;
  flex: 1 1 280px;
  transition: box-shadow .21s,transform .15s;
  color: #22404B;
}
.testimonial-card:hover {
  box-shadow: 0 7px 14px rgba(34,64,75,0.11);
  transform: translateY(-2px) scale(1.014);
}
.testimonial-card p {
  color: #22404B;
  font-size: 1rem;
}
.testimonial-card strong {
  display: block;
  margin-top: 8px;
  color: #6FA26B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
}

.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.team-list li {
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(34,64,75,0.07);
  padding: 20px 18px;
  min-width: 220px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.team-list strong {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #22404B;
}

.tips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: disc;
}

.timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.timeline > div {
  flex: 1 1 200px;
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 1px 4px rgba(34,64,75,0.05);
  padding: 18px 16px;
  margin-bottom: 20px;
}

/* === BUTTONS === */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  outline: none;
  border-radius: 22px;
  padding: 13px 34px;
  cursor: pointer;
  transition: background .17s, box-shadow .19s, color .15s, transform .15s;
  box-shadow: 0 2px 8px rgba(111,162,107,0.09);
  margin-top: 10px;
  min-width: 150px;
}
.btn-primary {
  background: #22404B;
  color: #fff !important;
  letter-spacing: 0.04em;
}
.btn-primary:hover, .btn-primary:focus {
  background: #6FA26B;
  color: #22404B;
  box-shadow: 0 4px 18px rgba(111,162,107,0.16);
  transform: translateY(-1.5px) scale(1.017);
}
.btn-secondary {
  background: #fff;
  color: #22404B;
  border: 2px solid #6FA26B;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #e7f4e7;
  color: #6FA26B;
  border-color: #22404B;
}

/* === NAVIGATION === */
header {
  width: 100%;
  background: #FFF;
  box-shadow: 0 1px 8px rgba(34,64,75,0.03);
  position: sticky;
  top: 0;
  z-index: 30;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  max-width: 1150px;
  margin: 0 auto;
  padding: 14px 18px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #22404B;
  padding: 5px 0;
  position: relative;
  transition: color 0.16s;
}
.main-nav a:not(.btn-primary):hover,
.main-nav a:not(.btn-primary):focus {
  color: #6FA26B;
  border-bottom: 2px solid #6FA26B;
}
.main-nav a.btn-primary {
  margin-left: auto;
}

.mobile-menu-toggle {
  display: none;
  background: #fff;
  border: none;
  font-size: 2.1rem;
  line-height: 1;
  color: #22404B;
  padding: 10px 18px 10px 8px;
  cursor: pointer;
  border-radius: 10px;
  transition: background .15s, color .15s;
  z-index: 32;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #F4F8F2;
  color: #6FA26B;
}

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,64,75,0.90);
  transform: translateX(-100vw);
  transition: transform .34s cubic-bezier(.83,.21,.29,1.08);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 20px 24px 10px 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.14s;
  z-index: 1002;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #6FA26B;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px;
  margin-top: 28px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.28rem;
  font-weight: 600;
  color: #fff;
  padding: 14px 12px;
  border-radius: 8px;
  transition: background .13s, color .13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #6FA26B;
  color: #22404B;
}

/* === SERVICE LIST (INDEX PAGE ETC.) === */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
  list-style: none;
}
.service-list li {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(34,64,75,0.03);
  padding: 16px 18px;
  flex: 1 1 180px;
  text-align: center;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 20px;
  transition: box-shadow .17s,transform .13s;
}
.service-list li a {
  color: #22404B;
  transition: color .15s;
  font-weight: 500;
}
.service-list li:hover,
.service-list li:focus-within {
  box-shadow: 0 3px 14px rgba(111,162,107,0.08);
  transform: translateY(-2.5px);
}
.service-list li a:hover {
  color: #6FA26B;
}

/* === FOOTER === */
footer {
  width: 100%;
  background: #fff;
  border-top: 1px solid #E3EDE3;
  margin-top: 60px;
  font-size: 0.98rem;
}
footer .container {
  padding-top: 36px;
  padding-bottom: 32px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 20px;
  align-items: center;
  justify-content: center;
}
.footer-menu a {
  color: #22404B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color .14s;
  padding: 5px 0;
}
.footer-menu a:hover {
  color: #6FA26B;
}
.brand-address {
  margin-bottom: 16px;
  color: #22404B;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  text-align: left;
}
.brand-address img {
  width: 18px;
  vertical-align: middle;
  margin-right: 7px;
}
.social-links {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-bottom: 12px;
}
.social-links img {
  width: 32px;
  opacity: 0.82;
  transition: opacity .13s, transform .14s;
  cursor: pointer;
}
.social-links img:hover {
  opacity: 1;
  transform: scale(1.11);
}
.legal-links {
  text-align: center;
  color: #A4B5A3;
  font-size: 0.92rem;
  margin-top: 12px;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #22404B;
  color: #fff;
  padding: 22px 18px 24px 18px;
  box-shadow: 0 -4px 20px rgba(34,64,75,0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2000;
  gap: 22px;
  flex-wrap: wrap;
  transition: transform .29s cubic-bezier(.87,.04,.29,1.09), opacity .22s;
  opacity: 0; transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.cookie-banner p {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0;
  flex: 1 1 200px;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 18px;
  padding: 9px 21px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 0;
  box-shadow: 0 1px 2px rgba(255,255,255,0.04);
}
.cookie-accept {
  background: #6FA26B;
  color: #fff;
  font-weight: 600;
  transition: background .15s, color .12s;
}
.cookie-accept:hover { background: #fff; color: #22404B; }

.cookie-reject {
  background: #fff;
  color: #22404B;
  border: 2px solid #6FA26B;
  transition: background .16s, color .12s;
}
.cookie-reject:hover {
  background: #F4F8F2;
  color: #6FA26B;
}

.cookie-settings {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  transition: background .16s, color .12s, border-color .12s;
}
.cookie-settings:hover {
  background: #fff;
  color: #22404B;
  border-color: #6FA26B;
}

/* ---- COOKIE MODAL ---- */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,64,75,0.66);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2300;
  opacity: 0;
  pointer-events: none;
  transition: opacity .29s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-inner {
  background: #fff;
  color: #22404B;
  border-radius: 18px;
  padding: 34px 28px 22px 28px;
  min-width: 320px;
  max-width: 96vw;
  box-shadow: 0 8px 24px rgba(34,64,75,0.22);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: cookieModalFade .42s cubic-bezier(.82,0,.42,1) forwards;
}
@keyframes cookieModalFade {
  0% { transform: scale(0.88) translateY(40px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: transparent;
  border: none;
  color: #22404B;
  font-size: 2.2rem;
  cursor: pointer;
  transition: color .14s;
}
.cookie-modal-close:hover {
  color: #6FA26B;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-toggle-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 11px 0;
  justify-content: space-between;
}
.cookie-toggle-label {
  flex: 1 1 auto;
  font-size: 1rem;
  color: #22404B;
}
.cookie-toggle-switch {
  display: inline-block;
  position: relative;
  width: 46px;
  height: 26px;
}
.cookie-toggle-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #E3EDE3;
  transition: .23s;
  border-radius: 18px;
}
.cookie-toggle-switch input:checked + .cookie-slider {
  background: #6FA26B;
}
.cookie-slider:before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background: #fff;
  border-radius: 50%;
  transition: .23s;
  box-shadow: 0 1px 3px rgba(160,180,160,0.14);
}
.cookie-toggle-switch input:checked + .cookie-slider:before {
  transform: translateX(20px);
}
.cookie-category-essential {
  color: #6FA26B;
  font-weight: 500;
}

/* === MISC UTILITIES === */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 12px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 12px !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }

/* === RESPONSIVE / MEDIA QUERIES === */
@media (max-width: 1200px) {
  .container { max-width: 970px; }
}
@media (max-width: 970px) {
  .container { max-width: 100%; }
  .main-nav { gap: 18px; }
}
@media (max-width: 840px) {
  .main-nav { gap: 10px; padding: 12px 8px; }
  .footer-menu {gap: 12px;}
  .features-grid, .testimonials-grid, .team-list, .service-list, .tip-grid, .project-grid { gap: 14px; }
  .features-grid > .feature, .project-grid > .project-item, .timeline > div, .testimonial-card, .team-list li { min-width: 180px; padding: 18px 12px; }
}
@media (max-width: 770px) {
  html { font-size: 15px; }
  .section {
    margin-bottom: 32px;
    padding: 26px 10px;
  }
  .features-grid,
  .service-list,
  .testimonials-grid,
  .team-list,
  .tip-grid,
  .project-grid {
    gap: 9px;
  }
  .footer-menu {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .brand-address p { font-size: 0.98rem; }
  footer .container { padding: 22px 8px 20px 8px; }
}
@media (max-width: 680px) {
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: inline-block !important; position: absolute; top: 12px; right:18px; }
  .container { max-width: 100vw; padding: 0 6px; }
  .content-wrapper, .cta-wrapper { padding: 0 1px; }
  h1, .h1 { font-size: 1.58rem; }
  h2, .h2 { font-size: 1.2rem; }
  h3, .h3 { font-size: 1rem; margin-bottom:8px; }
  .testimonial-card, .features-grid > .feature,
  .team-list li { min-width: unset; padding: 12px 8px; }
  .footer-menu {flex-direction: column; gap: 6px;}
  .cookie-banner{ flex-direction: column; align-items: flex-start; padding:14px 8px 16px 8px; gap:10px; }
  .cookie-banner .cookie-buttons{gap:7px;}
}
@media (max-width: 530px) {
  .cookie-modal-inner { min-width: 95vw; padding: 14px 5vw 12px 5vw; }
}

/* === FLEXBOX-MANDATORY LAYOUTS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1.5px 7px rgba(34,64,75,0.07);
  padding: 22px 18px;
  transition: box-shadow .19s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.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;
    align-items: flex-start;
    gap: 18px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === MICRO-INTERACTIONS & EFFECTS === */
.btn-primary, .btn-secondary, .cookie-banner button, .cookie-modal-close {
  transition: background .14s, color .15s, transform .13s, box-shadow .13s;
}
.btn-primary:active, .btn-secondary:active {
  transform: scale(.98);
}

.card:hover, .card:focus-within {
  box-shadow: 0 3px 17px rgba(34,64,75,0.13);
  z-index: 2;
}

.section, .testimonial-card, .feature, .card {
  transition: box-shadow 0.21s, transform 0.18s;
}

::-webkit-input-placeholder { color:#8B9C93; opacity:.9; }
::-moz-placeholder { color:#8B9C93; opacity:.9; }
:-ms-input-placeholder { color:#8B9C93; opacity:.9; }
::placeholder { color:#8B9C93; opacity:.9; }

/* === HIDE SCROLLBAR FOR MOBILE MENU === */
.mobile-menu {
  -ms-overflow-style: none;
  scrollbar-width: none;
  overflow-y:auto;
}
.mobile-menu::-webkit-scrollbar {
  display:none;
}
