.istoryk-page {
  width: 70%;
  margin: 0 auto;
  padding: 0 40px;
}

.istoryk-top {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
}

.istoryk-eyebrow {
  font-size: 20px;
  font-family: "Buduj Bold", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary-color);
}

.istoryk-top-title {
  font-size: 120px;
  font-family: "Buduj Black-Height", sans-serif;
  text-transform: uppercase;
  color: var(--main-text-color);
}

.istoryk-top-name {
  font-size: 30px;
  font-family: "Futura Bold", sans-serif;
  color: var(--alt-main-color);
}

.istoryk-top-dates {
  margin-top: 15px;
  padding: 12px 35px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  font-size: 20px;
  font-family: "Buduj Bold", sans-serif;
  background-color: var(--alt-main-color);
  color: var(--bright-accent-color);
}

.istoryk-top-dates time {
  font-family: inherit;
}

.istoryk-list {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.istoryk-row {
  display: flex;
  gap: 30px;
}

.istoryk-col {
  width: 50%;
}

.istoryk-text {
  font-size: 20px;
  font-family: "Futura Bold", sans-serif;
  color: var(--alt-main-color);
  text-align: justify;
}

.istoryk-image {
  display: block;
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.istoryk-section-title {
  text-align: center;
  font-size: 90px;
  line-height: 1.05;
  font-family: "Buduj Bold", sans-serif;
  text-transform: uppercase;
  color: var(--main-text-color);
}

.istoryk-timeline {
  margin-top: 120px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.istoryk-timeline-list {
  list-style: none;
  padding: 50px 40px;
  border-radius: 20px;
  background-color: var(--alt-main-color);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.istoryk-timeline-item {
  position: relative;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.istoryk-timeline-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--bright-accent-color);
}

.istoryk-timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 28px;
  right: -20px;
  height: 2px;
  background-color: var(--secondary-color);
}

.istoryk-timeline-date {
  font-size: 28px;
  font-family: "Buduj Black", sans-serif;
  color: var(--bright-accent-color);
}

.istoryk-timeline-text {
  font-size: 18px;
  font-family: "Futura Demi", sans-serif;
  color: var(--tertiary-color);
}

.istoryk-cta {
  margin: 120px 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
}

.istoryk-cta-text {
  max-width: 800px;
  font-size: 24px;
  font-family: "Futura Bold", sans-serif;
  color: var(--alt-main-color);
}

.istoryk-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.istoryk-btn {
  padding: 15px 40px;
  border-radius: 50px;
  text-transform: uppercase;
  font-size: 20px;
  font-family: "Buduj Bold", sans-serif;
  background-color: var(--bright-accent-color);
  color: var(--main-text-color);
  border: 2px solid var(--bright-accent-color);
}

.istoryk-btn-dark {
  background-color: var(--alt-main-color);
  border-color: var(--alt-main-color);
  color: var(--tertiary-color);
}

@media screen and (max-width: 1440px) {
  .istoryk-page {
    width: 80%;
  }
}

@media screen and (max-width: 1280px) {
  .istoryk-page {
    width: 90%;
  }
}

@media screen and (max-width: 1160px) {
  .istoryk-page {
    width: 100%;
  }

  .istoryk-top-title {
    font-size: 100px;
  }

  .istoryk-top-name {
    font-size: 26px;
  }

  .istoryk-section-title {
    font-size: 80px;
  }

  .istoryk-timeline-list {
    padding: 40px 30px;
  }

  .istoryk-timeline-date {
    font-size: 24px;
  }

  .istoryk-timeline-text {
    font-size: 16px;
  }

  .istoryk-cta-text {
    font-size: 22px;
  }
}

@media screen and (max-width: 868px) {
  .istoryk-top-title {
    font-size: 80px;
  }

  .istoryk-top-name {
    font-size: 22px;
  }

  .istoryk-eyebrow,
  .istoryk-top-dates {
    font-size: 18px;
  }

  .istoryk-timeline {
    margin-top: 100px;
    gap: 30px;
  }

  .istoryk-timeline-list {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .istoryk-timeline-item {
    padding-top: 0;
    padding-left: 40px;
    gap: 5px;
  }

  .istoryk-timeline-item::before {
    top: 6px;
  }

  .istoryk-timeline-item:not(:last-child)::after {
    top: 34px;
    left: 8px;
    right: auto;
    bottom: -25px;
    width: 2px;
    height: auto;
  }

  .istoryk-cta {
    margin: 100px 0 60px;
    gap: 25px;
  }

  .istoryk-cta-text {
    font-size: 20px;
  }

  .istoryk-btn {
    font-size: 18px;
    padding: 12px 30px;
  }
}

@media screen and (max-width: 768px) {
  .istoryk-text {
    font-size: 16px;
    font-family: "Futura Demi", sans-serif;
    margin-top: 5px;
  }
}

@media screen and (max-width: 650px) {
  .istoryk-page {
    padding: 0 20px;
  }

  .istoryk-top {
    margin-top: 60px;
    gap: 10px;
  }

  .istoryk-top-title {
    font-size: 70px;
  }

  .istoryk-top-name {
    font-size: 20px;
  }

  .istoryk-eyebrow {
    font-size: 15px;
  }

  .istoryk-top-dates {
    margin-top: 10px;
    padding: 10px 25px;
    gap: 10px;
    font-size: 16px;
  }

  .istoryk-list {
    margin-top: 40px;
  }

  .istoryk-row {
    flex-direction: column;
    gap: 20px;
  }

  .istoryk-row.reverse {
    flex-direction: column-reverse;
  }

  .istoryk-col {
    width: 100%;
  }

  .istoryk-image {
    width: 50%;
    margin: 0 auto;
  }

  .istoryk-section-title {
    font-size: 55px;
  }

  .istoryk-timeline {
    margin-top: 80px;
    gap: 25px;
  }

  .istoryk-timeline-list {
    padding: 30px 25px;
  }

  .istoryk-timeline-date {
    font-size: 22px;
  }

  .istoryk-cta {
    margin: 80px 0 50px;
    gap: 20px;
  }

  .istoryk-cta-text {
    font-size: 18px;
  }
}

@media screen and (max-width: 425px) {
  .istoryk-top {
    margin-top: 40px;
  }

  .istoryk-top-title {
    font-size: 60px;
  }

  .istoryk-text {
    text-align: left;
  }

  .istoryk-image {
    width: 100%;
  }

  .istoryk-section-title {
    font-size: 42px;
  }

  .istoryk-timeline-list {
    padding: 25px 20px;
  }

  .istoryk-cta-actions {
    width: 100%;
    flex-direction: column;
    gap: 15px;
  }

  .istoryk-btn {
    text-align: center;
  }
}

@media screen and (max-width: 375px) {
  .istoryk-top-title {
    font-size: 52px;
  }

  .istoryk-section-title {
    font-size: 36px;
  }

  .istoryk-timeline {
    margin-top: 60px;
  }

  .istoryk-cta {
    margin-top: 60px;
  }

  .istoryk-btn {
    font-size: 16px;
    padding: 12px 20px;
  }
}
