.c33-b12r {
    --c33-b12r-ink: #142238;
    --c33-b12r-muted: #5b6c80;
    --c33-b12r-line: #d9e4ee;
    --c33-b12r-soft: #f5f8fb;
    --c33-b12r-accent: #8a4b14;
    --c33-b12r-accent-dark: #63320c;
    --c33-b12r-warm: #fff3e5;
    --c33-b12r-danger: #a23a32;
    color: var(--c33-b12r-ink);
    font-family: inherit;
    margin: 1.5rem 0;
    overflow-wrap: anywhere;
    width: 100%;
}

.c33-b12r *,
.c33-b12r *::before,
.c33-b12r *::after {
    box-sizing: border-box;
}

.c33-b12r__header {
    align-items: center;
    background: linear-gradient(135deg, #fff6e8 0%, #f7fbff 58%, #eef9f5 100%);
    border: 1px solid var(--c33-b12r-line);
    border-radius: 22px 22px 0 0;
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    padding: 1.5rem;
}

.c33-b12r__header h2,
.c33-b12r__panel-head h3,
.c33-b12r__method h3 {
    color: var(--c33-b12r-ink);
    line-height: 1.2;
    margin: 0;
}

.c33-b12r__header h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.c33-b12r__header p:not(.c33-b12r__eyebrow),
.c33-b12r__panel-head p {
    color: var(--c33-b12r-muted);
    margin: 0.55rem 0 0;
    max-width: 760px;
}

.c33-b12r__eyebrow {
    color: var(--c33-b12r-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    margin: 0 0 0.45rem;
    text-transform: uppercase;
}

.c33-b12r__badge {
    align-items: center;
    background: #fff;
    border: 1px solid var(--c33-b12r-line);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(20, 34, 56, 0.08);
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    min-width: 96px;
    padding: 0.8rem 1rem;
}

.c33-b12r__badge span {
    color: var(--c33-b12r-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.c33-b12r__badge strong {
    color: var(--c33-b12r-accent);
    font-size: 1.8rem;
    line-height: 1;
}

.c33-b12r__body {
    border: 1px solid var(--c33-b12r-line);
    border-radius: 0 0 22px 22px;
    border-top: 0;
    overflow: hidden;
}

.c33-b12r__form {
    background: #fff;
    padding: 1.35rem;
}

.c33-b12r__panel {
    border: 1px solid var(--c33-b12r-line);
    border-radius: 16px;
    padding: 1.1rem;
}

.c33-b12r__panel + .c33-b12r__panel {
    margin-top: 1rem;
}

.c33-b12r__panel-head {
    margin-bottom: 1rem;
}

.c33-b12r__panel-head h3,
.c33-b12r__method h3 {
    font-size: 1.1rem;
}

.c33-b12r__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.c33-b12r label {
    color: var(--c33-b12r-ink);
    display: flex;
    flex-direction: column;
    font-size: 0.92rem;
    font-weight: 700;
    gap: 0.4rem;
    min-width: 0;
}

.c33-b12r label small {
    color: var(--c33-b12r-muted);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.45;
}

.c33-b12r input,
.c33-b12r select,
.c33-b12r button {
    font: inherit;
}

.c33-b12r input,
.c33-b12r select {
    background: #fff;
    border: 1px solid #bcc9d7;
    border-radius: 10px;
    color: var(--c33-b12r-ink);
    min-height: 46px;
    padding: 0.7rem 0.8rem;
    width: 100%;
}

.c33-b12r input:focus,
.c33-b12r select:focus,
.c33-b12r button:focus-visible {
    border-color: var(--c33-b12r-accent);
    box-shadow: 0 0 0 3px rgba(138, 75, 20, 0.16);
    outline: none;
}

.c33-b12r__input-unit {
    display: flex;
    min-width: 0;
}

.c33-b12r__input-unit input {
    border-radius: 10px 0 0 10px;
    min-width: 0;
}

.c33-b12r__input-unit b {
    align-items: center;
    background: var(--c33-b12r-soft);
    border: 1px solid #bcc9d7;
    border-left: 0;
    border-radius: 0 10px 10px 0;
    color: var(--c33-b12r-muted);
    display: flex;
    flex: 0 0 auto;
    font-size: 0.83rem;
    justify-content: center;
    min-width: 52px;
    padding: 0.5rem;
}

.c33-b12r__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.1rem;
}

.c33-b12r button {
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    font-weight: 800;
    min-height: 46px;
    padding: 0.72rem 1rem;
}

.c33-b12r__actions button:first-child {
    background: var(--c33-b12r-accent);
    color: #fff;
}

.c33-b12r__actions button:first-child:hover {
    background: var(--c33-b12r-accent-dark);
}

.c33-b12r__secondary,
.c33-b12r [data-c33-b12r-copy] {
    background: #edf3f7;
    color: var(--c33-b12r-ink);
}

.c33-b12r__secondary:hover,
.c33-b12r [data-c33-b12r-copy]:hover {
    background: #dfe8ef;
}

.c33-b12r__error {
    background: #fff0ef;
    border: 1px solid #efc2be;
    border-radius: 10px;
    color: var(--c33-b12r-danger);
    font-weight: 700;
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
}

.c33-b12r__results {
    background: var(--c33-b12r-soft);
    border-top: 1px solid var(--c33-b12r-line);
    outline: none;
    padding: 1.35rem;
}

.c33-b12r__answer-row {
    align-items: center;
    background: #fff;
    border: 1px solid var(--c33-b12r-line);
    border-radius: 16px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.1rem;
}

.c33-b12r__answer-row span,
.c33-b12r__answer-row small,
.c33-b12r__metrics span {
    color: var(--c33-b12r-muted);
}

.c33-b12r__answer-row span {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.c33-b12r__answer-row strong {
    color: var(--c33-b12r-accent-dark);
    display: block;
    font-size: clamp(1.8rem, 4vw, 2.55rem);
    line-height: 1.15;
    margin-top: 0.2rem;
}

.c33-b12r__answer-row small {
    display: block;
    line-height: 1.45;
    margin-top: 0.4rem;
}

.c33-b12r__status {
    background: var(--c33-b12r-warm);
    border: 1px solid #ebc79e;
    border-radius: 12px;
    margin-top: 1rem;
    padding: 0.9rem 1rem;
}

.c33-b12r__status b {
    color: var(--c33-b12r-accent-dark);
}

.c33-b12r__status p {
    color: #6b482c;
    margin: 0.35rem 0 0;
}

.c33-b12r__metrics {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
}

.c33-b12r__metrics article {
    background: #fff;
    border: 1px solid var(--c33-b12r-line);
    border-radius: 12px;
    padding: 0.9rem 1rem;
}

.c33-b12r__metrics span {
    display: block;
    font-size: 0.77rem;
}

.c33-b12r__metrics strong {
    color: var(--c33-b12r-ink);
    display: block;
    margin-top: 0.3rem;
}

.c33-b12r__method {
    background: #fff;
    border: 1px solid var(--c33-b12r-line);
    border-radius: 14px;
    margin-top: 1rem;
    padding: 1rem;
}

.c33-b12r__method ol {
    margin: 0.7rem 0 0;
    padding-left: 1.35rem;
}

.c33-b12r__method li + li {
    margin-top: 0.5rem;
}

.c33-b12r__warnings {
    background: #fff8e8;
    border-left: 4px solid #c47a18;
    margin: 1rem 0 0;
    padding: 0.9rem 1rem 0.9rem 2.1rem;
}

.c33-b12r__warnings li + li {
    margin-top: 0.45rem;
}

.c33-b12r__note {
    color: var(--c33-b12r-muted);
    font-size: 0.82rem;
    line-height: 1.55;
    margin: 1rem 0 0;
}

@media (max-width: 680px) {
    .c33-b12r {
        max-width: 100%;
        overflow: hidden;
    }

    .c33-b12r__header {
        align-items: flex-start;
    }

    .c33-b12r__badge {
        display: none;
    }

    .c33-b12r__grid,
    .c33-b12r__metrics {
        grid-template-columns: minmax(0, 1fr);
    }

    .c33-b12r__answer-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .c33-b12r__answer-row button,
    .c33-b12r__actions button {
        width: 100%;
    }
}

@media print {
    .c33-b12r__form,
    .c33-b12r [data-c33-b12r-copy] {
        display: none !important;
    }

    .c33-b12r__results {
        background: #fff;
        border: 1px solid #777;
    }
}

.c33-b12r [hidden] { display: none !important; }

.c33-b12r__check {
    display: flex !important;
    align-items: flex-start;
    gap: 0.75rem;
    min-height: auto !important;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.c33-b12r__check input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0.18rem 0 0;
    flex: 0 0 auto;
}

.c33-b12r__check > span {
    display: grid;
    gap: 0.25rem;
}

.c33-b12r__check b {
    font-size: 0.95rem;
}
