:root {
    --pw-brand: #0f2744;
    --pw-brand-mid: #1a3d66;
    --pw-brand-light: #2d5a87;
    --pw-accent: #2563eb;
    --pw-accent-soft: #dbeafe;
    --pw-surface: #ffffff;
    --pw-bg: #eef2f7;
    --pw-bg-alt: #e4eaf2;
    --pw-muted: #64748b;
    --pw-border: #dde4ee;
    --pw-radius: 14px;
    --pw-radius-sm: 10px;
    --pw-shadow: 0 8px 32px rgba(15, 39, 68, 0.08);
    --pw-shadow-sm: 0 2px 12px rgba(15, 39, 68, 0.06);
    --pw-signature: #f59e0b;
    --pw-decipher: #22c55e;
    --pw-stamp: #f97316;
    --pw-logo: #a855f7;
}

body.pw-body,
body {
    background: var(--pw-bg);
    color: #1e293b;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
}

/* Header */
.pw-header {
    background: linear-gradient(135deg, var(--pw-brand) 0%, var(--pw-brand-mid) 55%, #1e4976 100%);
    box-shadow: 0 4px 24px rgba(15, 39, 68, 0.18);
}

.pw-navbar {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.pw-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff !important;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.pw-brand__mark {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    padding: 0.15rem 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pw-brand__name {
    font-size: 1.15rem;
}

.pw-brand__tag {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(37, 99, 235, 0.45);
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    margin-left: 0.25rem;
}

.pw-nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.15s;
}

.pw-nav-link:hover {
    color: #fff;
}

.pw-nav-badge {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    white-space: nowrap;
}

.pw-main {
    padding-top: 1.75rem;
}

/* Footer */
.pw-footer {
    border-top: 1px solid var(--pw-border);
    background: var(--pw-surface);
    padding: 1.25rem 0;
}

.pw-footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem 1.5rem;
    font-size: 0.8125rem;
    color: var(--pw-muted);
}

.pw-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.pw-footer__inner a,
.pw-footer__links a {
    color: var(--pw-accent);
    text-decoration: none;
}

.pw-footer__inner a:hover,
.pw-footer__links a:hover {
    text-decoration: underline;
}

/* Hero */
.pw-hero {
    background: var(--pw-surface);
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius);
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--pw-shadow-sm);
}

.pw-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pw-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--pw-brand-light);
    background: var(--pw-accent-soft);
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
}

.pw-hero__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--pw-brand);
    margin-bottom: 0.65rem;
    line-height: 1.2;
}

.pw-hero__accent {
    color: var(--pw-accent);
}

.pw-hero__lead {
    font-size: 1.05rem;
    color: var(--pw-muted);
    max-width: 52rem;
    margin-bottom: 1rem;
}

.pw-hero__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--pw-accent);
    text-decoration: none;
}

.pw-hero__link:hover {
    text-decoration: underline;
}

/* Flow strip */
.pw-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 767.98px) {
    .pw-flow {
        grid-template-columns: 1fr;
    }
}

.pw-flow__step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--pw-surface);
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
    padding: 1rem 1.1rem;
    box-shadow: var(--pw-shadow-sm);
}

.pw-flow__num {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pw-accent), var(--pw-brand-light));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pw-flow__text strong {
    display: block;
    font-size: 0.9rem;
    color: var(--pw-brand);
    margin-bottom: 0.15rem;
}

.pw-flow__text span {
    font-size: 0.8rem;
    color: var(--pw-muted);
    line-height: 1.35;
}

/* Workspace card */
.pw-workspace-card {
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius);
    box-shadow: var(--pw-shadow);
    overflow: hidden;
}

.pw-workspace-card > .card-body {
    padding: 1.5rem 1.75rem;
}

/* Tooltips icon */
.pw-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.05rem;
    height: 1.05rem;
    margin-left: 0.25rem;
    vertical-align: middle;
    border-radius: 50%;
    background: var(--pw-accent-soft);
    color: var(--pw-accent);
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    position: relative;
    top: -0.05em;
    flex-shrink: 0;
}

