/* ── Blog shell (header 72px + воздух) ── */
.prostohome-body.prostohome-single .prostohome-main,
.prostohome-body.prostohome-single .site-main,
.prostohome-body.prostohome-archive .prostohome-main {
  padding-top: clamp(112px, 14vw, 168px) !important;
  padding-bottom: clamp(96px, 12vw, 152px) !important;
}

/* ── Single post layout (WordPress content width pattern) ── */

.prostohome-single .prostohome-post__container {
  max-width: var(--ph-container-max, 1320px);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, var(--ph-container-x-max, 64px));
}

.prostohome-single .entry-header,
.prostohome-single .entry-content,
.prostohome-single .entry-footer {
  max-width: var(--ph-content-width, var(--wp--style--global--content-size, 840px));
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.prostohome-post__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--ph-tracking-caps-wide, 0.28em);
  text-transform: uppercase;
  color: var(--ph-text-subtle, #9a9a9a);
  margin-bottom: 16px;
  line-height: 1.65;
}

.prostohome-post__title,
.prostohome-single .entry-title {
  font-family: var(--ph-font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.prostohome-post__lead,
.prostohome-single .entry-summary {
  font-size: var(--ph-body-lg, 17px);
  line-height: 1.75;
  color: var(--ph-text-muted, #6b6b6b);
  margin-bottom: 32px;
}

.prostohome-single .post-thumbnail,
.prostohome-post__cover {
  display: block;
  margin: 0 0 40px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(20, 20, 20, 0.04);
}

.prostohome-post__cover-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ── Entry content typography ── */
.prostohome-single .entry-content {
  font-size: var(--ph-body, 16px);
  line-height: 1.72;
  letter-spacing: 0.012em;
  color: var(--ph-text, #141414);
}

.prostohome-single .entry-content > *:first-child {
  margin-top: 0;
}

.prostohome-single .entry-content p {
  margin: 0 0 1.15em;
}

.prostohome-single .entry-content h2 {
  font-family: var(--ph-font-display);
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 2.4em 0 0.75em;
  scroll-margin-top: 96px;
}

.prostohome-single .entry-content h3 {
  font-family: var(--ph-font-display);
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 1.8em 0 0.6em;
}

.prostohome-single .entry-content ul,
.prostohome-single .entry-content ol {
  margin: 0 0 1.15em 1.25em;
  padding: 0;
}

.prostohome-single .entry-content li {
  margin-bottom: 0.45em;
}

.prostohome-single .entry-content blockquote {
  margin: 1.5em 0;
  padding: 20px 24px;
  background: rgba(20, 20, 20, 0.04);
  border-left: 3px solid rgba(20, 20, 20, 0.18);
  font-family: var(--ph-font-body);
  font-style: normal;
  font-size: var(--ph-body-sm, 15px);
  line-height: 1.75;
}

.prostohome-single .entry-content blockquote p {
  margin-bottom: 0.5em;
}

.prostohome-single .entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.prostohome-single .entry-content a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prostohome-single .entry-content a:hover {
  opacity: 0.7;
}

.prostohome-single .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: var(--ph-body-sm, 15px);
}

.prostohome-single .entry-content th,
.prostohome-single .entry-content td {
  padding: 12px 14px;
  border: 1px solid rgba(20, 20, 20, 0.1);
  text-align: left;
  vertical-align: top;
}

.prostohome-single .entry-content th {
  font-family: var(--ph-font-display);
  font-weight: 700;
  background: rgba(20, 20, 20, 0.03);
}

.prostohome-single .entry-content figure {
  margin: 1.75em 0;
}

.prostohome-single .entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.prostohome-single .entry-content .inline-visual,
.prostohome-single .entry-content figure.inline-visual {
  margin: 1.75em 0;
}

/* WordPress alignwide / alignfull (block editor & classic) */
.prostohome-single .entry-content > .alignwide,
.prostohome-single .entry-content > figure.alignwide,
.prostohome-single .entry-content .wp-block-image.alignwide,
.prostohome-single .entry-content .wp-block-gallery.alignwide {
  max-width: var(--ph-wide-width, var(--wp--style--global--wide-size, 1200px));
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.prostohome-single .entry-content > .alignfull,
.prostohome-single .entry-content > figure.alignfull,
.prostohome-single .entry-content .wp-block-image.alignfull,
.prostohome-single .entry-content .wp-block-gallery.alignfull {
  max-width: none;
  width: calc(100vw - clamp(20px, 5vw, var(--ph-container-x-max, 64px)) * 2);
  margin-left: calc(50% - 50vw + clamp(20px, 5vw, var(--ph-container-x-max, 64px)));
  margin-right: calc(50% - 50vw + clamp(20px, 5vw, var(--ph-container-x-max, 64px)));
}

.prostohome-post__footer,
.prostohome-single .entry-footer {
  margin-top: clamp(48px, 8vw, 72px);
  margin-bottom: clamp(16px, 3vw, 32px);
  padding-top: 32px;
  border-top: 1px solid rgba(20, 20, 20, 0.08);
}

.prostohome-post__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--ph-label, 14px);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ph-text, #141414);
  text-decoration: none;
}

.prostohome-post__back svg {
  transform: rotate(180deg);
}

.prostohome-post__back:hover {
  opacity: 0.7;
}

/* ── Blog archive ── */
.prostohome-archive .article-archive.section {
  padding-top: 0;
  padding-bottom: 0;
}

.blog-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.blog-card__img {
  aspect-ratio: 16 / 9;
  background: #141414;
  overflow: hidden;
  line-height: 0;
}

.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.blog-card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ph-font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(20, 20, 20, 0.35);
  text-transform: lowercase;
}

.blog-card__excerpt {
  margin-top: 8px;
  font-size: var(--ph-body-sm, 15px);
  line-height: 1.6;
  color: var(--ph-text-muted, #6b6b6b);
}

.article-archive__empty {
  margin-top: 32px;
  color: var(--ph-text-muted, #6b6b6b);
}

.prostohome-archive .nav-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
  font-size: var(--ph-label, 14px);
}

.prostohome-archive .nav-links a,
.prostohome-archive .nav-links span {
  padding: 8px 14px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  text-decoration: none;
  color: inherit;
}

.prostohome-archive .nav-links .current {
  background: var(--ph-surface-dark, #0a0a0a);
  color: #fff;
  border-color: transparent;
}

@media (max-width: 640px) {
  .prostohome-single .entry-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
