body {
  background: radial-gradient(ellipse at top left, #f1fcf5 60%, #e2f1e8 100%);
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #233324;
}

.container {
  width: 96%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 2.5rem 0 1rem 0;
}

main.container {
  background: #fff;
  border-radius: 1.7rem;
  box-shadow: 0 8px 32px rgba(50, 92, 54, 0.13);
  padding: 3.2rem 2.2rem 2.7rem 2.2rem;
  margin-bottom: 2.8rem;
  animation: fadeinMain 1.1s;
}

@keyframes fadeinMain {
  0% { opacity: 0; transform: translateY(32px);}
  100% { opacity: 1; transform: none;}
}

h2 {
  margin-top: 0;
  font-size: 2.25rem;
  color: #27784d;
  letter-spacing: 1px;
  text-align: center;
  font-weight: 700;
  position: relative;
  padding-bottom: 1.2rem;
}

h2::after {
  content: "";
  display: block;
  margin: 0.6rem auto 0 auto;
  width: 65px;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, #47a860 30%, #27784d 100%);
  opacity: 0.18;
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2.6rem;
  justify-content: center;
  margin-top: 2.7rem;
}

.service-card-link {
  text-decoration: none;
  color: inherit;
  flex: 1 1 330px;
  max-width: 360px;
  min-width: 270px;
  display: block;
  outline: none;
  border-radius: 1.3rem;
}

.service-card-link:focus .service-card {
  box-shadow: 0 0 0 3px #ace5c7;
}

.service-card {
  background: linear-gradient(135deg, #f6fbf9 85%, #e3f6ea 100%);
  border-radius: 1.3rem;
  box-shadow: 0 3px 24px rgba(50, 92, 54, 0.07);
  padding: 2.25rem 1.5rem 1.6rem 1.5rem;
  min-height: 308px;
  margin-bottom: 1.7rem;
  transition: 
    box-shadow 0.22s cubic-bezier(.4,2,.55,.81), 
    transform 0.18s cubic-bezier(.4,2,.55,.81), 
    background 0.19s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  opacity: 0;
  animation: fadeInCard 0.85s ease forwards;
  animation-delay: var(--anim-delay, 0s);
}

@keyframes fadeInCard {
  from { opacity: 0; transform: translateY(24px);}
  to { opacity: 1; transform: none;}
}

.service-card:hover, .service-card:focus-within {
  box-shadow: 0 10px 36px rgba(44, 108, 54, 0.19), 0 0 0 3px #ace5c7;
  transform: translateY(-6px) scale(1.025);
  background: linear-gradient(135deg, #f5fff9 65%, #d3f2e2 100%);
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 1.1rem;
  color: #3ea456;
  font-size: 1.42rem;
  letter-spacing: 0.2px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.55em;
}

.service-card-icon {
  font-size: 1.52em;
  margin-right: 0.13em;
  vertical-align: middle;
  color: #27784d;
  opacity: 0.84;
}

.service-card ul {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
  font-size: 1.09rem;
  line-height: 1.54;
}

.btn-primary {
  background: linear-gradient(90deg, #47a860 72%, #27784d 100%);
  color: #fff;
  border: none;
  border-radius: 1.2rem;
  padding: 0.7rem 1.45rem;
  font-size: 1.12rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  margin-top: 0.4rem;
  margin-bottom: 0.15rem;
  box-shadow: 0 2px 10px rgba(44, 108, 54, 0.09);
  display: inline-block;
  letter-spacing: 0.03em;
  transition: 
    background 0.18s, 
    transform 0.15s cubic-bezier(.4,2,.55,.81), 
    box-shadow 0.17s;
}

.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #27784d 80%, #47a860 100%);
  transform: scale(1.042);
  box-shadow: 0 6px 22px rgba(50, 92, 54, 0.14);
}

footer.container {
  text-align: center;
  color: #8b8b8b;
  font-size: 1rem;
  margin-top: 2.2rem;
  padding: 1.7rem 0 1.3rem 0;
  border-radius: 0 0 1rem 1rem;
  background: none;
}

@media (max-width: 900px) {
  main.container {
    padding: 1.6rem 0.6rem 1.2rem 0.6rem;
  }
  .services-list {
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
  }
  .service-card-link {
    max-width: 98vw;
  }
}

/* --- HEADER AND NAV STYLES WITH RIGHT-ALIGNED LOGO --- */
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #325c36 70%, #47a860 100%);
  border-radius: 0 0 1.2rem 1.2rem;
  padding: 1.6rem 2rem 1.1rem 2rem;
  box-shadow: 0 4px 18px rgba(44, 108, 54, 0.10);
}

.header-title-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-logo {
  max-width: 110px;
  max-height: 65px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(30,40,60,0.07);
  margin-left: 1.2rem;
  display: block;
  flex-shrink: 0;
}

header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2.4rem;
  letter-spacing: 1.5px;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(60,80,60,0.07);
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.5rem;
  width: 100%;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-right: 1.1rem;
  font-size: 1.13rem;
  padding: 0.36rem 1.1rem 0.36rem 1.1rem;
  border-radius: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: 
    background 0.16s cubic-bezier(.4,2,.55,.81),
    color 0.13s;
  position: relative;
  z-index: 1;
}

nav a.active, nav a:focus, nav a:hover {
  background: #e4f8eb;
  color: #27784d;
  box-shadow: 0 2px 8px rgba(60,80,60,0.08);
  text-decoration: none;
  outline: none;
}

@media (max-width: 700px) {
  .header-flex {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.1rem 0.7rem 1rem 0.7rem;
  }
  .header-title-nav {
    width: 100%;
    align-items: flex-start;
  }
  .header-logo {
    margin: 0.7rem 0 0 0;
    align-self: flex-end;
  }
  header h1 {
    font-size: 1.4rem;
    letter-spacing: 0.9px;
  }
  nav {
    gap: 0.4rem;
    margin-top: 0.1rem;
  }
  nav a {
    margin-right: 0.3rem;
    font-size: 0.97rem;
    padding: 0.34rem 0.8rem 0.34rem 0.8rem;
  }
}
