﻿.zs-history-main {
  background: #fff;
  padding-top: calc(var(--zs-header-offset));
}

.zs-history-hero {
  padding: 0;
  background-color: #20262d;
  background-image: linear-gradient(90deg, rgba(26, 31, 36, 0.08), rgba(26, 31, 36, 0.18)), url("../img/diesel-generator-services.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.zs-history-hero-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  min-height: 340px;
  padding: 28px 0;
}

.zs-history-hero-copy {
  text-align: right;
}

.zs-history-hero h2 {
  margin: 0;
  color: #fff;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.zs-history-breadcrumbs {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

.zs-history-breadcrumbs a {
  color: #fff;
}

.zs-history-breadcrumbs a:hover {
  color: #d7e6f2;
}

.zs-history-timeline-section {
  padding: 18px 0 120px;
}

.zs-history-timeline {
  position: relative;
  padding-top: 10px;
}

.zs-history-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  background: #d7dde3;
}

.zs-history-line-progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  background: #ef2b2d;
  transition: height 0.18s linear;
}

.zs-history-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 90px 1fr;
  align-items: center;
  margin-bottom: 46px;
  opacity: 0.45;
  transform: translateY(22px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.zs-history-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.zs-history-item.is-active .zs-history-icon {
  background: #ef2b2d;
}

.zs-history-item-left .zs-history-card {
  grid-column: 1;
  grid-row: 1;
}

.zs-history-item-right .zs-history-card {
  grid-column: 3;
  grid-row: 1;
}

.zs-history-item-left .zs-history-card::after,
.zs-history-item-right .zs-history-card::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  background: #fff;
  border-top: 1px solid #d8dde2;
  border-right: 1px solid #d8dde2;
}

.zs-history-item-left .zs-history-card::after {
  right: -10px;
  transform: rotate(45deg);
}

.zs-history-item-right .zs-history-card::after {
  left: -10px;
  transform: rotate(225deg);
}

.zs-history-card {
  position: relative;
  padding: 30px 34px;
  border: 1px solid #d8dde2;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
}

.zs-history-card h2 {
  margin: 0 0 14px;
  color: #202020;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
}

.zs-history-card p {
  margin: 0;
  color: #6f7680;
  font-size: 17px;
  line-height: 1.85;
}

.zs-history-content-block p + p {
  margin-top: 10px;
}

.zs-history-content-block strong {
  color: #202020;
  font-weight: 600;
}

.zs-history-marker {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  width: 90px;
  min-height: 42px;
  justify-self: center;
  transform: translateY(var(--zs-history-marker-offset, 0px));
}

.zs-history-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #8c959f;
  box-shadow: none;
}

.zs-history-icon svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.zs-history-year {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 0;
  transform: translateY(-50%);
  border-radius: 0;
  background: transparent;
  border: 0;
  color: #202020;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.zs-history-item-left .zs-history-year {
  left: calc(50% + 34px);
}

.zs-history-item-right .zs-history-year {
  right: calc(50% + 34px);
}

@media (max-width: 1100px) {
  .zs-history-line {
    left: 44px;
    transform: none;
  }

  .zs-history-item {
    grid-template-columns: 88px 1fr;
    gap: 18px;
  }

  .zs-history-marker {
    grid-column: 1;
    width: 88px;
  }

  .zs-history-item-left .zs-history-card,
  .zs-history-item-right .zs-history-card {
    grid-column: 2;
  }

  .zs-history-item-left .zs-history-card::after,
  .zs-history-item-right .zs-history-card::after {
    left: -10px;
    right: auto;
    transform: rotate(225deg);
  }

  .zs-history-item-left .zs-history-year,
  .zs-history-item-right .zs-history-year {
    left: calc(50% + 30px);
    right: auto;
  }

}

@media (max-width: 767px) {
  .zs-history-hero {
    background-position: 26% center;
  }

  .zs-history-hero h2 {
    font-size: 34px;
  }

  .zs-history-hero-inner {
    min-height: 220px;
    justify-content: center;
    padding: 18px 0;
  }

  .zs-history-hero-copy {
    width: 100%;
  }

  .zs-history-timeline-section {
    padding-bottom: 80px;
  }

  .zs-history-item {
    grid-template-columns: 64px 1fr;
    gap: 14px;
    margin-bottom: 30px;
  }

  .zs-history-card {
    padding: 22px 18px;
  }

  .zs-history-card h2 {
    font-size: 20px;
  }

  .zs-history-card p {
    font-size: 15px;
    line-height: 1.7;
  }

  .zs-history-icon {
    width: 38px;
    height: 38px;
  }

  .zs-history-icon svg {
    width: 14px;
    height: 14px;
  }

  .zs-history-year {
    font-size: 14px;
  }

  .zs-history-line {
    left: 31px;
  }
}

