:root {
  --page-ink: #12231a;
  --page-text: #455449;
  --page-muted: #69786c;
  --page-paper: #fffdf8;
  --page-soft: #f3f8f0;
  --page-green: #245b39;
  --page-green-2: #6ca56b;
  --page-gold: #d99a3d;
  --page-blue: #e7f2f3;
  --page-line: rgba(18, 35, 26, 0.1);
  --page-shadow: 0 22px 70px rgba(32, 63, 43, 0.1);
}

body {
  background: var(--page-paper);
  color: var(--page-ink);
  padding-top: 0;
}

.post-page {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0) 0, #fffdf8 620px),
    var(--page-paper);
}

.post-banner {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #dfeadd;
}

.post-banner__image,
.post-banner__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.post-banner__image {
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.post-banner__overlay {
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(10, 34, 18, 0.72),
      rgba(10, 34, 18, 0.3) 56%,
      rgba(10, 34, 18, 0.05)
    ),
    linear-gradient(0deg, rgba(10, 34, 18, 0.5), rgba(10, 34, 18, 0.02) 55%);
}

.post-banner__content {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 150px 0 76px;
}

.post-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffe1aa;
  font:
    700 13px/1 "Montserrat",
    sans-serif;
  backdrop-filter: blur(12px);
  animation: postUp 0.7s ease both;
}

.post-title {
  margin: 18px 0 0;
  color: #fff;
  font:
    800 58px/1.04 "Montserrat",
    sans-serif;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  animation: postUp 0.78s 0.08s ease both;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
  animation: postUp 0.78s 0.16s ease both;
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.post-main {
  padding: 54px 0 96px;
}

.post-shell {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: var(--page-muted);
  font-size: 14px;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--page-muted);
}

.breadcrumbs a {
  color: var(--page-green);
  font-weight: 800;
  text-decoration: none;
}

.post-content,
.like-section,
.comments-section {
  border: 1px solid var(--page-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(32, 63, 43, 0.08);
}

.post-content {
  overflow: hidden;
  padding: 38px;
}

.post-text {
  color: var(--page-text);
  font-size: 18px;
  line-height: 1.82;
}

.post-text > *:first-child {
  margin-top: 0;
}

.post-text > *:last-child {
  margin-bottom: 0;
}

.post-text h2,
.post-text h3,
.post-text h4 {
  color: var(--page-ink);
  font-family: "Montserrat", sans-serif;
  line-height: 1.2;
}

.post-text h2 {
  margin: 34px 0 16px;
  font-size: 32px;
}

.post-text h3 {
  margin: 28px 0 14px;
  font-size: 26px;
}

.post-text p {
  margin: 0 0 18px;
}

.post-text a {
  color: var(--page-green);
  font-weight: 800;
}

.post-text img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 26px auto;
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(32, 63, 43, 0.1);
}

.video-wrapper {
  overflow: hidden;
  margin: 28px 0;
  border-radius: 18px;
  background: #111;
  box-shadow: var(--page-shadow);
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.like-section {
  margin-top: 26px;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.like-btn,
.btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--page-green);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.like-btn:hover,
.btn:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  background: #1c4a2f;
  color: #fff;
  box-shadow: 0 18px 45px rgba(36, 91, 57, 0.2);
}

.like-btn.is-liked {
  background: #d65b5b;
}

.likes-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--page-muted);
  font-weight: 900;
}

.likes-count i {
  color: #d65b5b;
}

.comments-section {
  margin-top: 26px;
  padding: 34px;
}

.comments-title {
  margin: 0 0 24px;
  color: var(--page-green);
  font:
    800 30px/1.2 "Montserrat",
    sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-form {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--page-line);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #f7fbf5);
  margin-bottom: 28px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  color: var(--page-ink);
  font-weight: 900;
}

.form-control {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid var(--page-line);
  border-radius: 14px;
  background: #fff;
  color: var(--page-ink);
  font: inherit;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-control:focus {
  outline: none;
  border-color: rgba(36, 91, 57, 0.42);
  box-shadow: 0 0 0 4px rgba(36, 91, 57, 0.1);
}

.comment-message {
  display: none;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 800;
}

.comment-message.is-visible {
  display: block;
}

.comment-message.success {
  background: rgba(108, 165, 107, 0.14);
  color: var(--page-green);
}

.comment-message.error {
  background: rgba(214, 91, 91, 0.12);
  color: #9d2f2f;
}

.comment-list {
  display: grid;
  gap: 14px;
}

.comment {
  padding: 18px;
  border: 1px solid var(--page-line);
  border-radius: 16px;
  background: #fff;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.comment-author,
.comment-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.comment-author {
  color: var(--page-green);
  font-weight: 900;
}

.comment-date {
  color: var(--page-muted);
}

.comment-text {
  color: var(--page-text);
  line-height: 1.7;
}

.comment-replies {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-left: 18px;
  border-left: 3px solid rgba(36, 91, 57, 0.14);
}

.comment-reply {
  padding: 14px;
  border-radius: 14px;
  background: var(--page-soft);
}

.empty-comments {
  margin: 0;
  padding: 18px;
  border-radius: 16px;
  background: var(--page-soft);
  color: var(--page-muted);
  text-align: center;
  font-weight: 800;
}

.back-actions {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

@keyframes postUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@media (max-width: 768px) {
  .post-banner__content,
  .post-shell {
    width: min(100% - 28px, 980px);
  }

  .post-banner {
    min-height: 430px;
  }

  .post-banner__content {
    padding: 122px 0 52px;
  }

  .post-title {
    font-size: 38px;
  }

  .post-main {
    padding: 42px 0 72px;
  }

  .post-content,
  .comments-section {
    padding: 24px;
  }

  .post-text {
    font-size: 16px;
  }

  .like-section {
    align-items: stretch;
  }

  .like-btn,
  .btn,
  .btn-primary {
    width: 100%;
  }
}
