/* Single post (новина) - layout + flexible blocks */

/* Hero */
.post-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 3.5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  color: var(--white);
}
.post-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239CC4EE' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.post-hero__inner {
  position: relative; z-index: 1;
  max-width: 920px; margin: 0 auto;
}
.post-hero__breadcrumb {
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  margin-bottom: .75rem;
}
.post-hero__breadcrumb a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
}
.post-hero__breadcrumb a:hover { color: var(--white); }
.post-hero__breadcrumb span { margin: 0 .35rem; opacity: .55; }
.post-hero__cat {
  display: inline-block;
  padding: .2rem .7rem;
  background: var(--gold);
  color: var(--navy);
  border-radius: var(--r-pill);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.post-hero__title {
  font-family: var(--font-h);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: .65rem;
}
.post-hero__meta {
  font-size: .85rem;
  color: rgba(255,255,255,.75);
}

/* Layout */
.post-wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 960px) {
  .post-wrap { grid-template-columns: 1fr; }
}

.post-article {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 2rem 2.25rem;
  box-shadow: var(--sh-sm);
}

.post-article__hero {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--r-sm);
  margin-bottom: 1.5rem;
  background: var(--warm-gray);
}

.post-article__content {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.78;
}

.post-aside {
  position: sticky;
  top: 6rem;
  display: flex; flex-direction: column;
  gap: 1.25rem;
}
@media (max-width: 960px) {
  .post-aside { position: static; }
}

.post-aside__card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.25rem;
}

.post-aside__title {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--navy-mid);
  margin-bottom: .85rem;
  font-weight: 700;
}

.post-aside ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-aside li + li { margin-top: .15rem; }

.post-aside a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .45rem .65rem;
  font-size: .9rem;
  color: var(--text);
  border-radius: var(--r-sm);
  transition: background .2s, color .2s;
  text-decoration: none;
}

.post-aside a:hover {
  background: var(--white);
  color: var(--navy);
}

.post-related {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.post-related h2 {
  font-family: var(--font-h);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.post-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.post-related__card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
  text-decoration: none;
  color: inherit;
}

.post-related__card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

.post-related__img {
  aspect-ratio: 16 / 10;
  background: var(--warm-gray) center / cover no-repeat;
}

.post-related__body {
  padding: .85rem;
}

.post-related__body time {
  font-size: 0.72rem;
  color: var(--text-light);
}

.post-related__body h3 {
  font-size: 0.95rem;
  font-family: var(--font-h);
  margin-top: 0.35rem;
  color: var(--navy);
}

/* Flexible blocks */
.post-layout > * + * { margin-top: 1.75rem; }
.post-layout__text { line-height: 1.75; }
.post-layout__text p { margin-bottom: 1rem; }
.post-layout__text h2,
.post-layout__text h3 {
  font-family: var(--font-h);
  color: var(--navy);
  margin: 1.5rem 0 0.75rem;
}
.post-layout__text ul,
.post-layout__text ol { margin: 0 0 1rem 1.25rem; }

.post-layout__figure { margin: 0; }
.post-layout__figure img { width: 100%; border-radius: var(--r-sm); }
.post-layout__figure figcaption {
  font-size: 0.85rem; color: var(--text-mid); margin-top: 0.5rem;
}

.post-layout__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
}
.post-layout__gal-item { cursor: pointer; display: block; }
.post-layout__gal-item img {
  width: 100%; height: 120px; object-fit: cover;
  border-radius: var(--r-sm); pointer-events: none;
}

.post-layout__quote {
  margin: 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--gold);
  background: var(--cream);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-style: italic;
}
.post-layout__quote p { margin: 0 0 0.5rem; }
.post-layout__quote cite {
  font-size: 0.88rem; font-style: normal; color: var(--text-mid);
}

.post-layout__video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  background: #000;
}
.post-layout__video iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: 0;
}
