.post-hero__title { overflow-wrap: break-word; hyphens: manual; }
@media (max-width: 480px) { .post-hero__title { font-size: 23px; } }
.eyebrow__link { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.eyebrow__link:hover { border-bottom-color: currentColor; }

.post--layout .wrap.post-layout { max-width: 820px; }
.post-aside { display: none; }
.post-main { min-width: 0; }
@media (min-width: 1200px) {
  .post--layout .wrap.post-layout { max-width: var(--wrap); display: grid; grid-template-columns: minmax(0, 760px) 300px; gap: 64px; justify-content: space-between; }
  .post-aside { display: block; }
  .post-aside__sticky { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 18px; max-height: calc(100vh - 160px); overflow-y: auto; padding-bottom: 8px; }
  .post-toc--inline { display: none; }
  .post-hero .wrap.post-wrap { max-width: var(--wrap); }
  .post-hero .wrap.post-wrap > * { max-width: 760px; }
}

.post .post-def { margin-top: 0; font-size: 18px; color: var(--ink-3); border-left: 3px solid var(--brand); padding-left: 16px; }

.post-summary { margin-top: 20px; background: var(--brand-tint); border: 1px solid var(--brand-line); border-radius: 14px; padding: 18px 22px 20px; }
.post-def + .post-summary { margin-top: 24px; }
.post-main > .post-summary:first-child { margin-top: 0; }
.post .post-summary__title { margin-top: 0; font-family: var(--mono); font-size: 12.5px; color: var(--brand-dark); letter-spacing: 0.02em; text-transform: uppercase; }
.post .post-summary ul { margin: 8px 0 0 20px; }
.post .post-summary li { font-size: 16.5px; color: var(--ink-3); }

.post-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.post .post-toc ol { margin: 0; }
.post-toc li { counter-increment: toc; }
.post .post-toc li { margin-top: 0; font-size: 15px; line-height: 1.4; }
.post .post-toc a { display: grid; grid-template-columns: 26px 1fr; gap: 4px; padding: 7px 10px 7px 8px; border-radius: 8px; color: var(--text-2); text-decoration: none; }
.post-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 2px; }
.post .post-toc a:hover { background: var(--soft); color: var(--ink); }
.post .post-toc a[aria-current="true"] { background: var(--brand-tint); color: var(--brand-dark); font-weight: 600; }
.post-toc a[aria-current="true"]::before { color: var(--brand-dark); }
.post-toc--aside { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 14px 10px 10px; }
.post .post-toc__title { margin-top: 0; font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding: 0 10px 6px; text-transform: uppercase; letter-spacing: 0.02em; }
.post-toc--inline { margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.post-toc--inline summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.post-toc--inline summary::-webkit-details-marker { display: none; }
.post-toc--inline summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-top: -4px; transition: transform .15s; }
.post-toc--inline[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.post-toc--inline ol { padding: 0 8px 10px; }

.post-body > :first-child { margin-top: 0; }
.post-main > .post-toc--inline + .post-body,
.post-main > .post-summary + .post-body,
.post-main > .post-def + .post-body { margin-top: 28px; }
.post-body h2, .post-faq h2 { scroll-margin-top: 140px; }
.post code { font-family: var(--mono); font-size: 0.88em; background: var(--soft); border: 1px solid var(--line-3); border-radius: 5px; padding: 1px 5px; color: var(--ink-2); }
.post-body table { display: block; overflow-x: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; border-collapse: collapse; font-size: 15px; max-width: 100%; }
.post-body th, .post-body td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line-3); vertical-align: top; color: var(--text); }
.post-body th { background: var(--soft); font-weight: 600; color: var(--ink); font-size: 13.5px; }
.post-body tr:last-child td { border-bottom: 0; }

