/*
  В style_2min: .section-title { float:left; width:400px; text-align:right; … }
  Длинное слово без переноса рисуется поверх .section-description (margin-left), т.к. overflow у float по умолчанию visible.
*/
.container.page .row > [class*="col-"] {
  min-width: 0;
}

h2.section-title,
.section-title {
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: normal;
}

.little .section-title {
  max-width: 100%;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

/* Страница компании: логотип справа от описания (в пределах max-width темы) */
.sec-head-container .sec-head-style.little:has(.c_logo) {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(1.25rem, 2.5vw, 2rem);
  row-gap: 0.75rem;
}

.sec-head-container .sec-head-style.little:has(.c_logo) .section-title {
  float: none !important;
  width: auto !important;
  max-width: 400px;
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}

.sec-head-container .sec-head-style.little:has(.c_logo) .section-description {
  margin-left: 0 !important;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.sec-head-container .sec-head-style.little:has(.c_logo) .c_logo {
  clear: none;
  margin: 0;
  text-align: right;
  grid-column: 3;
  grid-row: 1;
  align-self: center;
}

.sec-head-container .sec-head-style.little:has(.c_logo) .c_logo .logotip {
  display: block;
  max-width: 140px;
  max-height: 72px;
  width: auto;
  height: auto;
}

@media (max-width: 767.98px) {
  .sec-head-container .sec-head-style.little:has(.c_logo) {
    grid-template-columns: 1fr;
    justify-items: stretch;
    column-gap: 0;
    row-gap: 1rem;
  }

  .sec-head-container .sec-head-style.little:has(.c_logo) .section-title {
    grid-column: 1;
    grid-row: 1;
    justify-self: stretch;
    text-align: left;
    max-width: none;
  }

  .sec-head-container .sec-head-style.little:has(.c_logo) .section-description {
    grid-column: 1;
    grid-row: 2;
  }

  .sec-head-container .sec-head-style.little:has(.c_logo) .c_logo {
    grid-column: 1;
    grid-row: 3;
    text-align: center;
  }
}

/* Карточка компании: один сабтайтл справа от названия (серый, обычный кегль, переносы строк) */
.sec-head-container .sec-head-style.little .company-page-subtitle {
  font-weight: 400;
  color: #4a4a4a;
  font-size: clamp(0.9375rem, 2.4vw, 1.0625rem);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
