/* =========================================================
   Архив «Отправления»
   ========================================================= */
.otpravleniya-archive {
  padding: 24px 0 48px;
}

.otpravleniya-archive .page-title {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 600;
}

.op-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.op-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s;
}

.op-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.op-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.op-card__thumb {
  aspect-ratio: 4/3;
  background: #f3f4f6;
}

.op-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.op-card__title {
  font-size: 18px;
  line-height: 1.25;
  margin: 12px 12px 8px;
}

.op-card__excerpt {
  margin: 0 12px 12px;
  color: #666;
  font-size: 14px;
}

.pagination {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 8px 10px;
  margin: 0 4px;
  border: 1px solid #eee;
  border-radius: 8px;
  text-decoration: none;
}

.pagination .current {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* ≥768px две колонки, ≥1024px три для карточек архива */
@media (min-width:768px) {
  .op-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width:1024px) {
  .op-grid { grid-template-columns: repeat(3, 1fr); }
}


/* =========================================================
   Single «Отправление»
   ========================================================= */

/* Заголовок */
.op-entry__title {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
}

@media (min-width:768px) {
  .op-entry__title { font-size: 40px; }
}

/* Контент в правой колонке */
.op-entry__content {
  font-size: 16px;
  line-height: 1.7;
  color: #222;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.op-entry__content p { margin: 0 0 1em; }
.op-entry__content h2 { font-size: 22px; margin: 1.2em 0 .6em; }
.op-entry__content ul { padding-left: 1.2em; margin: .6em 0 1em; }

/* Главное фото слева */
.op-entry__thumb {
  margin: 12px 0 20px;
  background: #f3f4f6;
  border-radius: 12px;
  overflow: hidden;
}

.op-entry__thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* Макет колонок */
.op-entry__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width:1024px) {
  .op-entry__layout {
    grid-template-columns: 65% calc(35% - 32px);
    align-items: start;
    column-gap: 32px;
  }
  /* критично для грид-детей — не даём тексту обрезаться/выталкивать сетку */
  .op-entry__left,
  .op-entry__right {
    min-width: 0;
  }
  .op-entry__thumb { margin: 0; }
}

.op-entry__gallery {
  margin-top: 20px; /* расстояние между главным и нижними фото */
}

/* Галерея под главным фото (левая колонка) */
.op-entry__gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.op-entry__gallery-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Медиа внутри правой колонки не шире колонки */
.op-entry__right img,
.op-entry__right iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Единый радиус для всех фото */
.otpravlenie-single { --op-radius: 12px; }

.otpravlenie-single .op-entry__thumb,
.otpravlenie-single .op-entry__gallery-img,
.otpravlenie-single .op-entry__content img {
  border-radius: var(--op-radius);
  overflow: hidden;
}

/* =========================================================
   Карта (ширина как у контентного контейнера)
   ========================================================= */
.op-entry__map-full {
  margin-top: 40px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.op-entry__map-full iframe {
  display: block;
  width: 100%;
  height: 535px;
  border: none;
  border-radius: 12px;
}
