/* audit152.netcat.ru — стиль netcat.ru */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --orange:   #FF5A00;
    --orange-d: #e04e00;
    --dark:     #1A1A2E;
    --dark2:    #252542;
    --text:     #2c2c3a;
    --muted:    #6b7280;
    --border:   #e5e7eb;
    --ok:       #059669;
    --warn:     #d97706;
    --error:    #dc2626;
    --info:     #6b7280;
    --bg:       #f8f9fc;
    --white:    #ffffff;
    --radius:   8px;
    --shadow:   0 2px 12px rgba(0,0,0,.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
}

/* ── Header ── */
.nc-header {
    background: var(--dark);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.nc-header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.nc-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -.3px;
}
.nc-logo-dot { color: var(--orange); }
.nc-header-title {
    color: rgba(255,255,255,.7);
    font-size: 13px;
    border-left: 1px solid rgba(255,255,255,.2);
    padding-left: 16px;
    margin-left: 4px;
}

/* ── Layout ── */
.nc-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* ── Hero ── */
.nc-hero {
    text-align: center;
    padding: 48px 0 40px;
}
.nc-hero h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 12px;
}
.nc-hero p {
    color: var(--muted);
    font-size: 17px;
    max-width: 540px;
    margin: 0 auto 32px;
}

/* ── Card ── */
.nc-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 32px;
    margin-bottom: 20px;
}

/* ── Form ── */
.nc-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}
.nc-input {
    flex: 1;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    color: var(--text);
    transition: border-color .15s;
    outline: none;
}
.nc-input:focus { border-color: var(--orange); }
.nc-input::placeholder { color: var(--muted); }

.nc-btn {
    padding: 13px 28px;
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}
.nc-btn:hover  { background: var(--orange-d); }
.nc-btn:disabled { opacity: .55; cursor: not-allowed; }
.nc-btn-secondary {
    background: var(--white);
    color: var(--orange);
    border: 1.5px solid var(--orange);
}
.nc-btn-secondary:hover { background: #fff5f0; }

/* ── Progress ── */
.nc-progress { margin-top: 20px; }
.nc-progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}
.nc-progress-fill {
    height: 100%;
    background: var(--orange);
    border-radius: 4px;
    transition: width .6s ease;
}
.nc-progress-text { color: var(--muted); font-size: 14px; }

