:root {
  --bg: #f6f0fb;
  --card: #ffffff;
  --stroke: #e4d8f2;
  --primary: #5d2ca0;
  --primary-dark: #421b7c;
  --text: #2f1955;
  --muted: #735f93;
  --shadow: 0 18px 48px rgba(93, 44, 160, 0.12);
  --radius-xl: 34px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  padding: 24px 0;
}

.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  font-size: 24px;
}

.brand__logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #7442c8, #5d2ca0);
  box-shadow: var(--shadow);
}

.hero {
  padding: 18px 0 56px;
}

.hero__grid {
  display: flex;
  justify-content: center;
}

.card {
  background: rgba(255, 255, 255, .88);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.exchange-card {
  padding: 28px;
}

.section-title {
  font-size: 40px;
  line-height: 1.02;
  margin: 0 0 14px;
}

.lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 24px;
}

.exchange-box {
  padding: 22px;
  border: 1px solid var(--stroke);
  border-radius: 28px;
  background: #fbf8fe;
}

.exchange-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: end;
}

.label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
}

.select,
.input,
.textarea {
  width: 100%;
  border: 1px solid #d7c5ee;
  background: #fff;
  color: var(--text);
  border-radius: 18px;
  min-height: 60px;
  padding: 0 18px;
  font-size: 18px;
  outline: none;
}

.textarea {
  padding: 16px 18px;
  min-height: 120px;
  resize: vertical;
}

.swap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), #7b44d8);
  color: #fff;
  font-size: 24px;
  box-shadow: var(--shadow);
}

.meta-line {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  min-height: 58px;
  padding: 0 28px;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
}

.button--primary {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 200px;
  height: 60px;

  background: #5d2ca0;
  color: white;

  border-radius: 18px;
  border: none;

  font-size: 18px;
  font-weight: 600;
  text-align: center;

  margin-top: 20px;
}

.button--ghost {
  background: #ece1fa;
  color: var(--primary);
}

.feature-card {
  padding: 26px;
  display: grid;
  gap: 18px;
}

.stat {
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(135deg, #6d37b8, #532691);
  color: #fff;
}

.stat__value {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 6px;
}

.list {
  display: grid;
  gap: 12px;
}

.list__item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f7f1fd;
  border: 1px solid var(--stroke);
}

.page {
  padding-bottom: 54px;
}

.form-card {
  padding: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 22px;
  border-radius: 28px;
  background: #fbf8fe;
  border: 1px solid var(--stroke);
  margin-bottom: 24px;
}

.summary__box {
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--stroke);
}

