/* About — Incity «О компании» layout */
.about-main {
  --about-bg: #3c3c3c;
  --about-card: rgba(255, 255, 255, 0.15);
  --about-ink: #ffffff;
  --about-muted: rgba(255, 255, 255, 0.5);
  box-sizing: border-box;
  width: 100%;
  padding: 0 var(--site-gutter, 30px);
  font-family: "Averta", Arial, sans-serif;
  color: var(--about-ink);
  background: transparent;
  margin-top: 50px;
}

.about-main *,
.about-main *::before,
.about-main *::after {
  box-sizing: border-box;
}

.about-main__wrapper {
  width: 100%;
  max-width: var(--site-container, 1470px);
  margin: 0 auto;
  padding: 58px 40px 80px;
  background: var(--about-bg);
  display: flex;
  flex-direction: column;
}

.about-main__subtitle {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--about-ink);
}

.about-main__title {
  margin: 65px 0 36px;
  max-width: 1100px;
  font-size: clamp(28px, 3.2vw, 43px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--about-ink);
}

.about-main__text {
  margin: 0 0 80px;
  max-width: 630px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--about-muted);
}

.about-main__text p {
  margin: 0;
}

.about-main__cards {
  width: 100%;
}

.about-main__list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -4px;
}

.about-main__card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-width: calc(33.333% - 8px);
  height: 408px;
  margin: 8px 4px 0;
  padding: 36px 29px;
  overflow: hidden;
  background: #111;
}

.about-main__card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.about-main__card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.about-main__card-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The first clip includes 22px black bars in its 720px frame. */
.about-main__card:first-child .about-main__card-media video {
  object-position: center;
  transform: scale(1.08);
  transform-origin: center;
}

.about-main__card-title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  max-width: 450px;
  font-family: "Averta", Arial, sans-serif !important;
  font-size: clamp(22px, 2.1vw, 29px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.about-main__card-num {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font: inherit;
  color: rgba(255, 255, 255, 0.88);
}

.about-main__card-num::after {
  content: "";
  display: block;
  width: 100%;
  min-width: 0.85em;
  height: 1px;
  margin-top: 6px;
  background: currentColor;
}

.about-main__card-title-text {
  min-width: 0;
}

.about-main__card-text {
  position: relative;
  z-index: 1;
  margin-top: auto;
  max-width: 255px;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

@media (max-width: 1100px) {
  .about-main__wrapper {
    padding: 48px 28px 64px;
  }

  .about-main__title {
    margin-top: 40px;
  }

  .about-main__text {
    margin-bottom: 48px;
  }

  .about-main__card {
    min-width: calc(50% - 8px);
    height: 360px;
    padding: 28px 22px;
  }
}

@media (max-width: 760px) {
  .about-main {
    padding: 0 12px;
  }

  .about-main__wrapper {
    padding: 36px 18px 48px;
  }

  .about-main__subtitle {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .about-main__title {
    margin: 28px 0 20px;
    font-size: 26px;
    line-height: 1.15;
  }

  .about-main__text {
    margin-bottom: 32px;
    font-size: 15px;
    max-width: none;
  }

  .about-main__list {
    margin: 0;
  }

  .about-main__card {
    min-width: 100%;
    width: 100%;
    height: auto;
    min-height: 280px;
    margin: 8px 0 0;
    padding: 28px 20px;
  }

  .about-main__card-title {
    font-size: 24px;
    gap: 10px;
  }

  .about-main__card-text {
    margin-top: 48px;
    max-width: none;
  }
}
