.bqsm-rnp[hidden] { display: none !important; }

.bqsm-rnp {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    padding: 28px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #172033;
}

.bqsm-rnp__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 18, 35, .76);
    backdrop-filter: blur(2px);
}

.bqsm-rnp__dialog {
    position: relative;
    z-index: 1;
    width: min(820px, 100%);
    max-height: min(88vh, 860px);
    overflow: auto;
    background: #fff;
    border-radius: 10px;
    border-top: 6px solid #1c3866;
    box-shadow: 0 28px 80px rgba(0,0,0,.32);
    outline: none;
}

.bqsm-rnp__dialog::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 0;
    width: 120px;
    height: 6px;
    background: #d6ad2f;
}

.bqsm-rnp__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 72px 20px 28px;
    border-bottom: 1px solid #e4e9f0;
}

.bqsm-rnp__identity {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.bqsm-rnp__marks {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
}

.bqsm-rnp__jata {
    width: 82px;
    height: 60px;
    object-fit: contain;
    flex: 0 0 auto;
}

.bqsm-rnp__mark-divider {
    width: 1px;
    height: 48px;
    background: #d4dbe5;
    flex: 0 0 auto;
}

.bqsm-rnp__logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    flex: 0 0 auto;
}

.bqsm-rnp__agency-wrap {
    min-width: 0;
}

.bqsm-rnp__agency {
    color: #162c52;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: .035em;
}

.bqsm-rnp__agency-en {
    margin-top: 3px;
    color: #5e6878;
    font-size: 12px;
    line-height: 1.3;
}

.bqsm-rnp__official {
    flex: 0 0 auto;
    padding: 7px 10px;
    color: #153057;
    background: #f2f5fa;
    border: 1px solid #c9d3e2;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.bqsm-rnp__icon-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #cbd3df;
    border-radius: 50%;
    background: #fff;
    color: #1a2740;
    font: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.bqsm-rnp__icon-close:hover { background: #f2f5f9; border-color: #9eabba; }
.bqsm-rnp__icon-close:focus-visible,
.bqsm-rnp__btn:focus-visible { outline: 3px solid #f2c84b; outline-offset: 3px; }

.bqsm-rnp__alert-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 28px;
    color: #fff;
    background: #9d2b2b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .055em;
}

.bqsm-rnp__alert-icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-weight: 900;
}

.bqsm-rnp__content { padding: 28px 30px 24px; }

.bqsm-rnp__eyebrow {
    margin: 0 0 9px;
    color: #8e6410;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: .09em;
}

.bqsm-rnp__content h2 {
    margin: 0;
    color: #152b50;
    font-size: clamp(24px, 3.2vw, 34px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.02em;
}

.bqsm-rnp__lead {
    margin: 16px 0 0;
    color: #354155;
    font-size: 16px;
    line-height: 1.65;
}

.bqsm-rnp__law-box {
    margin-top: 22px;
    padding: 17px 18px 18px;
    border-left: 5px solid #d2a72c;
    background: #f8f6ee;
}

.bqsm-rnp__law-tag {
    margin-bottom: 7px;
    color: #6e4b05;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}

.bqsm-rnp__law-box p {
    margin: 0;
    color: #202b3d;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 650;
}

.bqsm-rnp__check {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: start;
    margin-top: 20px;
    padding: 15px 16px;
    border: 1px solid #d6e1ef;
    border-radius: 7px;
    background: #f7faff;
}

.bqsm-rnp__check-mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #173d6d;
    color: #fff;
    font-weight: 900;
}

.bqsm-rnp__check strong,
.bqsm-rnp__check span { display: block; }
.bqsm-rnp__check strong { color: #17345d; font-size: 14px; }
.bqsm-rnp__check div > span { margin-top: 3px; color: #4b586a; font-size: 13.5px; line-height: 1.5; }

.bqsm-rnp__enforcement {
    margin: 17px 0 0;
    color: #6f1f1f;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 650;
}

.bqsm-rnp__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 28px;
    border-top: 1px solid #e1e7ee;
    background: #f8fafc;
}

.bqsm-rnp__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: #6a7482;
    font-size: 11.5px;
    line-height: 1.4;
}

.bqsm-rnp__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.bqsm-rnp__btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 5px;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.bqsm-rnp__btn--primary { background: #173d6d; color: #fff !important; border-color: #173d6d; }
.bqsm-rnp__btn--primary:hover { background: #102e54; border-color: #102e54; }
.bqsm-rnp__btn--secondary { background: #fff; color: #263449; border-color: #aeb9c7; }
.bqsm-rnp__btn--secondary:hover { background: #eef2f6; border-color: #8594a6; }

body.bqsm-rnp-lock { overflow: hidden !important; }

@media (max-width: 700px) {
    .bqsm-rnp { padding: 14px; align-items: center; }
    .bqsm-rnp__dialog { max-height: 92vh; border-radius: 8px; }
    .bqsm-rnp__header { padding: 18px 58px 16px 18px; }
    .bqsm-rnp__identity { gap: 10px; }
    .bqsm-rnp__marks { gap: 7px; }
    .bqsm-rnp__jata { width: 52px; height: 40px; }
    .bqsm-rnp__mark-divider { height: 34px; }
    .bqsm-rnp__logo { width: 40px; height: 40px; }
    .bqsm-rnp__agency { font-size: 11px; }
    .bqsm-rnp__agency-en { font-size: 9.5px; }
    .bqsm-rnp__official { display: none; }
    .bqsm-rnp__alert-strip { padding: 9px 18px; font-size: 10px; }
    .bqsm-rnp__content { padding: 22px 18px 18px; }
    .bqsm-rnp__lead { font-size: 14px; line-height: 1.55; }
    .bqsm-rnp__law-box p { font-size: 13.5px; }
    .bqsm-rnp__footer { display: block; padding: 16px 18px; }
    .bqsm-rnp__meta { margin-bottom: 14px; }
    .bqsm-rnp__actions { display: grid; grid-template-columns: 1fr 1fr; }
    .bqsm-rnp__btn { width: 100%; }
}

@media (max-width: 430px) {
    .bqsm-rnp__actions { grid-template-columns: 1fr; }
    .bqsm-rnp__content h2 { font-size: 23px; }
}


@media (max-width: 520px) {
    .bqsm-rnp__header { padding-right: 56px; }
    .bqsm-rnp__identity { align-items: flex-start; }
    .bqsm-rnp__agency-wrap { padding-top: 2px; }
    .bqsm-rnp__agency { max-width: 180px; line-height: 1.2; }
}

@media (prefers-reduced-motion: no-preference) {
    .bqsm-rnp:not([hidden]) .bqsm-rnp__dialog { animation: bqsm-rnp-enter .22s ease-out both; }
    .bqsm-rnp:not([hidden]) .bqsm-rnp__backdrop { animation: bqsm-rnp-fade .18s ease-out both; }
    @keyframes bqsm-rnp-enter { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
    @keyframes bqsm-rnp-fade { from { opacity: 0; } to { opacity: 1; } }
}
