/* Контейнер страницы статьи с такими же отступами как у breadcrumbs */
.article-page-container {
  width: 100%;
  max-width: 80rem; /* 1280px */
  padding: 0 100px;
  margin: 0 auto;
  box-sizing: border-box;
  padding-top: 30px;
}

/* Обертка для двухколоночного layout */
.article-page-wrapper {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 50px;
}

/* Левая колонка (50%) */
.article-main-column {
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* Правая колонка (50%) */
.article-sidebar-column {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Остальной контент на 100% ширины */
.article-content-fullwidth {
  width: 100%;
  max-width: 100%;
}

/* Блок 1: Изображение с заголовком и датой */
.article-header-image {
  background-image: url("/assets/images/news/oboznacheniye-trass-polietilenovykh-gazoprovodov.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 407px;
  padding: 0 85px 30px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
  border-radius: 5px;
  position: relative;
}

.article-header-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(20, 29, 48, 0.6) 0%, rgba(20, 29, 48, 0.6) 100%);
  border-radius: 5px;
  z-index: 0;
}

.article-header-content {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.article-header-title {
  font-weight: 700;
  font-size: 25px;
  color: #fff;
  padding: 0 0 20px 0;
  margin: 0;
}

.article-header-date {
  font-weight: 600;
  font-size: 16px;
  color: #fff;
}

/* Блок 2: Контент статьи */
.article-content-block {
  display: flex;
  flex-direction: column;
}

.article-content-block-spaced {
  padding-top: 35px;
}

/* Первый абзац в двухколоночном layout */
.article-first-paragraph {
  width: 100%;
}

/* Остальной контент на полную ширину */
.article-content-fullwidth {
  width: 100%;
  max-width: 100%;
  margin-top: 0;
}

.article-content-title {
  font-weight: 700;
  font-size: 22px;
  color: #152333;
  padding-bottom: 20px;
  margin: 0;
  display: none; /* Скрыт по требованию */
}

.article-content-text {
  font-weight: 500;
  font-size: 14px;
  color: #152333;
  line-height: 1.6;
}

/* Блок с изображением */
.article-image-block {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  width: 100%;
}

/* Блок с двумя изображениями в ряд */
.article-images-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  flex-wrap: wrap;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
}

.article-images-row .article-image {
  max-width: calc(50% - 10px);
  flex: 0 0 auto;
}

.article-image {
  max-width: 100%;
  height: auto;
  cursor: pointer;
  border-radius: 5px;
  transition: opacity 0.3s ease;
}

.article-image:hover {
  opacity: 0.9;
}

/* Модальное окно для полноэкранного просмотра */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.image-modal-content {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 5px;
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.3s ease;
  z-index: 10000;
}

.image-modal-close:hover {
  opacity: 0.7;
}

/* Правая колонка уже определена выше как 50% */

/* Заголовок "ДРУГИЕ СТАТЬИ" */
.sidebar-title {
  font-weight: 700;
  font-size: 22px;
  color: #152333;
}

/* Список статей */
.sidebar-articles {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Карточка статьи */
.sidebar-article-card {
  border: 1.5px solid rgba(145, 162, 184, 0.5);
  border-radius: 5px;
  padding: 30px 20px 20px 20px;
  display: flex;
  flex-direction: column;
}

.article-card-header {
  display: flex;
  flex-direction: row;
  margin-bottom: 15px;
  justify-content: space-between;
}

.article-card-title {
  font-weight: 700;
  font-size: 18px;
  color: #152333;
  margin: 0 0 10px 0;
}

.article-card-number {
  font-weight: 500;
  font-size: 16px;
  color: #152333;
  margin: 0;
}

.article-card-number-total {
  color: rgba(21, 35, 51, 0.4);
}

.article-card-description {
  font-weight: 500;
  font-size: 12px;
  color: #152333;
  padding-top: 15px;
  padding-bottom: 30px;
  margin: 0;
  line-height: 1.5;
}

.article-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-card-date {
  font-weight: 500;
  font-size: 16px;
  color: #3c3c3c;
  margin: 0;
}

.article-card-link {
  font-weight: 600;
  font-size: 16px;
  color: #152333;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: color 0.3s ease;
}

.article-card-link:hover {
  color: #e60012;
}

.article-card-link svg {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
}

/* Ссылка "Смотреть все статьи" */
.sidebar-view-all {
  font-weight: 600;
  font-size: 16px;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  color: #152333;
  display: flex;
  align-items: center;
  gap: 17px;
  transition: color 0.3s ease;
  justify-content: flex-end;
}

.sidebar-view-all:hover {
  color: #e60012;
}

.sidebar-view-all svg {
  flex-shrink: 0;
}

.article-content-title-padding {
  padding-top: 30px;
}

/* Планшет (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .article-page-container {
    width: 95%;
    max-width: 95%;
    padding: 0 1.5rem; /* 24px */
    padding-top: 20px;
  }
}

/* Мобильная версия (max-width: 768px) */
@media (max-width: 768px) {
  .article-page-container {
    width: 100%;
    padding: 0 0.625rem; /* 10px */
    margin: 0;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
  }

  .article-page-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    display: contents;
  }

  .article-main-column {
    width: 100%;
    order: 1;
  }

  .article-sidebar-column {
    width: 100%;
    gap: 25px;
    order: 3;
    padding-top: 50px;
  }

  .article-content-fullwidth {
    order: 2;
    width: 100%;
    padding: 0 10px;
  }

  .article-header-image {
    height: 300px;
    padding: 0 15px 15px 15px;
  }

  .article-header-title {
    font-weight: 700;
    font-size: 16px;
    color: #fff;
  }

  .article-header-date {
    font-weight: 600;
    font-size: 12px;
    color: #fff;
  }

  .article-main-column {
    gap: 30px;
  }
}
