body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(9, 42, 110, 0.06), transparent 28%),
    #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: 1200px;
  max-width: calc(100% - 64px);
  margin: 0 auto;
  padding: 42px 0 78px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 46px;
  color: var(--orange);
  font-weight: 700;
  font-size: 15px;
}

.post-head {
  margin-bottom: 48px;
}

.post-head h1 {
  margin: 0 0 34px;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -1.6px;
  font-weight: 900;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
  row-gap: 16px;
}

.author {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 270px;
}

.author > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.date-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange);
  position: relative;
}

.author-avatar::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  left: 18px;
  top: 11px;
}

.author-avatar::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 13px;
  border-radius: 14px 14px 0 0;
  background: white;
  left: 12px;
  top: 27px;
}

.author strong,
.date-item strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.author span,
.date-item span {
  display: block;
  margin-top: 5px;
  color: var(--gray);
  font-size: 14px;
}

.meta-divider {
  width: 1px;
  height: 48px;
  background: #d8d8d8;
}

.post-status {
  font-size: 13px;
}

.status-approved {
  color: #007a2f;
}

.status-rejected {
  color: #920000;
}

.status-pending {
  color: var(--orange);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 770px) 370px;
  gap: 34px;
  align-items: start;
}

.content-column,
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.card,
.post-image-card,
.map-card,
.side-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.card {
  padding: 28px 30px;
}

.card h2,
.map-section h2 {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 900;
}

.card p {
  margin: 0 0 18px;
  color: var(--gray-dark);
  line-height: 1.75;
  font-size: 16px;
}

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

.post-image-card {
  overflow: hidden;
}

.post-image-card img {
  display: block;
  width: 100%;
  height: 390px;
  object-fit: cover;
}

.map-section {
  padding: 12px 0 0;
}

.map-card {
  position: relative;
  height: 520px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(170, 213, 235, 0.65), rgba(240, 246, 248, 0.9)),
    #dcebf2;
}

.map-visual {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 45%, rgba(9, 42, 110, 0.88) 0 3%, transparent 13%),
    radial-gradient(circle at 34% 55%, rgba(255, 148, 43, 0.7) 0 3%, transparent 12%),
    radial-gradient(circle at 51% 47%, rgba(255, 196, 72, 0.58) 0 2%, transparent 12%),
    radial-gradient(circle at 68% 58%, rgba(255, 173, 37, 0.48) 0 2%, transparent 10%),
    linear-gradient(20deg, transparent 0 20%, rgba(255, 255, 255, 0.6) 20% 24%, transparent 24%),
    linear-gradient(155deg, transparent 0 34%, rgba(255, 255, 255, 0.5) 34% 38%, transparent 38%),
    #dcebf2;
}

.map-visual::before {
  content: "";
  position: absolute;
  inset: 85px 35px 80px 40px;
  background: rgba(255, 241, 188, 0.75);
  clip-path: polygon(5% 55%, 20% 30%, 34% 42%, 47% 25%, 60% 36%, 75% 28%, 96% 45%, 82% 68%, 61% 60%, 45% 72%, 27% 64%);
}

.map-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px);
  background-size: 42px 42px;
}

.heat {
  position: absolute;
  border-radius: 50%;
  background: var(--orange);
  filter: blur(10px);
  opacity: 0.8;
  z-index: 2;
}

.heat-1 { width: 130px; height: 80px; left: 150px; top: 260px; }
.heat-2 { width: 90px; height: 60px; left: 230px; top: 315px; opacity: 0.65; }
.heat-3 { width: 75px; height: 48px; left: 380px; top: 275px; opacity: 0.45; }
.heat-4 { width: 70px; height: 42px; right: 210px; top: 320px; opacity: 0.42; }
.heat-5 { width: 60px; height: 38px; right: 95px; top: 250px; opacity: 0.36; }

.map-toolbar {
  position: absolute;
  z-index: 4;
  left: 18px;
  top: 18px;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.map-toolbar button,
.layers-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: #fff;
  font-size: 25px;
  font-weight: 700;
  cursor: pointer;
  display: block;
}

.map-toolbar button + button {
  border-top: 1px solid #e5e5e5;
}

.layers-btn {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.legend {
  position: absolute;
  z-index: 4;
  left: 20px;
  bottom: 22px;
  width: 145px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  font-size: 12px;
}

.legend strong {
  display: block;
  margin-bottom: 9px;
  line-height: 1.3;
}

.legend div {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
}

.legend i {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.l1 { background: #fff5c4; }
.l2 { background: #ffe36b; }
.l3 { background: #ffc433; }
.l4 { background: #ff8b1a; }
.l5 { background: #ef4d0a; }
.l6 { background: #c90000; }

.scale {
  position: absolute;
  z-index: 4;
  right: 25px;
  bottom: 22px;
  padding: 3px 28px;
  border-bottom: 2px solid #111;
  border-left: 2px solid #111;
  border-right: 2px solid #111;
  background: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.side-card {
  padding: 28px;
}

.side-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.side-head span,
.info-list dt {
  color: var(--gray);
  font-size: 14px;
}

.side-head h3 {
  margin: 6px 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.side-head p {
  margin: 0;
  color: var(--gray-dark);
  line-height: 1.55;
}

.side-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.side-title h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.side-icon,
.mini-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  flex: 0 0 38px;
  border-radius: 8px;
  background: var(--orange);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-icon svg,
.mini-icon svg {
  width: 20px;
  height: 20px;
  fill: none !important;
  stroke: #ffffff !important;
  color: #ffffff !important;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 35px;
  padding: 8px 15px;
  border: 1px solid var(--orange);
  border-radius: 8px;
  color: #282828;
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
}

.info-list {
  margin: 0;
}

.info-list div {
  margin-bottom: 22px;
}

.info-list div:last-child {
  margin-bottom: 0;
}

.info-list dt {
  margin: 0;
}

.info-list dd {
  margin: 7px 0 0;
  color: var(--black);
  font-weight: 600;
}

.info-list.compact div {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 18px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.info-list.compact div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.info-list.compact dt,
.info-list.compact dd {
  margin: 0;
  line-height: 1.4;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  margin-top: 26px;
  border-radius: 8px;
  border: 1px solid var(--orange);
  background: #fff;
  color: var(--orange);
  font-weight: 900;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.download-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--orange);
  transition: width 0.45s ease;
  z-index: -1;
}

.download-btn:hover::before {
  width: 100%;
}

.download-btn:hover {
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.55s ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 0.05s;
}

.reveal:nth-child(3) {
  animation-delay: 0.1s;
}

.reveal:nth-child(4) {
  animation-delay: 0.15s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .page {
    max-width: calc(100% - 28px);
    padding-top: 32px;
  }

  .post-head h1 {
    font-size: 34px;
  }

  .post-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .meta-divider {
    display: none;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .post-image-card img {
    height: 260px;
  }

  .map-card {
    height: 430px;
  }

  .info-list.compact div {
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: start;
  }
}
/* Список файлов: компактные отступы между кнопками */
.files-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
}
.files-list .download-btn {
  margin-top: 0;
}

/* Кнопка «Скачать всё архивом» — основное действие, залита акцентом */
.download-btn--archive {
  margin-top: 12px;
  background: var(--orange);
  color: #fff;
}
.download-btn--archive::before {
  background: #fff;
}
.download-btn--archive:hover {
  color: var(--orange);
}
