/* ============================
   О военкомате — изображения (T34)
   ============================ */

/* ---------- Фото здания в шапке ---------- */
.ab-photo {
  flex: 0 0 auto; width: min(380px, 100%);
  margin: 0; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 16px 36px rgba(8, 33, 54, .28);
  background: #fff;
}
.ab-photo img { display: block; width: 100%; height: 220px; object-fit: cover; }
.ab-photo figcaption {
  padding: 10px 14px; font-size: .8rem; font-weight: 600;
  color: var(--c-muted, #5a6a7e); background: #fff;
}
@media (max-width: 860px) { .ab-photo { width: 100%; } .ab-photo img { height: 200px; } }

/* ---------- Задачи: карточки с фото-шапкой ---------- */
.ab-tasks {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.ab-task {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--c-line, #dfe4ec); border-radius: 18px;
  box-shadow: 0 10px 26px rgba(8, 33, 54, .09);
  transition: transform .18s ease, box-shadow .18s ease;
}
.ab-task:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(8, 33, 54, .15); }
.ab-task__img { position: relative; height: 150px; overflow: hidden; background: #e7edf4; }
.ab-task__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.ab-task:hover .ab-task__img img { transform: scale(1.05); }
.ab-task__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.ab-task__body h3 { margin: 0; font-size: 1.02rem; display: flex; align-items: center; gap: 8px; }
.ab-task__body h3 .h-ico { color: var(--c-primary, #1f5590); }
.ab-task__body p { margin: 0; font-size: .9rem; color: var(--c-muted, #5a6a7e); line-height: 1.5; }
@media (max-width: 1100px) { .ab-tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ab-tasks { grid-template-columns: 1fr; } .ab-task__img { height: 170px; } }

/* ---------- Руководство: фото + карточки + гербы ---------- */
.ab-leaders {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 22px;
  align-items: stretch;
}
.ab-leaders__photo {
  position: relative; margin: 0; border-radius: 18px; overflow: hidden;
  box-shadow: 0 14px 34px rgba(8, 33, 54, .14);
  min-height: 300px;
}
.ab-leaders__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ab-leaders__photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 26px 18px 12px; font-size: .8rem; color: rgba(255, 255, 255, .9);
  background: linear-gradient(180deg, transparent, rgba(6, 24, 40, .72));
}
.ab-leaders__side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ab-leaders__side .contact-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.ab-leaders__gerbs {
  display: flex; align-items: center; gap: 16px; margin-top: auto;
  background: #fff; border: 1px solid var(--c-line, #dfe4ec); border-radius: 14px;
  padding: 12px 16px;
}
.ab-leaders__gerbs img { height: 44px; width: auto; display: block; }
.ab-leaders__gerbs span { font-size: .8rem; color: var(--c-muted, #5a6a7e); line-height: 1.4; }
@media (max-width: 900px) {
  .ab-leaders { grid-template-columns: 1fr; }
  .ab-leaders__photo { min-height: 220px; }
}

/* ---------- Районы: панорама + карточки ---------- */
.ab-panorama {
  position: relative; margin: 0 0 -56px; border-radius: 18px; overflow: hidden;
  box-shadow: 0 14px 34px rgba(8, 33, 54, .14);
}
.ab-panorama img { display: block; width: 100%; height: clamp(200px, 26vw, 340px); object-fit: cover; }
.ab-panorama figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 30px 20px 12px; font-size: .82rem; color: rgba(255, 255, 255, .9);
  background: linear-gradient(180deg, transparent, rgba(6, 24, 40, .7));
}
.ab-districts {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  padding: 0 18px;
}
@media (max-width: 900px) { .ab-districts { grid-template-columns: 1fr; padding: 0 12px; } }

/* ---------- Официальные данные: таблица + карточка ---------- */
.ab-data {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 22px;
  align-items: start;
}
.ab-data .table-wrap { margin-top: 0; }
.ab-side {
  background: #fff; border: 1px solid var(--c-line, #dfe4ec); border-radius: 18px;
  padding: 22px; box-shadow: 0 10px 26px rgba(8, 33, 54, .09);
  display: flex; flex-direction: column; gap: 12px;
  position: sticky; top: 20px;
}
.ab-side h3 { margin: 0; font-size: 1.05rem; }
.ab-side__row { display: flex; gap: 10px; font-size: .92rem; color: var(--c-muted, #5a6a7e); line-height: 1.5; }
.ab-side__row .ico { color: var(--c-primary, #1f5590); flex: 0 0 auto; margin-top: 2px; }
.ab-side__row a { font-weight: 700; }
.ab-side__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.ab-side__btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  border-radius: 10px; font-weight: 700; font-size: .9rem; text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}
.ab-side__btn--fill { background: #1f5590; color: #fff; }
.ab-side__btn--fill:hover { background: #16406e; transform: translateY(-2px); }
.ab-side__btn--line { background: #fff; color: #1f5590; border: 1px solid #b9c8dd; }
.ab-side__btn--line:hover { border-color: #1f5590; transform: translateY(-2px); }
@media (max-width: 960px) {
  .ab-data { grid-template-columns: 1fr; }
  .ab-side { position: static; }
}
