.software-catalog {
    --sc-blue: var(--primary-color, #1c6efe);
    --sc-ink: var(--main-text-color, #3a3939);
    --sc-muted: var(--ds-muted, #70747d);
    color: var(--sc-ink);
    font-family: var(--font), sans-serif;
    padding-bottom: clamp(64px, 8vw, 120px);
}
.software-catalog *, .software-catalog *::before, .software-catalog *::after { box-sizing: border-box; }
.software-catalog :where(p, h1, h2, h3) { margin: 0; color: inherit; }
.software-catalog :where(p, label, select, input, textarea) { line-height: 1.55; }
.software-catalog :where(a, button, select, input, textarea, summary):focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}
.sc-breadcrumbs { display: block; padding: 20px 0 10px; color: var(--sc-ink); font-size: 16px; line-height: 1.65; }
@media (max-width: 1199px) { .sc-breadcrumbs { font-size: 14px; } }
.sc-breadcrumbs a { color: inherit; text-decoration: none; }
.sc-breadcrumbs a:hover { text-decoration: underline; }
.sc-breadcrumbs__sep { color: var(--sc-muted); }
.sc-breadcrumbs [aria-current] { color: var(--sc-ink); }
.sc-hero { padding: clamp(22px, 4vw, 64px) 0 clamp(60px, 8vw, 112px); }
.software-catalog h1, .software-catalog h2, .software-catalog h3 {
    font-family: var(--h-font, "Bebas Neue Cyrillic", sans-serif);
    font-weight: 400;
    text-transform: uppercase;
}
.software-catalog h1 { max-width: 1000px; color: var(--sc-blue); font-size: var(--ds-h1); line-height: .98; overflow-wrap: anywhere; }
.sc-hero-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px; align-items: end; padding-top: clamp(24px, 4vw, 48px); }
.sc-hero-body p { max-width: 650px; font-size: var(--ds-lead); line-height: 1.55; }
.sc-button { display: inline-flex; justify-content: center; align-items: center; min-height: var(--ds-btn-small-h); padding: var(--ds-btn-small-pad); border: 2px solid var(--sc-blue); border-radius: var(--ds-r-pill); background: var(--sc-blue); color: #fff; font-family: var(--font); font-size: var(--ds-btn-small-font); font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: filter .2s ease, background-color .2s ease, border-color .2s ease; }
.sc-button:hover { background: var(--sc-blue); border-color: var(--sc-blue); color: #fff; filter: brightness(.9); }
.sc-button-dark { justify-self: start; }
.sc-button-dark:hover { filter: brightness(.9); }
.sc-button-outline { background: #fff; color: var(--sc-blue); }
.sc-button-outline:hover { background: var(--sc-blue); border-color: var(--sc-blue); color: #fff; }
.software-catalog h2 { color: var(--sc-ink); font-size: var(--ds-h2); line-height: 1.03; }
.sc-categories { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 24px; }
.sc-categories a, .sc-categories span { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--sc-blue); border-radius: var(--ds-r-pill); color: var(--ds-link, #1758d6); font-size: 14px; font-weight: 600; line-height: 1.35; text-align: center; text-decoration: none; }
.sc-categories a:hover { background: var(--body-bg); }
.sc-categories a[aria-current] { background: var(--sc-blue); border-color: var(--sc-blue); color: #fff; }
.sc-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; padding: 22px; background: var(--body-bg); }
.sc-filter { flex: 1 1 220px; min-width: 0; }
.sc-filter label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.sc-filter select { width: 100%; height: var(--ds-control-h); min-height: var(--ds-control-h); padding: 14px 16px; border: 1px solid var(--ds-border); border-radius: var(--ds-r-control); background: #fff; color: var(--sc-ink); font-family: var(--font); font-size: 16px; }
.sc-filter select:focus { border-color: var(--primary-color); }
.sc-reset, .sc-conditions { color: var(--ds-link, #1758d6); text-decoration: underline; text-underline-offset: 3px; }
.sc-reset { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.sc-count { padding: 20px 0 16px; font-size: 14px; color: var(--sc-muted); }
/* Фильтры применяются в фоне: показываем, что список обновляется, без прыжка окна. */
.sc-grid[aria-busy="true"] { opacity: .55; pointer-events: none; transition: opacity .15s ease; }
.sc-filters[aria-busy="true"] { cursor: progress; }
@media (prefers-reduced-motion: reduce) { .sc-grid[aria-busy="true"] { transition: none; } }
.sc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sc-card { display: flex; flex-direction: column; min-width: 0; min-height: 340px; padding: clamp(18px, 2vw, 26px); background: #fff; }
.sc-card-category { margin-bottom: 8px !important; color: var(--sc-muted) !important; font-size: 12px; line-height: 1.4; }
.software-catalog h3 { font-size: var(--ds-h3); line-height: 1.06; overflow-wrap: anywhere; }
.sc-card-media { display: flex; align-items: center; justify-content: center; min-height: 100px; margin: 18px 0; color: var(--sc-muted); text-align: center; font-size: 18px; font-weight: 600; }
.sc-card-media img { display: block; max-width: 80%; max-height: 82px; width: auto; height: auto; object-fit: contain; }
/* Официальное изображение продукта: крупнее логотипа издателя, без обрезки. */
.sc-card-media_product { min-height: 132px; margin: 8px 0 14px; }
.sc-card-media_product img { max-width: 100%; max-height: 128px; }
.sc-card-note { margin-bottom: 24px !important; color: var(--sc-muted) !important; font-size: 14px; overflow-wrap: anywhere; }
.sc-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; }
.sc-card-actions .sc-button { padding-inline: 18px; }
.sc-conditions { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; }
.sc-empty { grid-column: 1 / -1; padding: 32px; background: #fff; }
.sc-selection { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 5vw, 88px); margin-top: clamp(70px, 9vw, 140px); padding: clamp(26px, 4vw, 60px); background: #fff; scroll-margin-top: 24px; }
.sc-selection h2 { color: var(--sc-ink); font-size: var(--ds-h2); }
.sc-selection-copy > p { margin-top: 24px; max-width: 480px; }
.sc-selected { padding: 16px; background: var(--body-bg); overflow-wrap: anywhere; }
.sc-form { align-self: center; }
.sc-form p { margin-bottom: 24px; max-width: 540px; }
.sc-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 5vw, 88px); margin-top: clamp(72px, 9vw, 140px); }
.sc-faq-list { min-width: 0; }
.sc-faq details { margin-bottom: 12px; background: #fff; }
.sc-faq summary { position: relative; padding: 21px 50px 21px 22px; cursor: pointer; font-size: 15px; font-weight: 600; line-height: 1.5; list-style: none; }
.sc-faq summary::-webkit-details-marker { display: none; }
.sc-faq summary::after { content: "+"; position: absolute; right: 20px; top: 19px; color: var(--ds-link, #1758d6); font-size: 22px; line-height: 1; }
.sc-faq details[open] summary::after { content: "−"; }
.sc-faq details p { padding: 0 22px 22px; color: var(--sc-muted); font-size: 14px; }
.sc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 1199px) {
    .sc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sc-selection, .sc-faq { gap: 26px; }
}
@media (max-width: 700px) {
    .sc-hero-body, .sc-selection, .sc-faq { grid-template-columns: minmax(0, 1fr); }
    .sc-hero-body { gap: 22px; }
    .sc-hero-body p { grid-row: 1; }
    .sc-grid { grid-template-columns: minmax(0, 1fr); }
    .sc-card { min-height: 0; }
    .sc-selection, .sc-faq { margin-top: 72px; }
}
@media (prefers-reduced-motion: reduce) { .software-catalog { scroll-behavior: auto; } }
