.timeline {
  background: #f6f6f6;
  padding: 140px 0;
  position: relative;
}
@media only screen and (max-width: 1200px) {
  .timeline {
    padding: 110px 0;
  }
}
@media only screen and (max-width: 991px) {
  .timeline {
    padding: 70px 0;
  }
}
@media only screen and (max-width: 575px) {
  .timeline {
    padding: 55px 0;
  }
}
.timeline .container {
  position: relative;
  overflow: hidden;
}
.timeline__inner {
  padding: 0 80px;
}
@media only screen and (max-width: 1400px) {
  .timeline__inner {
    padding: 0;
  }
}

.toTop-timeline {
  position: absolute;
  right: 50px;
  bottom: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: #27383f;
  cursor: pointer;
}

.toTop-timeline:hover {
  opacity: 0.8;
}

.timeline__title {
  margin: 0 auto;
  font-weight: 700 !important;
  font-size: 72px;
  margin-bottom: 48px;
  line-height: 1;
  text-align: center;
  color: var(--color-gray-blue);
}
@media only screen and (max-width: 768px) {
  .timeline__title {
    font-size: 54px;
    margin-bottom: 30px;
  }
}
@media only screen and (max-width: 575px) {
  .timeline__title {
    font-size: 36px;
    margin-bottom: 15px;
  }
}
.timeline__years {
  padding: 90px 0;
  display: flex;
  justify-content: space-between;
  position: relative;
  align-items: center;
}
@media only screen and (max-width: 991px) {
  .timeline__years {
    padding: 50px 0;
    gap: 25px 35px;
  }
}
.timeline__years.revers {
  flex-direction: row-reverse;
}
@media only screen and (max-width: 768px) {
  .timeline__years,
  .timeline__years.revers {
    padding: 30px 0;
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}
.timeline__years.d-block {
  display: flex;
}
.timeline .hide,
.timeline__years-text-mobile,
.timeline__years.d-none {
  display: none;
}
.timeline__years-description {
  max-width: 440px;
}
@media only screen and (max-width: 1024px) {
  .timeline__years-description {
    max-width: 380px;
  }
}
@media only screen and (max-width: 991px) {
  .timeline__years-description {
    flex: 1;
    max-width: 100%;
  }
}
.timeline__years-title {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.125;
  color: var(--color-gray-blue);
  margin-bottom: 16px;
}
@media only screen and (max-width: 768px) {
  .timeline__years-title {
    font-size: 26px;
    margin-bottom: 12px;
  }
}
.timeline__years-more {
  height: 0;
  opacity: 0;
}
.timeline .show {
  display: block;
}
.timeline__years-more,
.timeline__years-text {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.25;
  color: var(--color-gray-blue);
}
.timeline__years-img {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 440 / 320;
}
@media only screen and (max-width: 1024px) {
  .timeline__years-img {
    max-width: 380px;
  }
}

@media only screen and (max-width: 768px) {
  .timeline__years-img {
    margin: 0 auto;
  }
}
.timeline__years-img img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center center;
}
.timeline__more-text,
.timeline__years-btn {
  display: flex;
  align-items: center;
  margin-top: 40px;
  gap: 8px;
  font-weight: 400;
  text-transform: uppercase;
  transition: 0.3s;
}
@media only screen and (max-width: 768px) {
  .timeline__more-text,
  .timeline__years-btn {
    margin-top: 25px;
  }
}
.timeline__years-btn span {
  color: #27383f;
  font-weight: 600;
  transition: opacity 0.4s ease;
}
.timeline__years-btn:hover span.shop__item-link-title,
.timeline__years-btn:focus span.shop__item-link-title {
  opacity: 0.85;
}
.timeline__years-icon,
.timeline__years-line {
  justify-content: center;
  width: 48px;
  height: 48px;
  position: absolute;
}
.timeline__more-text.full,
.timeline__years-btn.full {
  transition: 0.3s;
}
.timeline__more-text.full svg,
.timeline__years-btn.full svg {
  transform: rotate(180deg);
}
.timeline__more-text:hover,
.timeline__years-btn:hover {
  cursor: pointer;
  transition: 0.3s;
}
.timeline__more-text:hover circle,
.timeline__years-btn:hover circle {
  transition: 0.3s;
  fill: #27383f;
}
.timeline__more-text:hover path,
.timeline__years-btn:hover path {
  transition: 0.3s;
  stroke: #ffffff;
}
.timeline__more-text:active circle,
.timeline__years-btn:active circle {
  fill: #f5cd1f;
}
.timeline__more-text:active path,
.timeline__years-btn:active path {
  stroke: #27383f;
}
.timeline__more-btn {
  position: relative;
  transition: background-color 0.5s;
}
.timeline__more-btn:after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  bottom: 100%;
  width: 10px;
  height: 265px;
  z-index: -1;
  background-color: #f6f6f6;
}
.timeline__years-svg svg {
  display: block;
  margin-top: 5px;
}
.timeline__years-btn {
  display: flex;
}
.timeline__years-badge {
  width: 48px;
  height: 48px;
  position: absolute;
  top: 226px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding-right: 1px;
}
.timeline__years-icon {
  display: flex;
  align-items: center;
  background-color: #e2e9ff;
  border-radius: 50%;
  z-index: 10;
}
.timeline__years-icon::before {
  content: "";
  position: absolute;
  width: 75px;
  height: 75px;
  background-color: #f6f6f6;
  border-radius: 50%;
  z-index: -1;
}
.timeline__years.more-height .timeline__years-icon::after {
  height: 40rem;
}
.timeline__years-line {
  display: none;
  align-items: center;
  z-index: -1;
}
.timeline__more {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 100;
  background: #f6f6f6;
}

