/* Кирюшка: isolated companion UI, used by the prototype and the WP adapter. */
.km-widget,.km-dialog{--km-cream:#fcfaf7;--km-purple:#69558f;--km-purple-dark:#51416e;--km-ink:#342d3d;--km-muted:#7c7285;--km-line:#e4dbe9;--km-orange:#bd4a18;--km-font:"Pangolin",cursive;font-family:var(--km-font);font-weight:400;font-synthesis:none;color:var(--km-ink);line-height:1.45;text-align:left;box-sizing:border-box}
.km-widget *,.km-dialog *{box-sizing:border-box}
.km-widget[hidden]{display:none!important}
.km-widget button,.km-dialog button,.km-dialog input{font:inherit;letter-spacing:normal;text-transform:none}
.km-widget button,.km-dialog button{cursor:pointer;-webkit-tap-highlight-color:transparent}
.km-widget button:focus-visible,.km-dialog button:focus-visible,.km-dialog a:focus-visible,.km-dialog input:focus-visible{outline:3px solid #aa8dcc;outline-offset:4px}
.km-widget svg,.km-dialog svg{width:22px;height:22px;flex-shrink:0;display:block}
.km-widget{position:fixed;right:calc(23px + env(safe-area-inset-right,0px));bottom:calc(23px + env(safe-area-inset-bottom,0px));width:130px;z-index:55;pointer-events:none;isolation:isolate}
.km-character{position:relative;width:130px}
.km-launcher{display:flex;align-items:center;flex-direction:column;width:130px;padding:8px 4px 0;border:0;background:transparent;color:var(--km-purple);pointer-events:auto;border-radius:20px;outline-offset:2px!important}
.km-character-art{position:relative;display:block;width:120px;height:110px;transform-origin:50% 90%;animation:km-breathe 8s ease-in-out 3s infinite}
.km-character-art>img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 7px 8px #6e467820)}
.km-launcher-label{display:block;margin-top:4px;padding:5px 11px;background:#fffdfaee;border:1px solid #e6dcebc7;border-radius:12px;font-size:14px;line-height:1.25;box-shadow:0 4px 12px #65507808;white-space:nowrap}
.km-character-heart{position:absolute;left:1px;top:18px;display:grid;place-items:center;width:27px;height:27px;background:#fff3e8;border:1px solid #f3d9c9;border-radius:50%;color:#e05b58;transform:rotate(-13deg);opacity:0;transition:opacity .4s ease,transform .5s cubic-bezier(.2,.6,.3,1)}
.km-character-heart svg{width:16px;height:16px;fill:#f5b2af;stroke-width:1.7}
.km-launcher:hover .km-character-art,.km-launcher:focus-visible .km-character-art{animation:none;transform:rotate(-3deg) translateY(-2px);transition:transform .6s cubic-bezier(.2,.6,.3,1)}
.km-launcher:hover .km-character-heart,.km-launcher:focus-visible .km-character-heart{opacity:1;transform:rotate(-7deg) translateY(-5px)}
.km-minimize{position:absolute;top:-13px;right:-10px;width:44px;height:44px;display:grid;place-items:center;padding:0;background:#fffdf9e8;border:1px solid #e5dcea;border-radius:50%;color:#8b7e9b;z-index:2;pointer-events:auto;box-shadow:0 3px 12px #68547f09}
.km-minimize svg{width:16px;height:16px}
.km-minimize:hover{color:var(--km-purple-dark);border-color:#bdaacb}
.km-thought{position:absolute;right:111px;bottom:101px;width:286px;padding:20px 22px 17px;background:linear-gradient(145deg,#fffefb,#fffaf2);border:1.5px solid #d4c4e1;border-radius:30px 32px 24px 32px;box-shadow:0 12px 40px #69558f16,0 2px 6px #69558f08;opacity:0;visibility:hidden;transform:translate(6px,8px) scale(.97);transform-origin:100% 100%;pointer-events:none;transition:opacity .45s ease,transform .5s cubic-bezier(.2,.65,.3,1),visibility .45s;z-index:4}
.km-has-thought .km-thought{opacity:1;visibility:visible;transform:none;pointer-events:auto}
.km-thought-kicker{display:block;color:#927ca6;letter-spacing:.02em;font-size:13px;line-height:1.3;padding-right:20px;margin-bottom:8px}
.km-thought-text{font-size:20px;line-height:1.4;color:var(--km-ink);padding:0;margin:0 0 8px;overflow-wrap:anywhere}
.km-thought-dismiss{position:absolute;right:0;top:0;width:44px;height:44px;display:grid;place-items:center;padding:0;border:0;background:transparent;color:#9d8bad;border-radius:50%}
.km-thought-dismiss svg{width:15px;height:15px}
.km-thought-cta{min-height:44px;padding:7px 0 0;display:inline-flex;gap:12px;align-items:center;background:transparent;color:var(--km-orange);font-size:18px;line-height:1.25;text-align:left;border:0;border-radius:5px}
.km-thought-cta svg{width:20px;height:20px;transition:transform .3s ease}
.km-thought-cta:hover svg{transform:translateX(3px)}
.km-thought-dot{position:absolute;display:block;background:#fffcf6;border:1.5px solid #d4c4e1;border-radius:50%;pointer-events:none;box-shadow:0 2px 5px #69558f09}
.km-thought-dot-one{width:19px;height:19px;right:-10px;bottom:-17px}
.km-thought-dot-two{width:10px;height:10px;right:-24px;bottom:-29px}
.km-restore{display:none;align-items:center;gap:9px;min-height:46px;padding:9px 13px;border:1px solid #dacae6;border-radius:15px;background:#fffdf9ed;color:var(--km-purple);box-shadow:0 5px 19px #69558f12;pointer-events:auto;font-size:16px;line-height:1.2;white-space:nowrap}
.km-restore svg{width:22px;height:22px}
.km-restore>span:last-child{color:#a797b5}
.km-is-minimized{width:auto}
.km-is-minimized .km-character,.km-is-minimized .km-thought{display:none}
.km-is-minimized .km-restore{display:flex}
dialog.km-dialog{width:min(520px,calc(100% - 32px));max-width:520px;max-height:calc(100dvh - 40px);padding:0;border:1px solid #d8cae3;border-radius:31px;overflow-y:auto;overscroll-behavior:contain;background:#fffdf9;box-shadow:0 24px 90px #34253a28,0 0 0 5px #fffdf94d;color:var(--km-ink);scrollbar-width:thin;scrollbar-color:#d7c9e2 transparent;position:fixed;margin:auto;inset:0}
dialog.km-dialog::backdrop{background:#3027384d;backdrop-filter:blur(3px)}
dialog.km-dialog[open]{animation:km-dialog-enter .4s cubic-bezier(.2,.65,.3,1)}
dialog.km-dialog .modal-close,.km-dialog-close{position:absolute;right:11px;top:11px;width:44px;height:44px;z-index:5;border:1px solid #e7deeb;background:#fffdf9ed;border-radius:50%;display:grid;place-items:center;padding:0;color:#79668c;font-size:25px;line-height:1;box-shadow:none}
.km-dialog-close svg{width:20px;height:20px}
.km-panel{padding:28px 30px 17px;background:radial-gradient(ellipse at 93% 6%,#fff0daaa,transparent 45%),radial-gradient(ellipse at 0 23%,#f1eaf9aa,transparent 43%),#fffdf9}
.km-panel-eyebrow{display:inline-flex;align-items:center;gap:7px;max-width:calc(100% - 27px);padding:5px 12px 5px 9px;border:1px solid #e1d5e9;border-radius:999px;background:#fffaf5;color:#836298;font-size:12px;line-height:1.35;margin:0 0 18px}
.km-panel-eyebrow svg{width:16px;height:16px;color:#df8064}
.km-panel-welcome{display:flex;align-items:center;gap:8px;margin-bottom:13px}
.km-panel-copy{flex:1;min-width:0}
.km-person-name{display:block;color:#9c6b49;font-size:15px;line-height:1.3;margin-bottom:9px}
.km-dialog .km-panel-title{font-family:var(--km-font);font-weight:400;font-synthesis:none;font-size:38px;letter-spacing:-.02em;line-height:1.12;color:var(--km-purple-dark);margin:0;overflow-wrap:anywhere;text-wrap:balance}
.km-panel-logo{width:118px;height:108px;object-fit:contain;flex:0 0 118px;transform:rotate(4deg);filter:drop-shadow(0 6px 8px #69558f0a)}
.km-dialog .km-panel-intro{margin:0 0 18px;font-size:18px;line-height:1.5;color:#7d7183}
.km-campaign{display:flex;align-items:center;gap:11px;padding:12px;border:1px solid #e8e0ed;border-radius:17px;background:#ffffffb0;margin:0 0 21px}
.km-campaign>img,.km-campaign-mark{width:48px;height:48px;border-radius:11px;flex:0 0 48px;object-fit:cover}
.km-campaign-mark{display:grid;place-items:center;background:#fff0df;color:#c67942}
.km-campaign>div{flex:1;min-width:0}
.km-campaign-label{display:block;font-size:12px;line-height:1.3;color:#93839c;margin-bottom:4px}
.km-campaign strong{display:block;font-weight:400;font-size:17px;line-height:1.25;color:#5e4d70;overflow-wrap:anywhere}
.km-campaign-link{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:12px;color:var(--km-purple);background:#f2edf6;text-decoration:none}
.km-campaign-link svg{width:20px;height:20px}
.km-amount-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;font-size:18px;color:#5e4d70}
.km-monthly-label{padding:4px 8px;border-radius:7px;background:#f2eaf8;color:#8c6aa0;font-size:12px;line-height:1.25;white-space:nowrap}
.km-amounts{display:grid;grid-template-columns:repeat(var(--km-amount-count,3),minmax(0,1fr));gap:9px;margin:0 0 15px}
.km-amount{white-space:nowrap;min-height:60px;min-width:0;padding:10px 6px;border:1.5px solid #dfd3e7;border-radius:15px;background:#fffefc;color:#6b5885;font-size:25px!important;line-height:1.2;box-shadow:0 2px 0 #69558f04;transition:background .22s,border-color .22s,color .22s,transform .22s}
.km-amount:hover{border-color:#ae90c6;transform:translateY(-1px)}
.km-amount[aria-pressed=true]{background:var(--km-purple);color:#fffaf3;border-color:var(--km-purple);box-shadow:0 5px 12px #69558f20}
.km-amount[data-km-long=true]{font-size:19px!important}
.km-custom{margin:0 0 14px}
.km-custom>label{display:block;font-size:15px;color:#85728d;margin-bottom:7px}
.km-custom-field{position:relative}
.km-custom-field>input{display:block;width:100%;height:52px;min-height:52px;border:1px solid #e0d7e7;border-radius:13px;background:#fff;padding:11px 99px 11px 14px;font-size:19px!important;line-height:1.35;color:#5e4d70;box-shadow:none;-webkit-appearance:none;appearance:none}
.km-custom-field>input::placeholder{color:#aa9bb3;opacity:1}
.km-custom-field>input[aria-invalid=true]{border-color:#d68f7a}
.km-custom-field>span{position:absolute;right:14px;top:0;display:flex;align-items:center;height:52px;color:#ab91ba;font-size:15px;pointer-events:none}
.km-amount-hint{display:block;font-size:11px;color:#a090a9;margin-top:5px;line-height:1.35}
.km-dialog .km-sum-thought{display:flex;gap:10px;align-items:center;min-height:49px;margin:0 0 16px;font-size:15px;line-height:1.4;color:#91715c;padding:0 5px}
.km-sum-thought>svg{width:23px;height:23px;color:#dd8f7b;stroke-width:1.6}
.km-sum-thought strong{font-weight:400;color:#a45835}
.km-panel-error{padding:10px 12px;border:1px solid #edc4b4;background:#fff3ed;border-radius:11px;margin-bottom:12px;color:#a75b40;font-size:14px;line-height:1.4}
.km-panel-error[hidden]{display:none}
.km-submit{display:flex;align-items:center;justify-content:center;gap:14px;width:100%;min-height:68px;padding:10px 17px;border:1px solid #ad4219;border-radius:17px;background:linear-gradient(125deg,#bd4a18,#c65b29);color:#fff9f3;box-shadow:0 7px 20px #b6542321;transition:box-shadow .35s,transform .35s,filter .35s}
.km-submit:hover:not(:disabled){box-shadow:0 9px 24px #b6542330;transform:translateY(-1px);filter:brightness(1.035)}
.km-submit:active:not(:disabled){transform:translateY(0)}
.km-submit:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}
.km-submit-heart{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#fff1e5;flex-shrink:0;color:#e15559}
.km-submit-heart svg{width:21px;height:21px;fill:#f9cfcd;stroke-width:1.7}
.km-submit:hover .km-submit-heart svg{animation:km-heartbeat 1.7s ease-in-out infinite}
.km-submit-copy{display:flex;flex-direction:column;align-items:center;min-width:0}
.km-button-label{font-size:20px;line-height:1.2;overflow-wrap:anywhere}
.km-button-sum{font-size:16px;font-weight:400;line-height:1.3;color:#ffe2c9;margin-top:3px}
.km-submit-arrow{margin-left:auto;width:22px;height:22px}
.km-submit-heart{margin-right:auto}
.km-dialog .km-checkout-note{display:flex;justify-content:center;align-items:flex-start;gap:8px;margin:15px 0 5px;font-size:12px;line-height:1.5;color:#9a8ba1;text-align:left}
.km-checkout-note svg{width:16px;height:16px;flex-shrink:0;margin-top:2px;color:#ac96b6}
.km-later{display:block;width:100%;min-height:44px;padding:9px 3px;background:transparent;border:0;border-radius:6px;color:#a290ac;font-size:14px!important;text-decoration:underline;text-decoration-color:#dfd1e6;text-underline-offset:4px}
.km-later:hover{color:#756181}
.km-no-motion .km-character-art,.km-is-paused .km-character-art{animation:none!important}
.km-no-motion .km-character-heart,.km-no-motion .km-thought,.km-no-motion .km-character-art{transition:none!important}
.km-no-motion .km-launcher:hover .km-character-art,.km-no-motion .km-launcher:focus-visible .km-character-art{transform:none}
.km-dialog.km-no-motion,.km-dialog.km-no-motion *{animation:none!important;transition:none!important}
@keyframes km-breathe{0%,72%,100%{transform:none}79%{transform:translateY(-2px) rotate(-1.4deg)}87%{transform:translateY(-1px) rotate(1deg)}94%{transform:none}}
@keyframes km-dialog-enter{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}
@keyframes km-heartbeat{0%,52%,100%{transform:scale(1)}12%{transform:scale(1.12)}24%{transform:scale(1)}36%{transform:scale(1.08)}}
@media(min-width:761px){.km-widget{transition:bottom .35s ease,right .35s ease}}
@media(max-width:760px){
 .km-widget{right:calc(13px + env(safe-area-inset-right,0px));bottom:calc(17px + env(safe-area-inset-bottom,0px));width:94px}
 .km-character,.km-launcher{width:94px}.km-character-art{width:86px;height:79px}.km-launcher{padding-top:4px}.km-launcher-label{font-size:12px;padding:5px 8px;margin-top:2px}.km-minimize{right:-4px;top:-24px;width:44px;height:44px;background:#fffdf9df}.km-character-heart{left:-2px;top:12px;width:23px;height:23px}.km-character-heart svg{width:14px;height:14px}
 .km-thought{right:8px;bottom:123px;width:min(278px,calc(100vw - 34px));padding:19px 21px 15px;border-radius:27px}.km-thought-kicker{font-size:12px}.km-thought-text{font-size:19px}.km-thought-cta{font-size:17px}.km-thought-dot-one{right:31px;bottom:-22px}.km-thought-dot-two{right:26px;bottom:-37px}
 .km-restore{font-size:14px;padding:9px 11px;gap:7px}.km-restore svg{width:19px;height:19px}
 body:has(.mobile-bottom-action:not(.is-hidden)) .km-widget{bottom:calc(96px + env(safe-area-inset-bottom,0px))}
 dialog.km-dialog{width:calc(100% - 24px);max-width:520px;max-height:calc(100dvh - 26px);border-radius:25px}
 .km-panel{padding:25px 22px 14px}.km-panel-eyebrow{font-size:11px;margin-bottom:16px;padding-right:9px}.km-panel-logo{width:72px;height:66px;flex-basis:72px}.km-dialog .km-panel-title{font-size:30px;line-height:1.13}.km-person-name{font-size:14px;margin-bottom:7px}.km-dialog .km-panel-intro{font-size:17px;margin-bottom:16px}.km-campaign{padding:10px;gap:9px;margin-bottom:17px}.km-campaign>img,.km-campaign-mark{width:44px;height:44px;flex-basis:44px}.km-campaign strong{font-size:16px}.km-campaign-label{font-size:11px}.km-amount-header{font-size:17px}.km-amount{min-height:56px;font-size:21px!important}.km-submit{min-height:66px;gap:9px}.km-button-label{font-size:20px}.km-dialog .km-checkout-note{font-size:12px}
 .km-amounts[data-km-count="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}.km-amount[data-km-long=true]{font-size:16px!important}
}
@media(max-width:365px){
 .km-panel{padding:25px 16px 12px}.km-panel-welcome{display:block;position:relative}.km-panel-logo{position:absolute;right:0;top:0;width:46px;height:42px}.km-person-name{padding-right:54px;min-height:42px;display:flex;align-items:center}.km-dialog .km-panel-title{font-size:28px}.km-panel-eyebrow{font-size:10px;max-width:calc(100% - 30px);gap:5px}.km-panel-eyebrow svg{width:13px;height:13px}.km-person-name{font-size:12px}.km-dialog .km-panel-intro{font-size:16px}.km-amounts{gap:6px}.km-amount{font-size:18px!important;min-height:52px}.km-amount-header{font-size:16px}.km-monthly-label{font-size:10px;padding:4px 6px}.km-custom-field>input{font-size:17px!important}.km-button-label{font-size:18px}.km-campaign-link{width:44px;flex-basis:44px;min-height:44px}.km-campaign{gap:7px}.km-campaign strong{font-size:15px}
 .km-amount[data-km-long=true]{font-size:14px!important}
}
@media(max-height:550px){
 dialog.km-dialog{max-height:calc(100dvh - 18px);border-radius:23px}.km-panel{padding-top:21px}.km-panel-logo{width:88px;height:81px;flex-basis:88px}.km-panel-eyebrow{margin-bottom:10px}.km-dialog .km-panel-title{font-size:31px}.km-dialog .km-panel-intro{margin-bottom:12px}.km-panel-welcome{margin-bottom:8px}.km-widget .km-thought{max-height:calc(100dvh - 151px);overflow-y:auto;overscroll-behavior:contain}.km-thought-text{font-size:17px}
}
@media(prefers-reduced-motion:reduce){
 .km-widget *,.km-dialog *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
 .km-launcher:hover .km-character-art,.km-launcher:focus-visible .km-character-art,.km-submit:hover:not(:disabled),.km-amount:hover,.km-thought-cta:hover svg{transform:none}
 dialog.km-dialog[open]{animation:none}
}
@media print{.km-widget,.km-dialog{display:none!important}}
