.about-history {
  --history-ink: #061a31;
  --history-text: #536373;
  --history-blue: #0b6fba;
  --history-line: #dce6ed;
  --history-inset: clamp(28px, 3.4vw, 52px);
  width: var(--about-container, min(1400px, calc(100% - 28px)));
  margin: clamp(54px, 5vw, 80px) auto;
  scroll-margin-top: 120px;
  color: var(--history-ink);
}
.about-history-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(26px, 2.7vw, 38px);
}
.about-history-heading h2 {
  margin: 0;
  color: var(--history-ink);
  font-family: "Manrope", "Geist", sans-serif;
  font-size: clamp(36px, 3.35vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}
.about-history-mark { flex: 0 0 38px; height: 3px; border-radius: 999px; background: #f3c400; }
.about-history-rule { flex: 1; height: 1px; margin-left: 18px; background: var(--history-line); }
.about-history-grid {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 0;
  padding: 0 var(--history-inset);
  overflow: hidden;
  border: 1px solid var(--history-line);
  border-radius: 16px;
  background: linear-gradient(180deg, #f3f8fc, #fff 250px);
  box-shadow: 0 20px 60px rgba(9, 49, 83, .045);
}
.about-history-grid::before {
  content: "";
  position: absolute;
  inset: 0 auto auto var(--history-inset);
  width: 64px;
  height: 3px;
  background: var(--history-blue);
}
.about-history-grid > p {
  position: relative;
  grid-column: span 6;
  min-width: 0;
  margin: 0;
  padding: 30px 0;
  color: var(--history-text);
  font-family: "Geist", "Manrope", sans-serif;
  font-size: clamp(16px, 1.12vw, 18px);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0;
  overflow-wrap: break-word;
}
.about-history-grid strong, .about-history-grid b { color: var(--history-ink); font-weight: 700; }
.about-history-grid > p:first-child {
  grid-column: 1 / -1;
  padding: clamp(30px, 3.4vw, 50px) 0;
  border-bottom: 1px solid var(--history-line);
  color: #334c61;
  font-size: clamp(18px, 1.25vw, 21px);
  line-height: 1.75;
}
.about-history-grid > p:first-child strong { color: #174b8e; }
.about-history-grid > p:nth-child(2) { grid-column: span 7; padding-right: var(--history-inset); }
.about-history-grid > p:nth-child(3) { grid-column: span 5; padding-left: var(--history-inset); }
.about-history-grid > p:nth-child(3)::before, .about-history-grid > p:nth-child(6)::before {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 34px;
  left: 0;
  width: 1px;
  background: var(--history-line);
}
.about-history-grid > p:nth-child(4) {
  grid-column: 1 / -1;
  margin: 6px 0;
  padding: 28px 32px;
  border-left: 3px solid var(--history-blue);
  border-radius: 0 12px 12px 0;
  background: #f0f6fb;
}
.about-history-grid > p:nth-child(4) > strong:first-child { display: block; margin-bottom: 10px; color: #174b8e; }
.about-history-grid > p:nth-child(5) { padding-right: var(--history-inset); }
.about-history-grid > p:nth-child(6) { padding-left: var(--history-inset); }
.about-history-grid > p:last-child:not(:first-child) {
  grid-column: 1 / -1;
  padding: 30px 0 clamp(30px, 3.4vw, 50px);
  border-top: 1px solid var(--history-line);
}
@media (max-width: 900px) {
  .about-history { --history-inset: 30px; scroll-margin-top: 116px; }
  .about-history-grid > p,
  .about-history-grid > p:nth-child(2),
  .about-history-grid > p:nth-child(3),
  .about-history-grid > p:nth-child(5),
  .about-history-grid > p:nth-child(6) { grid-column: 1 / -1; padding: 24px 0; }
  .about-history-grid > p:nth-child(3), .about-history-grid > p:nth-child(6) { border-top: 1px solid var(--history-line); }
  .about-history-grid > p:nth-child(3)::before, .about-history-grid > p:nth-child(6)::before { display: none; }
  .about-history-grid > p:nth-child(4) { margin: 0; padding: 24px; }
}
@media (max-width: 640px) {
  .about-history { --history-inset: 22px; width: calc(100% - 28px); margin: 40px auto 50px; scroll-margin-top: 106px; }
  .about-history-heading { gap: 12px; margin-bottom: 24px; }
  .about-history-heading h2 { font-size: 32px; }
  .about-history-mark { flex-basis: 24px; }
  .about-history-rule { margin-left: 8px; }
  .about-history-grid { border-radius: 14px; }
  .about-history-grid > p { font-size: 16px; line-height: 1.75; }
  .about-history-grid > p:first-child { padding: 28px 0; font-size: 18px; }
  .about-history-grid > p:nth-child(4) { padding: 22px 20px; margin-inline: -10px; }
  .about-history-grid > p:last-child:not(:first-child) { padding: 24px 0 28px; }
}
