/* ==========================================================================
   TestHub — мини-игры, развлекательные разделы и курс памяти.
   Дополняет основную дизайн-систему, не переопределяя глобальные токены.
   ========================================================================== */

.nav-link--fun {
    color: #6d28d9;
}

.nav-link--fun .nav-link__code {
    background: #f5f3ff;
    color: #6d28d9;
}

.fun-hero {
    padding: clamp(34px, 6vw, 64px) 0 clamp(24px, 4vw, 40px);
    background:
        radial-gradient(700px 360px at 12% 0%, rgba(139, 92, 246, .16), transparent 60%),
        radial-gradient(600px 300px at 92% 10%, rgba(244, 114, 182, .12), transparent 58%),
        linear-gradient(180deg, #fbfcff, #fff);
}

.fun-hero h1 {
    margin: 0 0 .35em;
    font-size: clamp(1.9rem, 4.4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -.03em;
}

.fun-hero .lead {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.02rem;
}

/* Hero раздела «Развлечения»: текст + анимированная иллюстрация */
.fun-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.fun-hero__art {
    width: min(240px, 62vw);
    margin: 0 auto;
}

.fun-hero__art .ti {
    width: 100%;
    height: auto;
}

@media (min-width: 900px) {
    .fun-hero__inner {
        grid-template-columns: minmax(0, 1.35fr) minmax(230px, .65fr);
        gap: 32px;
    }

    .fun-hero__art {
        width: 100%;
        max-width: 260px;
        margin: 0;
        justify-self: end;
    }
}

.fun-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 560px) {
    .fun-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1060px) {
    .fun-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.fun-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.fun-card:hover {
    transform: translateY(-3px);
    border-color: #c4b5fd;
    box-shadow: var(--shadow);
    color: var(--ink);
}

.fun-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
}

.fun-card__icon .ti {
    width: 42px;
    height: 42px;
}

.fun-card h2,
.fun-card h3 {
    margin: 2px 0 0;
    font-size: 1.06rem;
    letter-spacing: -.015em;
}

.fun-card p {
    margin: 0;
    color: var(--muted);
    font-size: .89rem;
    line-height: 1.5;
}

.fun-card__meta {
    margin-top: auto;
    padding-top: 10px;
    color: var(--muted-light);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.fun-card__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.game-shell {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.knopka-intro-art {
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    margin: 0 auto 14px;
    border: 1px solid #fee2e2;
    border-radius: 28px;
    background: radial-gradient(circle at 30% 20%, #fff 0%, #fef2f2 74%);
}

.knopka-intro-art .ti {
    width: 92px;
    height: 92px;
}

/* На мобильном крупная иллюстрация уже есть в hero — вторую не дублируем. */
@media (max-width: 899px) {
    .knopka-intro-art {
        display: none;
    }
}

.game-screen[hidden] {
    display: none !important;
}

.game-start {
    text-align: center;
    padding: 18px 8px 8px;
}

.game-start__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 104px;
    margin-bottom: 14px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 30% 20%, #fff 0%, #eef2ff 74%);
    border: 1px solid #e0e7ff;
}

.game-start__icon .ti {
    width: 92px;
    height: 92px;
}

.game-start h2 {
    margin: 0 0 .45em;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
}

.game-start p {
    max-width: 540px;
    margin: 0 auto 18px;
    color: var(--muted);
}

.game-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 700;
}

.game-progress__track {
    flex: 1;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-tint);
}

.game-progress__bar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    transition: width .3s var(--ease);
}

.fun-question-title {
    margin: 0 0 16px;
    font-size: clamp(1.12rem, 2.4vw, 1.45rem);
    line-height: 1.35;
}

.fun-image {
    margin: 0 0 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    text-align: center;
}

.fun-image img,
.panda-pair img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.fun-options {
    display: grid;
    gap: 10px;
}

