.qw { width: min(640px, calc(100% - 48px)); max-width: 640px; max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 0; background: transparent; color: #102b43; overflow: visible; font-family: inherit; }
.qw *, .qw *::before, .qw *::after { box-sizing: border-box; }
.qw::backdrop { background: #18304c32; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.qw::before, .qw::after { content: ''; position: absolute; z-index: -1; pointer-events: none; background: #a6eef8; }
.qw::before { width: 300px; height: 320px; top: -18px; right: -24px; border-radius: 45% 55% 61% 39% / 33% 52% 48% 67%; transform: rotate(-19deg); }
.qw::after { width: 255px; height: 235px; bottom: -22px; left: -24px; border-radius: 61% 39% 53% 47% / 58% 44% 56% 42%; transform: rotate(13deg); }
.qw .qw-box { position: relative; width: 100%; max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; padding: 38px 46px 29px; border-radius: 36px; background: #fff; box-shadow: 0 18px 65px #10243c25; scrollbar-width: thin; }
.qw .qw-close { position: absolute; top: 19px; right: 20px; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: #f0f4f7; color: #0c2540; cursor: pointer; }
.qw svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.qw .qw-close:hover { background: #c7f4fa; }
.qw .qw-tag { display: inline-block; max-width: calc(100% - 34px); margin-bottom: 15px; padding: 10px 15px; border-radius: 16px 13px 17px 12px; background: #a6eef8; color: #1b4c61; font-size: 12px; line-height: 1.3; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.qw .qw-title { margin: 0 0 10px; color: #091e39; font-size:var(--t-h1); font-weight: 800; line-height: 1.1; letter-spacing: -.025em; }
.qw .qw-lead { margin: 0 0 24px; color: #60718a; font-size: 17px; line-height: 1.5; }
.qw .qw-form { margin: 0; }
.qw .qw-field { display: block; margin: 0 0 15px; color: #254259; }
.qw .qw-label { display: block; margin: 0 0 6px; font-size: 13px; line-height: 1.4; }
.qw .qw-input { position: relative; display: block; border: 1px solid #bad9e9; border-radius: 13px; background: #fff; transition: border-color .18s, box-shadow .18s; }
.qw .qw-input > svg { position: absolute; top: 15px; left: 16px; color: #53718a; pointer-events: none; }
.qw .qw-input input, .qw .qw-input textarea { display: block; box-sizing: border-box; width: 100%; max-width: 100%; margin: 0; padding: 16px 15px 16px 54px; border: 0; border-radius: inherit; outline: none; box-shadow: none; background: transparent; color: #193c54; font-family: inherit; font-size: 16px; line-height: 1.4; }
.qw .qw-input input { height: 54px; }
.qw .qw-input textarea { min-height: 108px; resize: vertical; }
.qw .qw-input input::placeholder, .qw .qw-input textarea::placeholder { color: #8b9bb0; opacity: 1; }
.qw .qw-input:focus-within { border-color: #64daef; box-shadow: 0 0 0 3px #b7f1fa; }
.qw .qw-send { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; margin: 23px 0 0; padding: 16px 20px; border: 0; border-radius: 17px 13px 18px 12px; background: #a5eaf6; color: #0b3048; box-shadow: 3px 4px 0 #092a40; font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1.3; }
.qw .qw-send:disabled { cursor: not-allowed; opacity: .8; }
.qw .qw-note { margin: 18px 0 0; color: #74879c; text-align: center; font-size: 13px; line-height: 1.5; }
.qw button:focus-visible { outline: 2px solid #187b95; outline-offset: 4px; }
@media (max-width: 640px) {
 .qw { width: calc(100% - 28px); max-height: calc(100dvh - 28px); }
 .qw .qw-box { max-height: calc(100dvh - 28px); padding: 30px 22px 24px; border-radius: 27px; }
 .qw .qw-close { width: 36px; height: 36px; top: 13px; right: 13px; }
 .qw .qw-tag { font-size: 11px; }
 .qw .qw-title { font-size:var(--t-h1); }
 .qw .qw-lead { font-size: 15px; margin-bottom: 20px; }
 .qw::before { right: -8px; top: -8px; width: 210px; height: 230px; }
 .qw::after { left: -8px; bottom: -9px; width: 180px; height: 190px; }
 .qw .qw-send { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .qw .qw-input { transition: none; } }

.qw .qw-field { display: flex; flex-direction: column; }
.qw .qw-err { position: relative; z-index: 1; align-self: flex-end; width: fit-content; max-width: calc(100% - 24px); margin: -7px 12px 0; padding: 3px 9px; border: 1px solid #f1c6ce; border-radius: 6px; background: #fbe4e9; color: #9d2940; font-size: 12px; font-weight: 500; line-height: 1.4; text-align: left; overflow-wrap: anywhere; }
.qw .qw-err:empty { display: none; }
.qw .qw-bad .qw-input { border-color: #c95266; }
.qw .qw-bad .qw-input:focus-within { box-shadow: 0 0 0 3px #fbe4e9; }

.qw-pop { position: fixed; z-index: 10020; top: max(24px, env(safe-area-inset-top)); right: 24px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 32px; align-items: center; gap: 13px; box-sizing: border-box; width: min(420px, calc(100vw - 32px)); min-height: 76px; padding: 15px 14px; border: 1px solid #91e4ef; border-radius: 18px 14px 18px 13px; background: #fff; box-shadow: 4px 5px 0 #102e43, 0 18px 45px rgba(10, 39, 59, .18); color: #102e43; font-family: inherit; opacity: 0; visibility: hidden; transform: translate3d(24px, -12px, 0); transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; pointer-events: none; }
.qw-pop.qw-on { opacity: 1; visibility: visible; transform: translate3d(0, 0, 0); transition-delay: 0s; pointer-events: auto; }
.qw-pop .qw-pic { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #a8eef8; color: #092a41; font-size: 24px; font-weight: 800; line-height: 1; }
.qw-pop .qw-pmt { min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.qw-pop .qw-pcl { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #edf8fa; color: #173c50; font: 400 25px/1 Arial, sans-serif; cursor: pointer; }
.qw-pop .qw-pcl:hover { background: #d9f5f8; }
.qw-pop .qw-pcl:focus-visible { outline: 2px solid #187e96; outline-offset: 2px; }
@media (max-width: 520px) {
 .qw-pop { top: max(16px, env(safe-area-inset-top)); right: 16px; grid-template-columns: 38px minmax(0, 1fr) 30px; gap: 10px; min-height: 68px; padding: 12px; }
 .qw-pop .qw-pic { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
 .qw-pop { transform: none; transition: none; }
}
