@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');

:root {
  --posts-bg: #f4f7fb;
  --posts-card: #ffffff;
  --posts-ink: #1e3e81;
  --posts-muted: #51534a;
  --posts-accent: #1ec8e0;
  --posts-accent-strong: #73b73b;
  --posts-accent-soft: #91d6ac;
  --font-display: "Mont", "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-body: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* { box-sizing: border-box; }

body.page-posts {
  margin: 0;
  font-family: var(--font-body);
  background: #f7f7f4;
  color: var(--posts-ink);
  overflow-x: hidden;
}

.posts-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 56px;
  width: 100%;
  min-width: 0;
}

.posts-head {
  padding: 138px 0 28px;
}

.posts-head__content {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.posts-head h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--posts-accent-strong);
  text-wrap: balance;
  font-family: var(--font-display);
}

.posts-list-shell {
  max-width: 1120px;
  margin: 18px auto 0;
  padding: 30px 28px;
  border: 1.5px solid rgba(30, 200, 224, 0.75);
  border-radius: 28px;
  background: #f8f8f5;
  box-shadow: 0 16px 34px rgba(30, 62, 129, 0.06);
  width: 100%;
  min-width: 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.posts-loadmore {
  display: flex;
  justify-content: center;
  padding-top: 28px;
}

.posts-loadmore__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 164px;
  padding: 12px 26px;
  border: 1px solid rgba(30, 62, 129, 0.55);
  border-radius: 999px;
  background: #ffffff;
  color: var(--posts-accent-strong);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-style: italic;
  font-weight: 700;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.posts-loadmore__button:hover {
  background: rgba(30, 200, 224, 0.08);
  transform: translateY(-1px);
}

.post-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: start;
  gap: 34px;
  min-height: 0;
  padding: 30px 0;
  transition: transform 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.post-card--no-image {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.post-card:hover {
  transform: translateY(-2px);
}

.post-card + .post-card {
  border-top: 1px solid rgba(115, 183, 59, 0.24);
}

.post-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(81, 83, 74, 0.16);
}

.post-card__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 10px 0 0;
  min-width: 0;
}

.post-card--no-image .post-card__body {
  padding-top: 0;
  max-width: none;
  width: 100%;
}

.post-card--no-image .post-card__body p {
  max-width: 58ch;
}

.post-meta {
  font-size: 0.88rem;
  color: var(--posts-muted);
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-weight: 400;
}

.post-card h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3vw, 2.1rem);
  line-height: 1.25;
  color: var(--posts-accent);
  font-family: var(--font-body);
  font-weight: 700;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.post-card p {
  margin: 0 0 18px;
  color: var(--posts-muted);
  line-height: 1.4;
  font-family: var(--font-body);
  font-size: 1rem;
  max-width: 58ch;
}

.post-link {
  color: var(--posts-accent-strong);
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-body);
  font-style: italic;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  padding: 5px 14px;
  border: 1px solid rgba(30, 62, 129, 0.55);
  border-radius: 999px;
  font-size: 0.92rem;
  line-height: 1;
}

.post-link:hover {
  text-decoration: none;
  background: rgba(30, 200, 224, 0.08);
}

.post-detail {
  background: var(--posts-card);
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  overflow: hidden;
  margin-top: 112px;
}

.post-detail__cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #e2e8f0;
}

.post-detail__body {
  padding: 22px;
}

.post-detail__title {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--posts-ink);
  font-family: var(--font-display);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.post-detail__meta {
  color: var(--posts-muted);
  margin: 0 0 16px;
  font-size: 14px;
  font-family: var(--font-body);
}

.post-detail__back {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-bottom: 14px;
  text-decoration: none;
  color: var(--posts-accent-strong);
  font-weight: 700;
  font-family: var(--font-display);
}

.post-mod h1, .post-mod h2, .post-mod h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  color: var(--posts-ink);
}

.post-mod h2.post-mod__subtitle {
  margin: 20px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--posts-accent-strong);
}

.post-mod p {
  line-height: 1.65;
  margin: 0 0 14px;
  font-family: var(--font-body);
}

.post-detail__body .post-mod p {
  margin-bottom: 22px;
}

.post-detail__body .post-mod br + br {
  display: block;
  content: "";
  margin-top: 22px;
}
.post-mod ul, .post-mod ol { margin: 0 0 14px; padding-inline-start: 22px; }

.post-empty {
  margin-top: 18px;
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  padding: 18px;
}

.posts-footer-band {
  margin-top: 64px;
  background: #51534a;
  color: #ffffff;
}

.posts-footer-band__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  align-items: center;
}

.posts-footer-band__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.posts-footer-band__media img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}

.posts-footer-band__contact p {
  margin: 0 0 22px;
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.28;
  font-weight: 700;
  max-width: 26ch;
}

.posts-footer-band__contact a {
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
}

.posts-footer-band__links {
  margin: 0;
  padding-left: 22px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.9;
  font-weight: 700;
}

.posts-footer-band__links li::marker {
  color: #ffffff;
}

@media (max-width: 980px) {
  .post-card {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 24px;
  }
  .posts-footer-band__inner {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .posts-footer-band__links {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: 1fr; }
  .posts-list-shell {
    padding: 18px 16px;
    border-radius: 20px;
  }
  .post-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px 0;
  }
  .post-card img {
    max-width: 220px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
  }
  .post-card__body {
    padding: 0;
  }
  .post-link {
    align-self: flex-start;
  }
  .posts-wrap { padding: 0 14px 28px; }
  .posts-head {
    padding: 120px 0 18px;
  }
  .posts-head__content {
    max-width: 100%;
  }
  .posts-footer-band {
    margin-top: 40px;
  }
  .posts-footer-band__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 18px 34px;
    text-align: center;
  }
  .posts-footer-band__media img {
    width: 96px;
    height: 96px;
  }
  .posts-footer-band__contact p {
    max-width: none;
    margin-bottom: 14px;
  }
  .posts-footer-band__links {
    text-align: left;
    justify-self: center;
  }
  .post-detail__cover { height: auto; }
  .post-detail { margin-top: 104px; }
  .post-detail__body { padding: 16px; }
}
