/* ===== Lang Directory — Taxonomy archive pages =====
 * Requires ld-primitives.css.
 * ===================================================== */

/* ===== Hero block ===== */
.ld-tax-hero {
  background: linear-gradient(135deg, #0c326f 0%, #1d63cb 60%, #2f81db 100%);
  border-radius: var(--ld-radius-md);
  padding: var(--ld-space-4);
  color: #fff;
  margin-bottom: var(--ld-space-5);
  position: relative;
  overflow: hidden;
}

/* Decorative circles */
.ld-tax-hero::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
  pointer-events: none;
}
.ld-tax-hero::after {
  content: '';
  position: absolute;
  left: -40px;
  bottom: -60px;
  width: 160px;
  height: 160px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  pointer-events: none;
}

@media (min-width: 640px) {
  .ld-tax-hero {
    border-radius: var(--ld-radius-lg);
    padding: var(--ld-space-6);
    margin-bottom: var(--ld-space-6);
  }
  .ld-tax-hero--illustrated {
    padding-right: calc(220px + var(--ld-space-6) + var(--ld-space-4));
  }
}

/* Hero illustration (right side) */
.ld-tax-hero__illustration {
  position: absolute;
  top: 50%;
  right: var(--ld-space-6);
  transform: translateY(-50%);
  width: 220px;
  height: 220px;
  opacity: .88;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,.25));
  z-index: 1;
}

.ld-tax-hero__illustration svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 639px) {
  .ld-tax-hero__illustration { display: none; }
}

/* Breadcrumbs inside hero */
.ld-tax-hero__crumbs {
  font-size: 12px;
  color: rgba(255,255,255,.65);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: var(--ld-space-3);
  position: relative;
  z-index: 1;
}
.ld-tax-hero__crumbs a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
}
.ld-tax-hero__crumbs a:hover { color: #fff; text-decoration: underline; }
.ld-tax-hero__crumbs-sep { opacity: .7; }

/* Hero inner row */
.ld-tax-hero__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ld-space-3);
  position: relative;
  z-index: 1;
}

.ld-tax-hero__main { flex: 1 1 200px; }

.ld-tax-hero__category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.65);
  margin: 0 0 6px;
}

.ld-tax-hero__title {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 var(--ld-space-2);
}

.ld-tax-hero__tagline {
  font-size: 14px;
  color: rgba(255,255,255,.8);
  line-height: 1.6;
  margin: 0;
  max-width: 540px;
}

@media (min-width: 640px) {
  .ld-tax-hero__tagline { font-size: 15px; }
}

/* Stats badge */
.ld-tax-hero__stats {
  display: flex;
  gap: var(--ld-space-2);
  align-self: flex-start;
  flex-shrink: 0;
}

.ld-tax-hero__stat {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--ld-radius-md);
  padding: var(--ld-space-2) var(--ld-space-3);
  text-align: center;
  min-width: 72px;
}

.ld-tax-hero__stat-num {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.ld-tax-hero__stat-lbl {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,.65);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ===== Two-column body ===== */
.ld-tax-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ld-space-4);
}

@media (min-width: 768px) {
  .ld-tax-body {
    grid-template-columns: 2fr 1fr;
    gap: var(--ld-space-6);
    align-items: start;
  }
}

.ld-tax-main  { min-width: 0; }
.ld-tax-aside { min-width: 0; }

/* ===== Unified content block ===== */
/* Applied to: about, docs, FAQ wrapper, related links */
.ld-tax-about,
.ld-tax-main .ld-faq {
  background: linear-gradient(135deg, rgba(29,99,203,.06), rgba(47,129,219,.03));
  border: 1px solid rgba(29,99,203,.16);
  border-radius: var(--ld-radius-md);
  padding: var(--ld-space-4);
  margin-bottom: var(--ld-space-5);
}

/* ===== Unified section title ===== */
/* All block headings share the same typographic treatment */
.ld-tax-section-title,
.ld-tax-main .ld-faq__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ld-text);
  margin: 0 0 var(--ld-space-3);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Coloured accent bar */
