/* Страница поиска ПО. Цвета основного сайта «Реестр Гарант». */
.sr {
    --sr-ink: #061226;
    --sr-blue: #00347f;
    --sr-accent: #8083ff;
    --sr-muted: #49566c;
    --sr-line: #dce2ed;
    --sr-surface: #f7f6fb;
    color: var(--sr-ink);
    background: var(--sr-surface);
    font-family: Inter, sans-serif;
    line-height: 1.6;
    padding-bottom: clamp(36px, 6vw, 80px);
}

.sr [hidden] { display: none !important; }
.sr :is(section, h3)[id] { scroll-margin-top: 150px; }
.sr :focus-visible { outline: 3px solid var(--sr-accent); outline-offset: 3px; }
.sr-container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.sr h1, .sr h2, .sr h3 { font-family: Manrope, Inter, sans-serif; font-weight: 800; line-height: 1.2; text-wrap: pretty; }
.sr h2 { font-size: clamp(24px, 3.2vw, 36px); margin: 0 0 16px; }
.sr h3 { font-size: clamp(19px, 2.2vw, 26px); margin: 0 0 16px; }
.sr a { color: var(--sr-blue); }
.sr .material-symbols-outlined { flex: none; }

.sr-hero {
    color: #fff;
    padding: clamp(28px, 5vw, 66px) 0 34px;
    background-color: var(--sr-ink);
    background-image:
        linear-gradient(90deg, #061226 35%, transparent),
        repeating-linear-gradient(90deg, #d7e2ff12 0 1px, transparent 1px 32px),
        repeating-linear-gradient(0deg, #d7e2ff12 0 1px, transparent 1px 32px);
}
.sr-hero > .sr-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 286px;
    grid-template-areas: "intro source" "search search";
    align-items: end;
    gap: 24px 32px;
}
.sr-intro { grid-area: intro; }
.sr-search { grid-area: search; }
.sr-primary-source { grid-area: source; }
.sr-intro h1 { font-size: clamp(31px, 5vw, 60px); letter-spacing: -.035em; margin: 0 0 12px; }
.sr-intro p { color: #d7e2ff; font-size: clamp(15px, 2vw, 18px); margin: 0; }
.sr a.sr-primary-source {
    display: flex; align-items: center; gap: 13px; padding: 14px;
    color: #fff; background: #d7e2ff12; border: 1px solid #d7e2ff54; border-radius: 6px;
    font-size: 14px; font-weight: 700;
}
.sr-primary-source span span { display: block; color: #d7e2ff; font-weight: 400; }
.sr-primary-source:hover { background: #d7e2ff26; }

.sr-search, .sr-results, .sr-reference, .sr-guide-card {
    color: var(--sr-ink);
    background: white;
    border: 1px solid var(--sr-line);
    border-radius: 6px;
    min-width: 0;
    padding: clamp(18px, 3vw, 34px);
}
.sr-search h2 { font-size: 22px; margin-bottom: 14px; }
.sr-fields { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr) minmax(0, 1fr); gap: 14px; }
.sr-fields label { min-width: 0; font-weight: 700; font-size: 14px; }
.sr-fields input {
    display: block; width: 100%; min-height: 48px; margin-top: 5px; padding: 10px 12px;
    border: 1px solid #a9b4c5; border-radius: 5px; background: #fff; color: var(--sr-ink); font-size: 16px;
}
.sr-fields input::placeholder { color: var(--sr-muted); opacity: 1; font-weight: 400; }
.sr-search-actions, .sr-pagination { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sr-search-actions { margin-top: 16px; }
.sr-search-example {
    min-height: 44px;
    color: var(--sr-blue);
    font-size: 13px;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.sr-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px;
    padding: 8px 16px; border: 1px solid transparent; border-radius: 5px; font-weight: 700; font-size: 14px;
    text-align: center;
}
.sr-button:disabled { cursor: default; opacity: .56; }
.sr-button-primary { color: #fff; background: var(--sr-blue); }
.sr-button-primary:hover:not(:disabled) { background: var(--sr-ink); }
.sr-button-secondary { background: var(--sr-surface); color: var(--sr-blue); border-color: var(--sr-line); }
.sr-button-secondary:hover:not(:disabled) { background: #e8edf7; }
.sr-button-light { color: var(--sr-blue); background: #fff; }
.sr-help, .sr-message { margin: 12px 0 0; color: var(--sr-muted); font-size: 13px; }
.sr-message { color: var(--sr-blue); font-weight: 600; }
.sr-message:empty { display: none; }

.sr-results { margin-top: 20px; }
.sr-results-head { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; flex-wrap: wrap; margin-bottom: 16px; }
.sr-results h2 { font-size: clamp(22px, 3vw, 28px); margin: 0; }
.sr-results-head p, .sr-pagination span { font-size: 14px; color: var(--sr-muted); }
.sr-results-tools {
    display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap;
    gap: 6px 18px; margin: 0 0 16px; padding: 10px 12px; background: var(--sr-surface); font-size: 13px;
}
.sr-results-tools a { text-decoration: underline; text-underline-offset: 3px; font-weight: 650; }
.sr-record-source { display: block; margin-top: 6px; font-weight: 650; }
.sr-record-number { font-variant-numeric: tabular-nums; }
.sr-result-table, .sr-rules { width: 100%; border-collapse: collapse; line-height: 1.5; text-align: left; }
.sr-result-table { table-layout: fixed; font-size: 14px; }
.sr-result-table th:nth-child(2) { width: 23%; }
.sr-result-table th:nth-child(4) { width: 20%; }
.sr :is(.sr-result-table, .sr-rules) th,
.sr :is(.sr-result-table, .sr-rules) td { padding: 12px; vertical-align: top; overflow-wrap: anywhere; border-bottom: 1px solid var(--sr-line); }
.sr :is(.sr-result-table, .sr-rules) thead { color: #fff; background: var(--sr-blue); }
.sr-result-table tbody tr:nth-child(even) { background: var(--sr-surface); }
.sr-result-table a, .sr-rules a, .sr-guide-card a { text-decoration: underline; text-underline-offset: 3px; }
.sr-cell-label { display: none; }
.sr-excluded { display: block; margin-top: 5px; color: var(--sr-muted); }
.sr-pagination { justify-content: center; }
.sr-pagination:not(:empty) { margin-top: 18px; }
.sr-empty { margin: 0; padding: 16px; background: var(--sr-surface); }

.sr-nav, .sr-guide-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.sr-nav { margin: 26px 0 18px; }
.sr-nav a, .sr-guide-nav a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 7px 12px;
    border: 1px solid var(--sr-line); border-radius: 5px; background: #fff; font-size: 14px; font-weight: 700;
}
.sr-nav a:hover, .sr-guide-nav a:hover { background: #e8edf7; }
.sr-reference { margin-top: 16px; }
.sr-reference > p { max-width: 76ch; margin: 0 0 20px; color: var(--sr-muted); }
.sr-rules { font-size: 15px; }
.sr-rules tbody th { width: 30%; background: var(--sr-surface); }
.sr-rules small { display: block; margin-top: 4px; color: var(--sr-muted); font-size: 13px; font-weight: 400; }
.sr-faq details, .sr-guide-question { border-top: 1px solid var(--sr-line); }
.sr :is(.sr-faq, .sr-guide-question) summary { cursor: pointer; padding: 14px 4px; color: var(--sr-blue); font-weight: 700; }
.sr :is(.sr-faq, .sr-guide-question) p { max-width: 78ch; margin: 0; padding: 0 4px 14px; color: var(--sr-muted); }

.sr-guide { margin-top: clamp(32px, 5vw, 72px); }
.sr-guide-head { margin-bottom: 20px; }
.sr-guide-head p { margin: 0 0 14px; color: var(--sr-muted); }
.sr-guide-card { margin: 0 0 14px; }
.sr-guide-card > p { max-width: 84ch; margin: 0 0 12px; }
.sr-guide-card > p:last-child { margin-bottom: 0; }
.sr-guide-card h3 > .material-symbols-outlined { margin-right: 5px; vertical-align: middle; }
.sr-guide-card [style*="color:#747782"] { color: var(--sr-muted) !important; }
.sr-guide-card [style*="display:grid"] > * { min-width: 0; overflow-wrap: anywhere; }
.sr-checklist-items { margin: 16px 0; list-style: decimal; padding: 0 0 0 28px; }
.sr-checklist-items li { padding: 10px 0 10px 4px; border-top: 1px solid var(--sr-line); }
.sr-checklist-items li::marker { color: var(--sr-blue); font-weight: 750; }
.sr-checklist-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.sr-cta {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(18px, 4vw, 54px);
    padding: clamp(20px, 4vw, 46px);
    color: #fff;
    background: var(--sr-blue);
    border-radius: 6px;
}

.sr-cta-copy h3 { font-size: clamp(23px, 3.1vw, 38px); margin-bottom: 12px; }
.sr-cta-copy p { color: #d7e2ff; max-width: 52ch; margin: 0; }
.sr-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 20px; }
.sr-cta-actions a { color: #fff; text-decoration: underline; text-underline-offset: 4px; padding: 10px 0; }
.sr-cta-prep { padding: clamp(14px, 2vw, 22px); border: 1px solid #d7e2ff54; border-radius: 6px; background: #d7e2ff12; }
.sr-cta-prep h4 { font-size: 16px; font-weight: 750; margin: 0 0 8px; }
.sr-cta-prep ul { list-style: disc; margin: 0; padding-left: 20px; color: #d7e2ff; font-size: 14px; }
.sr-cta-prep li + li { margin-top: 5px; }

@media (max-width: 850px) {
    .software-registry-page .rg-floating-consult-btn { display: none; }
    .sr-hero > .sr-container { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "search" "source"; gap: 14px; }
    .sr-primary-source { justify-self: start; }
    .sr-result-table, .sr-result-table tbody { display: block; }
    .sr-result-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .sr-result-table tbody tr { display: grid; margin-bottom: 10px; border: 1px solid var(--sr-line); border-radius: 5px; }
    .sr .sr-result-table td { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 10px; padding: 7px 12px; }
    .sr .sr-result-table td:nth-child(2) { order: -1; grid-template-columns: 1fr; font-size: 16px; background: var(--sr-surface); }
    .sr-result-table td:last-child { border-bottom: 0; }
    .sr-cell-label { display: block; color: var(--sr-muted); font-size: 12px; }
    .sr-result-table td:nth-child(2) .sr-cell-label { display: none; }
}

@media (max-width: 600px) {
    .sr-cta { grid-template-columns: minmax(0, 1fr); }
    .sr-container { width: calc(100% - 28px); }
    .sr-fields { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .sr-intro h1 { font-size: clamp(27px, 7.4vw, 34px); }
    .sr .sr-result-table td:nth-child(3), .sr .sr-result-table td:nth-child(4) { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .sr-hero { padding-bottom: 22px; }
    .sr-search-actions .sr-button-primary { flex: 1 0 auto; }
    .sr-search-example { flex: 0 0 100%; text-align: left; }
    .sr-rules tbody th { width: 38%; }
    .sr :is(.sr-rules th, .sr-rules td) { padding: 8px; font-size: 14px; }
    .sr-guide-card [style*="display:grid"] { grid-template-columns: minmax(0, 1fr) !important; }
}
