/* ===== Отдельная статья ===== */

.container--narrow {
  max-width: 780px;
}

.post__head {
  padding: 28px 0 32px;
}

.post__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.post__category {
  padding: 5px 12px;
  border-radius: var(--pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post__head h1 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  margin-bottom: 18px;
}

.post__lead {
  font-size: 1.16rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Картинка в шапке шире колонки текста — она задаёт масштаб странице.
   Пропорции заданы явно, поэтому при загрузке ничего не подпрыгивает. */
.post__hero {
  margin: 0 0 clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-alt);
  aspect-ratio: 1896 / 830;
}

.post__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 620px) {
  .post__hero {
    border-radius: var(--radius);
    /* На узком экране широкий кадр превращается в полоску —
       подрезаем его до более спокойных пропорций. */
    aspect-ratio: 3 / 2;
  }
}

.post__body {
  font-size: 1.04rem;
  line-height: 1.78;
  padding-bottom: 24px;
}

.post__body h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 44px 0 16px;
}

.post__body h3 {
  font-size: 1.28rem;
  margin: 32px 0 12px;
}

.post__body p {
  margin: 0 0 1.15em;
}

.post__body ul,
.post__body ol {
  margin: 0 0 1.4em;
  padding-left: 0;
}

.post__body li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}

.post__body ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.post__body ol {
  counter-reset: item;
}

.post__body ol li {
  counter-increment: item;
}

.post__body ol li::before {
  content: counter(item) '.';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9em;
}

.post__body strong {
  font-weight: 600;
  color: var(--ink);
}

.post__body blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1rem;
  color: var(--muted);
}

.post__body blockquote p:last-child {
  margin: 0;
}

.post__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.92rem;
}

.post__body th,
.post__body td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.post__body th {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.post__body .table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}

.post__outro {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.post__outro h2 {
  margin-top: 0;
}

/* ---------- Призывы к действию ---------- */

.cta {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.cta--inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  margin: 32px 0 36px;
  flex-wrap: wrap;
  border-left: 3px solid var(--accent);
}

.cta__title {
  font-weight: 700;
  margin: 0 0 4px;
  font-size: 1rem;
}

.cta__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cta--wide {
  margin-top: 40px;
  padding: clamp(28px, 4vw, 44px);
  background: linear-gradient(135deg, #0d6b51 0%, #073f30 100%);
  border: 0;
  color: #fff;
}

.cta--wide h2 {
  color: #fff;
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.cta__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  margin: 0 0 12px;
}

.cta--wide .cta__text {
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 24px;
  max-width: 52ch;
}

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

.cta--wide .btn--primary {
  background: #fff;
  color: var(--accent);
}

.cta--wide .btn--primary:hover {
  background: var(--accent-soft);
}

.cta--wide .btn--ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.cta--wide .btn--ghost:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
