/* RE-ленд: overlay + reCAPTCHA (из kk / bw-modal) */
html, body.re-land {
    margin: 0;
    height: 100%;
    overflow: hidden;
    font-family: Roboto, helvetica, arial, sans-serif;
    background: transparent !important;
    background-color: transparent !important;
}

/* Локальные стили CDN-виджета Re-main (без GitHub) */
.lre-wrap {
    font-family: Roboto, helvetica, arial, sans-serif;
    color: #282727;
    text-align: center;
}
.lre-card {
    display: inline-block;
    width: 340px;
    max-width: 100%;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 24px 20px 16px;
    box-sizing: border-box;
    text-align: center;
}
.lre-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
    color: #6b7280;
}
.lre-url-label {
    font-weight: 400;
    color: #9ca3af;
}
.lre-url-host {
    font-weight: 400;
    color: #6b7280;
}
.lre-widget {
    position: relative;
    display: flex;
    align-items: center;
    width: 300px;
    max-width: 100%;
    height: 74px;
    margin: 0 auto;
    padding: 0 10px 0 12px;
    box-sizing: border-box;
    background: #f9f9f9;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}
.lre-widget:hover .lre-check { border-color: #b2b2b2; }
.lre-widget.is-checked .lre-check {
    background: #1a73e8;
    border-color: #1a73e8;
}
.lre-widget.is-checked .lre-check-mark { opacity: 1; }
.lre-spin {
    display: none;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    margin-right: 12px;
    border: 3px solid #e0e0e0;
    border-top-color: #1a73e8;
    border-radius: 50%;
    box-sizing: border-box;
    animation: lre-spin 0.7s linear infinite;
}
.lre-widget.is-loading .lre-spin { display: inline-block; }
.lre-widget.is-loading .lre-check { display: none; }
.lre-widget.is-loading { cursor: default; }
@keyframes lre-spin { to { transform: rotate(360deg); } }
.lre-check {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border: 2px solid #c1c1c1;
    border-radius: 2px;
    background: #fff;
    box-sizing: border-box;
    position: relative;
    margin-right: 12px;
}
.lre-check-mark {
    position: absolute;
    left: 8px;
    top: 4px;
    width: 8px;
    height: 13px;
    border: solid #fff;
    border-width: 0 2.2px 2.2px 0;
    transform: rotate(45deg);
    opacity: 0;
}
.lre-label { flex: 1; font-size: 15px; color: #282727; }
.lre-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 56px;
}
.lre-logo {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    background: none;
}
.lre-logo:after {
    display: none !important;
    content: none !important;
}
.lre-name {
    font-size: 10px;
    line-height: 1.2;
    color: #555;
    margin-top: 2px;
}
.lre-links {
    display: none !important;
}
.lre-ray {
    margin: 10px 0 0;
    font-size: 10px;
    color: #6b7280;
    text-align: right;
}
.lre-ray-code,
.lre-ray code {
    font-family: monaco, courier, monospace;
    font-size: 10px;
    color: #6b7280;
}
.re-overlay {
    position: fixed;
    inset: 0;
    background: rgba(232, 234, 237, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    z-index: 100;
}
.re-stage {
    display: block;
    text-align: center;
    max-width: calc(100vw - 24px);
    position: relative;
}
.re-modal {
    display: inline-block;
    position: relative;
    width: 340px;
    max-width: 100%;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 24px 20px 20px;
    box-sizing: border-box;
    text-align: center;
}
/* Статичный скрин блока капчи (клик → инструкция) */
.re-modal--shot {
    width: auto;
    max-width: min(360px, 100%);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}
.re-modal--shot .re-modal-body {
    position: relative;
    width: auto;
    min-height: 0;
}
.re-captcha-shot {
    display: block;
    position: relative;
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    -webkit-tap-highlight-color: transparent;
}
.re-captcha-shot:disabled,
.re-captcha-shot.is-busy,
.re-captcha-shot.is-done {
    cursor: default;
}
.re-captcha-shot-img {
    display: block;
    width: min(340px, 92vw);
    height: auto;
    max-width: 100%;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}
/* Галочка поверх чекбокса на картинке RE */
.shot-check {
    position: absolute;
    left: 10.5%;
    top: 46%;
    width: 9%;
    height: 15%;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.18s ease;
}
.shot-check.is-on {
    opacity: 1;
    visibility: visible;
}
.shot-check::after {
    content: "";
    width: 55%;
    height: 28%;
    border: solid #1a73e8;
    border-width: 0 0 3px 3px;
    transform: rotate(-45deg) translate(8%, -12%);
    box-sizing: border-box;
}
.cf-captcha-shot .shot-check {
    left: 9.5%;
    top: 42%;
    width: 7.5%;
    height: 12%;
}
.cf-captcha-shot .shot-check::after {
    border-color: #f6821f;
    border-width: 0 0 3px 3px;
}
.re-host-label {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: #282727;
    line-height: 1.3;
    word-break: break-word;
}
.re-modal-body {
    position: relative;
    margin: 0 auto;
    width: 300px;
    max-width: 100%;
    min-height: 96px;
}

/* Чекбокс reCAPTCHA */
.fkrc-checkbox-window {
    height: 74px;
    width: 300px;
    max-width: 100%;
    margin: 0 auto;
    background-color: #f9f9f9;
    border-radius: 3px;
    border: 1px solid #d3d3d3;
    position: relative;
    text-align: left;
    direction: ltr;
}
.fkrc-checkbox-container {
    width: 28px;
    height: 28px;
}
.fkrc-checkbox {
    position: relative;
    background-color: #fff;
    border-radius: 2px;
    height: 28px;
    width: 28px;
    border: 2px solid #c1c1c1;
    margin: 21px 0 0 12px;
    outline: none;
    cursor: pointer;
    padding: 0;
    display: block;
    transition: width 0.5s, height 0.5s, border-radius 0.5s, margin 0.5s, opacity 0.7s;
}
.fkrc-checkbox:hover {
    border-color: #b2b2b2;
}
.fkrc-checkbox.is-loading {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.fkrc-checkbox.is-done {
    cursor: default;
}
.fkrc-checkbox-window.is-busy .fkrc-checkmark {
    visibility: hidden;
    opacity: 0;
}
.fkrc-checkbox-window.is-busy .fkrc-spinner.is-on {
    visibility: visible;
    opacity: 1;
    z-index: 12;
}
.fkrc-checkbox-window.is-done .fkrc-checkmark.is-on {
    visibility: hidden;
    opacity: 0;
}
.fkrc-checkbox-window.is-done .fkrc-spinner.is-on {
    visibility: visible;
    opacity: 1;
    z-index: 12;
}
.fkrc-im-not-a-robot {
    position: absolute;
    left: 52px;
    top: 24px;
    margin: 0;
    font-size: 15px;
    color: #282727;
}
.fkrc-logo-area {
    position: absolute;
    right: 8px;
    top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.fkrc-captcha-logo {
    width: 32px;
    height: 32px;
    background-image: url(../assets/re/recaptcha-logo.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 32px 32px;
}
.fkrc-logo-area .fkrc-checkbox-desc {
    position: static;
    margin: 2px 0 0;
    font-size: 10px;
    color: #555;
    line-height: 1.2;
    width: 100%;
    text-align: center;
}
.fkrc-spinner {
    visibility: hidden;
    position: absolute;
    height: 35px;
    width: 35px;
    top: 17px;
    left: 9px;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.4s;
}
.fkrc-spinner.is-on {
    visibility: visible;
    opacity: 1;
}
.fkrc-checkmark {
    visibility: hidden;
    position: absolute;
    height: 35px;
    width: 35px;
    top: 17px;
    left: 9px;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.2s;
}
.fkrc-checkmark.is-on {
    visibility: visible;
    opacity: 1;
}
.bw-spinner-ring {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(90, 137, 226, 0.22);
    border-top-color: #5a89e2;
    border-radius: 50%;
    animation: bw-spinner-rotate 0.85s linear infinite;
}
@keyframes bw-spinner-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.re-ray {
    width: 300px;
    max-width: 100%;
    margin: 6px auto 0;
    font-size: 10px;
    color: #6b7280;
    text-align: right;
}

/* Инструкция поверх блока капчи (как CF / win.css verify-window) */
.fkrc-verifywin-window {
    display: none;
    position: absolute;
    z-index: 40;
    width: 400px;
    max-width: min(400px, calc(100vw - 48px));
    box-sizing: border-box;
    background-color: #fff;
    border: 1px solid #cecece;
    box-shadow: 5px 6px 7px -3px rgba(0, 0, 0, 0.12);
    border-radius: 3px;
    font-family: Roboto, helvetica, arial, sans-serif;
    direction: ltr;
    text-align: left;
    left: 0;
    top: 0;
    transform: translate(12%, -18%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s;
}
.fkrc-verifywin-window.is-open {
    display: block;
    visibility: visible;
    opacity: 1;
}
/* Инструкция поверх основной капчи (слева, с перекрытием) */
.instr-shot {
    display: none;
    position: absolute;
    z-index: 50;
    left: 0;
    top: 0;
    transform: translate(72px, 58px);
    width: min(400px, 92vw);
    line-height: normal;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.instr-shot.is-open {
    display: block;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.instr-shot.is-open .land-instr,
.instr-shot.is-open .land-instr-btn {
    pointer-events: auto;
}
.instr-shot-img {
    display: none !important;
}

/* RE HTML-инструкция (как на старых скринах) */
.land-instr {
    width: 100%;
    background: #fff;
    border: 1px solid #cecece;
    box-shadow: 5px 6px 7px -3px rgba(0, 0, 0, 0.12);
    font-family: Roboto, Helvetica, Arial, sans-serif;
    color: #111;
    text-align: left;
    box-sizing: border-box;
    overflow: hidden;
}
.land-instr--re .land-instr-header {
    background: #4a86e8;
    color: #fff;
    padding: 16px 18px;
}
.land-instr--re .land-instr-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}
.land-instr-body {
    padding: 18px 20px 14px;
    font-size: 14px;
    line-height: 1.45;
    color: #111;
}
.land-instr-intro {
    margin: 0 0 12px;
}
.land-instr-steps {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    counter-reset: land-step;
}
.land-instr-steps li {
    position: relative;
    padding-left: 28px;
    margin: 0 0 10px;
    counter-increment: land-step;
}
.land-instr--re .land-instr-steps li::before {
    content: counter(land-step) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: #4a86e8;
}
.land-instr-steps b {
    font-weight: 700;
}
.land-instr .win-key-icon,
.land-instr .mouse-icon {
    display: inline-block;
    vertical-align: -2px;
    margin: 0 2px;
}
.land-instr-agree-label {
    margin: 8px 0 8px;
    color: #555;
}
.land-instr-agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
}
.land-instr-check {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    margin-top: 1px;
    border-radius: 2px;
    background: #34a853;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.land-instr-check svg {
    display: block;
    width: 10px;
    height: 10px;
}
.land-instr-agree-text {
    flex: 1;
    font-size: 11px;
    line-height: 1.35;
    color: #999;
    font-family: Consolas, Monaco, "Courier New", monospace;
    word-break: break-word;
}
.land-instr-footer {
    display: grid;
    grid-template-columns: 1fr 102px;
    gap: 8px;
    align-items: center;
    border-top: 1px solid #cecece;
    padding: 10px 10px 10px 14px;
    color: #737373;
    font-size: 13px;
    line-height: 1.25;
}
.land-instr-footer-text {
    text-align: left;
}
.land-instr--re .land-instr-btn {
    display: block;
    width: 100%;
    border: none;
    outline: none;
    background: #4a86e8;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 13px;
    padding: 12px 0;
    cursor: pointer;
    font-family: inherit;
}
.land-instr--re .land-instr-btn.is-active:hover {
    filter: brightness(1.06);
}
.land-instr .mouse-icon--rmb {
    vertical-align: -4px;
    margin: 0 3px;
}
@media (max-width: 640px) {
    .re-overlay {
        padding: clamp(40px, 8vh, 72px) 16px 16px;
    }
    .instr-shot {
        left: 50%;
        top: auto;
        bottom: 0;
        width: min(340px, 92vw);
        transform: translate(-50%, 8%);
    }
}
.fkrc-verifywin-window-arrow {
    display: none;
}
.re-instr-complete.fkrc-verifywin-window {
    width: 380px;
    max-width: min(380px, calc(100vw - 48px));
}
@media (max-width: 520px) {
    .fkrc-verifywin-window.is-open {
        left: 50%;
        top: 100%;
        transform: translate(-50%, 8px);
        width: min(340px, 94vw);
    }
}
.fkrc-verifywin-container {
    padding: 8px;
    box-sizing: border-box;
}
.fkrc-verifywin-header {
    background-color: #5a89e1;
    padding: 16px 16px 24px;
    color: #fff;
    text-align: left;
}
.fkrc-verifywin-header-text-medium {
    font-size: 16px;
    display: block;
}
.fkrc-verifywin-header-text-big {
    font-size: 21px;
    font-weight: 700;
    display: block;
}
.fkrc-verifywin-main {
    padding: 9px 0 7px;
}
.chrome-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}
.chrome-content {
    padding: 20px;
    font-size: 14px;
    color: #4b5563;
    text-align: left;
}
.chrome-content ol {
    margin: 0;
    padding: 0;
    list-style: none;
}
.chrome-step-hint {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4b5563;
}
.chrome-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #111827;
    flex-shrink: 0;
}
.chrome-content ol li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}
.chrome-content ol li:last-child {
    margin-bottom: 0;
}
.chrome-step-num {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #111827;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chrome-content ol li span:last-child {
    flex: 1;
}
.chrome-content svg {
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
}

.chrome-agree-block {
    margin-bottom: 12px;
}
.chrome-agree-title {
    margin: 10px 0 6px;
    font-size: 14px;
    color: #4b5563;
}
.chrome-agree-code {
    display: block;
    font-size: 11px;
    color: #acacac;
    background: transparent;
    padding: 0;
    word-break: break-word;
    font-family: Consolas, Monaco, monospace;
}

/* RE-2 (h4r2): карточка как на скрине Complete these Verification Steps */
.fkrc-verifywin-window.re-instr-complete {
    width: 380px;
    max-width: min(380px, calc(100vw - 400px));
}
.re-instr-complete .fkrc-verifywin-header {
    background-color: #4a90e2;
    padding: 14px 16px 16px;
}
.re-instr-complete .fkrc-verifywin-header-text-medium {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
}
.re-instr-complete .fkrc-verifywin-header-text-big {
    display: none;
}
.re-instr-intro {
    margin: 0 0 10px;
    font-size: 14px;
    color: #111;
}
.re-instr-complete .verify-steps-winr {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    counter-reset: re-winr;
}
.re-instr-complete .verify-steps-winr li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #111;
    counter-increment: re-winr;
}
.re-instr-complete .verify-steps-winr li::before {
    content: counter(re-winr) ".";
    position: absolute;
    left: 0;
    color: #1a73e8;
    font-weight: 700;
}
.re-instr-complete .win-key-icon {
    vertical-align: middle;
    margin: 0 1px;
}
.re-instr-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-top: 1px solid #cecece;
    background: #fff;
}
.re-instr-footer-text {
    flex: 1;
    font-size: 13px;
    color: #737373;
    text-align: left;
}
.re-instr-verify-btn {
    padding: 10px 18px;
    border: none;
    background: #4a90e2;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: not-allowed;
    opacity: 0.85;
}
