:root {
  --mbpv-violet: #6252c7;
  --mbpv-violet-dark: #4939aa;
  --mbpv-blue: #4eadea;
  --mbpv-ink: #1e1b2e;
  --mbpv-muted: #6e6a7c;
  --mbpv-line: #ded9ed;
}

#header .header-menu #menu-shapka-pk > .mb-previsit-menu-item {
  align-self: center;
}
#header .header-menu #menu-shapka-pk > .mb-previsit-menu-item > a {
  min-height: 38px;
  margin: 9px 0;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  padding: 6px 12px !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff !important;
  background: rgba(255,255,255,.14);
  box-shadow: inset 0 1px rgba(255,255,255,.13), 0 5px 16px rgba(31,18,91,.16);
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
#header .header-menu #menu-shapka-pk > .mb-previsit-menu-item > a > span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  font-size: 10px;
}
#header .header-menu #menu-shapka-pk > .mb-previsit-menu-item > a:hover,
#header .header-menu #menu-shapka-pk > .mb-previsit-menu-item > a:focus-visible {
  color: var(--mbpv-violet-dark) !important;
  background: #fff;
  box-shadow: 0 9px 22px rgba(31,18,91,.22);
  transform: translateY(-1px);
}

#menu-shapka-mob > .mb-previsit-menu-item { padding: 5px 10px; }
#menu-shapka-mob > .mb-previsit-menu-item > a {
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 12px;
  padding: 8px 12px !important;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mbpv-violet-dark) !important;
  background: #fff;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}
#menu-shapka-mob > .mb-previsit-menu-item > a > span {
  width: 22px;
  height: 22px;
  border: 1px solid #7565d1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
}
#menu-shapka-mob > .mb-previsit-menu-item > a:focus-visible {
  outline: 3px solid rgba(255,255,255,.8);
  outline-offset: 2px;
}

.mb-previsit-page,
.mb-previsit-page * { box-sizing: border-box; }
.mb-previsit-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--mbpv-ink);
  background:
    radial-gradient(circle at 10% 0,rgba(115,100,210,.2),transparent 34rem),
    radial-gradient(circle at 90% 18%,rgba(78,173,234,.16),transparent 30rem),
    linear-gradient(180deg,#efecfa,#f9f8fd 48%,#f4f1fb);
  font-family: Onest,"Segoe UI",Tahoma,sans-serif;
}
.mb-previsit-skip {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  color: #fff;
  background: var(--mbpv-ink);
}
.mb-previsit-skip:focus { top: 12px; }
.mb-previsit-brand {
  position: relative;
  z-index: 2;
  min-height: 70px;
  padding: 10px max(18px,calc((100vw - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: #fff;
  background: linear-gradient(135deg,#4d3fb0,#7364d2 68%,#4eadea);
  box-shadow: 0 12px 34px rgba(66,53,135,.19);
}
.mb-previsit-brand > a:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}
.mb-previsit-brand > a:first-child span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 15px 15px 15px 5px;
  background: rgba(255,255,255,.12);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.mb-previsit-brand strong { font-size: 17px; }
.mb-previsit-brand > div { display: flex; align-items: center; gap: 14px; }
.mb-previsit-brand > div small { color: rgba(255,255,255,.72); font-size: 11px; }
.mb-previsit-brand > div a {
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 8px 11px;
  color: #fff;
  background: rgba(255,255,255,.1);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.mb-previsit-shell {
  min-height: calc(100vh - 112px);
  padding: 24px 28px;
  display: grid;
  place-items: start center;
}
.mb-previsit-frame-shell {
  position: relative;
  width: min(1120px,100%);
  height: max(760px,calc(100vh - 146px));
  overflow: hidden;
  border: 1px solid rgba(98,82,199,.16);
  border-radius: 28px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 24px 70px rgba(43,35,84,.13);
}
.mb-previsit-frame-shell iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
}
.mb-previsit-frame-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--mbpv-muted);
  font-size: 12px;
}
.mb-previsit-frame-loading span {
  width: 32px;
  height: 32px;
  border: 3px solid var(--mbpv-line);
  border-top-color: var(--mbpv-violet);
  border-radius: 50%;
  animation: mbpv-spin .8s linear infinite;
}
@keyframes mbpv-spin { to { transform: rotate(360deg); } }
.mb-previsit-error {
  width: min(520px,100%);
  margin-top: 10vh;
  border: 1px solid rgba(98,82,199,.18);
  border-radius: 24px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 20px 58px rgba(43,35,84,.12);
}
.mb-previsit-error > span { width: 42px; height: 42px; display: grid; place-items: center; border: 1.5px solid #a24f36; border-radius: 50%; color: #a24f36; font-weight: 900; }
.mb-previsit-error h1 { margin: 18px 0 8px; font-size: 28px; line-height: 1.1; }
.mb-previsit-error p { color: var(--mbpv-muted); line-height: 1.5; }
.mb-previsit-error a { min-height: 48px; margin-top: 18px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--mbpv-violet); font-weight: 700; text-decoration: none; }
.mb-previsit-legal {
  min-height: 42px;
  padding: 0 max(18px,calc((100vw - 1120px) / 2)) 12px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--mbpv-muted);
  font-size: 10px;
}
.mb-previsit-legal a { color: var(--mbpv-violet); font-weight: 700; }

@media (min-width: 761px) {
  .mb-previsit-frame-loading { font-size: 16px; }
  .mb-previsit-legal { font-size: 13px; }
}

@media (max-width: 760px) {
  #header .header-menu #menu-shapka-pk > .mb-previsit-menu-item > a { width: max-content; margin: 5px 8px; }
  .mb-previsit-brand { min-height: 62px; padding: 8px 12px; }
  .mb-previsit-brand > div small { display: none; }
  .mb-previsit-brand > div a { padding: 7px 9px; font-size: 10px; }
  .mb-previsit-shell { min-height: calc(100vh - 62px); padding: 0; }
  .mb-previsit-frame-shell { width: 100%; height: calc(100vh - 62px); min-height: 620px; border: 0; border-radius: 0; box-shadow: none; }
  .mb-previsit-legal { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
