/* CF-ленд: layout как у Cloudflare challenge + инструкция */
html, body.cf-land {
    margin: 0;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, sans-serif;
    background: transparent !important;
    background-color: transparent !important;
    color: #232323;
}

/* Локальные стили CDN-виджета (без GitHub) — дублируют cdn/cf-main.js */
.lcf-wrap {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, sans-serif;
    color: #313131;
    text-align: left;
    width: min(440px, 100%);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.lcf-body { width: 100%; text-align: left; }
.lcf-title {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.25;
    color: #1d1f20;
    letter-spacing: -0.01em;
}
.lcf-sub {
    margin: 0 0 14px;
    font-size: 1rem;
    line-height: 1.45;
    color: #313131;
    font-weight: 400;
}
.lcf-ray {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.35;
    color: #696969;
}
.lcf-ray-code,
.lcf-ray code {
    font-family: monaco, courier, monospace;
    font-size: 12px;
    color: #696969;
}
.lcf-footer,
.lcf-by {
    display: none !important;
}
.lcf-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 300px;
    max-width: 100%;
    height: 65px;
    box-sizing: border-box;
    padding: 0 10px 0 14px;
    margin: 0;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}
.lcf-widget:hover .lcf-check { border-color: #f6821f; }
.lcf-widget.is-checked .lcf-check {
    background: #f6821f;
    border-color: #f6821f;
}
.lcf-widget.is-checked .lcf-check-mark { opacity: 1; }
.lcf-spin {
    display: none;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border: 2.5px solid #e8e8e8;
    border-top-color: #f6821f;
    border-radius: 50%;
    box-sizing: border-box;
    animation: lcf-spin 0.7s linear infinite;
}
.lcf-widget.is-loading .lcf-spin { display: inline-block; }
.lcf-widget.is-loading .lcf-check { display: none; }
.lcf-widget.is-loading { cursor: default; }
@keyframes lcf-spin { to { transform: rotate(360deg); } }
.lcf-check {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border: 2px solid #6d6d6d;
    border-radius: 3px;
    background: #fff;
    box-sizing: border-box;
    position: relative;
}
.lcf-check-mark {
    position: absolute;
    left: 6px;
    top: 3px;
    width: 7px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
}
.lcf-label { flex: 1; font-size: 14px; color: #4a4a4a; line-height: 1.2; }
.lcf-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: auto;
    flex: 0 0 auto;
}
.lcf-logo { display: block; width: 73px; height: 25px; }
.lcf-links {
    font-size: 8px;
    line-height: 10px;
    color: #232323;
    margin-top: 2px;
    white-space: nowrap;
}
.lcf-note {
    margin: 18px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: #313131;
    max-width: 420px;
}
.cf-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    /* верхний левый квадрант — стабильно на разных экранах */
    padding: clamp(56px, 12vh, 128px) clamp(28px, 8vw, 96px) 24px clamp(28px, 8vw, 96px);
    box-sizing: border-box;
    z-index: 100;
    background: rgba(246, 246, 246, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.cf-stage {
    display: block;
    text-align: left;
    width: min(440px, calc(100vw - 56px));
    max-width: 100%;
    position: relative;
}
.cf-modal {
    display: block;
    position: relative;
    width: 100%;
    background: transparent;
    padding: 0;
    box-sizing: border-box;
}
.cf-modal-body {
    position: relative;
    margin: 0;
    width: 100%;
    min-height: 0;
}
#captcha-root.cf-captcha-shot,
.cf-captcha-shot {
    display: block;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: default;
    line-height: normal;
    -webkit-tap-highlight-color: transparent;
}
.lcf-wrap {
    margin: 0;
    align-items: flex-start;
    text-align: left;
}
.cf-root2-host {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    overflow: visible;
    pointer-events: none;
}
/* Инструкция поверх основной капчи (слева, с перекрытием) */
.cf-root2-host.instr-shot {
    position: absolute;
    left: 0;
    top: 0;
    width: auto;
    max-width: min(400px, 92vw);
    height: auto;
    transform: translate(78px, 62px);
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    z-index: 50;
    line-height: normal;
    pointer-events: none;
}
.cf-root2-host.instr-shot.is-open {
    display: block;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.cf-root2-host.instr-shot.is-open .land-instr,
.cf-root2-host.instr-shot.is-open .land-instr-btn {
    pointer-events: auto;
}
.cf-root2-host .instr-shot-img {
    display: none !important;
}
@media (max-width: 640px) {
    .cf-overlay {
        padding: clamp(40px, 8vh, 72px) 16px 16px;
    }
    .cf-root2-host.instr-shot {
        left: 50%;
        top: auto;
        bottom: 0;
        width: min(340px, 92vw);
        transform: translate(-50%, 8%);
    }
}
