/* Главная: о РКЦ «Прогресс» */

/* Экран 3 — о РКЦ «Прогресс» */
.about { display: flex; flex-direction: column; gap: 2.5rem; padding: 0 3.75rem 5rem; }
.about__grid { display: flex; align-items: stretch; justify-content: center; gap: 1.4375rem; }
.about__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 45.625rem;
  min-height: 38.25rem;   /* высота макета как минимум; фактическую задаёт блок плашек справа */
  padding: 2.5rem;
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  overflow: hidden;
}
.about__card::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(9, 16, 35, .7), rgba(9, 16, 35, .7)),
    url('../../../img/card-bg-about.jpg') no-repeat center / cover;
}
.about__card > * { position: relative; }
.about__card-title {
  width: 33.9375rem;
  font-size: 2.5rem;
  line-height: 3.125rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--orange);
}
.about__text { display: flex; flex-direction: column; flex: 1 1 auto; gap: 1.25rem; width: 39.5625rem; max-width: 100%; font-size: 1.25rem; line-height: 1.2; }
.about__facts { width: 68.8125rem; display: flex; flex-direction: column; gap: 1.3125rem; }
.about__facts-row { display: flex; gap: 1.3125rem; }
.about__facts-col { display: flex; flex-direction: column; gap: 1.3125rem; width: 33.75rem; }
.fact {
  display: flex;
  align-items: center;
  gap: 3.4375rem;
  height: 11.875rem;
  padding: 1.25rem 1.25rem 1.25rem 2.1875rem;
  border-radius: var(--radius);
  background: var(--card-gradient);
}
.fact__icon {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6.1875rem;
  height: 4.375rem;
}
.fact__icon-inner { position: relative; display: block; flex: none; }
/* «10 модификаций»: корпус + два боковых блока, правый — зеркальный (как в макете) */
.fact__icon-inner--mods { width: 3.624rem; height: 4.375rem; }
.fact__icon-inner--mods .fact__icon-body { position: absolute; top: 0; left: 29.04%; width: 50.33%; height: 100%; }
.fact__icon-inner--mods .fact__icon-left { position: absolute; top: 1.322rem; left: .295rem; width: 1.25rem; height: 2.605rem; }
.fact__icon-inner--mods .fact__icon-right { position: absolute; top: 1.322rem; left: 2.263rem; width: 1.25rem; height: 2.605rem; transform: scaleX(-1); }
.fact__icon-inner--cosmodrome { width: 4.515rem; height: 3.533rem; }
.fact__icon-inner--cosmodrome img { width: 100%; height: 100%; }
.fact__icon-inner--history { width: 5.875rem; height: 4.375rem; }
.fact__icon-inner--history .fact__icon-rocket { position: absolute; top: 0; left: .188rem; width: 1.189rem; height: 1.75rem; transform: rotate(13.54deg); }
.fact__icon-inner--history .fact__icon-planet { position: absolute; bottom: 0; left: 0; width: 5.508rem; height: 3.175rem; }
.fact__icon-inner--satellites { width: 6.1875rem; height: 4.375rem; }
.fact__icon-inner--satellites img { width: 100%; height: 100%; }
.fact__icon-inner--launchers { width: 2.596rem; height: 4.375rem; }
.fact__icon-inner--launchers img { width: 100%; height: 100%; }
.fact__bar { flex: none; width: 2px; height: 6.75rem; background: var(--orange); }
.fact__text { display: flex; flex-direction: column; gap: .9375rem; }
.fact__value {
  font-size: 2.5rem;
  line-height: 3.125rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
}
.fact__label { font-size: 1.125rem; line-height: 1.2; text-transform: uppercase; }
.fact__label--lg { font-size: 1.25rem; }

