/* About page only — new.medpribor.pro/about/ (etalon: medpribor.pro/about-us/) */

.mp-about {
  margin: 0 0 2rem;
  color: #526371;
  font-family: "Exo 2", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  /* visible: green bars / hero break out of .mp-container (1240) to .mp-canvas (1300) */
  overflow: visible;
}

.mp-about a {
  color: #00bf80;
  text-decoration: none;
}
.mp-about a:hover {
  color: #0055a6;
}

/* Hero — full canvas width (break out of .mp-container pad) */
.mp-about-hero {
  box-sizing: border-box;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100vw, var(--mp-canvas, 1300px));
  max-width: min(100vw, var(--mp-canvas, 1300px));
  min-height: 220px;
  margin: 0 0 24px;
  padding: 0 20px;
  background-color: #2a2a2a;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  color: #fff;
}
.mp-about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(71, 71, 71, 0.78);
  opacity: 0.89;
  pointer-events: none;
}
.mp-about-hero__inner {
  position: relative;
  z-index: 1;
}
.mp-about-hero__title {
  margin: 0;
  font-family: Roboto, "Exo 2", sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2; /* etalon 38.4px */
  letter-spacing: 0.25px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Green section bars (same look as homepage cats titles) */
.mp-about-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: min(100vw, var(--mp-canvas, 1300px));
  max-width: min(100vw, var(--mp-canvas, 1300px));
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 28px 0 24px;
  padding: 20px 16px;
  font-family: "Exo 2", Roboto, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  color: #54595f;
  text-align: center;
  background-image: linear-gradient(180deg, #c0e6d2 0%, rgba(192, 230, 210, 0.37) 100%);
}

.mp-about__body {
  padding: 0 0 8px;
}

.mp-about-block {
  margin: 0 0 8px;
  max-width: 920px;
}
.mp-about-block p {
  margin: 0 0 14px;
}
.mp-about-block--cta,
.mp-about-block--stats,
.mp-about-block--news {
  max-width: none;
}

.mp-about-certs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 0 24px;
  max-width: 720px;
}
.mp-about-certs img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e5e7eb;
}

.mp-about-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin: 8px 0 20px;
}
.mp-about-logos img {
  display: block;
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.mp-about-more {
  margin-top: 8px;
  font-weight: 500;
}

.mp-about-cards {
  display: grid;
  gap: 20px;
  margin: 18px 0 8px;
  max-width: none;
}
.mp-about-cards--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mp-about-cards--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.mp-about-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.mp-about-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 2px;
  background: #f3f4f6;
}
.mp-about-card__title {
  display: block;
  margin: 10px 0 4px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: #54595f;
}
.mp-about-card:hover .mp-about-card__title {
  color: #00bf80;
}
.mp-about-card__date {
  display: block;
  font-size: 13px;
  color: #8a94a0;
}
.mp-about-card__more {
  display: inline-block;
  margin-top: 6px;
  font-size: 14px;
  color: #00bf80;
}

.mp-about-news__thumb-empty {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 2px;
  background: #f3f4f6;
}
.mp-about-news .mp-about-card__date {
  order: 2;
  margin-top: 10px;
}
.mp-about-news .mp-about-card__title {
  order: 3;
  margin-top: 4px;
}

.mp-about-news__grid {
  box-sizing: border-box;
  width: min(100vw, var(--mp-canvas, 1300px));
  max-width: min(100vw, var(--mp-canvas, 1300px));
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  margin: 18px 0 8px;
  padding: 0 16px;
}
.mp-about-news__all img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.mp-about-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
  box-sizing: border-box;
  width: min(100vw, var(--mp-canvas, 1300px));
  max-width: min(100vw, var(--mp-canvas, 1300px));
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 12px 0 8px;
  padding: 0 16px;
  text-align: center;
}
.mp-about-stat__num {
  font-family: Roboto, "Exo 2", sans-serif;
  font-size: 42px;
  font-weight: 300;
  line-height: 1.1;
  color: #00bf80;
}
.mp-about-stat__label {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #54595f;
}
.mp-about-stat__hint {
  margin-top: 6px;
  font-size: 14px;
  color: #8a94a0;
}

@media (max-width: 900px) {
  .mp-about-hero {
    min-height: 180px;
    padding: 0 16px;
  }
  .mp-about-hero__title {
    font-size: 24px;
  }
  .mp-about-bar {
    font-size: 20px;
    padding: 16px 12px;
    margin: 20px 0 16px;
  }
  .mp-about-cards--3,
  .mp-about-cards--4,
  .mp-about-news__grid,
  .mp-about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mp-about-certs {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}

@media (max-width: 560px) {
  .mp-about-cards--3,
  .mp-about-cards--4,
  .mp-about-news__grid,
  .mp-about-stats {
    grid-template-columns: 1fr;
  }
  .mp-about-stat__num {
    font-size: 36px;
  }
}
