/* Общие элементы Баланс.Код: раскрывающиеся блоки, условия лицензии, подножка с котиками */
.bc-details { border: 1px solid rgba(138,106,59,.22); border-radius: 16px; margin: 14px 0; background: #FFFDF9; overflow: hidden; }
.bc-details > summary { cursor: pointer; list-style: none; padding: 15px 20px; font-family: 'Unbounded', 'Onest', sans-serif; font-weight: 500; font-size: .95rem; line-height: 1.45; color: #1E1A16; background: linear-gradient(120deg, #FBF3E4 0%, #F2E8D8 100%); display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.bc-details > summary::-webkit-details-marker { display: none; }
.bc-details > summary::after { content: '+'; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(184,145,63,.5); color: #8A6A3B; font-weight: 300; transition: transform .3s, background .3s, color .3s; }
.bc-details[open] > summary::after { transform: rotate(45deg); background: #1E1A16; color: #E2C98F; border-color: #1E1A16; }
.bc-details > summary:focus-visible { outline: 2px solid #B8913F; outline-offset: -2px; }
.bc-details-body { padding: 18px 22px 8px; }
.bc-details-body h1 { font-size: 1.15rem !important; margin: 4px 0 10px !important; }
.bc-details-body h3 { margin-top: 20px; }

.bc-pill { display: inline-block; font-family: 'Unbounded', 'Onest', sans-serif; font-size: .82rem; font-weight: 500; color: #1E1A16; text-decoration: none; border: 1px solid #1E1A16; border-radius: 999px; padding: 10px 20px; margin: 6px 4px; background: transparent; cursor: pointer; transition: background .25s, color .25s; }
.bc-pill:hover { background: #1E1A16; color: #E2C98F; }
.bc-pill.solid { background: #1E1A16; color: #F7EEDF; }
.bc-pill.solid:hover { background: #E2C98F; color: #1E1A16; border-color: #E2C98F; }

/* Кнопка «условия» рядом с упоминанием лицензии */
.bc-lic-btn { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 9px; font: 500 .72rem/1.6 'Onest', sans-serif; color: #8A6A3B; background: rgba(226,201,143,.28); border: 1px solid rgba(184,145,63,.45); border-radius: 999px; cursor: pointer; vertical-align: middle; white-space: nowrap; }
.bc-lic-btn:hover { background: #1E1A16; color: #E2C98F; border-color: #1E1A16; }
.bc-lic-dialog { border: none; border-radius: 22px; padding: 34px 32px 26px; max-width: 640px; width: calc(100% - 28px); background: #FFFDF9; color: #1E1A16; font-family: 'Onest', sans-serif; font-size: 16px; line-height: 1.7; box-shadow: 0 30px 80px -30px rgba(30,26,22,.6); }
.bc-lic-dialog::backdrop { background: rgba(30,26,22,.55); backdrop-filter: blur(3px); }
.bc-lic-dialog h3 { font-family: 'Unbounded', sans-serif; font-weight: 500; font-size: 1.05rem; margin: 0 30px 14px 0; line-height: 1.4; }
.bc-lic-dialog p { margin: 0 0 11px; }
.bc-lic-dialog .bc-x { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(138,106,59,.3); background: transparent; font-size: 1.3rem; cursor: pointer; color: #1E1A16; }
.bc-lic-dialog .bc-x:hover { background: #1E1A16; color: #E2C98F; }

/* Подножка: семейство нежных котиков */
.bc-cats { display: block; max-width: 920px; margin: 26px auto 0; padding: 0 8px; pointer-events: none; }
.bc-cats svg { display: block; width: 100%; height: auto; }
.bc-cats .t { transform-box: fill-box; transform-origin: 0% 100%; animation: bc-tail 3.6s ease-in-out infinite; }
.bc-cats .t2 { animation-delay: -1.2s; animation-duration: 3s; }
.bc-cats .t3 { animation-delay: -2.1s; animation-duration: 4.2s; }
.bc-cats .blink { transform-box: fill-box; transform-origin: center; animation: bc-blink 5s infinite; }
.bc-cats .heart { animation: bc-float 4s ease-in-out infinite; opacity: .8; }
@keyframes bc-tail { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(-9deg); } }
@keyframes bc-blink { 0%,94%,100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@keyframes bc-float { 0%,100% { transform: translateY(0); opacity: .75; } 50% { transform: translateY(-5px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bc-cats * { animation: none !important; } }

/* Раскрывающееся окно «Больше интересующей Вас информации» */
.more-panel { display: none; margin: 20px 0 10px; padding: 30px; border: 1px solid rgba(184,145,63,.45); border-radius: 22px; background: rgba(255,253,249,.78); text-align: left; }
.more-panel.open { display: block; animation: bc-rise .5s cubic-bezier(.2,.7,.2,1) both; }
.more-panel h3 { margin-top: 26px; }
.more-panel h3:first-child { margin-top: 0; }
.more-sub { font-style: italic; color: #7A6E60; }
@keyframes bc-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .more-panel { padding: 18px 14px; } }

/* Таблицы */
.bc-table-wrap { overflow-x: auto; margin: 14px 0 18px; border-radius: 16px; border: 1px solid rgba(138,106,59,.25); }
.bc-table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.6; background: #FFFDF9; }
.bc-table th, .bc-table td { padding: 14px 16px; vertical-align: top; text-align: left; border-bottom: 1px solid rgba(138,106,59,.16); }
.bc-table th { font-family: 'Unbounded', 'Onest', sans-serif; font-weight: 500; font-size: .85rem; background: linear-gradient(120deg, #1E1A16 0%, #3A3128 100%); color: #E2C98F; }
.bc-table tr:last-child td { border-bottom: none; }
.bc-table td:first-child { font-weight: 600; color: #8A6A3B; }
.bc-table.plain td:first-child { font-weight: 400; color: inherit; }
.bc-table ul { margin: 0 0 0 18px; }
.bc-table li { margin-bottom: 6px; }

.bc-dialogue { background: rgba(242,232,216,.45); border-left: 3px solid #B8913F; border-radius: 0 14px 14px 0; padding: 16px 20px; margin: 14px 0; }
.bc-dialogue p { margin: 0 0 8px; }
.bc-dialogue .who { font-weight: 600; color: #8A6A3B; }

/* Золотые кнопки, светящиеся изнутри как солнце */
.sun-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 26px 0 8px; }
.sun-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; text-align: center;
    padding: 16px 28px; min-width: 240px; max-width: 100%; border-radius: 999px;
    font-family: 'Onest', sans-serif; font-weight: 600; font-size: 1rem; line-height: 1.35; color: #3A2A10; text-decoration: none;
    background: radial-gradient(circle at 50% 50%, #FFFBE6 0%, #FFE59A 28%, #F1C75A 58%, #C9952E 100%);
    border: 1px solid #B8913F;
    box-shadow: inset 0 0 18px rgba(255,248,214,.95), inset 0 -4px 10px rgba(138,106,59,.35), 0 0 22px rgba(241,199,90,.55), 0 12px 26px -12px rgba(138,106,59,.8);
    animation: sun-glow 3.2s ease-in-out infinite;
    transition: transform .25s;
}
.sun-btn:hover { transform: translateY(-2px) scale(1.02); color: #1E1A16; }
.sun-btn:focus-visible { outline: 2px solid #8A6A3B; outline-offset: 3px; }
@keyframes sun-glow {
    0%, 100% { box-shadow: inset 0 0 18px rgba(255,248,214,.95), inset 0 -4px 10px rgba(138,106,59,.35), 0 0 18px rgba(241,199,90,.45), 0 12px 26px -12px rgba(138,106,59,.8); }
    50% { box-shadow: inset 0 0 28px rgba(255,252,232,1), inset 0 -4px 10px rgba(138,106,59,.3), 0 0 36px rgba(255,214,102,.85), 0 12px 26px -12px rgba(138,106,59,.8); }
}
@media (prefers-reduced-motion: reduce) { .sun-btn { animation: none; } }

/* Лицензионное соглашение */
.bc-lic-dialog.agreement { max-width: 760px; }
.bc-lic-dialog.agreement h4 { font-family: 'Unbounded', sans-serif; font-weight: 500; font-size: .9rem; margin: 20px 0 8px; color: #8A6A3B; }
.bc-lic-dialog.agreement ul, .bc-lic-dialog.agreement ol { margin: 0 0 12px 22px; }
.bc-lic-dialog.agreement .meta { font-size: .9rem; color: #7A6E60; }
.bc-lic-dialog.agreement { max-height: 88vh; overflow-y: auto; }
.bc-lic-dialog.agreement .bc-x { position: sticky; top: 0; float: right; margin: -18px -14px 0 0; background: #FFFDF9; }
