/* DG SEO: оформление страниц Autodesk-хаба в стиле сайта (белый фон, серые плитки, чёрные кнопки-пилюли). */

.dg-seo-crumbs { margin: 0 0 18px; font-size: 14px; color: #5F5F5F; }
.dg-seo-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; }
.dg-seo-crumbs li { display: inline-flex; align-items: center; }
.dg-seo-crumbs li + li::before { content: "/"; margin: 0 8px; color: #B5B5B5; }
.dg-seo-crumbs a { color: #5F5F5F; text-decoration: none; }
.dg-seo-crumbs a:hover { color: #000; text-decoration: underline; text-underline-offset: 3px; }
.dg-seo-crumbs [aria-current] { color: #000; }

.dg-seo-lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; letter-spacing: -0.01em; color: #111; max-width: 46em; margin: 0 0 22px; }
.dg-seo-muted { color: #5F5F5F; }
.dg-seo-small { font-size: 14px; color: #5F5F5F; }

.dg-seo-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 34px; }
.dg-seo-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: 999px; background: #000; color: #fff !important; font-weight: 500; font-size: 16px; line-height: 1.1; text-decoration: none !important; border: 1px solid #000; transition: background-color .15s ease, color .15s ease, transform .15s ease; }
.dg-seo-btn:hover { background: #333; border-color: #333; transform: translateY(-1px); }
.dg-seo-btn--ghost { background: transparent; color: #000 !important; }
.dg-seo-btn--ghost:hover { background: #000; color: #fff !important; }

.dg-seo-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 24px 0 36px; padding: 0; list-style: none; }
.dg-seo-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dg-seo-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dg-seo-card { display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 22px; background: #F4F4F5; border-radius: 22px; color: #111; text-decoration: none; min-height: 150px; transition: background .2s ease, transform .2s ease; }
a.dg-seo-card:hover { background: #EAEAEC; transform: translateY(-2px); }
.dg-seo-card h3, .dg-seo-card .dg-seo-card__title { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.dg-seo-card p { margin: 0; font-size: 15px; line-height: 1.45; color: #444; }
.dg-seo-card .dg-seo-card__price { margin-top: auto; padding-top: 10px; font-size: 15px; color: #000; }
.dg-seo-card .dg-seo-card__price .dg-seo-price { font-weight: 600; }
.dg-seo-card__badge { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; }

.dg-seo-steps { counter-reset: dgstep; list-style: none; margin: 18px 0 30px; padding: 0; display: grid; gap: 12px; }
.dg-seo-steps li { position: relative; padding: 16px 18px 16px 62px; background: #F4F4F5; border-radius: 16px; line-height: 1.45; }
.dg-seo-steps li::before { counter-increment: dgstep; content: counter(dgstep); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: #000; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }

.dg-seo-table { width: 100%; border-collapse: collapse; margin: 16px 0 28px; font-size: 15px; }
.dg-seo-table th, .dg-seo-table td { padding: 12px 14px; border-bottom: 1px solid #E3E3E3; text-align: left; vertical-align: top; }
.dg-seo-table th { font-weight: 600; background: #F4F4F5; }
.dg-seo-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.dg-seo-faq { margin: 12px 0 30px; }
.dg-seo-faq h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 26px 0 8px; }
.dg-seo-faq h3:first-of-type { margin-top: 10px; }
.dg-seo-faq p { margin: 0 0 10px; line-height: 1.5; }

.dg-seo-note { padding: 18px 22px; background: #E6F6F1; border-radius: 16px; margin: 18px 0 28px; line-height: 1.5; }
.dg-seo-contact { padding: 26px 28px; background: #F4F4F5; border-radius: 22px; margin: 24px 0 10px; line-height: 1.55; }
.dg-seo-contact h2 { margin-top: 0; }
.dg-seo-contact a { color: #000; }

.dg-seo-related-links { margin: 18px 0 6px; font-size: 14px; color: #5F5F5F; line-height: 1.6; }
.dg-seo-related-links a { color: #000; }
.dg-seo-archive-link { font-size: 15px; color: #5F5F5F; margin: 0 0 18px; }
.dg-seo-archive-link a { color: #000; }

.entry-content .dg-seo-page h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.15; margin: 44px 0 14px; }
.entry-content .dg-seo-page h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 24px 0 8px; }
.entry-content .dg-seo-page p, .entry-content .dg-seo-page li { line-height: 1.55; }
.entry-content .dg-seo-page ul { padding-left: 1.2em; }
.entry-content .dg-seo-page .wc-block-grid, .entry-content .dg-seo-page .products { margin-top: 12px; }

@media (max-width: 900px) {
  .dg-seo-cards, .dg-seo-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .dg-seo-cards, .dg-seo-cards--2, .dg-seo-cards--4 { grid-template-columns: 1fr; gap: 12px; }
  .dg-seo-card { padding: 20px 18px; min-height: 0; }
  .dg-seo-cta { gap: 10px; }
  .dg-seo-btn { width: 100%; padding: 15px 20px; }
  .dg-seo-steps li { padding: 14px 14px 14px 56px; }
  .dg-seo-table { font-size: 14px; }
  .dg-seo-table th, .dg-seo-table td { padding: 10px; }
  .dg-seo-contact { padding: 20px 18px; }
}
