/*
  Стили страницы "О нас".
  Подключение: {% static 'css/about.css' %} — после fonts.css / style.css
*/

.about-page {
  width: 100%;
}

/* ===== БАННЕР =====
   full-bleed приём (как .hero-banner / .article-content full-bleed):
   растягиваем на всю ширину экрана независимо от родителя-контейнера. */
.about-banner {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  height: 150px;
  background-size: cover;
  background-position: center;
  background-color: var(--ink, #1C1A17); /* фон-заглушка, если картинка не загрузилась */
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.about-banner__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-edito);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: #fff;
  letter-spacing: 0.02em;
  margin: 0;
  text-align: center;
}

/* ===== КОНТЕЙНЕР ДЛЯ СЕКЦИЙ ===== */
.about-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== СТРОКА ФОТО + ТЕКСТ ===== */
.about-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin: 90px 0;
}

.about-row--reverse {
  flex-direction: row-reverse;
}

.about-row__media {
  flex: 1 1 50%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

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

.about-row__text {
  flex: 1 1 50%;
}

.about-row__text h2 {
  font-family: var(--font-edito);
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0 0 0.9em;
  color: var(--ink, #1C1A17);
}

.about-row__text p {
  font-family: var(--font-primary);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink, #1C1A17);
  margin: 0;
}

/* ===== ЦЕНТРАЛЬНАЯ ТЕКСТОВАЯ СЕКЦИЯ ===== */
.about-centered {
  max-width: 640px;
  margin: 110px auto;
  text-align: center;
}

.about-centered h2 {
  font-family: var(--font-edito);
  font-weight: 500;
  font-size: 1.875rem;
  margin: 0 0 1em;
  color: var(--ink, #1C1A17);
}

.about-centered p {
  font-family: var(--font-primary);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-soft, #4A463F);
  margin: 0;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
  .about-row,
  .about-row--reverse {
    flex-direction: column;
    gap: 24px;
    margin: 56px 0;
  }

  .about-row__media {
    aspect-ratio: 3 / 2;
  }

  .about-centered {
    margin: 64px auto;
  }
}

@media (max-width: 480px) {
  .about-banner {
    height: 110px;
  }

  .about-row__text h2 {
    font-size: 1.5rem;
  }

  .about-centered h2 {
    font-size: 1.5rem;
  }
}