.fun-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.fun-option:hover:not(:disabled) {
    border-color: #a5b4fc;
    background: #f8faff;
    transform: translateY(-1px);
}

.fun-option:disabled {
    cursor: default;
}

.fun-option__icon {
    font-size: 1.45rem;
    line-height: 1;
}

.fun-option.is-picked {
    border-color: #8b5cf6;
    background: #f5f3ff;
}

.fun-option.is-correct {
    border-color: #10b981;
    background: #ecfdf5;
}

.fun-option.is-wrong {
    border-color: #ef4444;
    background: #fef2f2;
}

.fun-feedback {
    margin: 14px 0 0;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 600;
}

.fun-feedback.is-ok {
    background: #ecfdf5;
    color: #047857;
}

.fun-feedback.is-bad {
    background: #fef2f2;
    color: #b91c1c;
}

.game-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.fun-result-card {
    text-align: center;
    padding: 8px 4px;
}

.fun-result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin-bottom: 12px;
    border-radius: 28px;
    background: linear-gradient(135deg, #eef2ff, #fdf2f8);
}

.fun-result-icon .ti {
    width: 76px;
    height: 76px;
}

.fun-result-card h2 {
    margin: 0 0 .4em;
    font-size: clamp(1.4rem, 3.2vw, 2rem);
}

.fun-result-text {
    max-width: 600px;
    margin: 0 auto 10px;
    color: var(--ink-soft);
}

.fun-result-extra {
    margin: 0 auto 16px;
    color: var(--muted);
    font-weight: 700;
}

.fun-result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.share-box {
    margin-top: 20px;
    padding: 18px;
    border: 1px dashed #c4b5fd;
    border-radius: var(--radius);
    background: #faf5ff;
    text-align: center;
}

.share-box h3 {
    margin: 0 0 .35em;
    font-size: 1.02rem;
}

.share-box p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: .86rem;
}