.ld-tax-section-title::before,
.ld-tax-main .ld-faq__title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 17px;
  border-radius: 2px;
  flex-shrink: 0;
  background: var(--ld-primary);
}
.ld-tax-section-title--green::before  { background: #10b981; }
.ld-tax-section-title--purple::before { background: #8b5cf6; }

/* FAQ title gets a teal bar */
.ld-tax-main .ld-faq__title::before { background: #0891b2; }

.ld-tax-about__text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ld-muted);
  margin: 0;
}

@media (min-width: 640px) {
  .ld-tax-about__text { font-size: 15px; }
}

/* ===== FAQ items: hover lift ===== */
.ld-tax-main .ld-faq__item {
  transition: box-shadow .2s, transform .15s;
}
.ld-tax-main .ld-faq__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(29,99,203,.1);
}

/* ===== Document grid — horizontal card style ===== */
.ld-tax-docs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ld-space-2);
  margin-top: var(--ld-space-3);
}

@media (min-width: 480px) {
  .ld-tax-docs__grid { grid-template-columns: repeat(2, 1fr); }
}

.ld-tax-doc-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid var(--ld-border);
  border-radius: 12px;
  transition: box-shadow .2s, transform .2s;
}

a.ld-tax-doc-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.ld-tax-doc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29,99,203,.12);
}

.ld-tax-doc-card__icon-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #eef3ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ld-tax-doc-card__icon-wrap svg {
  width: 22px;
  height: 22px;
}

.ld-tax-doc-card__body {
  flex: 1;
  min-width: 0;
}

.ld-tax-doc-card__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ld-text);
  line-height: 1.35;
}

.ld-tax-doc-card__price {
  display: block;
  font-size: 12px;
  color: #4a6fa5;
  font-weight: 600;
  margin-top: 2px;
  white-space: nowrap;
}

/* ===== Bureau list section wrapper ===== */
.ld-tax-bureau-section {
  margin-bottom: var(--ld-space-5);
}

/* ===== Bureau list heading ===== */
.ld-tax-list-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--ld-text);
  margin: 0 0 var(--ld-space-4);
}

/* ===== Related chips — semi-transparent ===== */
.ld-tax-related {
  margin-top: var(--ld-space-5);
  margin-bottom: var(--ld-space-5);
}

.ld-tax-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--ld-space-3);
}

.ld-tax-chip {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 2em;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  background: rgba(29,99,203,.07);
  border: 1px solid rgba(29,99,203,.2);
  color: var(--ld-primary);
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
  white-space: nowrap;
  line-height: 1.4;
}

.ld-tax-chip:hover {
  background: rgba(29,99,203,.14);
  border-color: rgba(29,99,203,.38);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(29,99,203,.12);
}

/* ===== Sidebar blocks ===== */
.ld-tax-aside-block {
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius-md);
  overflow: hidden;
  margin-bottom: var(--ld-space-4);
}

.ld-tax-aside-block__head {
  padding: 12px var(--ld-space-4);
  background: linear-gradient(135deg, rgba(29,99,203,.08) 0%, rgba(47,129,219,.05) 100%);
  border-bottom: 1px solid var(--ld-border);
  font-size: 14px;
  font-weight: 700;
  color: var(--ld-text);
}

.ld-tax-aside-block__body {
  padding: var(--ld-space-3) var(--ld-space-4);
}

/* City list in sidebar */
.ld-tax-city-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ld-tax-city-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 14px;
  color: var(--ld-text);
  text-decoration: none;
  border-bottom: 1px solid var(--ld-border);
  transition: color .15s;
  gap: 8px;
}

.ld-tax-city-list li:last-child a { border-bottom: 0; }

.ld-tax-city-list li a:hover { color: var(--ld-primary); }

.ld-tax-city-list__count {
  font-size: 12px;
  color: var(--ld-muted);
  flex-shrink: 0;
}

/* CTA sidebar block */
.ld-tax-cta {
  background: linear-gradient(135deg, #0c326f 0%, #1d63cb 100%);
  border-radius: var(--ld-radius-md);
  padding: var(--ld-space-4);
  color: #fff;
  text-align: center;
  margin-bottom: var(--ld-space-4);
}

.ld-tax-cta__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 var(--ld-space-2);
  color: #fff;
}

.ld-tax-cta__text {
  font-size: 13px;
  color: rgba(255,255,255,.8);
  line-height: 1.5;
  margin: 0 0 var(--ld-space-3);
}