.pw-tip::before {
    content: "?";
}

.pw-tip:hover,
.pw-tip:focus {
    background: var(--pw-accent);
    color: #fff;
    outline: none;
}

.tooltip {
    font-size: 0.8125rem;
}

.tooltip-inner {
    max-width: 280px;
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.font-monospace {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
}

.card {
    border: none;
}

.hidden {
    display: none !important;
}

/* Wizard */
.wizard-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.wizard-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.wizard-step__num {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pw-accent), var(--pw-brand-light));
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-top: 0.1rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.wizard-step__body {
    flex: 1;
    min-width: 0;
}

.wizard-step__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pw-brand);
    margin-bottom: 0.35rem;
}

.wizard-step__desc {
    font-size: 0.85rem;
    color: var(--pw-muted);
    margin-bottom: 1rem;
    line-height: 1.45;
}

.advanced-toggle-wrap {
    border-top: 1px dashed var(--pw-border);
    padding-top: 0.75rem;
}

.advanced-toggle {
    text-decoration: none;
    font-weight: 600;
    color: var(--pw-accent) !important;
}

.advanced-toggle:hover {
    text-decoration: underline;
}

.advanced-toggle__icon {
    display: inline-block;
    transition: transform 0.2s;
}

.advanced-toggle[aria-expanded="true"] .advanced-toggle__icon {
    transform: rotate(180deg);
}

.advanced-panel {
    border-top: 1px dashed var(--pw-border);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

/* Advanced rule cards */
.rule-card {
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
    overflow: hidden;
}

.rule-card .card-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--pw-border);
}

.image-panel {
    border: 1px dashed var(--pw-border);
    border-radius: var(--pw-radius-sm);
    padding: 0.75rem;
    background: #fafbfc;
}

.image-panel .form-label {
    font-size: 0.8125rem;
}

.json-preview-panel summary {
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.json-preview {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1rem;
    border-radius: var(--pw-radius-sm);
    font-size: 0.8rem;
    max-height: 320px;
    overflow: auto;
    margin: 0;
}

#configurator-root .form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.3rem;
}

#configurator-root .form-control,
#configurator-root .form-select {
    border-color: var(--pw-border);
    border-radius: 8px;
}

#configurator-root .form-control:focus,
#configurator-root .form-select:focus {
    border-color: var(--pw-accent);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

/* Two-column workspace */
.workspace-split {
    align-items: flex-start;
}

.workspace-main {
    min-width: 0;
}

.workspace-preview-col {
    min-width: 0;
}

.pdf-preview-panel {
    position: sticky;
    top: 1rem;
    background: var(--pw-surface);
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius);
    padding: 1.15rem;
    box-shadow: var(--pw-shadow);
}

.pdf-preview-wrap {
    padding-top: 0;
}

.pdf-preview-wrap__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.pdf-preview-wrap__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pw-brand);
    margin: 0;
}

.pdf-preview-wrap:not(.pdf-preview-wrap--loaded) .pdf-preview-stage {
    min-height: 320px;
}

.pdf-preview-wrap:not(.pdf-preview-wrap--loaded) .pdf-preview-inner {
    display: none;
}

.pdf-preview-wrap:not(.pdf-preview-wrap--loaded) .pdf-preview-stage__hit {
    opacity: 1;
    background: rgba(248, 250, 252, 0.92);
}

.pdf-preview-wrap:not(.pdf-preview-wrap--loaded) .pdf-preview-stage__action {
    color: #475569;
    background: #fff;
    border: 1px dashed #cbd5e1;
    box-shadow: var(--pw-shadow-sm);
}

.pdf-preview-wrap--loading:not(.pdf-preview-wrap--loaded) .pdf-preview-stage__action {
    opacity: 0.65;
}

.pdf-preview-wrap--loaded .pdf-preview-stage__hit {
    opacity: 0;
    background: rgba(15, 39, 68, 0.5);
    transition: opacity 0.15s ease;
}

