/* Базовые переносы для текста */
p {
    hyphens: auto;
    -webkit-hyphens: auto; /* Для поддержки в старых версиях Safari */
    -moz-hyphens: auto;    /* Для старых версий Firefox */
    overflow-wrap: break-word;
}

/* =========================
   TEXT SECTION
   ========================= */
.custom-section {
    padding: 30px 0;
    background-color: #ffffff;
}

.custom-section__title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
}

.custom-section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #0a97d9;
    margin: 20px auto 20px;
}

.custom-section__text {
    font-size: 1.2rem;
    color: #555;
    text-align: justify;
}

.custom-section__text--center {
    text-align: center;
}

/* =========================
   PHOTO SECTION 1
   ========================= */
.custom-photo-section {
    width: 100%;
    max-width: 1300px;
    padding: 30px 0;
    border-top: 0.5px solid #0a97d9;
    border-bottom: 0.5px solid #0a97d9;
    background-color: #ffffff;
    margin: 0 auto;
}

/* =========================
   PHOTO SECTION 2
   ========================= */
.custom-photo-section-2 {
    width: 100%;
    max-width: 1300px;
    padding: 20px 0;
    background-color: #ffffff;
    margin: 0 auto;
}

.custom-photo-section-2 p {
    margin-bottom: 2rem;
}

/* img-fluid override (оставляем как было) */
.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Контейнер для логотипов/картинок */
.image-container {
    height: 250px; /* фиксированная высота */
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain; /* Сохранение пропорций изображения */
}

/* Подписи */
.photo-caption {
    margin-top: 10px;
    color: #555;
}

.photo-caption--lg {
    font-size: 20px; /* было inline */
}

.photo-caption--sm {
    font-size: 16px; /* было inline */
}

/* Ширины картинок (были width="...") */
.custom-photo-section-2__img--w280 {
    width: 280px;
}

.custom-photo-section-2__img--w250 {
    width: 250px;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }

    .col-md-5 {
        margin-bottom: 20px;
    }
}