.ld-tax-cta .ld-btn {
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  width: 100%;
  justify-content: center;
  transition: background .15s;
}
.ld-tax-cta .ld-btn:hover {
  background: rgba(255,255,255,.28);
}

/* "Нужен перевод?" — city select */
.ld-tax-cta__select {
  width: 100%;
  padding: 0 12px;
  height: 42px;
  border-radius: var(--ld-radius-sm);
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 14px;
  margin-bottom: var(--ld-space-2);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.ld-tax-cta__select option { color: #0f172a; background: #fff; }

/* CTA owner block */
.ld-tax-cta--owner {
  background: #649dfe;
  border: 1px solid rgba(255,255,255,.15);
}

/* CTA premium placement block */
.ld-tax-cta--premium {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  border: 1px solid rgba(255,255,255,.12);
  text-align: left;
  overflow: hidden;
  position: relative;
}

.ld-tax-cta--premium::before {
  content: '';
  position: absolute;
  left: -50px;
  top: -50px;
  width: 160px;
  height: 160px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
  pointer-events: none;
}

.ld-tax-cta__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #60a5fa;
  margin: 0 0 var(--ld-space-1);
}

.ld-tax-cta__features {
  list-style: none;
  margin: 0 0 var(--ld-space-3);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ld-tax-cta__features li {
  font-size: 13px;
  color: rgba(255,255,255,.8);
  padding-left: 1.1em;
  position: relative;
}

.ld-tax-cta__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #4ade80;
  font-size: 12px;
}

/* Accent button (used in premium CTA) */
.ld-btn--accent {
  background: #1e64ff;
  border-color: transparent;
  color: #fff;
}

.ld-btn--accent:hover {
  background: #1652d4;
  color: #fff;
}

/* ===== Services grid inside sidebar layout — always 2 col, 3 col only at 1200px+ ===== */
/* Sidebar takes ~33% leaving ~810px for main at max container (1240px). */
/* At 960px viewport main≈600px → 193px/card — too narrow. 1200px → 246px/card — fine. */
.ld-tax-main .ld-services-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}
@media (min-width: 1200px) {
  .ld-tax-main .ld-services-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ===== Docs promo block ===== */
.ldsd-docs-promo {
  margin-top: var(--ld-space-6);
  padding: var(--ld-space-5);
  background: linear-gradient(135deg, rgba(29,99,203,.06) 0%, rgba(47,129,219,.03) 100%);
  border: 1px solid rgba(29,99,203,.16);
  border-radius: var(--ld-radius-md);
}
.ldsd-docs-promo__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ld-space-5);
  flex-wrap: wrap;
}
.ldsd-docs-promo__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ld-text);
  margin: 0 0 6px;
}
.ldsd-docs-promo__text {
  font-size: 14px;
  color: var(--ld-muted);
  margin: 0;
  line-height: 1.6;
  max-width: 480px;
}
.ldsd-docs-promo__btn {
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--ld-primary);
  color: #fff;
  border: none;
}
.ldsd-docs-promo__btn:hover {
  opacity: .9;
  color: #fff;
}

/* ===== Full-width related block (outside two-col grid) ===== */
.ld-tax-related-full {
  background: linear-gradient(135deg, rgba(29,99,203,.06) 0%, rgba(47,129,219,.03) 100%);
  border: 1px solid rgba(29,99,203,.14);
  border-radius: var(--ld-radius-md);
  padding: var(--ld-space-4) var(--ld-space-5);
  margin-top: var(--ld-space-4);
  margin-bottom: var(--ld-space-8);
}

/* Also style single-ld_landing.php variant (uses .ld-tax-about.ld-tax-related) */
.ld-tax-about.ld-tax-related {
  background: linear-gradient(135deg, rgba(29,99,203,.06) 0%, rgba(47,129,219,.03) 100%);
  border: 1px solid rgba(29,99,203,.14);
  border-radius: var(--ld-radius-md);
  padding: var(--ld-space-4) var(--ld-space-5);
  margin-top: var(--ld-space-4);
}

/* ===== Pagination ===== */
.ld-bureau-pagination,
.ld-rating-pagination {
  margin-top: var(--ld-space-6);
}