.pdf-preview-wrap--loaded .pdf-preview-stage:hover .pdf-preview-stage__hit,
.pdf-preview-wrap--loaded .pdf-preview-stage:focus-within .pdf-preview-stage__hit {
    opacity: 1;
}

.pdf-preview-stage__hit {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    cursor: pointer;
    border-radius: inherit;
}

.pdf-preview-stage__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    background: rgba(15, 39, 68, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.25);
    pointer-events: none;
}

.pdf-preview-wrap--loaded .pdf-preview-inner {
    display: inline-block;
}

.pdf-preview-wrap--loaded .pdf-preview-stage::after {
    content: none;
}

/* File upload cards */
.file-upload-grid {
    margin-bottom: 0.25rem;
}

.file-card {
    position: relative;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
    padding: 1rem 1.1rem;
    background: #fafbfc;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.file-card:hover {
    background: var(--pw-surface);
    box-shadow: var(--pw-shadow-sm);
}

.file-card--required {
    background: #fafbfc;
}

.file-card--selected {
    border-color: #cbd5e1;
    background: var(--pw-surface);
    box-shadow: 0 1px 2px rgba(15, 39, 68, 0.06), 0 0 0 1px rgba(15, 39, 68, 0.04);
}

.file-card--pdf.file-card--selected,
.file-card--signature.file-card--selected,
.file-card--stamp.file-card--selected,
.file-card--logo.file-card--selected {
    border-color: #cbd5e1;
}

.file-card__head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}

.file-card__title {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--pw-brand);
}

.file-card__desc {
    font-size: 0.8rem;
    color: var(--pw-muted);
    margin-top: 0.25rem;
    line-height: 1.4;
}

.file-card__formats {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--pw-muted);
    background: #eef2f6;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
}

.pw-badge {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    background: #eef2f6;
    color: var(--pw-muted);
    border: 1px solid var(--pw-border);
}

.pw-badge--required {
    background: #f8fafc;
    color: #475569;
}

.file-card__preview {
    display: block;
    margin-top: 0.15rem;
    cursor: pointer;
}

