/* ===============================
   BEFORE / AFTER — CLEAN (FIXED)
   - always 2 photos in one row
   - fixed height (NO full screen)
   - mobile: same row, smaller height
=============================== */

.ba {
  background: #fff;
  color: #111;
}

.ba-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 72px 20px 110px;
}

/* HEADER */
.ba-header {
  max-width: 720px;
  margin-bottom: 64px;
}

.ba-header h1 {
  font-size: 36px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.ba-lead {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

/* ITEM */
.ba-item {
  margin-bottom: 80px;
}

/* ROW — ALWAYS 2 */
.ba-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* PHOTO — FIXED SIZE */
.ba-photo {
  border-radius: 18px;
  overflow: hidden;
  background: #f2f2f2;

  height: 340px;          /* ⬅️ КЛЮЧ */
  max-height: 340px;
}

/* IMAGE */
.ba-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* кадрується, а не тягнеться */
  display: block;
}

/* TEXT UNDER */
.ba-text {
  max-width: 820px;
  margin-top: 22px;
}

.ba-text h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.ba-text p {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

/* MOBILE — STILL 2, BUT SMALLER */
@media (max-width: 600px) {
  .ba-container {
    padding: 54px 14px 86px;
  }

  .ba-header h1 {
    font-size: 28px;
  }

  .ba-row {
    gap: 10px;
  }

  .ba-photo {
    height: 150px;       /* ⬅️ компактно */
    max-height: 150px;
    border-radius: 14px;
  }

  .ba-text h3 {
    font-size: 18px;
  }
}

/* ===============================
   FORCE FIX — BEFORE / AFTER
=============================== */

.ba .ba-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
}

.ba .ba-photo {
  height: 320px !important;
  max-height: 320px !important;
  min-height: 320px !important;
  overflow: hidden !important;
}

.ba .ba-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

@media (max-width: 600px) {
  .ba .ba-photo {
    height: 140px !important;
    max-height: 140px !important;
    min-height: 140px !important;
  }
}
