/* ==========================================================================
   Страница «О нас» — Figma taiga_brand-components 5200:19822 (десктоп).
   Мобильная версия (4508:9651) — в mobile.css, раздел «О нас».

   Общие куски переиспользуются как есть: хлебные крошки .arch-crumbs
   (architects.css), карточки цифр .stats__* и блок патентов .patents*
   (style.css), цитата .patents__quote, кнопки .proj-cta__btn (projects.css).
   Ритм между блоками — 120px (Figma: gap 120 у колонки страницы).
   ========================================================================== */

.about-accent {
  color: #E2480A;
}

/* Надпись над заголовком блока: «почему мы», «ценности компании»… */
.about-eyebrow {
  font-family: 'DINPro Regular', 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 0.7;
  text-transform: uppercase;
  color: #000;
}

/* --- Шапка (5200:19836) --- */
.about-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 624.69px;
  margin-top: 16px;
  padding: 80px 0;
}

.about-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35.698%, rgba(0, 0, 0, 0.05) 67.23%);
}

.about-hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 698px;
  padding: 50px 0;
  color: #fff;
  text-align: center;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.05);
}

.about-hero__title {
  margin: 0;
  font-family: 'DINPro Cond Medium', 'Inter', Arial, sans-serif;
  font-weight: 500;
  font-size: 70px;
  line-height: 1.1;
  text-transform: uppercase;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.about-hero__subtitle {
  width: 598px;
  font-family: 'DINPro Medium', 'Inter', Arial, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
}

/* --- Цифры (5200:19840): 4 одинаковые карточки в ряд --- */
.about-stats {
  margin-top: 30px;
}

.about-stats .stats__card {
  height: 206px;
}

.about-stats .stats__label {
  padding-left: 5px;
}

.about-stats .stats__card:last-child .stats__label {
  padding-left: 10px;
}

/* --- Почему мы + видео + философия (5200:19869) --- */
.about-why {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin-top: 120px;
}

.about-why__head {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-why__row {
  display: flex;
  align-items: flex-start;
  gap: 114px;
}

.about-why__title {
  flex: none;
  width: 413px;
  color: #000;
}

.about-why__text {
  width: 683px;
  font-family: 'DINPro Regular', 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 25px;
  color: rgba(0, 0, 0, 0.6);
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

/* В макете абзацы разделены пустой строкой той же высоты (25px) */
.about-why__text p + p {
  margin-top: 25px;
}

.about-video {
  position: relative;
  height: 650px;
  overflow: hidden;
  background: #000;
}

.about-video__poster,
.about-video__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-video__video {
  background: #000;
}

/* В макете кнопка — по центру блока с отступом pl30/pt30, т.е. на 15px
   правее и ниже геометрического центра */
.about-video__play {
  position: absolute;
  left: calc(50% + 15px);
  top: calc(50% + 15px);
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.about-video__play img {
  display: block;
  width: 50px;
  height: 50px;
}

.about-video__play:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.about-video.is-playing .about-video__play,
.about-video.is-playing picture {
  display: none;
}

.about-why__media {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-philosophy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-philosophy__quote p {
  width: 1147px;
}

/* --- Что для нас важно (5200:19894) --- */
.about-values {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin-top: 120px;
}

.about-values__head {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-values__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.about-value {
  position: relative;
  display: flex;
  flex-direction: column;
  width: calc((100% - 64px) / 3);
  outline: none;
}

.about-value__photo {
  height: 303px;
}

.about-value__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-value__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 162px;
  padding: 32px;
  border: 2px solid #F6F1E9;
  border-top: 0;
}

.about-value__num,
.about-value__title {
  font-family: 'DINPro Cond Regular', 'Inter', Arial, sans-serif;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.about-value__num {
  display: flex;
  align-items: center;
  height: 50px;
  font-size: 70px;
  color: #516B43;
}

.about-value__title {
  font-size: 30px;
  color: #000;
}

/* Текст при наведении (5200:21369): белая плашка на всю карточку,
   текст 302px по центру */
.about-value__hover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 0;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* :hover только там, где наведение настоящее: на тач-экране «залипший»
   после тапа :hover не дал бы закрыть карточку повторным тапом */
@media (hover: hover) {
  .about-value:hover .about-value__hover {
    opacity: 1;
    visibility: visible;
  }
}

.about-value:focus-visible .about-value__hover,
.about-value.is-open .about-value__hover {
  opacity: 1;
  visibility: visible;
}

.about-value__text {
  width: 302px;
  font-family: 'DINPro Regular', 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 22px;
  color: rgba(0, 0, 0, 0.6);
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.about-value__text p + p {
  margin-top: 22px;
}

/* Шапка карточки внутри текста и стрелки — только мобилка */
.about-value__hover-head,
.about-value__arrow {
  display: none;
}

/* --- Патенты: общий блок с главной, здесь только ритм --- */
.is-about-page .patents {
  margin-top: 120px;
}

/* --- Команда (5200:19961) --- */
.about-team {
  display: flex;
  flex-direction: column;
  gap: 56px;
  width: 1205px;
  max-width: 100%;
  margin: 120px auto 0;
}

.about-team__head {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 52px;
}

.about-team__intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 500px;
}

.about-team__title {
  width: 413px;
  color: #000;
}

.about-team__text {
  width: 648px;
  padding-top: 14px;
  font-family: 'DINPro Regular', 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 25px;
  color: rgba(0, 0, 0, 0.6);
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.about-team__photo {
  display: block;
  width: 100%;
  height: 650px;
  object-fit: cover;
}

/* --- Как устроена компания (5200:19971 / раскрытые 5200:21738) --- */
.about-structure {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin-top: 120px;
}

.about-dept {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 20px 0;
  border-bottom: 2px solid #D9D9D9;
}

.about-dept__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.about-dept__label {
  font-family: 'DINPro Regular', 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 21px;
  text-transform: uppercase;
  color: #E2480A;
}

.about-dept__title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.about-dept__title {
  font-family: 'DINPro Cond Regular', 'Inter', Arial, sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 0.7;
  text-transform: uppercase;
  color: #000;
  white-space: nowrap;
}

.about-dept__arrow {
  flex: none;
  width: 19px;
  height: 19px;
  transition: transform 0.25s ease;
}

.about-dept.is-open .about-dept__arrow {
  transform: rotate(90deg);
}

.about-dept__arrow--mob {
  display: none;
}

.about-dept__content {
  display: flex;
}

.about-dept__content[hidden] {
  display: none;
}

.about-dept__photo {
  display: block;
  flex: none;
  width: 580px;
  height: 388px;
  object-fit: cover;
}

.about-dept__panel {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  min-height: 388px;
  padding: 32px 64px;
  background: #FAF8F5;
}

.about-dept__intro,
.about-dept__body {
  font-size: 16px;
  line-height: 22px;
  color: #000;
}

.about-dept__intro {
  font-family: 'DINPro Medium', 'Inter', Arial, sans-serif;
  font-weight: 500;
}

.about-dept__body {
  font-family: 'DINPro Regular', 'Inter', Arial, sans-serif;
}