.file-card__preview-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    max-height: 120px;
    padding: 0.65rem;
    border: 1px dashed #d1d9e6;
    border-radius: 8px;
    background:
        linear-gradient(45deg, #f1f5f9 25%, transparent 25%) -8px 0/16px 16px,
        linear-gradient(-45deg, #f1f5f9 25%, transparent 25%) -8px 0/16px 16px,
        linear-gradient(45deg, transparent 75%, #f1f5f9 75%) -8px 0/16px 16px,
        linear-gradient(-45deg, transparent 75%, #f1f5f9 75%) -8px 0/16px 16px,
        #f8fafc;
    overflow: hidden;
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.file-card__preview:hover .file-card__preview-frame,
.file-card__preview:focus-within .file-card__preview-frame {
    border-color: #cbd5e1;
    box-shadow: var(--pw-shadow-sm);
}

.file-card__preview-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    background: #eef2f6;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.file-card__preview-img {
    display: none;
    max-width: 100%;
    max-height: 104px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.file-card__preview-placeholder {
    position: absolute;
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.45rem;
    font-size: 0.72rem;
    color: #94a3b8;
    text-align: center;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-card__preview-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 39, 68, 0.06);
    transition: color 0.15s, border-color 0.15s;
}

.file-card__preview:hover .file-card__preview-action {
    color: var(--pw-accent);
    border-color: #bfdbfe;
}

.file-card__preview--loaded .file-card__preview-frame {
    border-style: solid;
    border-color: var(--pw-border);
    background: #fff;
}

.file-card__preview--loaded .file-card__preview-icon {
    display: none;
}

.file-card__preview--loaded.file-card__preview--pdf .file-card__preview-icon {
    display: flex;
}

.file-card__preview--loaded .file-card__preview-img {
    display: block;
}

.file-card__preview--loaded .file-card__preview-placeholder {
    display: block;
}

.file-card__preview--empty .file-card__preview-placeholder {
    display: none;
}

.file-card__preview--empty.file-card__preview--pdf .file-card__preview-placeholder {
    display: none;
}

.file-card--selected .file-card__preview-frame {
    border-color: #cbd5e1;
}

.file-card__status {
    font-size: 0.8rem;
    color: #94a3b8;
    word-break: break-all;
    min-height: 1.2em;
}

.file-card__status--ok {
    color: #16a34a;
    font-weight: 600;
}

.file-card__field {
    margin: 0;
}

.file-card__field .invalid-feedback {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Role classes kept for JS hooks; visual distinction via content, not borders */
.file-card--pdf,
.file-card--signature,
.file-card--stamp,
.file-card--logo {
    border-left: none;
}

.pdf-preview-stage {
    position: relative;
    width: 100%;
    min-height: 200px;
    background: #475569;
    border-radius: var(--pw-radius-sm);
    overflow: auto;
    max-height: calc(100vh - 160px);
}

.pdf-preview-inner {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.pdf-preview-inner canvas {
    display: block;
}

#pdf-preview-overlay {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .pdf-preview-panel {
        position: static;
        margin-top: 0.75rem;
    }

    .pdf-preview-stage {
        max-height: 60vh;
    }

    .pw-workspace-card > .card-body {
        padding: 1rem;
    }

    .pw-hero {
        padding: 1.25rem 1.25rem;
    }
}

.pdf-preview-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
}

.legend-box {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: middle;
    border-radius: 3px;
    margin-right: 4px;
}

.legend-box--match,
.legend-box--signature {
    background: rgba(245, 158, 11, 0.55);
    border: 2px solid rgba(245, 158, 11, 0.95);
}

.legend-box--decipher {
    background: rgba(34, 197, 94, 0.55);
    border: 2px solid rgba(34, 197, 94, 0.95);
}

.legend-box--stamp {
    background: rgba(249, 115, 22, 0.55);
    border: 2px solid rgba(249, 115, 22, 0.95);
}

.legend-box--logo {
    background: rgba(168, 85, 247, 0.55);
    border: 2px solid rgba(168, 85, 247, 0.95);
}

.legend-box--image {
    background: rgba(37, 99, 235, 0.15);
    border: 2px dashed rgba(37, 99, 235, 0.7);
}

/* Wizard rules */
.wizard-rule {
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
    transition: opacity 0.2s, box-shadow 0.15s;
}

.wizard-rule:hover {
    box-shadow: var(--pw-shadow-sm);
}

.wizard-rule--disabled {
    opacity: 0.5;
}

.wizard-rule--disabled .wiz-row-fields {
    pointer-events: none;
}

.wiz-row-badge {
    font-size: 0.72rem;
    font-weight: 500;
    border-radius: 6px;
    padding: 0.25rem 0.55rem;
    background: #f1f5f9;
    color: var(--pw-muted);
    border: 1px solid var(--pw-border);
}

.wiz-row-badge--signature,
.wiz-row-badge--decipher,
.wiz-row-badge--stamp,
.wiz-row-badge--logo {
    background: #f1f5f9;
    color: var(--pw-muted);
}

.wizard-rule__hint {
    font-size: 0.8rem;
    color: var(--pw-muted);
    margin-left: 1.75rem;
    line-height: 1.35;
}

/* Submit area */
.pw-submit-area {
    border-top: 1px solid var(--pw-border);
    padding-top: 1.25rem;
    margin-top: 1.5rem;
}

.pw-submit-area .btn-primary {
    background: linear-gradient(135deg, var(--pw-accent), var(--pw-brand-light));
    border: none;
    border-radius: 10px;
    font-weight: 600;
    padding: 0.65rem 1.75rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.pw-submit-area .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d4ed8, var(--pw-brand-mid));
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.pw-submit-area .btn-primary:disabled {
    opacity: 0.55;
}

.pw-submit-note {
    font-size: 0.8125rem;
    color: var(--pw-muted);
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* Info block below workspace */
.pw-info-block {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--pw-surface);
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
    font-size: 0.85rem;
    color: var(--pw-muted);
}

.pw-info-block a {
    color: var(--pw-accent);
}

#save-status {
    vertical-align: middle;
}

#preview-match-count {
    font-weight: 600;
}

