.timeline {
  position: relative;
  overflow: hidden;
  padding: 40px 0;
}

.timeline__title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .timeline__title {
    font-size: 2rem;
  }
}

.timeline__title--highlight {
  color: var(--color-main);
}

.timeline__container {
  position: relative;
  padding: 20px 0;
}

.timeline__line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: var(--color-main);
  border-radius: 2px;
  z-index: 1;
}

@media (max-width: 768px) {
  .timeline__line {
    left: 30px;
  }
}

.timeline__item {
  display: flex;
  justify-content: space-between;
  position: relative;
  align-items: center;
  gap: 20px 0;
}

.timeline__item:not(:last-child) {
  margin-bottom: 80px;
}

@media (max-width: 768px) {
  .timeline__item:not(:last-child) {
    margin-bottom: 60px;
  }
}

@media (min-width: 768px) {
  .timeline__item:nth-child(odd) {
    flex-direction: row;
  }

  .timeline__item:nth-child(odd) .timeline__content::before {
    right: -30px;
    border-left-color: white;
  }

  .timeline__item:nth-child(even) {
    flex-direction: row-reverse;
  }

  .timeline__item:nth-child(even) .timeline__content::before {
    left: -30px;
    border-right-color: white;
  }

  .timeline__item:nth-child(even) .timeline__content::after {
    left: auto;
    right: 100%;
  }

  .timeline__item:nth-child(even) .timeline__dot {
    left: auto;
    right: calc(100% + 40px);
  }
}

@media (max-width: 768px) {
  .timeline__item {
    flex-direction: column;
    padding-left: 80px;
  }
}

.timeline__content {
  width: calc(50% - 50px);
  padding: 30px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
}

@media (max-width: 768px) {
  .timeline__content {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .timeline__content {
    padding: 20px;
  }
}

.timeline__content:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.timeline__content::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 15px solid transparent;
  transform: translateY(-50%);
  z-index: 2;
}

@media (max-width: 768px) {
  .timeline__content::before {
    left: -30px;
    right: auto;
    border-right-color: white;
    border-left-color: transparent;
  }
}

.timeline__content::after {
  content: "";
  border: 1px dashed var(--color-main);
  position: absolute;
  width: 50px;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  .timeline__content::after {
    left: auto;
    right: 100%;
  }
}

.timeline__year {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-main);
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline__description {
  line-height: 1.6;
  color: #555;
  text-align: justify;
}

.timeline__image {
  width: calc(50% - 50px);
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .timeline__image {
    width: 100%;
  }
}

.timeline__image img {
  width: 100%;
  height: 200px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.timeline__image:hover img {
  transform: scale(1.05);
}

.timeline__dot {
  position: absolute;
  left: calc(100% + 40px);
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: var(--color-main);
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 0 0 4px var(--color-main);
  z-index: 3;
  -webkit-animation: pulse 2s infinite;
          animation: pulse 2s infinite;
}

@media (max-width: 768px) {
  .timeline__dot {
    left: -60px;
  }
}

.timeline__spacer {
  width: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
}

@-webkit-keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(218, 65, 62, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(230, 126, 34, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(230, 126, 34, 0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(218, 65, 62, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(230, 126, 34, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(230, 126, 34, 0);
  }
}

.location__title {
  font-size: 2rem;
  margin-bottom: 25px;
  font-weight: 600;
  border-bottom: 3px solid var(--color-3);
  padding-bottom: 10px;
}

.location-list {
  list-style: none;
}

.location-list__item {
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 5px solid transparent;
  cursor: pointer;
}

.location-list__item:not(:last-child) {
  margin-bottom: 25px;
}

.location-list__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.location-list__item--factory {
  border-left-color: var(--color-1);
}

.location-list__item--factory .location-list__icon {
  background: rgba(139, 69, 19, 0.1);
  color: var(--color-1);
}

.location-list__item--showroom {
  border-left-color: var(--color-2);
}

.location-list__item--showroom__icon {
  background: rgba(255, 193, 7, 0.1);
  color: var(--color-2);
}

.location-list__item--office {
  border-left-color: var(--color-3);
}

.location-list__item--office__icon {
  background: rgba(0, 123, 255, 0.1);
  color: var(--color-3);
}

.location-list__icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  font-size: 4.5rem;
}

.location-list__title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.location-list__address {
  color: #666;
  line-height: 1.5;
}

.about-map__block {
  padding: 10px 0;
  background: lightgray;
  border-radius: 10px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.16);
}

.about-map__block > * {
  padding: 0 10px;
}

.about-map__block-img {
  height: 100%;
}

.about-map__block-img iframe,
.about-map__block-img img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 10px;
}

.sec-gallery {
  padding: 30px 0;
}

.gallery-column .row {
  gap: 20px 0;
  --gutter: 10px;
}

.gallery-column__wrap {
  display: block;
  position: relative;
  padding-top: 90%;
  line-height: 1;
  overflow: hidden;
}

.gallery-column__wrap img {
  position: absolute;
  left: 0;
  top: 0;
  -o-object-fit: cover;
     object-fit: cover;
  width: 100%;
  height: 100%;
}

