/* Homepage history — reference layout from 29.09.2026. */
.home-history {
  overflow: hidden;
  background: #fff;
}

.home-history__inner {
  display: grid;
  gap: 34px;
}

.home-history__stage {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 58px;
  align-items: stretch;
}

.home-history__copy {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  height: 600px;
  min-height: 600px;
}

.home-history__heading .b2b-kicker {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 26px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #f0f2f8;
  color: var(--home-blue, #2b3787);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: none;
}

.home-history__heading h2 {
  margin: 0;
  color: var(--home-text, #151b34);
  font-size: clamp(43px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 800;
}

.home-history__active {
  align-self: end;
  width: 100%;
  min-height: 300px;
  margin-top: 0;
  padding-top: 42px;
}

.home-history__active h3 {
  min-height: 78px;
  margin: 0 0 16px;
  color: var(--home-text, #151b34);
  font-size: clamp(27px, 2.5vw, 36px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 800;
}

.home-history__active > p {
  min-height: 84px;
  margin: 0;
  max-width: 650px;
  color: #687187;
  font-size: 17px;
  line-height: 1.62;
}

.home-history__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.home-history__fact {
  min-width: 122px;
  min-height: 78px;
  padding: 16px 18px;
  border: 1px solid #dce3ef;
  border-radius: 14px;
  background: #fff;
}

.home-history__fact strong,
.home-history__fact span {
  display: block;
}

.home-history__fact strong {
  margin-bottom: 7px;
  color: #151b34;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 800;
}

.home-history__fact span {
  color: #7a8398;
  font-size: 13px;
  line-height: 1.25;
}

.home-history__media {
  position: relative;
  min-width: 0;
  height: 600px;
  min-height: 600px;
  overflow: hidden;
  border-radius: 24px;
  background: #e9eef5 url("../img/b2b-home/factory-building.jpg") center center / cover no-repeat;
}

.home-history__media-year {
  position: absolute;
  top: 25px;
  left: 25px;
  display: inline-flex;
  align-items: center;
  min-height: 43px;
  padding: 0 17px;
  border-radius: 13px;
  background: #11162c;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  font-weight: 750;
}

.home-history__media-caption {
  display: none;
}

.home-history__controls {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  gap: 16px;
  align-items: start;
}

.home-history__arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: 52px;
  padding: 0;
  border: 1px solid #dce3ef;
  border-radius: 50%;
  background: #fff;
  color: var(--home-blue, #2b3787);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, opacity .18s ease;
}

.home-history__arrow:hover:not(:disabled) {
  border-color: var(--home-blue, #2b3787);
  background: var(--home-blue, #2b3787);
  color: #fff;
}

.home-history__arrow:disabled {
  opacity: .32;
  cursor: default;
}

.home-history__arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-history__timeline-viewport {
  min-width: 0;
  overflow: hidden;
  padding: 0 0 4px;
}

.home-history__timeline {
  --history-item-width: 172px;
  position: relative;
  display: flex;
  width: max-content;
  min-width: 100%;
  transition: transform .28s ease;
}

.home-history__timeline::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 74px;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #d9e1ed;
}

.home-history__point {
  position: relative;
  z-index: 1;
  flex: 0 0 var(--history-item-width);
  min-width: 0;
  padding: 0 16px 0 10px;
  border: 0;
  background: transparent;
  color: #7f899e;
  text-align: left;
  cursor: pointer;
}

/* 2019/2020 is wider than a regular year and needs its own timeline cell. */
.home-history__point[data-year="2019/2020"] {
  flex-basis: 224px;
  padding-right: 28px;
}

.home-history__point-year {
  display: block;
  height: 60px;
  color: #7d879c;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.045em;
  white-space: nowrap;
  transition: color .18s ease;
}

.home-history__dot {
  position: relative;
  z-index: 2;
  display: block;
  width: 20px;
  height: 20px;
  margin: 4px 0 14px;
  border: 2px solid #d5deeb;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.home-history__point-label {
  display: block;
  color: #6f788d;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .05em;
  white-space: nowrap;
}

.home-history__point:hover .home-history__point-year,
.home-history__point.is-active .home-history__point-year {
  color: #151b34;
}

.home-history__point:hover .home-history__dot {
  border-color: #9cacc8;
}

.home-history__point.is-active .home-history__dot {
  border-color: var(--home-blue, #2b3787);
  box-shadow: inset 0 0 0 4px #fff, 0 0 0 5px #fff;
  background: #f08a19;
}

.home-history__point.is-active .home-history__point-label {
  color: var(--home-blue, #2b3787);
}

@media (min-width: 1280px) {
  .home-history__timeline {
    --history-item-width: 174px;
  }
}

@media (max-width: 1100px) {
  .home-history__stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 34px;
  }

  .home-history__copy,
  .home-history__media {
    height: 580px;
    min-height: 580px;
  }

  .home-history__active {
    min-height: 306px;
    padding-top: 36px;
  }

  .home-history__active h3 {
    min-height: 86px;
  }

  .home-history__active > p {
    min-height: 90px;
  }

  .home-history__heading h2 {
    font-size: clamp(38px, 4.5vw, 50px);
  }

  .home-history__timeline {
    --history-item-width: 158px;
  }

  .home-history__point[data-year="2019/2020"] {
    flex-basis: 208px;
    padding-right: 24px;
  }
}

@media (max-width: 820px) {
  .home-history__stage {
    grid-template-columns: 1fr;
  }

  .home-history__copy {
    height: 570px;
    min-height: 570px;
  }

  .home-history__active {
    min-height: 300px;
    padding-top: 34px;
  }

  .home-history__active h3 {
    min-height: 86px;
  }

  .home-history__active > p {
    min-height: 90px;
  }

  .home-history__media {
    height: 360px;
    min-height: 360px;
  }

  .home-history__controls {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 10px;
  }

  .home-history__arrow {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 600px) {
  .home-history__inner {
    gap: 26px;
  }

  .home-history__heading .b2b-kicker {
    margin-bottom: 20px;
  }

  .home-history__heading h2 {
    font-size: clamp(34px, 10vw, 43px);
  }

  .home-history__copy {
    height: 610px;
    min-height: 610px;
  }

  .home-history__active {
    min-height: 322px;
    padding-top: 28px;
  }

  .home-history__active h3 {
    min-height: 92px;
    font-size: 28px;
  }

  .home-history__active > p {
    min-height: 100px;
    font-size: 15px;
  }

  .home-history__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-history__fact {
    min-width: 0;
  }

  .home-history__media {
    min-height: 300px;
    border-radius: 18px;
  }

  .home-history__media-caption {
    max-width: calc(100% - 44px);
    font-size: 13px;
    white-space: normal;
  }

  .home-history__controls {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 8px;
  }

  .home-history__arrow {
    width: 38px;
    height: 38px;
    margin-top: 49px;
  }

  .home-history__timeline {
    --history-item-width: 142px;
  }

  .home-history__point[data-year="2019/2020"] {
    flex-basis: 188px;
    padding-right: 20px;
  }

  .home-history__point-year {
    font-size: 29px;
  }
}
