.about-subnav {
  text-align: center;
  height: 54px;
  position: relative;
  background: #fff;
  border-bottom: 1px solid #cececf;
}

.about-subnav__list {
  display: inline-block;
  height: 54px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.about-subnav__item {
  float: left;
  padding: 20px 0;
  font-size: 14px;
  line-height: 14px;
}

.about-subnav__item + .about-subnav__item::before {
  content: none;
}

.about-subnav__link {
  display: inline;
  padding: 0 20px;
  color: #6e6e73;
  font-size: 14px;
  line-height: 14px;
  text-decoration: none;
  border-right: 1px solid #d2d2d7;
}

.about-subnav__link:hover {
  color: #d80522;
  text-decoration: none;
}

.about-subnav__link:focus {
  color: #6e6e73;
  text-decoration: none;
}

.about-subnav__link:active {
  color: #6e6e73;
}

.about-subnav__item:last-child .about-subnav__link {
  border-right: 0;
}

.about-subnav__link.is-active {
  color: #6e6e73;
}

.about-page {
  background: #f4f4f4;
}

.about-hero {
  background: #d8d8d8;
}

.about-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 0 88px;
}

.about-section-title {
  margin: 0 0 34px;
  color: #222;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 20px;
}

.about-gallery__item {
  display: block;
  background: #fff;
  color: #111;
  text-decoration: none;
}

.about-gallery__item:hover,
.about-gallery__item:focus {
  color: #111;
  text-decoration: none;
}

.about-gallery__image {
  background: #fff;
  padding: 0;
}

.about-gallery__image img {
  display: block;
  width: 100%;
  height: auto;
}

.about-gallery__title {
  display: block;
  margin: 0;
  padding: 18px 15px 19px;
  min-height: 69px;
  background: #fff;
  color: #000;
  font-size: 20px;
  line-height: 32px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1279px) {
  .about-main {
    max-width: calc(100% - 48px);
  }

  .about-section-title {
    font-size: 28px;
  }
}

@media (max-width: 991px) {
  .about-subnav__list {
    display: inline-block;
    height: auto;
  }

  .about-subnav__item {
    padding: 20px 0;
  }

  .about-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .about-subnav__link {
    padding: 0 12px;
    font-size: 14px;
    line-height: 14px;
  }

  .about-main {
    max-width: calc(100% - 28px);
    padding: 28px 0 48px;
  }

  .about-section-title {
    margin-bottom: 22px;
    font-size: 24px;
  }

  .about-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .about-gallery__title {
    padding: 14px 12px 16px;
    min-height: 56px;
    font-size: 16px;
    line-height: 26px;
  }
}