.note { margin-top: 22px; border-left: 3px solid var(--brand); background: var(--brand-tint); border-radius: 0 12px 12px 0; padding: 14px 18px 16px; }
.note::before { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--brand-dark); content: "Совет"; }
.note--important { border-left-color: #c58a12; background: #fdf6e7; }
.note--important::before { content: "Важно"; color: #7a5300; }
.note--practice { border-left-color: var(--ink-3); background: var(--soft); }
.note--practice::before { content: "Из практики"; color: var(--ink-3); }
.post .note p { margin-top: 6px; font-size: 16px; }

.post-faq { margin-top: 44px; }
.post-faq__item { border-bottom: 1px solid var(--line-3); }
.post-faq__item:first-of-type { margin-top: 14px; border-top: 1px solid var(--line-3); }
.post-faq__item summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 600; color: var(--ink); font-size: 17px; position: relative; line-height: 1.4; }
.post-faq__item summary::-webkit-details-marker { display: none; }
.post-faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font-size: 22px; font-weight: 400; color: var(--brand); }
.post-faq__item[open] summary::after { content: "−"; }
.post .post-faq__item p { margin: 0 0 18px; }

.post .post-method__checked { margin-top: 10px; font-size: 14px; color: var(--muted); }

.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-5); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14.5px; line-height: 1.2; cursor: pointer; text-decoration: none; }
.post a.chip { text-decoration: none; }
.chip:hover { border-color: var(--brand); color: var(--brand-dark); }
.chip.is-active { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-dark); font-weight: 600; }
.chip span { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.post-actions { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 28px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.post-helpful, .post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.post .post-helpful__q, .post .post-share__title { margin: 0 6px 0 0; font-weight: 600; color: var(--ink); font-size: 15.5px; }
.post-helpful__btns { display: flex; gap: 8px; }
.post-helpful__btns[hidden] { display: none; }
.post .post-helpful__thanks { margin: 0; font-size: 15px; }

.post-author { margin-top: 28px; display: flex; gap: 16px; align-items: center; padding-top: 24px; border-top: 1px solid var(--line-3); }
.post-author__photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center 22%; flex-shrink: 0; }
.post .post-author__name { margin: 0; font-weight: 700; color: var(--ink); font-size: 17px; }
.post .post-author__name a { color: var(--ink); }
.post .post-author__role { margin-top: 4px; font-size: 15px; color: var(--text-2); }
.post .post-author__facts { margin-top: 6px; font-size: 14.5px; }

.svc-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px 22px; display: flex; flex-direction: column; }
.svc-card__eyebrow { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.02em; }
.svc-card__name { margin-top: 6px; font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--ink); line-height: 1.25; }
.svc-card__price { margin-top: 8px; font-weight: 700; color: var(--brand-dark); font-size: 16px; }
.svc-card__desc { margin-top: 10px; color: var(--text-2); font-size: 15px; flex: 1; text-wrap: pretty; }
.svc-card__actions { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.svc-card__more { font-size: 14.5px; font-weight: 600; color: var(--brand-dark); }
.svc-card--aside { padding: 16px 18px 18px; }
.svc-card--aside .svc-card__name { font-size: 16px; }
.svc-card--aside .svc-card__actions { flex-direction: column; align-items: stretch; text-align: center; }
.post .svc-card p { margin-top: 0; line-height: 1.35; }
.post .svc-card .svc-card__eyebrow { font-size: 12px; color: var(--muted); }
.post .svc-card .svc-card__name { margin-top: 6px; font-size: 16px; color: var(--ink); }
.post .svc-card .svc-card__price { margin-top: 8px; font-size: 16px; color: var(--brand-dark); }
.post .svc-card a { text-decoration: none; }
.post .svc-card .btn--primary { color: #fff; }
.svc-card__more:hover { text-decoration: underline; text-underline-offset: 2px; }
.post-card__title .nb, .post-hero__title .nb { white-space: nowrap; }
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 760px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.post-card__cover--brand { padding: 0; aspect-ratio: 1200 / 630; }
.post-card__cover--brand img { object-fit: cover; }
.post-card__rubric { color: var(--brand-dark); }
@media (min-width: 1060px) { .post-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-grid--3 .post-card__title { font-size: 17.5px; }
.post-card[hidden] { display: none; }
.rubrics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
