@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

.traumodule-container {
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 400;
}

.traumodule-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: nowrap;
}

.traumodule-image {
  width: 405px;
  height: 590px;
  object-fit: cover;
  flex-shrink: 0;
}

.traumodule-content {
  flex: 1;
  text-align: left;
}

.traumodule-title {
  font-size: 2em;
  color: #fff;
  background-color: #b83012;
  padding: 40px 20px; /* Добавил горизонтальные паддинги, чтобы не было лишнего */
  margin: 0 0 20px 0;
  text-transform: uppercase;
  font-weight: 400;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 768px) {
  .traumodule-title {
    padding: 20px 15px; /* поменьше паддинги на мобиле */
    margin: 0 15px 20px 15px; /* добавил горизонтальные отступы, чтобы не упирался в край */
    box-sizing: border-box;
  }
}


.traumodule-subtitle {
  font-style: italic;
  margin-bottom: 20px;
  color: #555;
}

.traumodule-text p {
  margin: 0 0 20px 0;
  line-height: 1.6;
  text-transform: none; /* ✅ убираем верхний регистр */
}

.traumodule-text p:first-child {
  font: 400 20px 'Roboto', sans-serif;
  color: #333;
  text-align: left;
  text-transform: none;
  margin: 0 0 20px 0;
  line-height: 1.6; /* ✅ Добавляем для читаемости */
}



.traumodule-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .traumodule-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .traumodule-image {
    width: 100%;
    height: auto;
  }

  .traumodule-title {
    padding: 20px;
  }
}