/* ==========================================================================
   Spam Tester Tool
   ========================================================================== */

/* ── Общие лендинговые секции (как и в других инструментах лаборатории) ── */
.tool-how-it-works,
.tool-features,
.tool-faq {
    padding: 3em 0;
    border-top: 1px solid #eee;
}
.tool-how-it-works_title,
.tool-features_title,
.tool-faq_title {
    text-align: center;
    margin-bottom: 2em;
    font-size: 1.75rem;
}

.tool-step {
    text-align: center;
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}
.tool-step_number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffde00;
    color: #272727;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1em;
}
.tool-step_heading {
    font-size: 1.05rem;
    margin-bottom: 0.5em;
    color: #272727;
}
.tool-step_desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #666;
}

.tool-feature {
    text-align: center;
    padding: 1.5em 1em;
}
.tool-feature_icon { margin-bottom: 1em; }
.tool-feature_heading {
    font-size: 1.05rem;
    margin-bottom: 0.5em;
    color: #272727;
}
.tool-feature_desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #666;
}

.tool-faq {
    max-width: 720px;
    margin: 0 auto;
}
.tool-faq_item { border-bottom: 1px solid #eee; }
.tool-faq_question {
    padding: 1.25em 2em 1.25em 0;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    color: #272727;
}
.tool-faq_question::-webkit-details-marker { display: none; }
.tool-faq_question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: #999;
    transition: transform 0.2s ease;
}
details[open] .tool-faq_question::after { content: '\2212'; }
.tool-faq_answer {
    padding: 0 0 1.25em;
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}
.tool-faq_answer p { margin: 0; }

/* ── Tool layout ─────────────────────────────────────────────────────────── */
.st-tool {
    padding: 3em 0;
    max-width: 760px;
    margin: 0 auto;
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.st-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 2em;
    transition: border-color 0.2s ease;
}

.st-card--step {
    display: flex;
    gap: 1.5em;
    align-items: flex-start;
}

.st-step__num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffde00;
    color: #272727;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.st-step__body {
    flex: 1;
    min-width: 0;
}

.st-step__title {
    font-size: 1.3rem;
    margin: 0 0 0.5em;
    color: #272727;
}

.st-step__desc {
    color: #666;
    margin: 0 0 1.2em;
    line-height: 1.5;
}

/* ── Step 1: start button + captcha ─────────────────────────────────────── */
.st-start-btn {
    padding: 0.8em 2em;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.st-start-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 222, 0, 0.4);
}

.st-start-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.st-captcha-wrap {
    margin-top: 1.2em;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    max-height: 200px;
    overflow: hidden;
}

.st-captcha-wrap--hidden {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    pointer-events: none;
}

.st-hint {
    color: #888;
    font-size: 0.9rem;
    margin: 1em 0 0;
    line-height: 1.5;
}

.st-hint code {
    background: #f5f5f5;
    padding: 0.1em 0.4em;
    border-radius: 4px;
    font-size: 0.95em;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    color: #272727;
}

/* ── Step 2: address row ─────────────────────────────────────────────────── */
.st-address-row {
    display: flex;
    gap: 0.5em;
    align-items: stretch;
    margin-bottom: 1.5em;
}

.st-address {
    flex: 1;
    min-width: 0;
    padding: 0.8em 1em;
    border: 2px solid #ffde00;
    border-radius: 8px;
    font-size: 1.05rem;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    color: #272727;
    background: #fffbe0;
    cursor: text;
}

.st-address:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 222, 0, 0.25);
}

.st-copy-btn {
    flex-shrink: 0;
    padding: 0 1.2em;
    border: 2px solid #272727;
    border-radius: 8px;
    background: #fff;
    color: #272727;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    transition: background 0.15s ease, color 0.15s ease;
}

.st-copy-btn:hover {
    background: #272727;
    color: #fff;
}

.st-copy-btn--copied {
    background: #28a745 !important;
    border-color: #28a745;
    color: #fff !important;
}

/* ── Step 2: waiting indicator ───────────────────────────────────────────── */
.st-waiting {
    display: flex;
    gap: 1em;
    align-items: center;
    padding: 1em 1.2em;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ffde00;
}