/* ── Alert ── */
.nc-alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-top: 16px;
    display: none;
}
.nc-alert-error   { background: #fef2f2; color: var(--error); border-left: 3px solid var(--error); }
.nc-alert-warning { background: #fffbeb; color: var(--warn);  border-left: 3px solid var(--warn);  }
.nc-alert-ok      { background: #f0fdf4; color: var(--ok);    border-left: 3px solid var(--ok);    }

/* ── Checks grid ── */
.nc-checks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 28px;
}
.nc-check-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    border: 1.5px solid var(--border);
    text-align: center;
}
.nc-check-icon { font-size: 28px; margin-bottom: 10px; }
.nc-check-item h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.nc-check-item p  { font-size: 13px; color: var(--muted); }

/* ── Report ── */
.nc-report-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.nc-report-domain h2 { font-size: 22px; font-weight: 700; }
.nc-report-domain .nc-date { font-size: 13px; color: var(--muted); margin-top: 4px; }
.nc-score-badge {
    padding: 8px 20px;
    border-radius: 20px;
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    align-self: flex-start;
}

.nc-counters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.nc-counter {
    flex: 1;
    min-width: 80px;
    text-align: center;
    padding: 14px 12px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}
.nc-counter .nc-num { font-size: 28px; font-weight: 800; }
.nc-counter .nc-lbl { font-size: 12px; color: var(--muted); margin-top: 4px; }
.nc-counter.crit .nc-num { color: var(--error); }
.nc-counter.major .nc-num { color: var(--warn); }
.nc-counter.minor .nc-num { color: #ca8a04; }

/* ── Section cards ── */
.nc-section { margin-bottom: 16px; }
.nc-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    user-select: none;
}
.nc-section-header.ok     { background: #f0fdf4; border: 1.5px solid #bbf7d0; }
.nc-section-header.error  { background: #fef2f2; border: 1.5px solid #fecaca; }
.nc-section-header.warning{ background: #fffbeb; border: 1.5px solid #fde68a; }
.nc-section-icon { font-size: 18px; }
.nc-section-title { font-weight: 600; flex: 1; font-size: 15px; }
.nc-section-arrow { color: var(--muted); font-size: 12px; transition: transform .2s; }
.nc-section.open .nc-section-arrow { transform: rotate(180deg); }
.nc-section-body {
    display: none;
    padding: 20px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
}
.nc-section.open .nc-section-body { display: block; }

/* ── Instruction box ── */
.nc-instruction {
    background: #f8f9fc;
    border: 1.5px solid var(--border);
    border-left: 3px solid var(--orange);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-top: 16px;
    font-size: 13px;
    white-space: pre-line;
    line-height: 1.7;
}
.nc-instruction-title {
    font-weight: 600;
    color: var(--orange);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 10px;
}

/* ── NC блок ── */
.nc-nc-block {
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 16px;
}
.nc-nc-block.ok       { background: #f0fdf4; border: 1.5px solid #bbf7d0; }
.nc-nc-block.outdated { background: #fffbeb; border: 1.5px solid #fde68a; }
.nc-nc-block.unknown  { background: #f8f9fc; border: 1.5px solid var(--border); }
.nc-nc-block.pirate   { background: #fef2f2; border: 1.5px solid #fecaca; }
.nc-nc-block h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.nc-nc-block p  { font-size: 14px; color: var(--muted); margin-bottom: 12px; }

.nc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.nc-action-btn {
    display: inline-block;
    padding: 9px 18px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .15s;
}
.nc-action-btn:hover { opacity: .85; }
.nc-action-btn.primary   { background: var(--orange); color: var(--white); }
.nc-action-btn.secondary { background: var(--white); color: var(--orange); border: 1.5px solid var(--orange); }
.nc-action-note { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ── Logging block ── */
.nc-logging {
    border-radius: var(--radius);
    padding: 20px 24px;
    background: #f0f4ff;
    border: 1.5px solid #c7d2fe;
    margin-bottom: 16px;
}
.nc-logging h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }

/* ── Edition CTA block ── */
.nc-edition-cta { margin-top: 20px; }
.nc-edition-cta__badge {
    display: inline-block;
    background: #f1f5f9;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
    letter-spacing: .3px;
}
.nc-edition-cta__heading {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}
.nc-edition-cta__explanation {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.6;
}
.nc-edition-cta__box {
    background: #fff8f0;
    border: 1.5px solid #fed7aa;
    border-radius: var(--radius);
    padding: 18px 20px;
}
.nc-edition-cta__title {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--orange);
    margin-bottom: 14px;
}
.nc-edition-cta__option {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 10px 0;
}
.nc-edition-cta__option--primary strong { color: var(--dark); }
.nc-edition-cta__num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--orange);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.nc-edition-cta__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--orange);
    text-decoration: none;
}
.nc-edition-cta__link:hover { text-decoration: underline; }
.nc-edition-cta__note {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
}
.nc-edition-cta__or {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    padding: 2px 0;
    font-style: italic;
}
.nc-edition-cta__fallback {
    font-size: 12px;
    color: var(--muted);
    border-top: 1px solid #fed7aa;
    margin-top: 12px;
    padding-top: 12px;
}

/* ── Summary ── */
.nc-summary-text { font-size: 15px; color: var(--muted); margin-bottom: 16px; }

/* ── Admin log ── */
.nc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.nc-table th { background: var(--dark); color: var(--white); padding: 10px 12px; text-align: left; }
.nc-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.nc-table tr:hover td { background: #f8f9fc; }
.nc-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}
.nc-badge.done     { background: #d1fae5; color: #065f46; }
.nc-badge.rejected { background: #fee2e2; color: #991b1b; }
.nc-badge.error    { background: #fef3c7; color: #92400e; }
.nc-badge.pending, .nc-badge.crawling, .nc-badge.analyzing { background: #e0e7ff; color: #3730a3; }

/* ── Misc ── */
.nc-footer { text-align: center; padding: 32px 0; color: var(--muted); font-size: 13px; }
.nc-footer a { color: var(--orange); text-decoration: none; }
.nc-back { color: var(--orange); text-decoration: none; font-size: 14px; display: inline-block; margin-bottom: 20px; }
.nc-issues-list { margin: 8px 0 0 18px; font-size: 13px; color: var(--muted); }
.nc-issues-list li { margin-bottom: 4px; }
hr.nc-hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

@media (max-width: 640px) {
    .nc-hero h1 { font-size: 24px; }
    .nc-input-row { flex-direction: column; }
    .nc-report-header { flex-direction: column; }
    .nc-card { padding: 20px; }
}
