
.services-content {
  width: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
}

.services-scroll {
  width: 100%;
  height: 100%;
  min-height: 0;

  overflow-y: auto;
  overflow-x: hidden;

  box-sizing: border-box;
}

.services-intro {
  width: calc(100% - 30px);
  max-width: 1250px;

  margin: 15px auto;

  padding: 10px 10px;

  box-sizing: border-box;

  text-align: center;

  border: 1px solid rgba(55, 52, 53, 0.75);
  border-radius: 15px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.96),
      rgba(241, 243, 246, 0.94),
      rgba(6, 138, 79, 0.42)
    );

  box-shadow:
    0 5px 16px rgba(0, 0, 0, 0.28);
}

.services-intro h1 {
  margin: 0 0 6px;

  color: #202020;

  font-size: clamp(25px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.1;
}

.services-intro p {
  margin: 0;

  color: #555555;

  font-size: 14px;
  font-weight: 500;
}

.services-container {
  display: flex;
  width: calc(100% - 30px);
  max-width: 1250px;

  margin: 0 auto 30px;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 26px;

  align-items: start;
}

.service-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  /*position: relative;/**/
  min-width: 0;
  /**/
  height: 680px;
  /**/
  /*height: auto;
  min-height: 680px;
  /**/
  overflow: hidden;

  box-sizing: border-box;

  border: 1px solid rgba(55, 52, 53, 0.78);
  border-radius: 18px;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.30),
    0 2px 6px rgba(0, 0, 0, 0.18);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98),
      rgba(242, 245, 244, 0.96),
      rgba(6, 138, 79, 0.25)
    );

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;

  padding: 10px;
  padding-top: 0;

}

.service-card:hover {
  /*transform: translateY(-4px);/**/

  box-shadow:
    0 13px 30px rgba(0, 0, 0, 0.54),
    0 4px 9px rgba(0, 0, 0, 0.38);
}

.service-card::before {
  content: "";
  display: block;
  width: 100%;
  height: 9px;
  background:
    linear-gradient(
      90deg,
      #087c43 0%,
      #087c43 36%,
      #ffffff 36%,
      #ffffff 64%,
      #d71920 64%,
      #d71920 100%
    );
}

.service-header {
  flex: 4;
  /*position: relative;/**/
  display: flex;
  flex-direction: column;

  padding: 8px;

  box-sizing: border-box;

  text-align: center;
  /*border: 1px solid red;/**/
}

.service-header h2 {
  flex: 1;
  /*display: inline-block;/**/

  margin: 0px;
  padding: 5px 12px;

  border-radius: 5px;

  background: #087c43;

  color: #ffffff;

  font-size: 20px;
  font-weight: 800;

  letter-spacing: 1px;

  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.52);

  text-transform: uppercase;
}

.service-header p {
  flex: 4;
  /*margin: 10px 0 0;/**/

  color: rgb(55, 53, 58);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);

  font-size: 18px;

  line-height: 1.45;
}

.service-image {
  flex: 7;
  min-height: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(55, 52, 53, 0.78);
  border-radius: 18px;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.30),
    0 2px 6px rgba(0, 0, 0, 0.18);

  /*border: 1px solid salmon;/**/
  
}

.service-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  animation: service-image-scale 12s ease-in-out infinite alternate;
}

@keyframes service-image-scale {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.15);
  }
}

.service-projects {
  flex: 12;
  /*position: relative;/**/

  padding: 0 10px 10px;

  box-sizing: border-box;
  border: 1px solid red;

  overflow: hidden;
  overflow-y: auto;

}

.service-projects::before {
  content: "";

  display: block;

  width: 100%;
  height: 5px;

  margin-bottom: 10px;

  background:
    linear-gradient(
      90deg,
      #087c43 0%,
      #087c43 35%,
      #ffffff 35%,
      #ffffff 65%,
      #d71920 65%,
      #d71920 100%
    );
}

.service-projects-title {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 10px;

  margin-bottom: 14px;
}

.service-projects-title span {
  width: 28px;
  height: 3px;

  flex-shrink: 0;

  border-radius: 4px;

  background:
    linear-gradient(
      90deg,
      #087c43,
      #d71920
    );
}

.service-projects-title h3 {
  margin: 0;

  color: #087c43;

  font-size: 13px;
  font-weight: 800;

  letter-spacing: 0.7px;

  text-align: center;
}

.projects-container {
  display: grid;

  grid-template-columns: minmax(0, 1fr);

  gap: 14px;
}

.project-card {
  min-width: 0;

  overflow: hidden;

  box-sizing: border-box;

  border: 1px solid rgba(55, 52, 53, 0.78);
  border-radius: 14px;

  background: #ffffff;

  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.22),
    0 2px 5px rgba(0, 0, 0, 0.12);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.project-card:hover {
  transform: translateY(-3px);

  box-shadow:
    0 9px 20px rgba(0, 0, 0, 0.27),
    0 3px 7px rgba(0, 0, 0, 0.15);
}