.st-spinner {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: 3px solid #e0e0e0;
    border-top-color: #ffde00;
    border-radius: 50%;
    animation: stSpin 0.8s linear infinite;
}

@keyframes stSpin {
    to { transform: rotate(360deg); }
}

.st-waiting__text {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    line-height: 1.4;
}

.st-waiting__text strong {
    color: #272727;
    font-size: 1rem;
}

.st-waiting__text span {
    color: #666;
    font-size: 0.9rem;
}

.st-waiting--analyzing {
    border-left-color: #28a745;
}

.st-waiting--analyzing .st-spinner {
    border-top-color: #28a745;
}

/* ── Error card ──────────────────────────────────────────────────────────── */
.st-card--error {
    display: flex;
    gap: 1.5em;
    align-items: flex-start;
    border-color: #e74c3c;
    background: #fff5f4;
}

.st-error__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e74c3c;
    color: #fff;
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.st-error__title {
    font-size: 1.2rem;
    margin: 0 0 0.5em;
    color: #c0392b;
}

.st-error__desc {
    color: #666;
    margin: 0 0 1em;
    line-height: 1.5;
}

.st-retry-btn {
    padding: 0.6em 1.5em;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media only screen and (max-width: 600px) {
    .st-card {
        padding: 1.4em;
    }

    .st-card--step,
    .st-card--error {
        flex-direction: column;
        gap: 1em;
    }

    .st-step__num,
    .st-error__icon {
        width: 36px;
        height: 36px;
    }

    .st-address-row {
        flex-direction: column;
    }

    .st-copy-btn {
        padding: 0.7em 1em;
        justify-content: center;
    }
}

/* ==========================================================================
   Spam Tester — Result page
   ========================================================================== */

.st-report {
    max-width: 880px;
    margin: 0 auto;
    padding: 2em 0 4em;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

/* ── Score block ─────────────────────────────────────────────────────────── */
.st-report__score-block {
    display: flex;
    align-items: center;
    gap: 2em;
    padding: 2em;
    border-radius: 16px;
    background: #fff;
    border: 2px solid #e0e0e0;
}

.st-report__score-circle {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.st-report__score-value {
    font-size: 2.6rem;
}

.st-report__score-of {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.85;
    margin-top: 0.2em;
}

.st-report__verdict {
    font-size: 1.6rem;
    font-weight: 700;
    color: #272727;
    margin-bottom: 0.3em;
}

.st-report__summary {
    color: #555;
    line-height: 1.5;
    margin-bottom: 1em;
}

.st-report__share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.5em 1em;
    border: 2px solid #272727;
    background: #fff;
    color: #272727;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.st-report__share-btn:hover { background: #272727; color: #fff; }

/* Score colours */
.st-report__score-block--excellent { border-color: #1abc9c; background: #f0fbf8; }
.st-report__score-block--excellent .st-report__score-circle { background: #1abc9c; }
.st-report__score-block--good      { border-color: #2ecc71; background: #f3fbf5; }
.st-report__score-block--good      .st-report__score-circle { background: #2ecc71; }
.st-report__score-block--mediocre  { border-color: #f1c40f; background: #fdfaef; }
.st-report__score-block--mediocre  .st-report__score-circle { background: #f1c40f; color: #272727; }
.st-report__score-block--poor      { border-color: #e67e22; background: #fdf6f0; }
.st-report__score-block--poor      .st-report__score-circle { background: #e67e22; }
.st-report__score-block--spam      { border-color: #e74c3c; background: #fdf3f2; }
.st-report__score-block--spam      .st-report__score-circle { background: #e74c3c; }
.st-report__score-block--unknown   .st-report__score-circle { background: #95a5a6; }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.st-report__card {
    padding: 1.6em 2em;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
}
.st-report__h {
    font-size: 1.2rem;
    margin: 0 0 1em;
    color: #272727;
}
.st-report__h3 {
    font-size: 1rem;
    margin: 0.4em 0 0.6em;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.st-report__defs {
    margin: 0;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.4em 1.2em;
    font-size: 0.95rem;
}
.st-report__defs dt { color: #888; }
.st-report__defs dd { margin: 0; color: #272727; word-break: break-word; }
.st-report__defs--inline {
    grid-template-columns: repeat(auto-fit, minmax(120px, auto));
    gap: 0.2em 1.4em;
    margin-bottom: 0.8em;
}

/* Чипсы метрик: число + подпись, по горизонтали с переносом */
.st-report__metrics {
    list-style: none;
    padding: 0;
    margin: 0 0 0.9em;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em 1.6em;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
}
.st-report__metrics li {
    white-space: nowrap;
}
.st-report__metrics strong {
    color: #272727;
    font-weight: 600;
}

.st-report__defs code,
.st-report__card code {
    background: #f5f5f5;
    padding: 0.1em 0.4em;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.92em;
}

/* ── TOP-3 проблемы (сразу после score) ───────────────────────────────── */
.st-report__top-list {
    list-style: none;
    counter-reset: st-top;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}
.st-report__top-item {
    counter-increment: st-top;
    position: relative;
    padding: 1em 1.2em 1em 3.2em;
    border-radius: 10px;
    border-left: 4px solid #bdc3c7;
    background: #f8f9fa;
}
.st-report__top-item::before {
    content: counter(st-top);
    position: absolute;
    left: 0.85em;
    top: 1em;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
}
.st-report__top-item--critical {
    border-left-color: #e74c3c;
    background: #fdf3f2;
    color: #b03a2e;
}
.st-report__top-item--warn {
    border-left-color: #f1c40f;
    background: #fdfaef;
    color: #876900;
}
.st-report__top-item--info {
    border-left-color: #3498db;
    background: #f0f6fb;
    color: #2c5282;
}
.st-report__top-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.3em;
}
.st-report__top-text {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.5;
}
.st-report__top-text code {
    background: rgba(0,0,0,0.05);
    padding: 0.05em 0.35em;
    border-radius: 3px;
    font-size: 0.9em;
}

/* «Всё хорошо» — альтернативный блок */
.st-report__top-problems--clean {
    border-color: #1abc9c;
    background: #f0fbf8;
}
.st-report__top-clean {
    display: flex;
    gap: 1em;
    align-items: flex-start;
}
.st-report__top-clean-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1abc9c;
    color: #fff;
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.st-report__top-clean-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1d8348;
    margin-bottom: 0.3em;
}
.st-report__top-clean-text {
    color: #444;
    line-height: 1.5;
}

/* ── Email preview (sandboxed iframe, collapsible, desktop/mobile tabs) ── */
.st-report__preview-card {
    /* Когда card свёрнут — паддинги уменьшены чтобы выглядел как полоска */
    transition: padding 0.2s ease;
}
.st-report__preview-card[data-collapsed="true"] {
    padding-top: 1em;
    padding-bottom: 1em;
}

/* Заголовок-кнопка */
.st-report__preview-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.6em;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
}
.st-report__preview-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #272727;
    flex: 1;
}
.st-report__preview-toggle-hint {
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
}
.st-report__preview-chevron {
    color: #888;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.st-report__preview-card[data-collapsed="false"] .st-report__preview-chevron {
    transform: rotate(180deg);
}

.st-report__preview-body {
    margin-top: 1.2em;
}
.st-report__preview-card[data-collapsed="true"] .st-report__preview-body {
    display: none;
}

/* Tabs */
.st-report__preview-tabs {
    display: flex;
    gap: 0.5em;
    margin-bottom: 1em;
    border-bottom: 2px solid #e0e0e0;
}
.st-report__preview-tab {
    padding: 0.6em 1.2em;
    border: none;
    background: none;
    cursor: pointer;
    color: #888;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}
.st-report__preview-tab:hover { color: #272727; }
.st-report__preview-tab--active {
    color: #272727;
    border-bottom-color: #ffde00;
}

/* Frame wrapper — переключает ширину под мобильный/десктоп */
.st-report__preview-frame-wrap {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.02), 0 1px 3px rgba(0,0,0,0.05);
    margin: 0 auto;
    transition: max-width 0.3s ease;
}
.st-report__preview-frame-wrap[data-mode="desktop"] { max-width: 100%; }
.st-report__preview-frame-wrap[data-mode="mobile"]  { max-width: 390px; }

.st-report__preview-frame {
    width: 100%;
    min-height: 320px;
    height: 480px;            /* до того как JS пересчитает по содержимому */
    border: 0;
    display: block;
    background: #fff;
    transition: height 0.3s ease;
}

.st-report__preview-note {
    margin: 0.9em 0 0;
    color: #888;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ── Notice block (общая инфо-плашка внутри карточек) ─────────────────── */
.st-report__notice {
    padding: 1em 1.2em;
    border-radius: 8px;
    margin-bottom: 1em;
    line-height: 1.5;
    font-size: 0.95rem;
}
.st-report__notice strong { display: block; margin-bottom: 0.3em; }
.st-report__notice--warn { background: #fdfaef; color: #876900; border-left: 4px solid #f1c40f; }
.st-report__notice--info { background: #f0f6fb; color: #2c5282; border-left: 4px solid #3498db; }

/* ── Auth grid ──────────────────────────────────────────────────────────── */
.st-report__auth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1em;
}
.st-report__auth-cell {
    padding: 1em 1.2em;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    background: #fafafa;
}
.st-report__auth-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3em;
}
.st-report__auth-status {
    font-size: 1.1rem;
    font-weight: 600;
    color: #272727;
    margin-bottom: 0.5em;
}
.st-report__auth-hint {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}
.st-report__auth-cell--ok      { border-color: #2ecc71; background: #f3fbf5; }
.st-report__auth-cell--ok      .st-report__auth-status { color: #1d8348; }
.st-report__auth-cell--fail    { border-color: #e74c3c; background: #fdf3f2; }
.st-report__auth-cell--fail    .st-report__auth-status { color: #b03a2e; }
.st-report__auth-cell--warn    { border-color: #f1c40f; background: #fdfaef; }
.st-report__auth-cell--warn    .st-report__auth-status { color: #9a7d0a; }
.st-report__auth-cell--unknown { border-color: #bdc3c7; background: #f8f9fa; }
.st-report__auth-cell--unknown .st-report__auth-status { color: #7f8c8d; }

/* ── SpamAssassin ───────────────────────────────────────────────────────── */
.st-report__sa-summary {
    margin: 0 0 1em;
    color: #444;
    line-height: 1.5;
}
.st-report__sa-summary em { color: #888; font-style: normal; font-size: 0.9em; }
.st-report__sa-score {
    font-weight: 700;
    padding: 0.1em 0.5em;
    border-radius: 4px;
}
.st-report__sa-score--ok    { background: #e8f8f0; color: #1d8348; }
.st-report__sa-score--good  { background: #f0fbf2; color: #229954; }
.st-report__sa-score--warn  { background: #fdfaef; color: #9a7d0a; }
.st-report__sa-score--fail  { background: #fdf3f2; color: #b03a2e; }

.st-report__rules {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.st-report__rules th {
    text-align: left;
    padding: 0.4em 0.8em;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    border-bottom: 2px solid #e0e0e0;
}
.st-report__rules td {
    padding: 0.5em 0.8em;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}
.st-report__rule-pts  { font-family: 'SF Mono', Monaco, monospace; white-space: nowrap; font-weight: 600; }
.st-report__rule-name { white-space: nowrap; }
.st-report__rule-desc { color: #555; line-height: 1.4; }
.st-report__rule-row--ok      .st-report__rule-pts { color: #1d8348; }
.st-report__rule-row--neutral .st-report__rule-pts { color: #888; }
.st-report__rule-row--warn    .st-report__rule-pts { color: #9a7d0a; }
.st-report__rule-row--fail    .st-report__rule-pts { color: #b03a2e; }

/* ── DNSBL ──────────────────────────────────────────────────────────────── */
.st-report__dnsbl-clean,
.st-report__dnsbl-summary,
.st-report__dnsbl-skip {
    display: flex;
    align-items: center;
    gap: 0.8em;
    margin: 0 0 1em;
    color: #444;
    line-height: 1.5;
}
.st-report__dnsbl-skip em { color: #888; font-style: normal; font-size: 0.9em; }
.st-report__dnsbl-badge {
    font-weight: 700;
    padding: 0.3em 0.7em;
    border-radius: 6px;
    white-space: nowrap;
    font-family: 'SF Mono', Monaco, monospace;
}
.st-report__dnsbl-badge--clean  { background: #e8f8f0; color: #1d8348; }
.st-report__dnsbl-badge--listed { background: #fdf3f2; color: #b03a2e; }

.st-report__dnsbl-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}
.st-report__dnsbl-item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em 1em;
    align-items: baseline;
    padding: 0.7em 1em;
    border-radius: 8px;
    border-left: 4px solid #bdc3c7;
    background: #f8f9fa;
}
.st-report__dnsbl-item--critical { border-left-color: #e74c3c; }
.st-report__dnsbl-item--high     { border-left-color: #e67e22; }
.st-report__dnsbl-item--medium   { border-left-color: #f1c40f; }
.st-report__dnsbl-name { font-weight: 700; color: #272727; }
.st-report__dnsbl-zone { color: #888; font-family: 'SF Mono', Monaco, monospace; font-size: 0.88em; }
.st-report__dnsbl-txt  { flex-basis: 100%; color: #666; font-size: 0.9em; line-height: 1.4; }
.st-report__dnsbl-link { margin-left: auto; color: #272727; text-decoration: underline; font-size: 0.9rem; }

/* ── Links section ──────────────────────────────────────────────────────── */
.st-report__links-summary {
    margin: 0 0 1.2em;
    color: #444;
    line-height: 1.5;
}
.st-report__links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6em;
}
.st-report__link {
    padding: 0.7em 1em;
    border-radius: 8px;
    border-left: 4px solid #bdc3c7;
    background: #fafbfc;
    line-height: 1.4;
}
.st-report__link--dangerous { border-left-color: #e74c3c; background: #fdf3f2; }
.st-report__link--shortener { border-left-color: #f1c40f; background: #fdfaef; }
.st-report__link--broken    { border-left-color: #e67e22; background: #fdf6f0; }
.st-report__link--mailto,
.st-report__link--tel,
.st-report__link--anchor    { border-left-color: #95a5a6; background: #f8f9fa; }
.st-report__link--normal    { border-left-color: #2ecc71; background: #f3fbf5; }

.st-report__link-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5em;
}
.st-report__link-cat {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15em 0.55em;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(0,0,0,0.06);
    color: #444;
    flex-shrink: 0;
}
.st-report__link-cat--dangerous { background: #e74c3c; color: #fff; }
.st-report__link-cat--shortener { background: #f1c40f; color: #272727; }
.st-report__link-cat--broken    { background: #e67e22; color: #fff; }
.st-report__link-cat--mailto,
.st-report__link-cat--tel,
.st-report__link-cat--anchor    { background: #ecf0f1; color: #555; }

.st-report__link-url {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.88em;
    color: #272727;
    word-break: break-all;
    background: rgba(0,0,0,0.04);
    padding: 0.1em 0.4em;
    border-radius: 3px;
    flex: 1;
    min-width: 0;
}
.st-report__link-count {
    font-size: 0.85rem;
    color: #888;
    font-weight: 600;
    flex-shrink: 0;
}
.st-report__link-text {
    margin-top: 0.3em;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}
.st-report__link-redirect {
    margin-top: 0.3em;
    color: #555;
    font-size: 0.88rem;
}
.st-report__link-redirect code {
    background: rgba(0,0,0,0.05);
    padding: 0.05em 0.35em;
    border-radius: 3px;
    font-size: 0.95em;
}
.st-report__link-redirect--err {
    color: #b03a2e;
}
.st-report__link-issues {
    list-style: none;
    padding: 0;
    margin: 0.4em 0 0;
    font-size: 0.88rem;
    color: #666;
    line-height: 1.5;
}
.st-report__link-issues li { padding: 0.1em 0; }
.st-report__link-issues code {
    background: rgba(0,0,0,0.05);
    padding: 0.05em 0.35em;
    border-radius: 3px;
    font-size: 0.92em;
}

/* Свёртка «показать все ссылки без проблем» */
.st-report__links-details {
    margin-top: 1em;
}
.st-report__links-details summary {
    cursor: pointer;
    color: #2c5282;
    font-size: 0.9rem;
    padding: 0.6em 0;
    list-style: none;
    user-select: none;
}
.st-report__links-details summary:hover { color: #1a365d; }
.st-report__links-details summary::-webkit-details-marker { display: none; }
.st-report__links-details summary::before {
    content: '▸ ';
    transition: transform 0.2s;
    display: inline-block;
}
.st-report__links-details[open] summary::before { content: '▾ '; }
.st-report__links-details .st-report__links-list {
    margin-top: 0.5em;
}

/* ── Images section ─────────────────────────────────────────────────────── */
.st-report__images-details {
    margin-top: 1em;
}
.st-report__images-details summary {
    cursor: pointer;
    color: #2c5282;
    font-size: 0.9rem;
    padding: 0.4em 0;
    list-style: none;
}
.st-report__images-details summary::-webkit-details-marker { display: none; }
.st-report__images-details summary::before {
    content: '▸ ';
    transition: transform 0.2s;
    display: inline-block;
}
.st-report__images-details[open] summary::before { content: '▾ '; }
.st-report__images-list {
    list-style: none;
    padding: 0.5em 0 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6em;
}
.st-report__image-item {
    padding: 0.6em 0.9em;
    border-radius: 6px;
    background: #fafbfc;
    border-left: 3px solid #f1c40f;
    line-height: 1.4;
}
.st-report__image-src {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.85rem;
    color: #272727;
    word-break: break-all;
    background: rgba(0,0,0,0.04);
    padding: 0.1em 0.4em;
    border-radius: 3px;
    display: inline-block;
}
.st-report__image-alt {
    margin-top: 0.3em;
    color: #666;
    font-size: 0.88rem;
    font-style: italic;
}

/* ── Issues / checks ────────────────────────────────────────────────────── */
.st-report__subsection {
    padding: 0.6em 0;
}
.st-report__subsection + .st-report__subsection {
    border-top: 1px solid #f0f0f0;
    margin-top: 1em;
    padding-top: 1.2em;
}

.st-report__check-list,
.st-report__issues {
    list-style: none;
    padding: 0;
    margin: 0.6em 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.4em;
}
.st-report__check,
.st-report__issue {
    padding: 0.4em 0.8em;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.4;
}
.st-report__check--ok    { background: #f3fbf5; color: #1d8348; }
.st-report__check--warn  { background: #fdfaef; color: #9a7d0a; }
.st-report__issue--warn  { background: #fdfaef; color: #9a7d0a; border-left: 3px solid #f1c40f; }
.st-report__issue--fail  { background: #fdf3f2; color: #b03a2e; border-left: 3px solid #e74c3c; }

.st-report__ok {
    margin: 0.6em 0 0;
    color: #1d8348;
    background: #f3fbf5;
    padding: 0.5em 0.9em;
    border-radius: 6px;
    font-size: 0.95rem;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.st-report__footer {
    text-align: center;
    padding: 1.6em 0;
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
}
.st-report__expires {
    margin: 0 0 1.2em;
}

/* ── Hero compact ───────────────────────────────────────────────────────── */
.hero--compact { padding: 2em 0 1em !important; }

/* ── Mobile (report) ────────────────────────────────────────────────────── */
@media only screen and (max-width: 720px) {
    .st-report__score-block {
        flex-direction: column;
        text-align: center;
        padding: 1.5em;
        gap: 1.2em;
    }
    .st-report__score-circle {
        width: 100px; height: 100px;
    }
    .st-report__score-value { font-size: 2.2rem; }
    .st-report__verdict { font-size: 1.4rem; }
    .st-report__card { padding: 1.4em; }
    .st-report__defs { grid-template-columns: 1fr; gap: 0.1em; }
    .st-report__defs dt { color: #888; font-size: 0.85em; margin-top: 0.5em; }
    .st-report__rules { font-size: 0.85rem; }
    .st-report__rules th, .st-report__rules td { padding: 0.4em 0.5em; }
    .st-report__dnsbl-link { margin-left: 0; }
}
