:root {
  --be-purple-600: #6f53a5;
  --be-purple-800: #51317e;
  --be-purple-950: #24102f;
  --be-orange: #ff8900;
  --be-orange-strong: #f47b00;
  --be-line: #e7dfef;
}

.site-header,
.site-header *,
.site-footer,
.site-footer * {
  box-sizing: border-box;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
  color: #fff;
  background: var(--be-purple-600);
  box-shadow: 0 6px 20px rgba(63, 37, 105, 0.22);
  font-family: Arial, Helvetica, sans-serif;
  line-height: normal;
}

body .site-header,
.customer-page .site-header {
  min-height: 0;
  padding-top: 0;
}

.site-header a,
.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-header__inner,
.site-footer__inner {
  width: min(100% - 40px, 1280px);
  margin: 0 auto;
}

.site-header__inner {
  min-height: 76px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-block {
  display: grid;
  gap: 4px;
  flex: 0 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand--header img {
  width: 210px;
  height: auto;
  display: block;
  max-width: 100%;
}

.brand-tagline {
  color: #d9cdf2;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.2;
  white-space: nowrap;
}

.site-menu-toggle {
  width: 46px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.site-menu-toggle span {
  width: 22px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-menu-panel {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #eee8ff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.site-nav > a,
.site-nav__trigger {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  line-height: 1;
}

.site-nav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.site-nav__trigger {
  gap: 6px;
}

.site-nav__chevron {
  width: 0;
  height: 0;
  margin-top: 2px;
  border-top: 5px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  opacity: 0.72;
  transition: transform 160ms ease;
}

.site-nav__item:hover .site-nav__chevron,
.site-nav__item:focus-within .site-nav__chevron,
.site-nav__item.is-submenu-open .site-nav__chevron {
  transform: rotate(180deg);
}

.site-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  width: 250px;
  padding: 10px 0;
  display: grid;
  border: 1px solid rgba(229, 223, 238, 0.9);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(42, 24, 65, 0.16);
  color: var(--be-purple-800);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
  visibility: hidden;
}

.site-dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 16px;
  height: 16px;
  border-top: 1px solid rgba(229, 223, 238, 0.9);
  border-left: 1px solid rgba(229, 223, 238, 0.9);
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}

.site-nav__item:hover .site-dropdown,
.site-nav__item:focus-within .site-dropdown,
.site-nav__item.is-submenu-open .site-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
}

.site-dropdown a {
  padding: 11px 18px;
  display: block;
  color: var(--be-purple-800);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.site-dropdown a:hover,
.site-dropdown a:focus-visible {
  background: #f6f1fb;
  color: var(--be-purple-950);
}

.site-dropdown__overview {
  border-bottom: 1px solid #eee8f5;
}

.site-menu-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}

.site-actions__login {
  color: #f2edff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.site-account {
  min-height: 42px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.site-account__name,
.site-account__logout {
  min-height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.site-header .site-account__name {
  gap: 7px;
  color: var(--be-purple-800) !important;
  background: #fff;
  font-size: 14px !important;
  text-indent: 0 !important;
  text-shadow: none !important;
}

.site-account__name::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--be-orange);
}

.site-header .site-account__logout {
  color: #fff2df !important;
  font-size: 14px !important;
  text-indent: 0 !important;
  text-shadow: none !important;
}

.site-header .site-account__logout:hover,
.site-header .site-account__logout:focus-visible {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
}

.site-header .button {
  min-height: 44px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--be-orange);
  box-shadow: 0 14px 34px rgba(255, 137, 0, 0.24);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header__order {
  min-height: 42px;
  padding-inline: 20px;
}

.site-header .button:hover,
.site-header .button:focus-visible {
  background: var(--be-orange-strong);
}

body > header:not(.site-header) {
  display: none !important;
}

.site-header ~ #body_content .top.ng,
.site-header ~ #body_content .foot,
.site-header ~ footer.footer,
.site-header ~ .opage-wrapper .oheader {
  display: none !important;
}

.site-footer {
  color: #fff;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.13), transparent 30%),
    linear-gradient(105deg, #6d5d85 0%, #513b70 42%, #281636 100%);
  font-family: Arial, Helvetica, sans-serif;
}

.site-footer__inner {
  padding: 58px 0 28px;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1.05fr 1.18fr 0.8fr 0.9fr;
  gap: 42px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.35;
}

.footer-nav__column {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.footer-nav a {
  width: fit-content;
  font-weight: 300;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.site-footer__rule {
  height: 1px;
  margin: 48px 0 34px;
  background: rgba(255, 255, 255, 0.24);
}

.footer-payments {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
}

.footer-payments__icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.footer-payments img {
  width: auto;
  height: 28px;
  border-radius: 3px;
}

.site-footer__disclaimer {
  max-width: 1080px;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  text-align: center;
}

.site-footer__disclaimer strong {
  color: #fff !important;
  font-weight: 700;
}

.site-footer__copyright {
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.34) !important;
  font-size: 15px;
  font-weight: 400;
  text-align: center;
}

.customer-page .discount_banner_content {
  margin-top: 24px;
  text-align: center;
}

.customer-page .discount_banner_content p {
  margin: 0 0 14px;
  color: #24102f;
  font-size: 16px;
  line-height: 1.45;
}

.customer-page .discount_banner_content a {
  min-width: 160px;
  min-height: 44px;
  margin: 0 auto !important;
  padding: 0 30px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #fff !important;
  background: var(--be-orange) !important;
  box-shadow: 0 14px 34px rgba(255, 137, 0, 0.24);
  font: 800 15px/1 Arial, Helvetica, sans-serif !important;
  letter-spacing: 0;
  text-decoration: none !important;
  text-shadow: none !important;
  text-transform: uppercase;
}

.customer-page .discount_banner_content a:hover,
.customer-page .discount_banner_content a:focus-visible {
  color: #fff !important;
  background: var(--be-orange-strong) !important;
}

.customer_left_block a[href="/customer/identity/"],
.customer_left_block a[href="/customer/identity"] {
  display: none !important;
}

.customer-page:has(.bestessays-auth),
body:has(.bestessays-auth),
.customer-page:has(.bestessays-auth) .body_content-wrapper-customer,
body:has(.bestessays-auth) .body_content-wrapper-customer,
.customer-page:has(.bestessays-auth) #body_content,
body:has(.bestessays-auth) #body_content {
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 137, 0, 0.1), transparent 24%),
    radial-gradient(circle at 92% 18%, rgba(111, 83, 165, 0.13), transparent 28%),
    #fbf8ff !important;
}

.customer-page:has(.bestessays-auth) #body_content,
body:has(.bestessays-auth) #body_content {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}

.customer-page:has(.bestessays-auth) #content,
body:has(.bestessays-auth) #content,
.customer-page:has(.bestessays-auth) #columns,
body:has(.bestessays-auth) #columns,
.customer-page:has(.bestessays-auth) .content.new_padding,
body:has(.bestessays-auth) .content.new_padding {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.customer-page:has(.bestessays-auth) .customer_left_block,
body:has(.bestessays-auth) .customer_left_block {
  display: none !important;
}

.customer-page:has(.bestessays-auth) .customer_center_block,
body:has(.bestessays-auth) .customer_center_block {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.bestessays-auth,
.bestessays-auth * {
  box-sizing: border-box;
}

.bestessays-auth {
  width: min(100% - 40px, 1180px);
  margin: 54px auto 74px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
  gap: 28px;
  color: #241c33;
  font-family: Arial, Helvetica, sans-serif;
}

.bestessays-auth__copy,
.bestessays-auth__panel {
  border: 1px solid #eadff3;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(55, 32, 87, 0.1);
}

.bestessays-auth__copy {
  min-height: 520px;
  padding: clamp(34px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.bestessays-auth__copy::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -110px;
  width: 310px;
  height: 310px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 137, 0, 0.24), rgba(111, 83, 165, 0.2));
  filter: blur(2px);
}

.bestessays-auth__eyebrow {
  margin: 0 0 18px !important;
  padding: 0 !important;
  color: var(--be-orange) !important;
  font-size: 14px !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.customer-page .bestessays-auth h1,
.bestessays-auth h1 {
  max-width: 720px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #1f172d !important;
  font-size: clamp(42px, 5vw, 74px) !important;
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: 0;
}

.bestessays-auth__copy p:not(.bestessays-auth__eyebrow),
.bestessays-auth__panel-copy,
.bestessays-auth__help {
  margin: 24px 0 0 !important;
  padding: 0 !important;
  color: #71677d !important;
  font-size: 19px !important;
  font-weight: 400;
  line-height: 1.65;
}

.bestessays-auth__features {
  max-width: 620px;
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.bestessays-auth__features span {
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #e6ddef;
  border-radius: 999px;
  color: var(--be-purple-800);
  background: #fff;
  font-size: 14px;
  font-weight: 800;
}

.bestessays-auth__panel {
  padding: clamp(28px, 4vw, 44px);
  align-self: center;
}

.bestessays-auth__panel h2 {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--be-purple-800) !important;
  font-size: 32px !important;
  font-weight: 800;
  line-height: 1.15;
}

.bestessays-auth__form {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}

.bestessays-auth__field {
  display: grid;
  gap: 8px;
  color: #4f455f;
  font-size: 15px;
  font-weight: 800;
}

.bestessays-auth__field input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid #dfd5e8;
  border-radius: 16px;
  color: #241c33;
  background: #fff;
  font-size: 17px;
  font-weight: 400;
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.bestessays-auth__field input:focus {
  border-color: var(--be-purple-600);
  box-shadow: 0 0 0 4px rgba(111, 83, 165, 0.14);
}

.bestessays-auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #6a6077;
  font-size: 15px;
  font-weight: 700;
}

.bestessays-auth__remember {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.bestessays-auth__remember input {
  width: 18px;
  height: 18px;
  accent-color: var(--be-orange);
}

.bestessays-auth a {
  color: var(--be-purple-800) !important;
  font-weight: 800;
  text-decoration: none !important;
}

.bestessays-auth a:hover,
.bestessays-auth a:focus-visible {
  color: var(--be-orange) !important;
  text-decoration: underline !important;
}

.bestessays-auth__submit {
  min-height: 58px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--be-orange);
  box-shadow: 0 16px 34px rgba(255, 137, 0, 0.24);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.bestessays-auth__submit:hover,
.bestessays-auth__submit:focus-visible {
  background: var(--be-orange-strong);
}

.bestessays-auth__notice {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.bestessays-auth__notice--info {
  color: var(--be-purple-800);
  background: #f2edf8;
}

.bestessays-auth__notice--error {
  color: #8a3000;
  background: #fff0df;
}

.bestessays-auth__cookies {
  display: none;
  padding: 13px 15px;
  border-radius: 14px;
  color: #8a3000;
  background: #fff0df;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.bestessays-auth__help {
  font-size: 15px !important;
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .site-nav {
    gap: 11px;
    font-size: 14px;
  }

  .site-header .button {
    padding: 0 22px;
  }

  .bestessays-auth {
    grid-template-columns: 1fr;
  }

  .bestessays-auth__copy {
    min-height: auto;
  }
}

@media (max-width: 980px) {
  .site-header__inner {
    min-height: auto;
    padding: 16px 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
  }

  .site-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-header.is-menu-open .site-menu-toggle span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.is-menu-open .site-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-menu-open .site-menu-toggle span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-menu-panel {
    width: 100%;
    display: none;
    margin-left: 0;
    padding: 16px;
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    background: var(--be-purple-800);
    box-shadow: 0 16px 34px rgba(63, 37, 105, 0.26);
  }

  .site-header.is-menu-open .site-menu-panel {
    display: flex;
  }

  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 0;
  }

  .site-nav__item {
    display: grid;
  }

  .site-nav > a,
  .site-nav__trigger {
    min-height: auto;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-nav__trigger {
    justify-content: space-between;
  }

  .site-dropdown {
    position: static;
    width: 100%;
    padding: 2px 0 8px 16px;
    display: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #e8ddff;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
    visibility: visible;
  }

  .site-nav__item.is-submenu-open .site-dropdown {
    display: grid;
  }

  .site-dropdown::before {
    display: none;
  }

  .site-dropdown a {
    padding: 9px 0;
    color: #d9cdf2;
    font-size: 14px;
  }

  .site-dropdown a:hover,
  .site-dropdown a:focus-visible {
    color: #fff;
    background: transparent;
  }

  .site-menu-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .site-account {
    width: 100%;
    min-height: 0;
    padding: 8px;
    align-self: stretch;
    justify-content: space-between;
    border-radius: 16px;
  }

  .site-account__name,
  .site-account__logout {
    min-height: 40px;
    padding: 0 14px;
  }

  .site-account__name {
    flex: 1 1 auto;
  }

  .site-account__logout {
    flex: 0 0 auto;
  }

  .site-header__order {
    align-self: stretch;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header__inner,
  .site-footer__inner {
    width: min(100% - 24px, 1280px);
  }

  .brand--header img {
    width: min(210px, 72vw);
  }

  .brand-tagline {
    max-width: 245px;
    white-space: normal;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-payments {
    align-items: center;
    flex-direction: column;
  }

  .bestessays-auth {
    width: min(100% - 24px, 1180px);
    margin: 28px auto 48px;
  }

  .bestessays-auth__copy,
  .bestessays-auth__panel {
    padding: 26px;
    border-radius: 22px;
  }

  .customer-page .bestessays-auth h1,
  .bestessays-auth h1 {
    font-size: 39px !important;
  }

  .bestessays-auth__copy p:not(.bestessays-auth__eyebrow),
  .bestessays-auth__panel-copy,
  .bestessays-auth__help {
    font-size: 16px !important;
  }

  .bestessays-auth__row {
    align-items: flex-start;
    flex-direction: column;
  }
}