.ld-bureau-pagination .page-numbers,
.ld-rating-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.ld-bureau-pagination .page-numbers li,
.ld-rating-pagination .page-numbers li {
  margin: 0;
  padding: 0;
}

.ld-bureau-pagination .page-numbers a,
.ld-bureau-pagination .page-numbers span,
.ld-rating-pagination .page-numbers a,
.ld-rating-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--ld-radius-sm);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
}

.ld-bureau-pagination .page-numbers a:hover,
.ld-rating-pagination .page-numbers a:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.ld-bureau-pagination .page-numbers .current,
.ld-rating-pagination .page-numbers .current {
  background: #1e64ff;
  border-color: #1e64ff;
  color: #fff;
  font-weight: 700;
}

.ld-bureau-pagination .page-numbers .dots,
.ld-rating-pagination .page-numbers .dots {
  border-color: transparent;
  background: transparent;
  color: #94a3b8;
  min-width: 24px;
}

.ld-bureau-pagination .page-numbers .prev,
.ld-bureau-pagination .page-numbers .next,
.ld-rating-pagination .page-numbers .prev,
.ld-rating-pagination .page-numbers .next {
  font-size: 16px;
  color: #1e64ff;
  border-color: #dbeafe;
  background: #eff6ff;
}

.ld-bureau-pagination .page-numbers .prev:hover,
.ld-bureau-pagination .page-numbers .next:hover,
.ld-rating-pagination .page-numbers .prev:hover,
.ld-rating-pagination .page-numbers .next:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1652d4;
}

@media (max-width: 480px) {
  .ld-bureau-pagination .page-numbers a,
  .ld-bureau-pagination .page-numbers span,
  .ld-rating-pagination .page-numbers a,
  .ld-rating-pagination .page-numbers span {
    min-width: 34px;
    height: 34px;
    font-size: 13px;
  }
}

/* ===== Single post template ===== */

.ld-post-hero__title {
  font-size: clamp(22px, 4vw, 36px);
  line-height: 1.25;
}

.ld-post-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: var(--ld-space-3);
}

.ld-post-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: rgba(255,255,255,.7);
}

.ld-post-thumbnail {
  border-radius: var(--ld-radius-md);
  overflow: hidden;
  margin-bottom: var(--ld-space-5);
}

.ld-post-thumbnail__img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/7;
  object-fit: cover;
}

/* Post body typography */
.ld-post-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ld-text);
}

.ld-post-content h2 {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  margin: 2em 0 .65em;
  color: #0f172a;
  line-height: 1.3;
}

.ld-post-content h3 {
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 700;
  margin: 1.75em 0 .5em;
  color: #0f172a;
}

.ld-post-content p {
  margin: 0 0 1.25em;
}

.ld-post-content a {
  color: var(--ld-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ld-post-content a:hover {
  color: #1652d4;
}

.ld-post-content ul,
.ld-post-content ol {
  margin: 0 0 1.25em 1.5em;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .45em;
}

.ld-post-content blockquote {
  margin: 1.5em 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--ld-primary);
  background: #f1f5f9;
  border-radius: 0 var(--ld-radius-sm) var(--ld-radius-sm) 0;
  font-style: italic;
  color: #475569;
}

.ld-post-content code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9em;
  color: #0f172a;
}

.ld-post-content pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem 1.25rem;
  border-radius: var(--ld-radius-sm);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  margin: 1.25em 0;
}

.ld-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--ld-radius-sm);
}

.ld-post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 1.25em 0;
}

.ld-post-content th,
.ld-post-content td {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.ld-post-content th {
  background: #f8fafc;
  font-weight: 600;
}

/* Tags */
.ld-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--ld-space-5);
  padding-top: var(--ld-space-4);
  border-top: 1px solid var(--ld-border);
}

/* Post nav prev/next */
.ld-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: var(--ld-space-6);
  padding-top: var(--ld-space-5);
  border-top: 1px solid var(--ld-border);
}

.ld-post-nav__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius-md);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}

.ld-post-nav__item:hover {
  border-color: var(--ld-primary);
  box-shadow: 0 2px 12px rgba(30,100,255,.08);
}

.ld-post-nav__item--next {
  text-align: right;
}

