.feedback-popup[hidden] { display: none; }
.feedback-popup {
  position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center;
  padding: 24px; opacity: 0; visibility: hidden;
  transition: opacity .24s ease, visibility .24s ease;
}
.feedback-popup.is-open { opacity: 1; visibility: visible; }
.feedback-popup__backdrop {
  position: absolute; inset: 0; background: rgba(5, 7, 13, .78);
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
}
.feedback-popup__dialog {
  position: relative; width: min(1040px, 100%); max-height: min(820px, calc(100vh - 48px));
  overflow: auto; display: grid; grid-template-columns: minmax(0, .88fr) minmax(360px, 1.12fr);
  gap: clamp(32px, 5vw, 72px); padding: clamp(34px, 5vw, 72px); color: #f5f7ff;
  background: radial-gradient(circle at 92% 105%, rgba(43, 86, 255, .42), transparent 38%),
    radial-gradient(circle at 8% 0%, rgba(43, 86, 255, .16), transparent 34%), #11131a;
  border: 1px solid rgba(115, 143, 255, .4); border-radius: 24px;
  box-shadow: 0 32px 100px rgba(0, 0, 0, .52); transform: translateY(24px) scale(.985);
  transition: transform .28s cubic-bezier(.16, 1, .3, 1);
}
.feedback-popup.is-open .feedback-popup__dialog { transform: translateY(0) scale(1); }
.feedback-popup__close {
  position: absolute; top: 20px; right: 20px; z-index: 2; width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%;
  background: rgba(255, 255, 255, .06); transition: background .18s, border-color .18s, transform .18s;
}
.feedback-popup__close:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .54); transform: rotate(4deg); }
.feedback-popup__close span::before, .feedback-popup__close span::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 20px; height: 2px; background: #fff;
}
.feedback-popup__close span::before { transform: translate(-50%, -50%) rotate(45deg); }
.feedback-popup__close span::after { transform: translate(-50%, -50%) rotate(-45deg); }
.feedback-popup__intro { align-self: center; }
.feedback-popup__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; color: #8fa6ff;
  font-family: var(--font-mono, monospace); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
}
.feedback-popup__eyebrow::before { content: ""; width: 28px; height: 2px; background: #2b56ff; }
.feedback-popup__intro h2 {
  margin-top: 22px; color: #fff; font-size: clamp(2rem, 4vw, 3.55rem); line-height: 1.02; letter-spacing: -.045em;
}
.feedback-popup__intro > p { margin-top: 22px; color: #b8bdcb; font-size: clamp(1rem, 1.5vw, 1.16rem); line-height: 1.65; }
.feedback-popup__mail { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); }
.feedback-popup__mail span {
  display: block; color: #7f8698; font-family: var(--font-mono, monospace);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
}
.feedback-popup__mail a { display: inline-block; margin-top: 7px; color: #fff; font-weight: 700; text-decoration: none; }
.feedback-popup__form { padding: clamp(22px, 3vw, 32px); background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; }
.feedback-popup__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feedback-popup__field { display: block; margin-bottom: 14px; }
.feedback-popup__field > span {
  display: flex; justify-content: space-between; margin-bottom: 7px; color: #c9ceda;
  font-family: var(--font-mono, monospace); font-size: 10px; letter-spacing: .13em; text-transform: uppercase;
}
.feedback-popup__field small { color: #737b8e; font-size: 9px; }
.feedback-popup__field input, .feedback-popup__field textarea {
  width: 100%; border: 1px solid #343947; border-radius: 9px; background: #f8f9fc; color: #11131a;
  font: inherit; font-size: 15px; outline: none; transition: border-color .18s, box-shadow .18s;
}
.feedback-popup__field input { min-height: 48px; padding: 0 14px; }
.feedback-popup__field textarea { min-height: 112px; padding: 13px 14px; resize: vertical; }
.feedback-popup__field input:focus, .feedback-popup__field textarea:focus { border-color: #2b56ff; box-shadow: 0 0 0 3px rgba(43, 86, 255, .22); }
.feedback-popup__consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; color: #aeb4c2; font-size: 12px; line-height: 1.45; }
.feedback-popup__consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: #2b56ff; }
.feedback-popup__consent a { color: #cbd6ff; text-decoration: underline; text-underline-offset: 3px; }
.feedback-popup__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.feedback-popup__submit {
  width: 100%; min-height: 54px; margin-top: 20px; padding: 0 22px; border: 0; border-radius: 9px;
  background: #2b56ff; color: #fff; font: inherit; font-weight: 800;
  transition: background .18s, transform .18s, box-shadow .18s;
}
.feedback-popup__submit:hover { background: #1744f4; box-shadow: 0 14px 34px rgba(43, 86, 255, .32); transform: translateY(-1px); }
.feedback-popup__submit:disabled { cursor: wait; opacity: .65; }
.feedback-popup__status { min-height: 18px; margin-top: 11px; color: #b8bdcb; font-size: 12px; text-align: center; }
.feedback-popup__status.is-success { color: #79e6aa; }
.feedback-popup__status.is-error { color: #ff929c; }
body.feedback-popup-open { overflow: hidden; }

.feedback-assistant { position: fixed; right: 24px; bottom: 22px; z-index: 1100; font-family: inherit; }
.feedback-assistant [hidden] { display: none !important; }
.feedback-assistant__launcher {
  min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 8px 22px 8px 9px;
  border: 1px solid rgba(43, 86, 255, .34); border-radius: 999px; background: #fff; color: #101321;
  box-shadow: 0 18px 54px rgba(9, 14, 31, .24); font: inherit; font-weight: 800;
  transition: transform .18s, box-shadow .18s;
}
.feedback-assistant__launcher:hover { transform: translateY(-2px); box-shadow: 0 22px 60px rgba(9, 14, 31, .32); }
.feedback-assistant__orb {
  position: relative; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 66% 27%, #fff 0 9%, transparent 10%), linear-gradient(145deg, #0e173d 8%, #2b56ff 55%, #8fa6ff);
  box-shadow: inset 0 -8px 14px rgba(3, 6, 22, .35), 0 0 0 1px rgba(43, 86, 255, .25);
}
.feedback-assistant__orb i { position: absolute; inset: 7px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); }
.feedback-assistant__hint {
  position: absolute; right: 0; bottom: 72px; width: min(330px, calc(100vw - 32px)); padding: 17px 44px 17px 18px;
  border: 1px solid rgba(43, 86, 255, .3); border-radius: 16px; background: #11131a; color: #fff;
  box-shadow: 0 20px 55px rgba(0,0,0,.3); animation: feedbackHintIn .3s ease both;
}
.feedback-assistant__hint strong, .feedback-assistant__hint span { display: block; }
.feedback-assistant__hint strong { font-size: 15px; }
.feedback-assistant__hint span { margin-top: 4px; color: #aeb4c2; font-size: 12px; line-height: 1.45; }
.feedback-assistant__hint-close { position: absolute; top: 9px; right: 10px; border: 0; background: none; color: #8f96a8; font-size: 22px; }
.feedback-assistant__panel {
  position: absolute; right: 0; bottom: 72px; width: min(410px, calc(100vw - 32px)); max-height: min(680px, calc(100dvh - 112px));
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(43, 86, 255, .32); border-radius: 24px;
  background: #f7f8fb; color: #11131a; box-shadow: 0 28px 90px rgba(0,0,0,.34);
  opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .2s, transform .22s cubic-bezier(.16,1,.3,1);
}
.feedback-assistant__panel.is-open { opacity: 1; transform: translateY(0) scale(1); }
.feedback-assistant__header {
  display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 17px;
  background: linear-gradient(135deg, #11131a, #1a2031); color: #fff;
}
.feedback-assistant__header > div { display: grid; grid-template-columns: 10px 1fr; column-gap: 9px; align-items: center; }
.feedback-assistant__header strong { font-size: 14px; }
.feedback-assistant__header small { grid-column: 2; margin-top: 2px; color: #969eaf; font-size: 10px; }
.feedback-assistant__status-dot { width: 8px; height: 8px; border-radius: 50%; background: #57d98c; box-shadow: 0 0 0 4px rgba(87,217,140,.12); }
.feedback-assistant__header button { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: rgba(255,255,255,.06); color: #fff; font-size: 22px; }
.feedback-assistant__conversation { min-height: 160px; max-height: 250px; overflow-y: auto; padding: 20px 18px 10px; }
.feedback-assistant__message {
  width: fit-content; max-width: 88%; margin-bottom: 9px; padding: 11px 14px; border-radius: 17px;
  font-size: 14px; line-height: 1.45; animation: feedbackMessageIn .25s ease both;
}
.feedback-assistant__message--bot { background: #e8eaf0; border-bottom-left-radius: 5px; }
.feedback-assistant__message--user { margin-left: auto; background: #2b56ff; color: #fff; border-bottom-right-radius: 5px; }
.feedback-assistant__choices { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 18px 18px; }
.feedback-assistant__choices button {
  padding: 9px 12px; border: 1px solid #cad1e5; border-radius: 999px; background: #fff; color: #17203a;
  font: inherit; font-size: 12px; font-weight: 700; transition: color .16s, border-color .16s, background .16s;
}
.feedback-assistant__choices button:hover { border-color: #2b56ff; background: #edf1ff; color: #1744f4; }
.feedback-assistant__form { overflow-y: auto; padding: 8px 18px 16px; }
.feedback-assistant__form > label:not(.feedback-assistant__consent):not(.feedback-popup__trap) { display: block; margin-bottom: 10px; }
.feedback-assistant__form label > span { display: block; margin-bottom: 5px; color: #626a7c; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.feedback-assistant__form label small { color: #9198a8; font-size: 9px; }
.feedback-assistant__form input[type="text"], .feedback-assistant__form input[type="email"], .feedback-assistant__form input[type="tel"] {
  width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #d5d9e4; border-radius: 11px; background: #fff; color: #11131a; font: inherit; font-size: 14px; outline: none;
}
.feedback-assistant__form input:focus { border-color: #2b56ff; box-shadow: 0 0 0 3px rgba(43,86,255,.12); }
.feedback-assistant__consent { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; margin-top: 12px; color: #697184; font-size: 10px; line-height: 1.45; }
.feedback-assistant__consent input { width: 16px; height: 16px; margin: 0; accent-color: #2b56ff; }
.feedback-assistant__consent span { margin: 0 !important; font-size: inherit !important; font-weight: 400 !important; letter-spacing: 0 !important; text-transform: none !important; }
.feedback-assistant__consent a { color: #1744f4; text-decoration: underline; }
.feedback-assistant__submit { width: 100%; min-height: 46px; margin-top: 13px; border: 0; border-radius: 11px; background: #2b56ff; color: #fff; font: inherit; font-weight: 800; }
.feedback-assistant__submit:hover { background: #1744f4; }
.feedback-assistant__submit:disabled { opacity: .65; }
.feedback-assistant__form-status { min-height: 16px; margin: 8px 0 0; color: #626a7c; font-size: 10px; text-align: center; }
.feedback-assistant__form-status.is-success { color: #14834b; }
.feedback-assistant__form-status.is-error { color: #c33145; }
.feedback-assistant__footer { padding: 11px 18px 13px; border-top: 1px solid #e0e3eb; text-align: center; }
.feedback-assistant__footer a { color: #44506a; font-size: 11px; font-weight: 700; text-decoration: none; }
@keyframes feedbackHintIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes feedbackMessageIn { from { opacity: 0; transform: translateY(5px); } }

.feedback-section {
  position: relative; overflow: hidden; padding: clamp(72px, 9vw, 132px) 0;
  color: #f5f7ff; background:
    radial-gradient(circle at 14% 92%, rgba(43, 86, 255, .22), transparent 28%),
    linear-gradient(135deg, #11131a 0%, #171a24 58%, #101218 100%);
  border-top: 1px solid rgba(115, 143, 255, .28);
}
.feedback-section::after {
  content: ""; position: absolute; right: -12%; bottom: -52%; width: 52vw; aspect-ratio: 1;
  border: 1px solid rgba(115, 143, 255, .18); border-radius: 50%; pointer-events: none;
}
.feedback-section__inner {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr);
  gap: clamp(50px, 8vw, 130px); align-items: start;
}
.feedback-section__eyebrow {
  display: inline-flex; align-items: center; gap: 12px; color: #8fa6ff;
  font-family: var(--font-mono, monospace); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
}
.feedback-section__eyebrow::before { content: ""; width: 34px; height: 2px; background: #2b56ff; }
.feedback-section__copy h2 {
  max-width: 9ch; margin: 24px 0 0; color: #fff;
  font-size: clamp(3rem, 6.4vw, 6.8rem); line-height: .92; letter-spacing: -.065em;
}
.feedback-section__copy > p {
  max-width: 620px; margin: 30px 0 0; color: #b8bdcb;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.65;
}
.feedback-section__email {
  display: inline-flex; gap: 10px; margin-top: 26px; color: #fff; font-weight: 750;
  text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .32); padding-bottom: 5px;
}
.feedback-section__email:hover { color: #9db0ff; border-color: #2b56ff; }
.feedback-section__signal { position: relative; width: min(430px, 88%); height: 150px; margin-top: 52px; }
.feedback-section__signal span {
  position: absolute; inset: 8px auto auto 0; width: 70%; height: 126px;
  border: 1px solid rgba(76, 112, 255, .64); border-radius: 50%; transform: rotate(4deg);
}
.feedback-section__signal span:nth-child(2) { left: 27%; transform: rotate(-4deg); }
.feedback-section__signal i {
  position: absolute; left: 47%; top: 50%; transform: translate(-50%, -50%);
  width: 92px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(90deg, rgba(43, 86, 255, .3), #2b56ff); color: #fff;
  font: 800 24px/1 var(--font-mono, monospace); font-style: normal;
}
.feedback-section__form {
  padding: clamp(24px, 3.6vw, 48px); background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .15); border-radius: 20px;
  box-shadow: 0 24px 72px rgba(0, 0, 0, .25);
}
.feedback-section__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feedback-section__field { display: block; margin-bottom: 20px; }
.feedback-section__field > span {
  display: flex; justify-content: space-between; margin-bottom: 8px; color: #c9ceda;
  font-family: var(--font-mono, monospace); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
}
.feedback-section__field small { color: #737b8e; font-size: 9px; }
.feedback-section__field input, .feedback-section__field textarea {
  width: 100%; border: 0; border-bottom: 1px solid #3b4150; border-radius: 0;
  background: transparent; color: #fff; font: inherit; font-size: 16px; outline: none;
  transition: border-color .18s, background .18s;
}
.feedback-section__field input { min-height: 52px; padding: 0 2px; }
.feedback-section__field textarea { min-height: 116px; padding: 13px 2px; resize: vertical; }
.feedback-section__field input::placeholder, .feedback-section__field textarea::placeholder { color: #747b8d; }
.feedback-section__field input:focus, .feedback-section__field textarea:focus { border-color: #6383ff; background: rgba(43, 86, 255, .035); }
.feedback-section__consent {
  display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start;
  color: #aeb4c2; font-size: 12px; line-height: 1.5;
}
.feedback-section__consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: #2b56ff; }
.feedback-section__consent a { color: #cbd6ff; text-decoration: underline; text-underline-offset: 3px; }
.feedback-section__submit {
  width: 100%; min-height: 58px; margin-top: 24px; padding: 0 24px; border: 0; border-radius: 10px;
  background: #2b56ff; color: #fff; font: inherit; font-weight: 800;
  transition: background .18s, transform .18s, box-shadow .18s;
}
.feedback-section__submit:hover { background: #1744f4; box-shadow: 0 14px 38px rgba(43, 86, 255, .34); transform: translateY(-1px); }
.feedback-section__submit:disabled { cursor: wait; opacity: .65; }
.feedback-section__status { min-height: 18px; margin: 12px 0 0; color: #b8bdcb; font-size: 12px; text-align: center; }
.feedback-section__status.is-success { color: #79e6aa; }
.feedback-section__status.is-error { color: #ff929c; }

@media (max-width: 900px) {
  .feedback-section__inner { grid-template-columns: 1fr; gap: 48px; }
  .feedback-section__copy h2 { max-width: 11ch; }
  .feedback-section__signal { display: none; }
}

@media (max-width: 820px) {
  .feedback-popup { align-items: end; padding: 12px; }
  .feedback-popup__dialog {
    max-height: calc(100dvh - 24px); grid-template-columns: 1fr; gap: 24px;
    padding: 30px 18px 18px; border-radius: 18px;
  }
  .feedback-popup__intro h2 { max-width: 12ch; margin-top: 14px; font-size: clamp(1.75rem, 9vw, 2.45rem); }
  .feedback-popup__intro > p { margin-top: 12px; font-size: 14px; }
  .feedback-popup__mail { display: none; }
  .feedback-popup__close { top: 14px; right: 14px; }
}

@media (max-width: 520px) {
  .feedback-assistant { right: 12px; bottom: 12px; }
  .feedback-assistant__launcher { min-height: 52px; padding: 6px 17px 6px 7px; }
  .feedback-assistant__orb { width: 38px; height: 38px; flex-basis: 38px; }
  .feedback-assistant__panel { right: 0; bottom: 64px; width: calc(100vw - 24px); max-height: calc(100dvh - 92px); border-radius: 19px; }
  .feedback-assistant__conversation { min-height: 130px; }
  .feedback-section { padding: 64px 0; }
  .feedback-section__grid { grid-template-columns: 1fr; gap: 0; }
  .feedback-section__copy h2 { font-size: clamp(2.8rem, 15vw, 4.4rem); }
  .feedback-section__copy > p { margin-top: 22px; font-size: 1rem; }
  .feedback-section__form { padding: 22px 17px; border-radius: 16px; }
  .feedback-popup__grid { grid-template-columns: 1fr; gap: 0; }
  .feedback-popup__form { padding: 17px 14px; }
  .feedback-popup__field { margin-bottom: 11px; }
  .feedback-popup__field input { min-height: 44px; }
  .feedback-popup__field textarea { min-height: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  .feedback-popup, .feedback-popup__dialog { transition: none; }
}