.share-buttons,
.share-cross {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.share-cross {
    margin-top: 10px;
}

.btn--share {
    color: #fff;
    text-decoration: none;
    border-color: transparent;
}

.btn--wa { background: #25d366; }
.btn--wa:hover { background: #1ebe5a; color: #fff; }
.btn--tg { background: #229ed9; }
.btn--tg:hover { background: #1b8dc4; color: #fff; }
.btn--vk { background: #0077ff; }
.btn--vk:hover { background: #0068dd; color: #fff; }

.panda-pair {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 640px) {
    .panda-pair {
        grid-template-columns: 1fr 1fr;
    }
}

.panda-pair figure {
    position: relative;
    margin: 0;
}

.panda-pair figcaption {
    margin-top: 6px;
    color: var(--muted);
    font-size: .76rem;
    text-align: center;
}

.panda-hit {
    cursor: crosshair;
}

.panda-hit img {
    border: 2px solid transparent;
    transition: border-color var(--transition);
}

.panda-hit img.is-found {
    border-color: #10b981;
}

.panda-mark {
    position: absolute;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border: 3px solid #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(16, 185, 129, .2);
    pointer-events: none;
    animation: pandaPop .35s var(--ease);
}

@keyframes pandaPop {
    from { transform: scale(.4); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.game-timer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-weight: 800;
    font-size: .8rem;
}

.knopka-arena {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    min-height: 430px;
    padding: 10px 4px 4px;
    border-radius: var(--radius-lg);
    background: transparent;
    transition: background .45s var(--ease);
}

.knopka-arena.is-dark .knopka-message {
    color: #f8fafc;
}

.knopka-arena.is-dark .knopka-meta {
    color: #94a3b8;
}

.knopka-message {
    min-height: 2.8em;
    max-width: 620px;
    margin: 10px auto 4px;
    color: var(--ink);
    font-size: clamp(1.02rem, 2.3vw, 1.3rem);
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    transition: color .3s var(--ease);
}

.knopka-field {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 260px;
    padding: 18px 8px;
}

.knopka-field.is-grid {
    display: grid;
    gap: 8px;
    align-content: center;
    justify-items: center;
    max-width: 760px;
}

.knopka-field.is-row {
    flex-wrap: nowrap;
    gap: 6px;
}

.knopka-plus {
    color: var(--muted);
    font-size: 1.4rem;
    font-weight: 800;
    user-select: none;
}

/* Настоящая объёмная кнопка: PNG с металлическим ободком и бликом. */
.knopka-btn {
    position: relative;
    display: block;
    width: 150px;
    height: 150px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .12s var(--ease), filter .2s var(--ease);
    filter: drop-shadow(0 12px 18px rgba(15, 23, 42, .28));
    touch-action: manipulation;
}

.knopka-btn:hover {
    filter: drop-shadow(0 16px 24px rgba(15, 23, 42, .36)) brightness(1.04);
}

.knopka-btn:active {
    transform: scale(.94);
}

.knopka-btn:focus-visible {
    outline: 3px solid #6366f1;
    outline-offset: 6px;
}

.knopka-btn--small {
    width: 84px;
    height: 84px;
}

.knopka-btn--random {
    width: 74px;
    height: 74px;
    margin: 2px;
}

.knopka-btn--final {
    width: 190px;
    height: 190px;
    animation: knFinalPulse 1.6s ease-in-out infinite;
}

.knopka-btn.is-wrong {
    filter: grayscale(.85) brightness(.75);
    opacity: .45 !important;
    pointer-events: none;
}

.knopka-btn.is-hint {
    animation: knHint 1s ease-in-out infinite;
}

@keyframes knHint {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(99, 102, 241, 0)); }
    50% { filter: drop-shadow(0 0 18px rgba(99, 102, 241, .95)) brightness(1.15); }
}

.knopka-btn.is-done {
    filter: grayscale(.2) brightness(1.2) drop-shadow(0 0 12px rgba(16, 185, 129, .8));
    transform: scale(.92);
}

.knopka-btn.is-pulse { animation: knPulse 1.2s ease-in-out infinite; }
.knopka-btn.is-shake { animation: knShake .5s ease-in-out; }
.knopka-btn.is-wobble { animation: knWobble .6s ease-in-out; }
.knopka-btn.is-spin { animation: knSpin 1.4s linear infinite; }
.knopka-btn.is-slide { animation: knSlide 2.2s ease-in-out infinite; }

@keyframes knShake {
    0%, 100% { translate: 0 0; }
    15% { translate: -8px 0; }
    30% { translate: 8px 0; }
    45% { translate: -6px 0; }
    60% { translate: 6px 0; }
    80% { translate: -2px 0; }
}

@keyframes knPulse {
    0%, 100% { scale: 1; }
    50% { scale: 1.08; }
}

@keyframes knWobble {
    0%, 100% { rotate: 0deg; }
    25% { rotate: -6deg; }
    50% { rotate: 6deg; }
    75% { rotate: -3deg; }
}

@keyframes knSpin {
    from { rotate: 0deg; }
    to { rotate: 360deg; }
}

@keyframes knSlide {
    0%, 100% { translate: 0 0; }
    25% { translate: 46% 0; }
    50% { translate: 0 0; }
    75% { translate: -46% 0; }
}

@keyframes knFinalPulse {
    0%, 100% { scale: 1; }
    50% { scale: 1.05; }
}

.knopka-meta {
    margin-top: 10px;
    color: var(--muted);
    font-size: .82rem;
    text-align: center;
}

@media (max-width: 560px) {
    .knopka-arena {
        min-height: 360px;
    }

    .knopka-btn {
        width: 118px;
        height: 118px;
    }

    .knopka-btn--small {
        width: 62px;
        height: 62px;
    }

    .knopka-btn--random {
        width: 54px;
        height: 54px;
    }

    .knopka-btn--final {
        width: 150px;
        height: 150px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .knopka-btn.is-pulse,
    .knopka-btn.is-wobble,
    .knopka-btn.is-spin,
    .knopka-btn.is-slide,
    .knopka-btn--final {
        animation: none !important;
    }
}

.related-sections {
    margin: 28px 0 8px;
}

.related-sections h2 {
    margin: 0 0 12px;
    font-size: 1.1rem;
}

.related-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 760px) {
    .related-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.related-card {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink-soft);
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.related-card:hover {
    border-color: #c4b5fd;
    box-shadow: var(--shadow-sm);
    color: var(--ink);
}

.related-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f5f3ff;
}

.related-card__icon .ti {
    width: 26px;
    height: 26px;
}

.related-card__arrow {
    margin-left: auto;
    color: var(--muted-light);
}

.memory-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 760px) {
    .memory-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.memory-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.memory-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    border-radius: 13px;
    background: #eef2ff;
}

.memory-card__icon .ti {
    width: 40px;
    height: 40px;
}

.memory-card h3 {
    margin: 0 0 .4em;
    font-size: 1rem;
}

.memory-card p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: .87rem;
    line-height: 1.55;
}

.memory-card a {
    font-size: .84rem;
    font-weight: 700;
}

.article-body h2 {
    margin-top: 1.6em;
}

.article-body h3 {
    margin-top: 1.2em;
}

.article-body ul,
.article-body ol {
    padding-left: 1.25em;
}

.article-body li {
    margin: .45em 0;
}

.memory-exercise {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.memory-exercise + .memory-exercise {
    margin-top: 12px;
}

.memory-exercise h3 {
    margin-top: 0;
}

@media print {
    .share-box,
    .related-sections,
    .knopka-field {
        display: none !important;
    }
}
/* ==========================================================================
   ���������� �� �������� � ������������� ������
   ========================================================================== */

.knopka-cert-form {
    max-width: 560px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.kn-cert {
    margin-top: 6px;
    padding: 10px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(600px 300px at 10% 0%, rgba(239, 68, 68, .14), transparent 60%),
        radial-gradient(500px 260px at 90% 100%, rgba(249, 115, 22, .12), transparent 60%),
        #fff5f5;
}

.kn-cert__border {
    padding: clamp(18px, 4vw, 34px);
    border: 3px solid #b91c1c;
    border-radius: 14px;
    background: #fffdfd;
    box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 7px #fecaca;
    text-align: center;
}

.kn-cert__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    color: #7f1d1d;
    font-size: .78rem;
    font-weight: 700;
}

.kn-cert__brand {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .02em;
    color: #991b1b;
    text-transform: uppercase;
}

.kn-cert__brand span {
    color: #b45309;
    font-size: .66rem;
    letter-spacing: .08em;
}

.kn-cert__number {
    color: #9a3412;
    font-variant-numeric: tabular-nums;
    letter-spacing: .04em;
}

.kn-cert__title {
    margin: 14px 0 4px;
    color: #7f1d1d;
    font-size: clamp(1.7rem, 4.4vw, 2.5rem);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.kn-cert__sub {
    margin: 0 0 12px;
    color: #b45309;
    font-size: .84rem;
    font-weight: 700;
}

.kn-cert__name {
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #fca5a5;
    color: #450a0a;
    font-size: clamp(1.4rem, 3.6vw, 2rem);
    font-weight: 800;
    letter-spacing: -.01em;
}

.kn-cert__ribbon {
    display: inline-block;
    margin-bottom: 16px;
    padding: 7px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #b91c1c, #ea580c);
    color: #fff;
    font-size: .84rem;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow: 0 8px 18px -10px rgba(185, 28, 28, .8);
}

.kn-cert__body {
    display: grid;
    gap: 16px;
    align-items: center;
    text-align: left;
}

@media (min-width: 720px) {
    .kn-cert__body {
        grid-template-columns: 200px minmax(0, 1fr);
    }
}

.kn-cert__demon {
    display: grid;
    justify-items: center;
    gap: 6px;
}

.kn-cert__demon img {
    width: min(180px, 60vw);
    height: auto;
    filter: drop-shadow(0 10px 18px rgba(127, 29, 29, .28));
}

.kn-cert__caption {
    color: #b45309;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.kn-cert__text {
    color: #4c1d1d;
    font-size: .9rem;
    line-height: 1.6;
}

.kn-cert__text p {
    margin: 0 0 9px;
}

.kn-cert__small {
    color: #9a3412;
    font-size: .74rem;
}

.kn-cert__foot {
    display: grid;
    gap: 12px;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px dashed #fca5a5;
    text-align: center;
}

@media (min-width: 620px) {
    .kn-cert__foot {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.kn-cert__foot > div {
    display: grid;
    gap: 2px;
}

.kn-cert__label {
    color: #b45309;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.kn-cert__foot strong {
    color: #7f1d1d;
    font-size: .92rem;
}

.kn-cert__signature {
    font-size: 1.05rem;
    letter-spacing: .02em;
}

.kn-cert__verify {
    margin: 14px 0 0;
    color: #9a3412;
    font-size: .7rem;
}

.kn-cert-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

@media print {
    .kn-cert-actions,
    .knopka-cert-form,
    .site-header,
    .site-footer,
    .related-sections,
    .ad-slot,
    .breadcrumbs,
    .fun-hero {
        display: none !important;
    }

    .kn-cert {
        margin: 0;
        padding: 0;
        background: #fff;
    }

    .kn-cert__border {
        box-shadow: none;
    }
}

/* Финальный блок «Демонической кнопки» */
.knopka-final-box {
    margin-top: 18px;
    padding: 22px;
    border: 1px dashed #fca5a5;
    background: #fff7f7;
}

.knopka-final-box > h3 {
    color: #7f1d1d;
    font-size: 1.15rem;
}

.knopka-final-box > p {
    color: #7f1d1d;
}

.knopka-final-form {
    display: grid;
    gap: 8px;
    max-width: 560px;
    margin: 0 auto 6px;
    text-align: left;
}

.knopka-final-form__label {
    color: #9a3412;
    font-size: .8rem;
    font-weight: 700;
}

.knopka-final-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.knopka-final-form__row input {
    flex: 1 1 220px;
    min-height: 48px;
    padding: 11px 14px;
    border: 1.5px solid #fecaca;
    border-radius: 11px;
    background: #fff;
    font: inherit;
    font-size: .95rem;
    color: var(--ink);
}

.knopka-final-form__row input:focus {
    outline: none;
    border-color: #b91c1c;
    box-shadow: 0 0 0 4px rgba(185, 28, 28, .12);
}

.knopka-final-form__row .btn {
    --btn-bg: #b91c1c;
    color: #fff;
    white-space: nowrap;
}

.knopka-final-hint {
    margin: 0 0 4px;
    color: #9a3412;
    font-size: .74rem;
}


/* Шеринг на странице сертификата */
.kn-cert-share {
    margin-top: 18px;
    border-color: #fca5a5;
    background: #fff7f7;
}

.kn-cert-share h3 {
    color: #7f1d1d;
}

.kn-cert-share p {
    color: #9a3412;
}

.kn-cert-share .share-referral label {
    color: #9a3412;
}

.kn-cert-share .share-referral__row input {
    border-color: #fecaca;
    background: #fff;
}

@media print {
    .kn-cert-share {
        display: none !important;
    }
}


/* Декоративные кнопки в сетках: не кликаются, как в оригинале */
.knopka-btn.is-decor {
    pointer-events: none;
    cursor: default;
}

.knopka-btn.is-decor:hover {
    filter: drop-shadow(0 12px 18px rgba(15, 23, 42, .28));
}