.ld-post-nav__dir {
  font-size: 12px;
  color: var(--ld-muted);
  font-weight: 500;
}

.ld-post-nav__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ld-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 480px) {
  .ld-post-nav {
    grid-template-columns: 1fr;
  }
}

/* ===== Sidebar recent posts list ===== */

.ld-post-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.ld-post-sidebar-item + .ld-post-sidebar-item {
  border-top: 1px solid var(--ld-border);
}

.ld-post-sidebar-item__link {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  text-decoration: none;
  transition: opacity .15s;
}

.ld-post-sidebar-item__link:hover {
  opacity: .8;
}

.ld-post-sidebar-item__thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
}

.ld-post-sidebar-item__thumb img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  display: block;
}

.ld-post-sidebar-item__thumb--placeholder {
  background: linear-gradient(135deg, #e8f0fe, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b9eff;
}

.ld-post-sidebar-item__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ld-post-sidebar-item__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ld-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ld-post-sidebar-item__date {
  font-size: 11px;
  color: var(--ld-muted);
}

/* ===== Document type cards (/dokumenty/ page) ===== */
.lddoc-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
@media (min-width: 600px) {
    .lddoc-card-grid { grid-template-columns: repeat(3, 1fr); }
}
.lddoc-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--ld-border);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .2s;
    min-height: 120px;
}
.lddoc-card:hover { box-shadow: 0 8px 20px rgba(15,23,42,.10); transform: translateY(-2px); }
.lddoc-card__icon { width: 44px; height: 44px; flex-shrink: 0; }
.lddoc-card__icon svg { width: 44px; height: 44px; }
.lddoc-card__name { font-size: 13px; font-weight: 700; color: var(--ld-text); line-height: 1.35; flex: 1; }
.lddoc-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; font-size: 12px; }
.lddoc-card__price { color: #4a6fa5; font-weight: 600; }
.lddoc-card__arrow { color: var(--ld-primary); font-size: 15px; }

/* ---- Badges ---- */
.lddoc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    padding: 4px 12px;
}
.lddoc-badge--price { background: #eff6ff; color: #1e64ff; }
.lddoc-badge--notarial { background: #ecfdf5; color: #059669; }

/* ---- Hero icon on individual doc page ---- */
.lddoc-hero-icon { width: 64px; height: 64px; margin-bottom: 12px; }
.lddoc-hero-icon svg { width: 64px; height: 64px; }
.lddoc-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---- Bureau simple list on doc page ---- */
.lddoc-bureau-list { display: flex; flex-direction: column; gap: 12px; }
.lddoc-bureau-item {
    display: block;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--ld-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--ld-text);
    transition: box-shadow .2s;
}
.lddoc-bureau-item:hover { box-shadow: 0 4px 16px rgba(15,23,42,.10); }
.lddoc-bureau-item__title { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.lddoc-bureau-item__city { font-size: 13px; color: var(--ld-muted); }

/* ── "Вид перевода" link row ─────────────────────────────────────── */
.lddoc-svc-link {
  margin-top: var(--ld-space-4);
  padding: 10px 14px;
  background: #f8faff;
  border: 1px solid rgba(29,99,203,.14);
  border-radius: var(--ld-radius-sm);
  font-size: 14px;
}
.lddoc-svc-link__label { color: var(--ld-muted); margin-right: 6px; }
.lddoc-svc-link__url { color: var(--ld-primary); font-weight: 600; text-decoration: none; }
.lddoc-svc-link__url:hover { text-decoration: underline; }

/* ── О документе ─────────────────────────────────────────────────── */
.lddoc-about {
  margin-top: var(--ld-space-6);
  padding-top: var(--ld-space-5);
  border-top: 1px solid var(--ld-border);
}
.lddoc-about__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ld-text);
  margin: 0 0 var(--ld-space-4);
}
.lddoc-about__body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ld-text);
  margin: 0 0 var(--ld-space-3);
}
.lddoc-about__why { }
.lddoc-about__icon {
  float: left;
  width: 88px;
  height: 88px;
  margin: 2px 22px 14px 0;
  background: rgba(29,99,203,.07);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lddoc-about__icon svg { width: 56px; height: 56px; }
.lddoc-about__clear { clear: both; }