/* CTA — личный кабинет */
.pw-cta {
    margin-top: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--pw-surface) 0%, rgba(59, 130, 246, 0.06) 100%);
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius);
}

.pw-cta__head {
    max-width: 42rem;
    margin-bottom: 1.5rem;
}

.pw-cta__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pw-cta__lead {
    color: var(--pw-muted);
    margin-bottom: 0;
    font-size: 0.9375rem;
}

.pw-cta__lead a {
    color: var(--pw-accent);
    text-decoration: none;
}

.pw-cta__lead a:hover {
    text-decoration: underline;
}

.pw-cta-card {
    height: 100%;
    padding: 1.25rem;
    background: var(--pw-bg);
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pw-cta-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.pw-cta-card__icon {
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.pw-cta-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pw-cta-card__text {
    font-size: 0.875rem;
    color: var(--pw-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

.pw-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Форма заявки на доступ */
.pw-access {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--pw-surface);
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius);
    scroll-margin-top: 5rem;
}

.pw-access__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.pw-access__lead {
    color: var(--pw-muted);
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
}

.pw-access-alert {
    margin-bottom: 1rem;
}

.pw-access-interests {
    border: none;
    padding: 0;
    margin: 0;
}

.pw-access-interests legend {
    float: none;
    width: auto;
    font-size: 0.875rem;
    font-weight: 500;
}

.pw-access-note {
    font-size: 0.8125rem;
    color: var(--pw-muted);
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* Страница /cabinet */
.site-cabinet {
    max-width: 52rem;
    margin: 0 auto;
}

.pw-cabinet-hero {
    margin-bottom: 2.5rem;
}

.pw-cabinet-back {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--pw-muted);
    text-decoration: none;
    margin-bottom: 1rem;
}

.pw-cabinet-back:hover {
    color: var(--pw-accent);
}

.pw-cabinet-hero__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.pw-cabinet-hero__lead {
    color: var(--pw-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.pw-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.pw-roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.pw-roadmap-item {
    padding: 1.25rem;
    background: var(--pw-surface);
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
}

.pw-roadmap-item--featured {
    border-color: rgba(59, 130, 246, 0.25);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.04) 0%, var(--pw-surface) 100%);
}

.pw-roadmap-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pw-accent);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.pw-roadmap-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pw-roadmap-item p {
    font-size: 0.875rem;
    color: var(--pw-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

.pw-cabinet-timeline {
    margin-bottom: 2rem;
}

.pw-timeline {
    padding-left: 1.25rem;
    color: var(--pw-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.pw-cabinet-compat {
    font-size: 0.875rem;
    color: var(--pw-muted);
    margin-top: 1rem;
    margin-bottom: 0;
}

.pw-cabinet-compat a {
    color: var(--pw-accent);
}

@media (max-width: 575.98px) {
    .pw-cta,
    .pw-access {
        padding: 1.25rem;
    }

    .pw-cta__actions {
        flex-direction: column;
    }

    .pw-cta__actions .btn {
        width: 100%;
    }
}

/* Consent checkbox */
.pw-consent {
    margin: 0.75rem 0 0;
    padding: 0.75rem 1rem;
    background: rgba(59, 130, 246, 0.04);
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
}

.pw-consent .form-check-label {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--pw-muted);
}

.pw-consent .form-check-label a {
    color: var(--pw-accent);
    text-decoration: none;
}

.pw-consent .form-check-label a:hover {
    text-decoration: underline;
}

/* Legal pages */
.pw-legal {
    max-width: 46rem;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.pw-legal__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pw-legal__meta {
    font-size: 0.875rem;
    color: var(--pw-muted);
    margin-bottom: 2rem;
}

.pw-legal__section {
    margin-bottom: 1.75rem;
}

.pw-legal__section h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.pw-legal__section h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.pw-legal__section p,
.pw-legal__list {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--pw-text);
}

.pw-legal__list {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.pw-legal__section a {
    color: var(--pw-accent);
}
