/*
 * Страница "О компании" (шаблон page-about-company.php)
 */

body.page-template-page-about-company .page-about-company {
  padding-top: 24px;
  padding-bottom: 48px;
}

.page-about-company__inner {
  max-width: 1360px;
}

.page-about-company__title {
  margin: 0;
}

.page-about-company__grid {
  display: grid;
  grid-template-columns: minmax(0, 650px) minmax(0, 1fr);
  grid-template-areas:
    "benefits image"
    "desc year";
  column-gap: 40px;
  row-gap: 56px;
  margin-bottom: 0;
  align-items: start;
}

.page-about-company__benefits {
  grid-area: benefits;
  margin-top: 56px;
  width: 100%;
  max-width: 650px;
  min-width: 0;
}

.page-about-company__benefits-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.page-about-company__benefit-item {
  background: var(--substrate);
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  min-height: 108px;
}

.page-about-company__benefit-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.page-about-company__benefit-text {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.24;
  color: var(--black-color);
  max-width: 180px;
}

.page-about-company__image-wrap {
  grid-area: image;
  min-width: 0;
}

.page-about-company__image {
  display: block;
  width: 100%;
  height: auto;
}

.page-about-company__description {
  grid-area: desc;
  max-width: 538px;
  min-width: 0;
}

.page-about-company__description-title {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -2%;
  color: var(--orange);
  margin-bottom: 24px;
  letter-spacing: 0;
}

.page-about-company__description-text {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.24;
  color: var(--black-color);
}

.page-about-company__year {
  grid-area: year;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-self: end;
  min-width: 0;
}

.page-about-company__year-number {
  font-size: 64px;
  font-weight: 800;
  line-height: 100%;
  letter-spacing: 0;
  color: var(--soft-orange);
}

.page-about-company__year-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.24;
  color: var(--grey);
}

@media (max-width: 1100px) {
  .page-about-company__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "benefits"
      "image"
      "desc"
      "year";
    column-gap: 0;
    row-gap: 40px;
  }

  .page-about-company__benefits {
    max-width: none;
  }

  .page-about-company__year {
    justify-self: start;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  body.page-template-page-about-company .page-about-company {
    padding-bottom: 32px;
  }

  .page-about-company__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "benefits benefits"
      "year image"
      "desc desc";
    column-gap: 12px;
    row-gap: 20px;
    margin-top: 0;
  }

  .page-about-company__benefits {
    margin-top: 24px;
    max-width: none;
  }

  .page-about-company__benefits-list {
    gap: 12px;
  }

  .page-about-company__benefit-item {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 12px 10px;
    min-height: 0;
    gap: 10px;
    border-radius: 12px;
  }

  .page-about-company__benefit-item img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .page-about-company__benefit-text {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    max-width: none;
  }

  .page-about-company__image-wrap {
    align-self: end;
  }

  .page-about-company__image {
    width: 100%;
    max-width: 100%;
  }

  .page-about-company__year {
    align-items: flex-start;
    justify-self: start;
    align-self: end;
    padding-right: 4px;
  }

  .page-about-company__year-number {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
  }

  .page-about-company__year-text {
    font-size: 12px;
    line-height: 1.25;
    margin-top: 4px;
  }

  .page-about-company__description {
    max-width: none;
  }

  .page-about-company__description-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 16px;
  }

  .page-about-company__description-text {
    font-size: 14px;
    line-height: 1.35;
  }
}