.project-image {
  position: relative;

  height: 400px;

  overflow: hidden;
}

.project-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.06);
}

.project-image-overlay {
  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 45%,
      rgba(0, 0, 0, 0.72) 100%
    );

  pointer-events: none;
}

.project-image::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: 5px;

  background:
    linear-gradient(
      90deg,
      #087c43 0%,
      #087c43 35%,
      #ffffff 35%,
      #ffffff 65%,
      #d71920 65%,
      #d71920 100%
    );
}

.project-number {
  position: absolute;

  left: 12px;
  bottom: 12px;

  color: #ffffff;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 0.8px;

  text-shadow:
    0 2px 5px rgba(0, 0, 0, 0.9);
}

.project-text {
  position: relative;

  padding: 15px 16px 13px;

  box-sizing: border-box;

  background:
    linear-gradient(
      145deg,
      rgba(55, 52, 53, 0.98),
      rgba(32, 32, 32, 0.98)
    );

  color: #ffffff;
}

.project-text::before {
  content: "";

  position: absolute;

  top: 0;
  left: 13%;
  right: 13%;

  height: 2px;

  background: #087c43;
}

.project-text::after {
  content: "";

  position: absolute;

  bottom: 0;
  left: 13%;
  right: 13%;

  height: 2px;

  background: #d71920;
}

.project-text h3 {
  margin: 0 0 7px;

  color: #ffffff;

  font-size: 14px;
  font-weight: 800;

  line-height: 1.2;

  text-align: center;
}

.project-text p {
  margin: 0;

  color: rgba(255, 255, 255, 0.86);

  font-size: 11px;

  line-height: 1.4;

  text-align: center;
}

.project-data {
  display: grid;

  grid-template-columns: 1fr 0.55fr;

  margin-top: 12px;
  padding-top: 9px;

  border-top:
    1px solid rgba(255, 255, 255, 0.2);
}

.project-data-item {
  display: flex;

  flex-direction: column;
  align-items: center;

  gap: 3px;

  padding: 0 7px;
}

.project-data-item + .project-data-item {
  border-left:
    1px solid rgba(255, 255, 255, 0.2);
}

.project-data-item span {
  color: #00b866;

  font-size: 8px;
  font-weight: 800;

  letter-spacing: 0.7px;
}

.project-data-item strong {
  color: #ffffff;

  font-size: 10px;
  font-weight: 600;

  text-align: center;
}

.projects-empty {
  min-height: 120px;

  display: flex;

  align-items: center;
  justify-content: center;

  box-sizing: border-box;

  padding: 20px;

  border:
    1px dashed rgba(8, 124, 67, 0.5);

  border-radius: 10px;

  background:
    rgba(255, 255, 255, 0.48);

  color: #666666;

  font-size: 12px;
  font-weight: 600;

  text-align: center;
}

@media (max-width: 1024px) {

  .service-image {
    flex: 16;
  }

  .services-container {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 768px) {

  .services-intro {
    width: calc(100% - 20px);

    margin: 15px auto 18px;

    padding: 15px 14px;

    border-radius: 12px;
  }

  .services-intro h1 {
    font-size: 24px;
  }

  .services-intro p {
    font-size: 12px;
  }

  .services-container {
    width: calc(100% - 20px);

    gap: 18px;
  }

  .service-image {
    flex: 20;
  }

  .service-header {
    padding: 19px 18px 17px;
  }

  .service-header h2 {
    font-size: 19px;
  }

  .service-header p {
    font-size: 16px;
  }

  .service-projects {
    padding: 0 13px 16px;
  }

  .project-image {
    height: 360px;
  }

}

@media (max-width: 480px) {

  .services-intro {
    width: calc(100% - 14px);

    margin-top: 10px;

    padding: 13px 10px;

    border-radius: 10px;
  }

  .services-intro h1 {
    font-size: 21px;
  }

  .services-intro p {
    font-size: 11px;
  }

  .services-container {
    width: calc(100% - 14px);

    gap: 15px;
  }

  .service-card {
    border-radius: 14px;
  }

  .service-card::before {
    height: 7px;
  }

  .service-header {
    padding: 16px 13px 14px;
  }

  .service-number {
    font-size: 9px;

    padding: 4px 8px;
  }

  .service-header h2 {
    font-size: 17px;
  }

  .service-header p {
    font-size: 14px;

    line-height: 1.4;
  }

  .service-projects {
    padding: 0 9px 13px;
  }

  .service-projects-title {
    gap: 7px;

    margin-bottom: 10px;
  }

  .service-projects-title span {
    width: 18px;
  }

  .service-projects-title h3 {
    font-size: 10px;
  }

  .project-image {
    height: 180px;
  }

  .project-text {
    padding: 13px 11px 12px;
  }

  .project-text h3 {
    font-size: 12px;
  }

  .project-text p {
    font-size: 10px;
  }

  .project-data-item span {
    font-size: 7px;
  }

  .project-data-item strong {
    font-size: 9px;
  }

}