@media only screen and (max-width: 768px) {
  .timeline__more {
    margin-top: 15px;
  }
}
.timeline .d-none,
.timeline__more-text {
  display: none;
}
.timeline .popup {
  position: fixed;
  width: 100vw;
  height: 100vh;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline .popup.open {
  overflow: auto;
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
  z-index: 999;
}
.timeline .popup-background {
  position: absolute;
  background: rgba(94, 94, 94, 0.5);
  backdrop-filter: blur(6px);
  width: 100%;
  height: 100%;
  transition: 0.3s;
}
.timeline .popup-container {
  width: 100%;
  max-width: 830px;
  height: auto;
  position: absolute;
  background: #fff;
  padding: 90px 100px;
}
.timeline .popup-close {
  position: absolute;
  right: 36px;
  top: 36px;
  outline: 0;
  appearance: none;
  color: red;
  background: 0 0;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  width: 40px;
  height: 30px;
}
@media only screen and (max-width: 991px) {
  .timeline .popup-container {
    max-width: 90%;
    padding: 70px 40px;
  }
  .timeline .popup-close {
    right: 0;
    top: 20px;
  }
}
.timeline .popup-close span {
  transform: rotate(-45deg);
  top: 13px;
  width: 16px;
}
.timeline .popup-close:hover span {
  transform-origin: center;
  transform: rotateZ(-120deg);
}
.timeline .popup-close span::before {
  top: 0;
  transform: rotate(90deg);
  width: 16px;
}
.timeline .popup-close span::after {
  top: 0;
  left: 0;
  transform: rotate(90deg);
  opacity: 0;
  width: 0;
}
.timeline .popup-close span,
.timeline .popup-close span::after,
.timeline .popup-close span::before {
  background: #7a7a7a;
  display: block;
  height: 2px;
  opacity: 1;
  position: absolute;
  transition: 0.3s ease-in-out;
  border-radius: 20px;
}
.timeline .popup-close span::after,
.timeline .popup-close span::before {
  content: "";
}
.timeline .popup .timeline__years-text p,
.timeline .popup .timeline__years-title {
  margin-bottom: 25px;
}
.timeline__years-icon.active svg circle {
  transition: fill 0.7s;
  fill: var(--color-blue);
}
.timeline__years-icon.active svg path {
  transition: stroke 0.7s;
  stroke: #fff;
}
.timeline-wrapp {
  position: relative;
  overflow: hidden;
}
.timeline-wrapp .line,
.timeline-wrapp .line-blue {
  display: block;
  position: absolute;
  left: calc(50% - 1px);
  top: 300px;
  width: 2px;
  display: block;
  height: 100%;
}

@media screen and (max-width: 1025px) {
  .timeline__more-btn:after {
    height: 230px;
  }
}

@media only screen and (max-width: 991px) {
  .timeline-wrapp .line,
  .timeline-wrapp .line-blue,
  .timeline__years-badge,
  .timeline__more-btn:after {
    display: none;
  }

  .toTop-timeline {
    display: none;
  }
}

.shop__item-link-icon {
  width: 24px;
  height: 24px;
}

@media only screen and (max-width: 768px) {
  .timeline__years-btn {
    display: none;
  }
  .timeline__more-text {
    margin-top: 25px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
  }
}
