.msh-o {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-2xl) 0;
  color: #334155;
}

.msh-o h2 {
  margin: 0 0 12px;
  color: #1e293b;
  font-size: 30px;
  line-height: 1.2;
}

.msh-o p,
.msh-o li {
  font-size: 17px;
  line-height: 1.55;
}

.msh-o__lead {
  margin-top: 0;
}

.msh-o__stats,
.msh-o__miles,
.msh-o__people-grid,
.msh-o__cards {
  display: grid;
  gap: var(--space-s);
}

.msh-o__stat,
.msh-o__mile,
.msh-o__person,
.msh-o__card {
  background: var(--barva-5);
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: var(--space-m);
}

.msh-o__stat {
  text-align: center;
}

.msh-o__stat-num,
.msh-o__year {
  margin: 0;
  color: var(--barva-8);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
}

.msh-o__stat-label {
  margin: 6px 0 0;
}

.msh-o__split,
.msh-o__gallery,
.msh-o__history,
.msh-o__people,
.msh-o__projects,
.msh-o__classes {
  margin-top: var(--space-2xl);
}

.msh-o__split {
  display: grid;
  gap: var(--space-m);
  align-items: center;
}

.msh-o__copy ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

.msh-o__more {
  display: inline-block;
  margin-top: 12px;
  color: var(--barva-8);
  font-weight: 600;
  text-decoration: underline;
}

.msh-o__photo,
.msh-o__slide img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 24px;
}

.msh-o__slider {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.msh-o__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.msh-o__track::-webkit-scrollbar {
  display: none;
}

.msh-o__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.msh-o__slider-btn {
  position: relative;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--barva-8);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(47, 111, 174, 0.16);
}

.msh-o__slider-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.msh-o__slider-btn--prev::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.msh-o__slider-btn--next::before {
  transform: translate(-70%, -50%) rotate(45deg);
}

.msh-o__slider-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.msh-o__person,
.msh-o__card {
  color: inherit;
  text-decoration: none;
}

.msh-o__person {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.msh-o__person img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
}

.msh-o__person span,
.msh-o__age {
  color: #64748b;
}

.msh-o__class {
  display: grid;
  grid-template-columns: 14px 1fr;
  column-gap: 12px;
  align-items: start;
}

.msh-o__swatch {
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border-radius: 50%;
}

.msh-o__class strong,
.msh-o__class .msh-o__age,
.msh-o__class p {
  grid-column: 2;
}

.msh-o__class p,
.msh-o__card p {
  margin: 6px 0 0;
}

.msh-strom {
  display: flex;
  flex-direction: column;
}

.msh-strom__item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 18px;
  position: relative;
  padding-bottom: 8px;
}

.msh-strom__item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: var(--barva-8);
}

.msh-strom__item:last-child::before {
  display: none;
}

.msh-strom__node {
  width: 22px;
  height: 22px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--barva-8);
  box-shadow: 0 0 0 6px rgba(255, 159, 107, 0.28);
  position: relative;
  z-index: 1;
}

@media (min-width: 801px) {
  .msh-o__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-m);
  }

  .msh-o__split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .msh-o__split.is-flip .msh-o__copy {
    order: 2;
  }

  .msh-o__photo,
  .msh-o__slide img {
    height: 280px;
  }

  .msh-o__miles,
  .msh-o__cards {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-m);
  }

  .msh-o__people-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-m);
  }
}

@media (min-width: 600px) and (max-width: 800px) {
  .msh-o__miles,
  .msh-o__cards,
  .msh-o__people-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .msh-o__track {
    scroll-behavior: auto;
  }
}

.msh-o__gallery .msh-o__slider {
  position: relative;
  display: block;
}

.msh-o__gallery .msh-o__slider-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
}

.msh-o__gallery .msh-o__slider-btn--prev {
  left: 14px;
}

.msh-o__gallery .msh-o__slider-btn--next {
  right: 14px;
}

.msh-o__gallery .msh-o__slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 498;
  object-fit: cover;
  object-position: center;
}