/* Адаптив (< 1280 px — раскладка вне макета, */
@media (max-width: 1279px) {
  .about { padding-left: 1rem; padding-right: 1rem; }
  /* О предприятии — раскладка как на ПК: слева текст, справа плашки */
  .about { padding-bottom: 2.5rem; gap: 1.5rem; }
  .about__grid { flex-direction: row; align-items: stretch; gap: 1rem; }
  .about__card { flex: 0 0 38%; width: auto; height: auto; min-height: 0; gap: 1rem; padding: 1.25rem; }
  .about__card-title { width: auto; font-size: 1.125rem; line-height: 1.25; }
  .about__text { width: auto; gap: .75rem; font-size: .8125rem; line-height: 1.45; }
  .about__card .about__btn { width: 18.75rem; max-width: 100%; height: 2.5rem; font-size: .8125rem; }
  .about__facts { flex: 1 1 auto; width: auto; gap: .75rem; }
  .about__facts-row { flex-direction: row; gap: .75rem; }
  .about__facts-col { flex: 1 1 0; width: auto; min-width: 0; gap: .75rem; }
  .fact,
  .fact--pl14,
  .fact--wide { height: auto; min-height: 7rem; gap: .75rem; padding: .875rem; }
  .fact__icon { width: 2.75rem; height: 2.75rem; }
  .fact__icon-inner { transform: scale(.45); transform-origin: center; }
  .fact__bar { height: 3.5rem; }
  .fact__text { gap: .375rem; }
  .fact__value { font-size: 1.125rem; line-height: 1.2; }
  .fact__value--sm { font-size: .9375rem; }
  .fact__label,
  .fact__label--lg { font-size: .6875rem; line-height: 1.25; }
}

/* Шапка планшета — мобильная: бургер слева, */
@media (max-width: 767px) {
  .about__card .about__btn { width: 100%; max-width: none; height: 48px; font-size: 14px; }
  /* --- экран 3: о РКЦ --- */
  .about { padding: 40px 20px; gap: 20px; }
  /* макет 840-3881: заголовок начинается на y=40 */
  .about__grid { flex-direction: column; align-items: stretch; gap: 20px; }
  .about__card { width: 100%; height: auto; min-height: 0; gap: 20px; padding: 20px; }
  .about__card-title { width: auto; font-size: 20px; line-height: 30px; }
  .about__text { width: auto; gap: 20px; font-size: 14px; line-height: 20px; }
  .about__facts { width: 100%; gap: 10px; }
  /* четыре плашки — сетка 2×2 по макету: колонки 144 и 166, ряды 180 и 156 */
  .about__facts-row {
    display: grid;
    grid-template-columns: 144fr 166fr;
    grid-template-rows: 180px 156px;
    gap: 10px;
  }
  .about__facts-col { display: contents; }
  .about__facts-col:first-child .about__fact:first-child { order: 1; }
  .about__facts-col:last-child .about__fact:first-child { order: 2; }
  .about__facts-col:first-child .about__fact:last-child { order: 3; }
  .about__facts-col:last-child .about__fact:last-child { order: 4; }
  .fact {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 15px;
    height: auto;
    min-width: 0;
    padding: 15px;
  }
  .fact__icon { width: auto; height: 49px; justify-content: flex-start; }
  .fact__bar { width: 119.5px; height: 1px; }
  .fact__text { gap: 8px; }
  .fact__value { font-size: 20px; line-height: 1; }
  .fact__label,
  .fact__label--lg { font-size: 12px; line-height: 15px; }
  /* иконки мобильного макета — в своих размерах, без планшетного scale(.45) */
  .fact__icon-inner { transform: none; background-repeat: no-repeat; background-position: center; background-size: contain; }
  .fact__icon-inner img { display: none; }
  .fact__icon-inner--mods { width: 37px; height: 44.7px; background-image: url('../../../img/m-icon-mods.svg'); }
  .fact__icon-inner--history { width: 70px; height: 49px; background-image: url('../../../img/m-icon-history-planet.svg'); background-position: left bottom; }
  .fact__icon-inner--cosmodrome { width: 54px; height: 42px; background-image: url('../../../img/m-icon-cosmodrome.svg'); }
  .fact__icon-inner--satellites { width: 64px; height: 38px; background-image: url('../../../img/m-icon-satellites.svg'); }
  .fact__icon-inner--launchers { width: 64px; height: 50px; background-image: url('../../../img/m-icon-launchers.svg'); }
  .fact--wide { flex-direction: row; align-items: center; height: auto; gap: 30px; padding: 20px; }
  .fact--wide .fact__icon { height: 50px; }
  .fact--wide .fact__bar { width: 1px; height: 81px; }
  .fact--wide .fact__value { font-size: 18px; line-height: 20px; }
}

/* Мобильный */
.fact.is-revealed .fact__icon-inner { animation: icon-shine 3.2s ease-in-out .5s both; }
.about__card { position: relative; }
.about__card.is-revealed::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;                      /* толщина кольца = толщине рамки */
  background: linear-gradient(100deg,
    var(--orange) 32%,
    #ffd9ae 50%,
    var(--orange) 68%);
  background-size: 250% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;              /* поверх фонового ::before «Карьеры» */
  animation: border-sheen 4s ease-in-out .5s both;
}