.summary__k {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.summary__v {
  font-size: 24px;
  font-weight: 800;
}

.footer {
  padding: 26px 0 40px;
  color: var(--muted);
}

.notice {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f6efff;
  border: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 14px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(36, 16, 67, .42);
}

.modal.active {
  display: grid;
}

.modal__card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.modal__title {
  margin: 0 0 10px;
  font-size: 28px;
}

.badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #efe4fb;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

@media (max-width: 900px) {

  .hero__grid,
  .form-grid,
  .summary,
  .exchange-grid {
    grid-template-columns: 1fr;
  }

  .exchange-grid {
    align-items: stretch;
  }

  .swap {
    justify-self: center;
    transform: rotate(90deg);
  }

  .section-title {
    font-size: 32px;
  }
}

.topbar {
  position: relative;
  z-index: 20;
}

.topbar__promo {
  background: #5d2ca0;
  color: #fff;
}

.topbar__promo-row {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.topbar__promo-link {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topbar__close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.topbar__info {
  background: #cdb7e8;
  color: var(--text);
  border-bottom: 1px solid #c3abdF;
}

.topbar__info-row {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar__worktime,
.topbar__email {
  font-size: 18px;
  font-weight: 500;
}

.topbar__email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.topbar__email::before {
  content: "✉";
  font-size: 18px;
}

.header {
  padding: 24px 0;
  background: rgba(246, 240, 251, 0.92);
  backdrop-filter: blur(6px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 17px;
  font-weight: 500;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang,
.login-link {
  font-size: 17px;
  font-weight: 500;
}

.header__register {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 56px;
  padding: 0 30px;

  border: 1.5px solid #6a31b3;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #faf7fe 100%);

  color: #5d2ca0;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;

  box-shadow: 0 8px 20px rgba(93, 44, 160, 0.08);
  transition: all 0.2s ease;
}

.header__register:hover {
  transform: translateY(-1px);
  background: #6a31b3;
  color: #fff;
  box-shadow: 0 14px 28px rgba(93, 44, 160, 0.18);
}

@media (max-width: 900px) {

  .topbar__promo-row,
  .topbar__info-row,
  .header__row,
  .header__actions,
  .nav {
    flex-wrap: wrap;
  }

  .topbar__promo-row {
    justify-content: flex-start;
    padding: 10px 0;
  }

  .topbar__close {
    right: 8px;
  }

  .topbar__info-row {
    padding: 10px 0;
  }

  .nav {
    gap: 14px;
  }
}

.footer {
  background: #1d1330;
  color: #fff;
  margin-top: 80px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 60px 0;
}

.footer__logo {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer__text {
  color: #cfc9e5;
  font-size: 15px;
}

.footer__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer__col a {
  display: block;
  color: #cfc9e5;
  margin-bottom: 8px;
  text-decoration: none;
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  text-align: center;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: #aaa;
}

.exchange-info {
  margin: 60px 0 30px 0;
}

.exchange-info__card {
  background: #f4eefb;
  border: 1px solid #d7c8f1;
  border-radius: 18px;
  padding: 40px;
  max-width: 900px;

  margin-left: auto;
  margin-right: auto;
}

.exchange-info__title {
  font-size: 28px;
  font-weight: 600;
  color: #43207c;
  margin-bottom: 20px;
}

.exchange-info__subtitle {
  font-size: 18px;
  margin-bottom: 20px;
  color: #4d2a8c;
}

.exchange-info__steps {
  padding-left: 22px;
  line-height: 1.7;
  color: #4d2a8c;
}

.exchange-info__steps li {
  margin-bottom: 14px;
}

.grid.col--lg-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.icon-card {
  background: #f7f1fc;
  border: 1px solid #dcccf3;
  border-radius: 26px;
  min-height: 270px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.icon-card__icon {
  margin-bottom: 22px;
}

.icon-card__icon img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
}

.icon-card__title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  color: #3f2378;
}

.icon-card__text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: #4b2c87;
  max-width: 420px;
}

@media (max-width: 900px) {
  .grid.col--lg-2 {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (max-width: 900px) {
  .header__row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
  }

  .topbar__promo-row,
  .topbar__info-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .topbar__close {
    position: absolute;
    right: 12px;
    top: 10px;
    transform: none;
  }

  .hero,
  .hero__grid,
  .main-grid,
  .exchange-layout {
    display: block !important;
  }

  .hero__card,
  .exchange-card,
  .sidebar-card,
  .exchange-info__card,
  .icon-card {
    width: 100%;
    max-width: 100%;
  }

  .exchange-form-grid,
  .grid.col--lg-2 {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .exchange-swap {
    margin: 0 auto;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .brand__logo {
    height: 42px;
    width: auto;
  }

  h1 {
    font-size: 42px;
    line-height: 0.95;
  }

  .hero__subtitle,
  .exchange-info__subtitle,
  .icon-card__text p {
    font-size: 16px;
    line-height: 1.5;
  }

  .button,
  .header__register {
    width: 100%;
    justify-content: center;
  }
}

.home_stat {
  margin-top: 60px;
}

.stat_title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #3d1966;
}

.items_wrapper {
  display: flex;
  gap: 20px;
}

.stat_item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;

  background: #ffffff;
  border: 1px solid #e4d8f2;
  border-radius: 18px;
  padding: 24px;

  box-shadow: 0 8px 20px rgba(93, 44, 160, 0.08);
}

.stat_icon {
  font-size: 28px;
}

.stat_number {
  font-size: 22px;
  font-weight: 700;
}

.stat_text {
  font-size: 14px;
  color: #735f93;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 900px) {
  .items_wrapper {
    flex-direction: column;
  }
}

.partners-section {
  margin-top: 80px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #3d1966;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;

  height: 180px;

  background: #ffffff;
  border: 1px solid #e4d8f2;
  border-radius: 22px;

  box-shadow: 0 10px 30px rgba(93, 44, 160, 0.08);
}

.partner-item img {
  max-width: 220px;
  max-height: 70px;
  object-fit: contain;
}

@media (max-width: 900px) {

  .partners-grid {
    grid-template-columns: 1fr;
  }

}

.footer {
  background: #1d1330;
  color: #fff;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0;
}

.footer__col a {
  display: block;
  color: #d8d0eb;
  text-decoration: none;
  margin-bottom: 10px;
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #cbbfe2;
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  font-weight: 400;
  line-height: 1.55;
}

button,
.button {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

.history-section {
  margin-top: 50px;
  overflow: hidden;
}

.history-marquee {
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}

.history-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marqueeLeft 32s linear infinite;
}

.history-track--reverse {
  animation: marqueeRight 32s linear infinite;
}

.history-card {
  width: 430px;
  min-width: 430px;
  background: #f8f3fd;
  border: 1px solid #e5d8f4;
  border-radius: 28px;
  padding: 22px 26px;
  box-sizing: border-box;
}

.history-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid #ece1f8;
}

.history-direction {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #3b1f73;
}

.history-direction__arrow {
  color: #6a31b3;
}

.history-time {
  font-size: 16px;
  color: #7d66a0;
  white-space: nowrap;
}

.history-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.history-coin {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.history-coin__logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: contain;
  flex: 0 0 54px;
}

.history-coin__info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.history-coin__amount {
  font-size: 20px;
  font-weight: 600;
  color: #3b1f73;
}

.history-coin__name {
  margin-top: 6px;
  font-size: 18px;
  color: #7d66a0;
}

.history-middle-arrow {
  font-size: 34px;
  color: #6a31b3;
  flex: 0 0 auto;
}

@keyframes marqueeLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes marqueeRight {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

@media (max-width: 900px) {
  .history-card {
    width: 320px;
    min-width: 320px;
    padding: 18px;
    border-radius: 22px;
  }

  .history-direction {
    font-size: 16px;
  }

  .history-time {
    font-size: 13px;
  }

  .history-card__bottom {
    gap: 12px;
  }

  .history-coin__logo {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .history-coin__amount {
    font-size: 16px;
  }

  .history-coin__name {
    font-size: 15px;
  }

  .history-middle-arrow {
    font-size: 24px;
  }
}

.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;

  padding: 14px 18px;

  background: #f3ecfb;
  border-bottom: 1px solid #e4d8f2;
}

.mobile-header__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-header__logo {
  width: 42px;
  height: 42px;
}

.mobile-header__brand {
  display: flex;
  flex-direction: column;
}

.mobile-header__title {
  font-size: 24px;
  font-weight: 700;
  color: #5d2ca0;
  letter-spacing: 3px;
}

.mobile-header__subtitle {
  font-size: 12px;
  color: #7c6b9b;
}

.mobile-header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-header__profile {
  position: relative;
}

.mobile-header__profile img {
  width: 32px;
}

.mobile-header__notif {
  position: absolute;
  top: -2px;
  right: -2px;

  width: 10px;
  height: 10px;

  background: red;
  border-radius: 50%;
}

.mobile-header__burger {
  width: 42px;
  height: 42px;

  border-radius: 50%;
  border: 2px solid #6a31b3;

  background: transparent;
  font-size: 20px;
  color: #6a31b3;
}

@media (max-width: 900px) {

  .mobile-header {
    display: flex;
  }

  .desktop-header {
    display: none;
  }
}

.desktop-header {
  display: block;
}

.mobile-header {
  display: none;
}

@media (max-width: 900px) {
  .desktop-header {
    display: none !important;
  }

  .mobile-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #f3ecfb;
    border-bottom: 1px solid #e4d8f2;
  }

  .mobile-header__left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  .mobile-header__logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex: 0 0 44px;
  }

  .mobile-header__brand {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .mobile-header__title {
    font-size: 20px;
    font-weight: 800;
    color: #5d2ca0;
    line-height: 1;
    letter-spacing: 2px;
  }

  .mobile-header__subtitle {
    font-size: 12px;
    color: #7d66a0;
    line-height: 1.2;
    margin-top: 4px;
  }

  .mobile-header__right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
  }

  .mobile-header__profile {
    position: relative;
    width: 30px;
    height: 30px;
  }

  .mobile-header__profile img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
  }

  .mobile-header__notif {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: red;
    border-radius: 50%;
  }

  .mobile-header__burger {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #6a31b3;
    background: transparent;
    color: #6a31b3;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 900px) {

  .header__row,
  .nav,
  .header__actions {
    display: none !important;
  }
}

.desktop-header {
  display: block;
}

.mobile-header {
  display: none;
}

.mobile-menu {
  display: none;
}

@media (max-width: 900px) {
  .desktop-header {
    display: none !important;
  }

  .mobile-header {
    display: block;
  }

  .mobile-menu {
    display: block;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background: #f6f0fb;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 100;
  }

  .mobile-menu.active {
    transform: translateX(0);
  }
}

.banners-section {
  margin-top: 40px;
  margin-bottom: 26px;
}

.swiper {
  width: 100%;
  max-width: 325px;
  height: 175px;
  display: none;
  padding-bottom: 30px;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  padding: 16px 56px 16px 16px;
  border-radius: 32px;
  text-decoration: none;
  min-height: 175px;
}

.swiper-slide .banner_title {
  display: block;
  color: #3a3a3a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

.swiper-slide .banner_text {
  display: block;
  color: #3d1966;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  margin-top: 8px;
}

.swiper-pagination-bullet {
  background: #7D5496;
}

.swiper-pagination-bullet-active {
  background: #3D1966;
}

.desktop_banners {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  margin-top: 40px;
}

.desktop_banners .banner {
  width: 100%;
  height: 160px;
  border-radius: 28px;
  padding: 20px 40px 20px 22px;

  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 6px;

  background-size: cover;
  background-repeat: no-repeat;
}

.desktop_banners .banner .banner_title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.desktop_banners .banner .banner_text {
  font-size: 14px;
  line-height: 1.4;
}

@media only screen and (max-width: 640px) {
  .swiper {
    display: block;
    margin: 0 auto;
  }

  .desktop_banners {
    display: none;
  }

  .banners-section {
    margin-top: 20px;
  }
}

.banners-section {
  margin-top: 20px;
}

/* =========================================================
   NADEX UI OVERRIDES
   ========================================================= */

:root {
  --nx-bg: var(--bg, #f6f0fb);
  --nx-card: var(--card, #ffffff);
  --nx-stroke: var(--stroke, #e4d8f2);
  --nx-primary: var(--primary, #5d2ca0);
  --nx-primary-dark: var(--primary-dark, #421b7c);
  --nx-text: var(--text, #2f1955);
  --nx-muted: var(--muted, #735f93);
  --nx-shadow: 0 18px 48px rgba(93, 44, 160, .12);
  --nx-shadow-hover: 0 22px 60px rgba(93, 44, 160, .18);
  --nx-focus: rgba(93, 44, 160, .55);
  --nx-arrow-size: 44px;
}

body {
  color: var(--nx-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.section-title,
.main-title,
.h2-title {
  letter-spacing: -0.02em;
}

:where(a, button, [role="button"], input, select, textarea, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 2px solid var(--nx-focus);
  outline-offset: 3px;
}

.header.desktop-header,
.desktop-header {
  position: relative;
  z-index: 50;
}

.header.desktop-header .nav {
  font-size: 16px;
  gap: 26px;
}

.header.desktop-header .header__actions {
  gap: 16px;
}

.topbar__info {
  margin-bottom: 18px;
}

.topbar__info-row {
  padding: 10px 0;
}

.header__register {
  height: 52px;
  padding: 0 26px;
  border-radius: 18px;
  border: 1.5px solid var(--nx-primary);
  background: rgba(255, 255, 255, .55);
  color: var(--nx-primary);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(93, 44, 160, .08);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

@supports ((backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px))) {

  .header__register,
  .mobile-header__burger,
  .mobile-menu,
  .desktop_banners .banner::after,
  .swiper-slide::after {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}

@media (hover:hover) {
  .header__register:hover {
    transform: translateY(-1px);
    background: var(--nx-primary);
    color: #fff;
    box-shadow: 0 14px 28px rgba(93, 44, 160, .18);
  }
}

.mobile-header {
  display: none;
  position: relative;
  z-index: 60;
  background: #f3ecfb;
  border-bottom: 1px solid var(--nx-stroke);
}

.mobile-header__row,
.mobile-header>.container {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mobile-header__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mobile-header__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 44px;
}

.mobile-header__brand {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mobile-header__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--nx-primary);
  line-height: 1;
  letter-spacing: 2px;
}

.mobile-header__subtitle {
  font-size: 12px;
  color: #7d66a0;
  line-height: 1.2;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-header__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-header__profile {
  position: relative;
  width: 32px;
  height: 32px;
}

.mobile-header__profile img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.mobile-header__notif {
  box-shadow: 0 0 0 2px #f3ecfb;
}

.mobile-header__burger {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1.5px solid var(--nx-primary);
  background: rgba(255, 255, 255, .6);
  display: grid;
  place-items: center;
  color: var(--nx-primary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

@media (hover:hover) {
  .mobile-header__burger:hover {
    transform: translateY(-1px);
    background: var(--nx-primary);
    color: #fff;
    box-shadow: 0 14px 28px rgba(93, 44, 160, .18);
  }
}

body.menu-open {
  overflow: hidden;
}

.mobile-menu {
  display: none;
}

.banners-section {
  margin-top: 0;
  margin-bottom: 22px;
}

.desktop_banners {
  display: flex;
  gap: 12px;
  margin: 0 0 20px;
}

.desktop_banners .banner {
  width: 100%;
  height: 160px;
  border-radius: 32px;
  padding: 22px 64px 20px 22px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid var(--nx-stroke);
  box-shadow: var(--nx-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.desktop_banners .banner .banner_title {
  display: block;
  color: #3a3a3a;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.desktop_banners .banner .banner_text {
  display: block;
  color: #3d1966;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.banners-section .swiper {
  width: min(100%, 325px);
  height: 175px;
  display: none;
  padding-bottom: 30px;
  margin: 0 auto;
}

.banners-section .swiper-slide {
  text-decoration: none;
  position: relative;
  overflow: hidden;
  min-height: 175px;
  border-radius: 32px;
  padding: 16px 56px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--nx-stroke);
  box-shadow: var(--nx-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.banners-section .swiper-slide .banner_title {
  display: block;
  color: #3a3a3a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

.banners-section .swiper-slide .banner_text {
  display: block;
  color: #3d1966;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  margin-top: 8px;
  text-align: left;
}

.desktop_banners .banner::after,
.swiper-slide::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: var(--nx-arrow-size);
  height: var(--nx-arrow-size);
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(125, 84, 150, .25);
  box-shadow: 0 10px 24px rgba(93, 44, 160, .14);
  pointer-events: none;
}

.desktop_banners .banner::before,
.swiper-slide::before {
  content: "→";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: var(--nx-arrow-size);
  height: var(--nx-arrow-size);
  display: grid;
  place-items: center;
  color: #3d1966;
  font-size: 22px;
  line-height: 1;
  pointer-events: none;
  transition: transform .18s ease;
}

@media (hover:hover) {

  .desktop_banners .banner:hover,
  .swiper-slide:hover {
    transform: translateY(-2px);
    box-shadow: var(--nx-shadow-hover);
  }

  .desktop_banners .banner:hover::before,
  .swiper-slide:hover::before {
    transform: translateX(2px);
  }
}

.swiper-pagination-bullet {
  background: #7d5496;
  opacity: .6;
}

.swiper-pagination-bullet-active {
  background: #3d1966;
  opacity: 1;
}

.history-section--full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
}

.history-section--full .container {
  width: 100%;
  max-width: none;
  margin: 0;
}

.history-section--full .history-track {
  will-change: transform;
}

@media (max-width: 900px) {

  .header.desktop-header,
  .desktop-header,
  .header__row,
  .nav,
  .header__actions {
    display: none !important;
  }

  .mobile-header {
    display: block !important;
  }

  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(246, 240, 251, .98);
    transform: translateX(-100%);
    transition: transform .24s ease;
    padding: 96px 18px 18px;
  }

  .mobile-menu.active {
    transform: translateX(0);
  }

  .mobile-menu__inner {
    max-width: 520px;
    margin: 0 auto;
  }

  .mobile-menu__nav {
    display: grid;
    gap: 10px;
  }

  .mobile-menu a {
    display: block;
    padding: 14px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--nx-text);
  }

  .mobile-menu a:hover {
    background: rgba(93, 44, 160, .08);
  }

  .mobile-menu__actions {
    margin-top: 18px;
    display: grid;
    gap: 10px;
  }

  .mobile-menu__register {
    height: 54px;
    border-radius: 18px;
    border: 1.5px solid var(--nx-primary);
    background: var(--nx-primary);
    color: #fff !important;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .topbar__info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 0 12px;
  }

  .topbar__worktime,
  .topbar__email {
    font-size: 16px;
    line-height: 1.35;
  }
}

@media (max-width: 640px) {
  .banners-section .swiper {
    display: block;
  }

  .desktop_banners {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .desktop_banners .banner,
  .swiper-slide,
  .header__register,
  .mobile-header__burger,
  .mobile-menu,
  .history-track,
  .history-track--reverse {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}


/* ===== UI hotfixes: banners/menu/arrow ===== */
.desktop_banners .banner,
.banners-section .swiper-slide {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.desktop_banners .banner::after,
.swiper-slide::after {
  z-index: 1;
}

.desktop_banners .banner::before,
.swiper-slide::before {
  content: "";
  position: absolute;
  right: 30px;
  bottom: 30px;
  width: 18px;
  height: 18px;
  z-index: 2;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M3.75 9H14.25' stroke='%233D1966' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M9.75 4.5L14.25 9L9.75 13.5' stroke='%233D1966' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transform: none;
}

.desktop_banners .banner .banner_title,
.desktop_banners .banner .banner_text,
.banners-section .swiper-slide .banner_title,
.banners-section .swiper-slide .banner_text {
  position: relative;
  z-index: 2;
}

@media (hover:hover) {

  .desktop_banners .banner:hover::before,
  .swiper-slide:hover::before {
    transform: translateX(2px);
  }
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

@media (max-width:900px) {
  .mobile-menu {
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .mobile-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
  }

  .mobile-menu__title {
    font-size: 22px;
    font-weight: 800;
    color: var(--nx-primary, var(--primary));
  }

  .mobile-menu__close {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1.5px solid var(--nx-primary, var(--primary));
    background: rgba(255, 255, 255, .72);
    color: var(--nx-primary, var(--primary));
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
  }
}


/* ===== Exchange page: unified header/footer + reviews ===== */
.exchange-page-custom {
  padding-top: 24px;
  padding-bottom: 20px;
}

.exchange-request-shell {
  max-width: 960px;
  margin: 0 auto;
}

.exchange-request-title {
  margin-bottom: 24px;
}

.footer--nadex {
  background: #5d2ca0;
  color: #fff;
  margin-top: 72px;
}

.footer--nadex .footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 52px 16px 36px;
}

.footer--nadex .footer__links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 680px;
}

.footer--nadex .footer__links a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
}

.footer--nadex .footer__mail {
  margin-top: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
}

.footer--nadex .footer__mail-icon {
  font-size: 18px;
}

.footer--nadex .footer__brandmark {
  margin-top: 40px;
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer--nadex .footer__brandtext {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer--nadex .footer__brandname {
  font-size: 28px;
  line-height: 1;
  letter-spacing: .16em;
  font-weight: 800;
}

.footer--nadex .footer__brandsub {
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .26em;
  text-transform: lowercase;
}

.footer--nadex .footer__brandmark p {
  margin: 0;
  font-size: 14px;
  opacity: .9;
}

.reviews-section-custom {
  margin-top: 56px;
}

.reviews-section-custom__title {
  margin: 0 0 22px;
  color: #34125d;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 800;
}

.reviews-list-custom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.review-card-custom {
  background: #f7f2fc;
  border: 1px solid #e3d4f3;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 8px 22px rgba(93, 44, 160, .07);
}

.review-card-custom__name {
  color: #5b2b9e;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
}

.review-card-custom__date {
  margin-top: 8px;
  color: #8f78b6;
  font-size: 14px;
  line-height: 1.25;
}

.review-card-custom__divider {
  height: 1px;
  background: #eadff5;
  margin: 16px 0;
}

.review-card-custom__text {
  margin: 0;
  color: #4a286f;
  font-size: 20px;
  line-height: 1.38;
  font-weight: 500;
}

@media (max-width: 900px) {
  .reviews-list-custom {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .reviews-section-custom {
    margin-top: 40px;
  }

  .reviews-section-custom__title {
    font-size: 22px;
    margin-bottom: 14px;
  }

  .review-card-custom {
    border-radius: 22px;
    padding: 16px 14px;
  }

  .review-card-custom__name {
    font-size: 16px;
  }

  .review-card-custom__date {
    margin-top: 6px;
    font-size: 12px;
  }

  .review-card-custom__divider {
    margin: 12px 0;
  }

  .review-card-custom__text {
    font-size: 14px;
    line-height: 1.45;
  }

  .footer--nadex {
    margin-top: 48px;
  }

  .footer--nadex .footer__inner {
    padding: 42px 24px 30px;
  }

  .footer--nadex .footer__links {
    gap: 22px;
  }

  .footer--nadex .footer__links a {
    font-size: 16px;
  }

  .footer--nadex .footer__mail {
    margin-top: 36px;
    font-size: 18px;
  }

  .footer--nadex .footer__brandmark {
    margin-top: 34px;
  }

  .footer--nadex .footer__brandname {
    font-size: 24px;
  }

  .footer--nadex .footer__brandsub {
    font-size: 10px;
  }
}