.history-page {
  --history-gap: clamp(1rem, 2.4vw, 1.4rem);
}

.history-page .subpage-section {
  scroll-margin-top: 120px;
}

.history-hero .subpage-hero-copy {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 251, 255, 0.97)),
    #fff;
}

.history-hero .subpage-hero-media img {
  object-position: center;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 0.56rem;
  height: 0.56rem;
  background: var(--red);
  border-radius: 999px;
}

.history-intro .rich-copy,
.history-page .rich-copy {
  max-width: 1120px;
  line-height: 1.62;
}

.history-page .rich-copy strong {
  color: var(--ink);
  font-weight: 900;
}

.history-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--history-gap);
  margin-top: var(--history-gap);
}

.history-highlight-grid article,
.history-note,
.history-role-list li,
.history-desetine article {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.history-highlight-grid article {
  padding: 1rem;
}

.history-highlight-grid strong {
  display: block;
  color: var(--red);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.history-highlight-grid span,
.history-note p,
.history-photo-card figcaption,
.history-role-list span,
.history-desetine article {
  color: var(--muted);
}

.history-highlight-grid span {
  display: block;
  margin-top: 0.35rem;
  font-weight: 800;
}

.history-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: var(--history-gap);
  align-items: start;
}

.history-split-media {
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
}

.history-note {
  position: sticky;
  top: 110px;
  padding: clamp(1rem, 2.2vw, 1.35rem);
}

.history-note span,
.history-final aside span {
  display: block;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.history-note strong {
  display: block;
  margin-top: 0.4rem;
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1;
}

.history-note p {
  margin: 0.8rem 0 0;
  line-height: 1.45;
}

.history-role-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: var(--history-gap) 0 0;
  padding: 0;
  list-style: none;
}

.history-role-list li {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem;
}

.history-role-list span {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.history-role-list strong {
  color: var(--ink);
  font-size: 1.02rem;
}

.history-photo-card {
  overflow: hidden;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 9px 26px rgba(17, 24, 39, 0.06);
}

.history-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.history-photo-card figcaption {
  padding: 0.9rem 1rem 1rem;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
}

.history-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--history-gap);
  margin-top: 1rem;
}

.history-two-column .rich-copy {
  margin-top: 0;
}

.history-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--history-gap);
  margin-top: var(--history-gap);
}

.history-desetine {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-self: start;
}

.history-desetine article {
  padding: 1rem;
  color: var(--ink);
  font-weight: 900;
}

.history-final {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: var(--history-gap);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(216, 32, 39, 0.88), rgba(20, 61, 142, 0.92)),
    var(--ink);
}

.history-final h2,
.history-final p,
.history-final .section-kicker,
.history-final aside strong {
  color: #fff;
}

.history-final p {
  max-width: 900px;
  margin: 1rem 0 0;
  line-height: 1.62;
}

.history-final .section-kicker::before {
  background: #fff;
}

.history-final aside {
  align-self: center;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.history-final aside span {
  color: rgba(255, 255, 255, 0.78);
}

.history-final aside strong {
  display: block;
  margin-top: 0.55rem;
  font-size: clamp(1.4rem, 2.7vw, 2.1rem);
  line-height: 1.08;
}

@media (max-width: 980px) {
  .history-highlight-grid,
  .history-role-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-split,
  .history-split-media,
  .history-two-column,
  .history-photo-grid,
  .history-final {
    grid-template-columns: 1fr;
  }

  .history-note {
    position: static;
  }
}

@media (max-width: 640px) {
  .history-highlight-grid,
  .history-role-list,
  .history-desetine {
    grid-template-columns: 1fr;
  }

  .history-page .rich-copy {
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .history-photo-card img,
  .history-vehicle-card img {
    aspect-ratio: 4 / 3;
  }
}
