/* TASK-SEO-12: публичные микро-инструменты /tools/* */
.tool-layout {
    max-width: 920px;
    margin: 0 auto;
    padding: 1.25rem 1rem 3rem;
    flex: 1;
}

.tool-breadcrumbs {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

.tool-breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tool-breadcrumbs-item:not(:last-child)::after {
    content: "›";
    margin-left: 0.5rem;
    opacity: 0.6;
}

.tool-breadcrumbs-item a {
    color: #60a5fa;
    text-decoration: none;
}

.tool-breadcrumbs-item a:hover {
    text-decoration: underline;
}

.tool-hero h1 {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.tool-hero .tool-lead {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.tool-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.tool-upload-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.tool-upload-row input[type="file"] {
    max-width: 100%;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.tool-btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1.1rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
}

.tool-btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.tool-hint {
    font-size: 0.8rem;
    color: #94a3b8;
}

.tool-status {
    margin-top: 0.75rem;
    min-height: 1.25rem;
    font-size: 0.9rem;
}

.tool-status.is-error {
    color: #fca5a5;
}

.tool-status.is-ok {
    color: #86efac;
}

.tool-results {
    margin-top: 1rem;
    display: none;
}

.tool-results.is-visible {
    display: block;
}

.tool-results dl {
    display: grid;
    grid-template-columns: minmax(auto, 220px) 1fr;
    gap: 0.5rem 1rem;
    font-size: 0.92rem;
    margin: 0 0 1rem;
}

.tool-results dt {
    color: #94a3b8;
    margin: 0;
}

.tool-results dd {
    margin: 0;
    color: #f1f5f9;
    font-weight: 600;
}

.tool-svg-wrap {
    background: #0f172a;
    border-radius: 10px;
    padding: 0.5rem;
    overflow: auto;
    max-height: 440px;
}

.tool-svg-wrap svg {
    display: block;
    margin: 0 auto;
}

.tool-seo {
    color: #cbd5e1;
    font-size: 0.98rem;
    line-height: 1.65;
}

.tool-seo h2 {
    color: #f8fafc;
    font-size: 1.15rem;
    margin: 2rem 0 0.75rem;
}

.tool-seo h3 {
    color: #e2e8f0;
    font-size: 1.02rem;
    margin: 1.25rem 0 0.5rem;
}

.tool-seo p {
    margin: 0 0 0.85rem;
}

.tool-seo ul {
    margin: 0 0 1rem 1.1rem;
    padding: 0;
}

.tool-seo a {
    color: #60a5fa;
    text-decoration: none;
}

.tool-seo a:hover {
    text-decoration: underline;
}

.tool-seo dl.field-help dt {
    font-weight: 600;
    color: #e2e8f0;
    margin-top: 0.5rem;
}

.tool-seo dl.field-help dd {
    margin: 0.25rem 0 0 0;
    color: #cbd5e1;
}

.tool-cta {
    display: inline-block;
    margin: 0.75rem 0;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.45);
    color: #93c5fd;
    font-weight: 600;
    text-decoration: none;
}

.tool-cta:hover {
    background: rgba(37, 99, 235, 0.35);
    color: #bfdbfe;
}

.tool-faq {
    margin-top: 2rem;
}

.tool-faq details {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.6rem;
    background: rgba(255, 255, 255, 0.02);
}

.tool-faq summary {
    cursor: pointer;
    font-weight: 600;
    color: #e2e8f0;
}

.tool-faq summary::-webkit-details-marker {
    display: none;
}

.tool-faq details[open] summary {
    margin-bottom: 0.5rem;
}

body.tool-page {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

body.tool-page .site-footer {
    margin-top: auto;
}

@media (max-width: 640px) {
    .tool-results dl {
        grid-template-columns: 1fr;
    }
}
