.about-us-history {
    padding: 5em 0;
}

.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 40px 60px;
}
  
.grid-item {
    position: relative;
}
  
.period-item {
    grid-area: 1 / 1 / 2 / 2;
}
  
.title-item {
    grid-area: 1 / 2 / 2 / 3;
}
  
.body-item {
    grid-area: 2 / 1 / 3 / 2;
}
  
.image-item {
    grid-area: 2 / 2 / 3 / 3;
}
  
.history-grid.is-reversed .period-item {
    grid-area: 1 / 2 / 2 / 3;
    display: flex;
    justify-content: flex-end;
}
  
.history-grid.is-reversed .title-item {
    grid-area: 1 / 1 / 2 / 2;
}
  
.history-grid.is-reversed .body-item {
    grid-area: 2 / 2 / 3 / 3;
    display: flex;
    justify-content: flex-end;
}
  
.history-grid.is-reversed .image-item {
    grid-area: 2 / 1 / 3 / 2;
}
  
.history-period {
    font-weight: 400;
    font-size: 94px;
    line-height: 100%;
    letter-spacing: -0.04em;
    color: rgba(0, 0, 0, 0.5);
    margin: 0;
    display: block;
}
  
.history-title {
    font-weight: 600;
    font-size: 64px;
    line-height: 100%;
    letter-spacing: -0.04em;
    color: #000;
    margin: 0 0 30px 0;
}
  
.history-lead {
    font-weight: 500;
    font-size: 20px;
    line-height: 150%;
    letter-spacing: -0.04em;
    color: #000;
    margin: 0;
}
  
.history-body {
    width: 500px;
    font-weight: 500;
    font-size: 20px;
    line-height: 150%;
    letter-spacing: -0.04em;
    color: #000;
    margin: 0;
}
  
.grid-item img {
    width: 100%;
    height: auto;
    display: block;
}
  
@media (max-width: 1024px) {
    .history-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }
    
    .period-item {
        grid-area: 1 / 1 / 2 / 2;
    }
    
    .title-item {
        grid-area: 2 / 1 / 3 / 2;
    }
    
    .body-item {
        grid-area: 3 / 1 / 4 / 2;
    }
    
    .image-item {
        grid-area: 4 / 1 / 5 / 2;
    }
    
    .history-grid.is-reversed .period-item,
    .history-grid.is-reversed .title-item,
    .history-grid.is-reversed .body-item,
    .history-grid.is-reversed .image-item {
        grid-area: auto;
        justify-content: flex-start;
    }
    
    .history-grid.is-reversed {
    grid-template-areas:
        "period"
        "title"
        "body"
        "image";
    }

    .history-grid {
      gap: 30px;
    }
    
    .history-period {
      font-size: 64px;
    }
    
    .history-title {
      font-size: 36px;
      margin-bottom: 20px;
    }

    .history-body {
        width: auto;
    }
}
  
@media (max-width: 768px) {
    .about-us-history {
      padding: 40px 0;
    }
    
    .history-period {
      font-size: 48px;
    }
    
    .history-title {
      font-size: 28px;
    }
}