/* ===== ABOUT (фикс компоновки + табы) ===== */

/* чтобы шаблон 2025 не ломал типографику/отступы */
.page-about,
.page-about * {
  box-sizing: border-box;
}

.page-about {
  padding: 0 0 60px;
}

/* ---- "На главную" ---- */
.to_home {
  margin: 18px 0 10px;
}
.to_home a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 14px;
  color: #6b7280;
}
.to_home a:hover {
  color: #111827;
}

/* ---- Заголовки ---- */
.page-about__title {
  margin: 14px 0 6px;
  text-align: center;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 54px;
  line-height: 1.05;
  color: #111827;
}

.page-about__subtitle {
  margin: 18px 0 26px;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: #111827;
}

/* ===== ТАБЫ (menu/about выводит .tabs-head .t-head-item) ===== */
.tabs-head {
  margin: 10px 0 26px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 16px;
}

.tabs-head .t-head-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  color: #111827;
  background: #f3f5f7;
  border: 1px solid rgba(17, 24, 39, 0.08);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tabs-head .t-head-item:hover {
  background: #e9eef2;
  border-color: rgba(17, 24, 39, 0.14);
}

.tabs-head .t-head-item.active,
.tabs-head .t-head-item._active,
.tabs-head .t-head-item[aria-current="page"] {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

/* ===== Секции "картинка + текст" ===== */
.about-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 34px 0;
}

.about-section--reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.about-section--reverse .about-section__media {
  order: 2;
}
.about-section--reverse .about-section__content {
  order: 1;
}

.about-section__media {
  width: 100%;
  text-align: center;
}
.about-section__media img {
  width: 100%;
  height: auto;
  display: block;
}

.about-section__content {
  max-width: 520px;
  margin: 0 auto;
}

.about-section__h3 {
  position: relative;
  margin: 0 0 14px;
  padding-left: 14px;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.25;
  color: #111827;
}
.about-section__h3:before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: #6aa31a;
}

.about-section__text {
  color: #4b5563;
  font-size: 13px;
  line-height: 1.7;
}
.about-section__text p {
  margin: 0 0 10px;
}
.about-section__text p:last-child {
  margin-bottom: 0;
}

.about-section__quote {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid #6aa31a;
  background: #f7faf2;
  color: #6aa31a;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.6;
  border-radius: 10px;
}

/* ===== Блок с карточками ===== */
.about-info {
  margin-top: 22px;
  padding: 46px 0 0;
  background: #f3f5f7;
}

.about-info__title {
  text-align: center;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.35;
  color: #111827;
  margin: 0 0 22px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 10px;
}

.about-card {
  height: 100%;
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
}

.about-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #f7faf2;
  border: 1px solid rgba(106, 163, 26, 0.25);
  margin-bottom: 10px;
}
.about-card__icon img {
  width: 30px;
  height: 30px;
  display: block;
}

.about-card__title {
  font-weight: 800;
  font-size: 13px;
  color: #111827;
  margin-bottom: 6px;
}

.about-card__text {
  font-size: 12px;
  line-height: 1.7;
  color: #4b5563;
}

.about-info__footer {
  margin: 18px 0 0;
  padding: 34px 0 48px;
  text-align: center;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6aa31a;
}

/* ===== Адаптив ===== */
@media (max-width: 991px) {
  .page-about__title { font-size: 40px; }
  .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-section,
  .about-section--reverse { grid-template-columns: 1fr; }
  .about-section--reverse .about-section__media,
  .about-section--reverse .about-section__content { order: initial; }
  .about-section__content { max-width: 100%; }
}

@media (max-width: 767px) {
  .page-about { padding-bottom: 40px; }

  .page-about__title {
    font-size: 34px;
    margin-top: 10px;
  }

  .page-about__subtitle {
    font-size: 14px;
    margin: 12px 0 18px;
  }

  .tabs-head { gap: 8px; margin-bottom: 18px; }
  .tabs-head .t-head-item {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 10px;
  }

  .about-section { padding: 22px 0; gap: 14px; }

  .about-section__h3 {
    font-size: 14px;
    margin-bottom: 10px;
  }
  .about-section__h3:before { height: 16px; top: 2px; }

  .about-section__text { font-size: 12px; }
  .about-section__quote { font-size: 12px; padding: 12px 14px; }

  .about-info { padding-top: 28px; }
  .about-info__title { font-size: 14px; margin-bottom: 14px; }

  .about-grid { grid-template-columns: 1fr; gap: 14px; }

  .about-card { padding: 14px 14px 12px; border-radius: 12px; }
  .about-card__icon { width: 52px; height: 52px; border-radius: 12px; }

  .about-info__footer { font-size: 13px; padding: 26px 0 36px; }
}
