/* Extracted component CSS — one file per template block. */

* { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px 14px;
            background: linear-gradient(160deg, #f0f4f8 0%, #e2e8f0 45%, #dce7f0 100%);
            font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
            color: #1e293b;
        }
        .captcha-wrap {
            width: 92%;
            max-width: 420px;
        }
        /* Шапка: только логотип из настроек (название уже в графике лого / в карточке не дублируем) */
        .captcha-header {
            width: 100%;
            background: rgba(255, 255, 255, 0.96);
            border: 1px solid rgba(148, 163, 184, 0.25);
            border-bottom: none;
            border-radius: 18px 18px 0 0;
            padding: 14px 18px;
            box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
        }
        .captcha-brand {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            gap: 14px;
            text-decoration: none;
            color: inherit;
            margin: 0;
        }
        .captcha-brand img {
            max-height: 52px;
            max-width: min(220px, 58vw);
            width: auto;
            height: auto;
            object-fit: contain;
            flex-shrink: 0;
        }
        .captcha-card {
            background: rgba(255,255,255,0.97);
            backdrop-filter: blur(16px);
            border-radius: 0 0 20px 20px;
            padding: 32px 36px 44px;
            width: 100%;
            box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
            text-align: center;
            border: 1px solid rgba(148, 163, 184, 0.25);
            border-top: 1px solid rgba(148, 163, 184, 0.2);
        }
        h1 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; color: #0f172a; }
        .subtitle { font-size: 0.9rem; color: #64748b; margin-bottom: 28px; line-height: 1.55; }
        .pow-progress-wrap {
            background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
            border-radius: 14px;
            padding: 28px 22px;
            margin-bottom: 20px;
            border: 1px solid #e2e8f0;
        }
        .calc-dots {
            display: inline-flex;
            gap: 6px;
            justify-content: center;
            margin-top: 6px;
        }
        .calc-dots span {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #496275;
            opacity: 0.35;
            animation: captcha-dot 1.2s ease-in-out infinite;
        }
        .calc-dots span:nth-child(2) { animation-delay: 0.15s; }
        .calc-dots span:nth-child(3) { animation-delay: 0.3s; }
        @keyframes captcha-dot {
            0%, 80%, 100% { opacity: 0.3; transform: scale(0.92); }
            40% { opacity: 1; transform: scale(1); }
        }
        .pow-digits {
            font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
            font-size: 1.38rem;
            font-weight: 700;
            letter-spacing: 0.1em;
            color: #496275;
            margin: 14px 0 6px;
            min-height: 2.1rem;
            user-select: none;
            font-variant-numeric: tabular-nums;
            word-break: keep-all;
        }
        .pow-digits.rolling {
            animation: captcha-digit-pulse 0.85s ease-in-out infinite alternate;
        }
        @keyframes captcha-digit-pulse {
            from { opacity: 0.72; }
            to { opacity: 1; }
        }
        .progress-bar-outer {
            background: #e2e8f0;
            border-radius: 999px;
            height: 10px;
            overflow: hidden;
            margin: 18px 0 12px;
            position: relative;
        }
        .progress-bar-inner {
            height: 100%;
            width: 0%;
            border-radius: 999px;
            background: linear-gradient(90deg, #496275, #7c9cb3);
            transition: width 0.35s ease;
        }
        .progress-bar-outer.indeterminate {
            position: relative;
        }
        .progress-bar-outer.indeterminate .progress-bar-inner {
            position: absolute;
            left: 0;
            top: 0;
            width: 38%;
            height: 100%;
            transition: none;
            animation: captcha-shimmer 1.25s ease-in-out infinite;
        }
        @keyframes captcha-shimmer {
            0% { left: -38%; }
            100% { left: 100%; }
        }
        #pow-progress { font-size: 0.8125rem; color: #64748b; margin-top: 6px; min-height: 1.25em; }
        #pow-status { font-size: 1rem; font-weight: 600; color: #334155; min-height: 1.4em; }
        .math-section { margin-top: 8px; }
        .math-section.hidden { display: none; }
        .math-question {
            font-size: 1.75rem;
            font-weight: 700;
            color: #496275;
            margin: 16px 0;
            font-variant-numeric: tabular-nums;
        }
        .math-input {
            width: 120px;
            padding: 12px 16px;
            font-size: 1.35rem;
            text-align: center;
            border: 2px solid #cbd5e1;
            border-radius: 12px;
            outline: none;
            transition: border-color 0.2s;
        }
        .math-input:focus { border-color: #496275; }
        .btn-submit {
            display: inline-block;
            margin-top: 16px;
            padding: 12px 28px;
            background: linear-gradient(135deg, #496275, #3d5263);
            color: #fff;
            border: none;
            border-radius: 12px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
        }
        .btn-submit:hover { filter: brightness(1.05); }
        .flash-msg {
            background: #fef2f2;
            color: #991b1b;
            padding: 12px 16px;
            border-radius: 10px;
            margin-bottom: 16px;
            font-size: 0.875rem;
        }
        .flash-msg.warning {
            background: #fffbeb;
            color: #92400e;
        }
        .btn-submit:disabled {
            opacity: 0.65;
            cursor: wait;
        }
        .recaptcha-hint { font-size: 0.8125rem; color: #64748b; margin-bottom: 16px; }
