/* =========================================
   SERVICES
========================================= */

.services {
  width: 100%;
  background: #ffffff;
  padding: 120px 0 0;
}

.services-container {
  width: min(1380px, calc(100% - 80px));
  margin: 0 auto;
}

/* =========================================
   HEADER
========================================= */

.services-header {
  margin-bottom: 55px;
}

.services-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 28px;
}

.services-label {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: #4e9f70;
}

.services-heading h2 {
  max-width: 900px;

  margin: 0;

  font-size: clamp(48px, 6vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 400;

  color: #0b2745;
}

.services-heading h2 strong {
  font-weight: 700;
}

.services-header-bottom {
  display: flex;
  align-items: center;
  gap: 25px;

  margin-top: 30px;
}

.services-header-bottom p {
  max-width: 520px;

  margin: 0;

  font-size: 15px;
  line-height: 1.6;

  color: #5b6573;
}

/* =========================================
   GRID
========================================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  border-top: 1px solid rgba(18, 59, 109, 0.14);
  border-left: 1px solid rgba(18, 59, 109, 0.14);
}

.service-item {
  min-width: 0;
  min-height: 190px;

  padding: 26px 28px 30px;

  border-right: 1px solid rgba(18, 59, 109, 0.14);
  border-bottom: 1px solid rgba(18, 59, 109, 0.14);

  transition: background-color 0.35s ease, transform 0.35s ease;
}

.service-item:hover {
  background: #f5f7f9;
}

/* =========================================
   ICON
========================================= */

.service-top {
  display: flex;
  align-items: center;

  margin-bottom: 34px;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  color: #123b6d;

  transition: color 0.35s ease, transform 0.35s ease;
}

.service-icon svg {
  display: block;

  width: 40px;
  height: 40px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================
   ICON - BUBBLE
========================================= */

.icon-bubble {
  opacity: 0;
}

.icon-bubble-1 {
  animation: bubbleUp 3.5s ease-in-out infinite;
}

.icon-bubble-2 {
  animation: bubbleUp 3.5s ease-in-out infinite 1.4s;
}

@keyframes bubbleUp {
  0% {
    opacity: 0;
    transform: translateY(3px);
  }

  25% {
    opacity: 1;
  }

  70% {
    opacity: 0.7;
  }

  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* =========================================
   ICON - SCAN
========================================= */

.icon-scan {
  stroke-dasharray: 9;
  stroke-dashoffset: 9;

  animation: scanLine 3s ease-in-out infinite;
}

@keyframes scanLine {
  0%,
  20% {
    stroke-dashoffset: 9;
  }

  50%,
  70% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: -9;
  }
}

/* =========================================
   ICON - MOTION
========================================= */

.icon-motion {
  opacity: 0;

  animation: truckMotion 2.8s ease-in-out infinite;
}

.icon-motion-2 {
  animation-delay: 0.5s;
}

@keyframes truckMotion {
  0% {
    opacity: 0;
    transform: translateX(4px);
  }

  30% {
    opacity: 0.7;
  }

  70% {
    opacity: 0.7;
  }

  100% {
    opacity: 0;
    transform: translateX(-4px);
  }
}

/* =========================================
   ICON - GEAR
========================================= */

.icon-gear {
  transform-origin: 16px 16px;

  animation: gearRotate 10s linear infinite;
}

@keyframes gearRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* =========================================
   ICON - CHART
========================================= */

.icon-chart {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;

  animation: chartDraw 4s ease-in-out infinite;
}

.icon-point {
  opacity: 0;

  animation: chartPoint 4s ease-in-out infinite;
}

@keyframes chartDraw {
  0%,
  15% {
    stroke-dashoffset: 30;
  }

  55%,
  75% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: -30;
  }
}

@keyframes chartPoint {
  0%,
  50% {
    opacity: 0;
  }

  65%,
  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

/* =========================================
   ICON - PULSE
========================================= */

.icon-pulse {
  stroke-dasharray: 8;
  stroke-dashoffset: 8;

  animation: pulseLine 3s ease-in-out infinite;
}

@keyframes pulseLine {
  0%,
  25% {
    stroke-dashoffset: 8;
    opacity: 0.3;
  }

  55%,
  75% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  100% {
    stroke-dashoffset: -8;
    opacity: 0.3;
  }
}

/* =========================================
   HOVER
========================================= */

.service-item:hover .service-icon {
  color: #4e9f70;
  transform: translateY(-2px);
}

/* =========================================
   CONTENT
========================================= */

.service-content h3 {
  margin: 0 0 10px;

  font-size: 21px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;

  color: #0b2745;
}

.service-content p {
  max-width: 320px;

  margin: 0;

  font-size: 14px;
  line-height: 1.6;

  color: #6b7480;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1050px) {
  .services {
    padding-top: 100px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .services {
    padding: 90px 0 0;
  }

  .services-container {
    width: calc(100% - 40px);
  }

  .services-header {
    margin-bottom: 45px;
  }

  .services-header-top {
    margin-bottom: 22px;
  }

  .services-heading h2 {
    font-size: 48px;
    line-height: 0.96;
  }

  .services-header-bottom {
    margin-top: 25px;
  }

  .services-header-bottom p {
    max-width: 100%;
    font-size: 14px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-item {
    min-height: auto;
    padding: 24px;
  }

  .service-top {
    margin-bottom: 25px;
  }

  .service-content h3 {
    font-size: 20px;
  }

  .service-content p {
    max-width: 100%;
  }
}
