/* BITBANK_MAIN_EXCHANGE_CLEAN_V600 */
/* Новый главный блок. Старая логика site_dynamic/amount_inline не используется. */

.hero .hero-grid{
  grid-template-columns:minmax(0,1fr) 690px !important;
  column-gap:58px !important;
  align-items:stretch !important;
}

.hero-copy{
  min-height:690px !important;
  height:690px !important;
  display:flex !important;
  flex-direction:column !important;
}

.direction-note{
  margin-top:auto !important;
}

.exchange-card.main-exchange-v600{
  width:690px !important;
  max-width:690px !important;
  height:690px !important;
  min-height:690px !important;
  padding:0 !important;
  border-radius:24px !important;
  overflow:hidden !important;
  border-color:rgba(142,232,255,.22) !important;
  background:
    radial-gradient(circle at 88% 9%, rgba(115,230,255,.13), transparent 178px),
    radial-gradient(circle at 7% 96%, rgba(230,51,202,.10), transparent 190px),
    linear-gradient(180deg,rgba(35,39,100,.965),rgba(14,17,51,.992)) !important;
  box-shadow:
    0 24px 70px rgba(0,0,0,.34),
    0 0 0 1px rgba(115,230,255,.045),
    inset 0 1px 0 rgba(255,255,255,.075),
    inset 0 -1px 0 rgba(255,255,255,.035) !important;
  display:flex !important;
  flex-direction:column !important;
}

.bbex-tabs{
  height:72px;
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  flex-shrink:0;
  border-bottom:1px solid rgba(255,255,255,.10);
}

.bbex-tab{
  height:72px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.045);
  color:rgba(250,252,255,.96);
  font-size:18px;
  font-weight:850;
  border:0;
  border-right:1px solid rgba(255,255,255,.10);
  cursor:pointer;
  font-family:inherit;
}

.bbex-tab:last-child{
  border-right:0;
}

.bbex-tab.is-active{
  background:linear-gradient(180deg,rgba(115,139,225,.88),rgba(83,99,188,.92));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16);
}

.bbex-body{
  height:618px;
  min-height:618px;
  padding:22px 22px 18px;
  flex:1 1 auto;
  min-height:0;
}

.bbex-view{
  display:none;
  height:100%;
  min-height:0;
  flex-direction:column;
}

.bbex-view.is-active{
  display:flex;
}

.bbex-grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-bottom:0;
}

.bbex-label{
  display:block;
  font-size:16px;
  line-height:1.18;
  font-weight:760;
  color:rgba(247,249,255,.94);
  margin:0 0 9px;
}

.bbex-select-wrap{
  position:relative;
  height:58px;
  min-height:58px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.145);
  background:
    linear-gradient(180deg,rgba(255,255,255,.074),rgba(255,255,255,.052)),
    rgba(10,14,58,.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    inset 0 -1px 0 rgba(0,0,0,.10);
  display:flex;
  align-items:center;
  padding:0 40px 0 16px;
}

.bbex-select-wrap select,
.bbex-asset-side select{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
  width:100%;
  height:100%;
}

.bbex-select-value{
  display:flex;
  align-items:center;
  gap:11px;
  pointer-events:none;
  color:#fff;
  font-size:15.5px;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.bbex-caret{
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  font-size:11px;
  color:#fff;
  opacity:.95;
  pointer-events:none;
}

.bbex-coin{
  width:24px;
  height:24px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:900;
  color:#1b1b1b;
  flex:0 0 24px;
}

.bbex-coin.btc{background:#f6ae1a}
.bbex-coin.ltc{background:#d9e3ff}
.bbex-coin.eth{background:#d8dbe9}
.bbex-coin.ton{background:#63c8ff}
.bbex-coin.xmr{background:#ff8b3d}
.bbex-coin.usdt{background:#54d4a0}
.bbex-coin.rub{background:#e3f7ea}

.bbex-field{
  margin:0;
}

.bbex-split{
  display:flex;
  align-items:stretch;
  height:58px;
  min-height:58px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.145);
  background:
    linear-gradient(180deg,rgba(255,255,255,.074),rgba(255,255,255,.052)),
    rgba(10,14,58,.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    inset 0 -1px 0 rgba(0,0,0,.10);
}

.bbex-input-side{
  flex:1 1 auto;
  display:flex;
  align-items:center;
  padding:0 16px;
  color:#fff;
  font-size:15.5px;
  border-right:1px solid rgba(255,255,255,.12);
  min-width:0;
}

.bbex-asset-side{
  position:relative;
  width:118px;
  background:rgba(255,255,255,.055);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 32px 0 10px;
  flex-shrink:0;
}

.bbex-asset-side.bbex-static{
  gap:10px;
  padding:0 12px;
}

.bbex-asset-side .bbex-select-value{
  font-size:15.5px;
  font-weight:800;
}

.bbex-subtext{
  margin-top:8px;
  margin-left:2px;
  font-size:13.5px;
  line-height:1.25;
  font-weight:400;
  color:rgba(230,236,255,.88);
}

.bbex-swap-wrap{
  display:flex;
  justify-content:center;
}

.bbex-swap{
  width:44px;
  height:44px;
  border-radius:13px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg,rgba(255,255,255,.085),rgba(255,255,255,.052));
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:21px;
  cursor:pointer;
}

.bbex-bottom{
  margin-top:0;
}

.bbex-helper{
  padding:12px 14px;
  min-height:48px;
  border-radius:13px;
  border:1px solid rgba(115,230,255,.25);
  background:
    linear-gradient(90deg,rgba(115,230,255,.085),rgba(123,57,255,.055)),
    rgba(255,255,255,.02);
  color:rgba(230,250,255,.96);
  font-size:13.5px;
  line-height:1.3;
  font-weight:710;
  display:flex;
  align-items:center;
}

.bbex-submit{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:58px;
  min-height:58px;
  margin-top:14px;
  border:0;
  border-radius:15px;
  color:#fff;
  font-size:16px;
  font-weight:880;
  font-family:inherit;
  background:linear-gradient(100deg,#df2cca 0%,#7d36ff 54%,#61dbff 125%);
  box-shadow:
    0 16px 34px rgba(123,57,255,.26),
    inset 0 1px 0 rgba(255,255,255,.18);
  cursor:pointer;
}

/* вертикальная геометрия утверждённого блока */
.bbex-view.is-active{
  justify-content:flex-start;
  align-items:stretch;
  padding:18px 0 132px;
  position:relative;
}

.bbex-view[data-view="buy"].is-active,
.bbex-view[data-view="sell"].is-active{
  gap:36px;
}

.bbex-view[data-view="convert"].is-active{
  gap:50px;
}

.bbex-view.is-active > *{
  width:100%;
  max-width:none;
  align-self:stretch;
  margin-top:0;
  margin-bottom:0;
}

.bbex-view.is-active > .bbex-bottom{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  width:100%;
  margin:0;
}

.bbex-view.is-active .bbex-bottom .bbex-helper{
  margin:0 0 14px;
}

.bbex-view.is-active .bbex-bottom .bbex-submit{
  margin:0;
}

.bbex-view[data-view="convert"].is-active > .bbex-swap-wrap{
  width:auto;
  align-self:center;
  margin:0 auto;
}

@media(max-width:1200px){
  .hero .hero-grid{
    grid-template-columns:1fr !important;
  }

  .exchange-card.main-exchange-v600{
    width:100% !important;
    max-width:690px !important;
    height:auto !important;
    min-height:0 !important;
    justify-self:center !important;
  }

  .hero-copy{
    height:auto !important;
    min-height:0 !important;
  }

  .direction-note{
    margin-top:28px !important;
  }
}

@media(max-width:620px){
  .bbex-body{
    height:auto;
    min-height:0;
  }

  .bbex-view.is-active{
    position:static;
    padding:16px 0;
    gap:18px;
  }

  .bbex-view.is-active > .bbex-bottom{
    position:static;
  }

  .bbex-grid-2{
    grid-template-columns:1fr;
  }
}

/* V621_HOME_SCALE_FIX */
/* Уменьшаем масштаб нового блока в настоящей главной stage. Логику не трогаем. */

.hero .hero-grid{
  grid-template-columns:minmax(0,1fr) minmax(500px,565px) !important;
  column-gap:66px !important;
  align-items:stretch !important;
}

.hero-copy{
  min-height:610px !important;
  height:auto !important;
}

.exchange-card.main-exchange-v600{
  width:100% !important;
  max-width:565px !important;
  height:610px !important;
  min-height:610px !important;
  border-radius:22px !important;
}

.bbex-tabs{
  height:64px !important;
}

.bbex-tab{
  height:64px !important;
  font-size:16px !important;
}

.bbex-body{
  height:546px !important;
  min-height:546px !important;
  padding:18px 18px 16px !important;
}

.bbex-label{
  font-size:13.5px !important;
  margin-bottom:8px !important;
}

.bbex-select-wrap,
.bbex-split{
  height:52px !important;
  min-height:52px !important;
  border-radius:13px !important;
}

.bbex-select-value,
.bbex-input-side{
  font-size:14px !important;
}

.bbex-asset-side{
  width:106px !important;
}

.bbex-coin{
  width:22px !important;
  height:22px !important;
  flex-basis:22px !important;
  font-size:12px !important;
}

.bbex-subtext{
  font-size:12px !important;
  margin-top:7px !important;
}

.bbex-helper{
  min-height:42px !important;
  padding:10px 12px !important;
  font-size:12.3px !important;
  border-radius:12px !important;
}

.bbex-submit{
  height:52px !important;
  min-height:52px !important;
  border-radius:14px !important;
  font-size:14.5px !important;
}

.bbex-swap{
  width:40px !important;
  height:40px !important;
  border-radius:12px !important;
  font-size:19px !important;
}

.bbex-view.is-active{
  padding:14px 0 108px !important;
}

.bbex-view[data-view="buy"].is-active,
.bbex-view[data-view="sell"].is-active{
  gap:28px !important;
}

.bbex-view[data-view="convert"].is-active{
  gap:38px !important;
}

@media(max-width:1200px){
  .hero .hero-grid{
    grid-template-columns:1fr !important;
  }

  .exchange-card.main-exchange-v600{
    width:100% !important;
    max-width:565px !important;
    height:auto !important;
    min-height:0 !important;
  }

  .bbex-body{
    height:auto !important;
    min-height:0 !important;
  }

  .bbex-view.is-active{
    position:relative !important;
    min-height:546px !important;
  }
}
/* /V621_HOME_SCALE_FIX */

/* V622_LIVE_SCALE_TIGHTER */
/* Ужимаем новый блок ближе к live-размеру сайта. Логику не трогаем. */

.hero .hero-grid{
  grid-template-columns:minmax(0,1fr) minmax(480px,540px) !important;
  column-gap:66px !important;
  align-items:stretch !important;
}

.hero-copy{
  min-height:585px !important;
  height:auto !important;
}

.exchange-card.main-exchange-v600{
  width:100% !important;
  max-width:540px !important;
  height:585px !important;
  min-height:585px !important;
  border-radius:22px !important;
}

.bbex-tabs{
  height:60px !important;
}

.bbex-tab{
  height:60px !important;
  font-size:15.5px !important;
}

.bbex-body{
  height:525px !important;
  min-height:525px !important;
  padding:16px 18px 14px !important;
}

.bbex-label{
  font-size:13px !important;
  margin-bottom:7px !important;
}

.bbex-select-wrap,
.bbex-split{
  height:49px !important;
  min-height:49px !important;
  border-radius:13px !important;
}

.bbex-select-value,
.bbex-input-side{
  font-size:13.5px !important;
}

.bbex-select-wrap{
  padding-left:14px !important;
  padding-right:36px !important;
}

.bbex-asset-side{
  width:100px !important;
}

.bbex-coin{
  width:21px !important;
  height:21px !important;
  flex-basis:21px !important;
  font-size:11px !important;
}

.bbex-subtext{
  font-size:11.7px !important;
  margin-top:6px !important;
}

.bbex-helper{
  min-height:40px !important;
  padding:9px 12px !important;
  font-size:11.8px !important;
  border-radius:12px !important;
}

.bbex-submit{
  height:50px !important;
  min-height:50px !important;
  border-radius:14px !important;
  font-size:14px !important;
}

.bbex-swap{
  width:38px !important;
  height:38px !important;
  border-radius:12px !important;
  font-size:18px !important;
}

.bbex-view.is-active{
  padding:12px 0 104px !important;
}

.bbex-view[data-view="buy"].is-active,
.bbex-view[data-view="sell"].is-active{
  gap:25px !important;
}

.bbex-view[data-view="convert"].is-active{
  gap:36px !important;
}

@media(max-width:1200px){
  .hero .hero-grid{
    grid-template-columns:1fr !important;
  }

  .exchange-card.main-exchange-v600{
    width:100% !important;
    max-width:540px !important;
    height:auto !important;
    min-height:0 !important;
  }

  .bbex-body{
    height:auto !important;
    min-height:0 !important;
  }

  .bbex-view.is-active{
    position:relative !important;
    min-height:525px !important;
  }
}
/* /V622_LIVE_SCALE_TIGHTER */

/* V626_STAGE_SCALE_LEFT_AND_LOADING_FIX */
/* Только stage: уменьшаем блок, поднимаем левую карточку, правим масштаб. */

.hero .hero-grid{
  grid-template-columns:minmax(0,1fr) minmax(450px,520px) !important;
  column-gap:56px !important;
  align-items:start !important;
}

.hero-copy{
  min-height:0 !important;
  height:auto !important;
  justify-content:flex-start !important;
}

.direction-note{
  margin-top:34px !important;
  max-width:610px !important;
  min-height:118px !important;
  padding:16px 18px !important;
  border-radius:18px !important;
}

.direction-note strong{
  font-size:15px !important;
  line-height:1.25 !important;
  margin-bottom:6px !important;
}

.direction-note span{
  font-size:13.5px !important;
  line-height:1.42 !important;
}

.exchange-card.main-exchange-v600{
  width:100% !important;
  max-width:520px !important;
  height:540px !important;
  min-height:540px !important;
  border-radius:22px !important;
}

.bbex-tabs{
  height:56px !important;
}

.bbex-tab{
  height:56px !important;
  font-size:14.8px !important;
}

.bbex-body{
  height:484px !important;
  min-height:484px !important;
  padding:14px 16px 14px !important;
}

.bbex-label{
  font-size:12.4px !important;
  margin-bottom:7px !important;
}

.bbex-select-wrap,
.bbex-split{
  height:46px !important;
  min-height:46px !important;
  border-radius:12px !important;
}

.bbex-select-wrap{
  padding-left:13px !important;
  padding-right:34px !important;
}

.bbex-select-value,
.bbex-input-side{
  font-size:13px !important;
}

.bbex-input-side{
  padding-left:14px !important;
  padding-right:14px !important;
}

.bbex-asset-side{
  width:96px !important;
}

.bbex-coin{
  width:20px !important;
  height:20px !important;
  flex-basis:20px !important;
  font-size:11px !important;
}

.bbex-subtext{
  font-size:11.3px !important;
  margin-top:6px !important;
}

.bbex-helper{
  min-height:38px !important;
  padding:8px 11px !important;
  font-size:11.5px !important;
  border-radius:12px !important;
}

.bbex-submit{
  height:48px !important;
  min-height:48px !important;
  border-radius:14px !important;
  font-size:13.8px !important;
}

.bbex-swap{
  width:36px !important;
  height:36px !important;
  border-radius:11px !important;
  font-size:17px !important;
}

.bbex-view.is-active{
  padding:10px 0 96px !important;
}

.bbex-view[data-view="buy"].is-active,
.bbex-view[data-view="sell"].is-active{
  gap:22px !important;
}

.bbex-view[data-view="convert"].is-active{
  gap:32px !important;
}

.bbex-view.is-active > .bbex-bottom{
  bottom:0 !important;
}

.bbex-view.is-active .bbex-bottom .bbex-helper{
  margin:0 0 12px !important;
}

@media(max-width:1200px){
  .hero .hero-grid{
    grid-template-columns:1fr !important;
  }

  .exchange-card.main-exchange-v600{
    width:100% !important;
    max-width:520px !important;
    height:auto !important;
    min-height:0 !important;
  }

  .bbex-body{
    height:auto !important;
    min-height:0 !important;
  }

  .bbex-view.is-active{
    position:relative !important;
    min-height:484px !important;
  }

  .direction-note{
    margin-top:28px !important;
    max-width:none !important;
  }
}
/* /V626_STAGE_SCALE_LEFT_AND_LOADING_FIX */

/* V627_COMPACT_NO_GAP_AND_LEFT_NOTE */
/* Сокращаем блок и убираем пустоту между последним полем и текстом. Логику не трогаем. */

.hero .hero-grid{
  grid-template-columns:minmax(0,1fr) minmax(440px,500px) !important;
  column-gap:54px !important;
  align-items:start !important;
}

.hero-copy{
  min-height:0 !important;
  height:auto !important;
  justify-content:flex-start !important;
}

/* левая карточка выше */
.direction-note{
  margin-top:26px !important;
  max-width:590px !important;
  min-height:108px !important;
  padding:14px 16px !important;
  border-radius:17px !important;
}

.direction-note strong{
  font-size:14.5px !important;
  line-height:1.23 !important;
  margin-bottom:5px !important;
}

.direction-note span{
  font-size:13px !important;
  line-height:1.38 !important;
}

/* правый блок компактнее */
.exchange-card.main-exchange-v600{
  width:100% !important;
  max-width:500px !important;
  height:auto !important;
  min-height:0 !important;
  border-radius:22px !important;
}

.bbex-tabs{
  height:54px !important;
}

.bbex-tab{
  height:54px !important;
  font-size:14.5px !important;
}

.bbex-body{
  height:auto !important;
  min-height:0 !important;
  padding:14px 16px 14px !important;
}

.bbex-view{
  height:auto !important;
  min-height:0 !important;
}

/* главное: нижний текст больше не фиксируется внизу, поэтому пустота пропадает */
.bbex-view.is-active{
  position:static !important;
  height:auto !important;
  min-height:0 !important;
  padding:10px 0 0 !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-start !important;
}

.bbex-view[data-view="buy"].is-active,
.bbex-view[data-view="sell"].is-active{
  gap:18px !important;
}

.bbex-view[data-view="convert"].is-active{
  gap:26px !important;
}

.bbex-view.is-active > .bbex-bottom{
  position:static !important;
  left:auto !important;
  right:auto !important;
  bottom:auto !important;
  width:100% !important;
  margin:0 !important;
}

.bbex-grid-2{
  gap:12px !important;
}

.bbex-label{
  font-size:12.2px !important;
  margin-bottom:6px !important;
}

.bbex-select-wrap,
.bbex-split{
  height:44px !important;
  min-height:44px !important;
  border-radius:12px !important;
}

.bbex-select-wrap{
  padding-left:12px !important;
  padding-right:32px !important;
}

.bbex-select-value,
.bbex-input-side{
  font-size:12.8px !important;
}

.bbex-input-side{
  padding-left:13px !important;
  padding-right:13px !important;
}

.bbex-asset-side{
  width:92px !important;
}

.bbex-coin{
  width:20px !important;
  height:20px !important;
  flex-basis:20px !important;
  font-size:11px !important;
}

.bbex-subtext{
  font-size:11px !important;
  margin-top:5px !important;
}

.bbex-helper{
  min-height:36px !important;
  padding:8px 10px !important;
  font-size:11.3px !important;
  border-radius:12px !important;
}

.bbex-view.is-active .bbex-bottom .bbex-helper{
  margin:0 0 10px !important;
}

.bbex-submit{
  height:46px !important;
  min-height:46px !important;
  border-radius:13px !important;
  font-size:13.5px !important;
}

.bbex-swap{
  width:34px !important;
  height:34px !important;
  border-radius:11px !important;
  font-size:16px !important;
}

.bbex-view[data-view="convert"].is-active > .bbex-swap-wrap{
  width:auto !important;
  align-self:center !important;
  margin:0 auto !important;
}

@media(max-width:1200px){
  .hero .hero-grid{
    grid-template-columns:1fr !important;
  }

  .exchange-card.main-exchange-v600{
    width:100% !important;
    max-width:500px !important;
    height:auto !important;
    min-height:0 !important;
  }

  .direction-note{
    margin-top:24px !important;
    max-width:none !important;
  }
}
/* /V627_COMPACT_NO_GAP_AND_LEFT_NOTE */

/* V628_RAISE_LEFT_NOTE_THEN_MATCH_RIGHT */
/* 1) Поднять левую нижнюю карточку
   2) После этого сократить правый блок, чтобы его низ совпал с левой карточкой */

.hero .hero-grid{
  align-items:start !important;
}

/* ЛЕВАЯ КОЛОНКА */
.hero .hero-copy{
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-start !important;
  align-items:flex-start !important;
  min-height:0 !important;
  height:auto !important;
}

/* Убираем отталкивание карточки вниз */
.hero .hero-copy .direction-note{
  margin-top:18px !important;
  align-self:flex-start !important;
  max-width:590px !important;
}

/* ПРАВЫЙ БЛОК — сжимаем только после того как левая карточка поднята */
.hero .exchange-card.main-exchange-v600{
  height:auto !important;
  min-height:0 !important;
  padding-bottom:16px !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-body{
  height:auto !important;
  min-height:0 !important;
  padding-bottom:12px !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-view{
  height:auto !important;
  min-height:0 !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-view.is-active{
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-start !important;
  height:auto !important;
  min-height:0 !important;
  padding-bottom:0 !important;
}

/* Главное — поджимаем низ блока */
.hero .exchange-card.main-exchange-v600 .bbex-bottom{
  position:static !important;
  margin-top:10px !important;
  margin-bottom:0 !important;
  padding-bottom:0 !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-helper{
  margin-bottom:10px !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-submit{
  margin-bottom:0 !important;
}

/* Чуть компактнее расстояния между секциями */
.hero .exchange-card.main-exchange-v600 .bbex-view[data-view="buy"].is-active{
  gap:14px !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-view[data-view="sell"].is-active{
  gap:14px !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-view[data-view="convert"].is-active{
  gap:18px !important;
}

/* Между строкой лимитов и нижним helper не держим лишний воздух */
.hero .exchange-card.main-exchange-v600 .bbex-subtext{
  margin-top:5px !important;
  margin-bottom:0 !important;
}

@media (max-width: 1200px){
  .hero .hero-copy .direction-note{
    margin-top:16px !important;
    max-width:none !important;
  }

  .hero .exchange-card.main-exchange-v600{
    padding-bottom:14px !important;
  }

  .hero .exchange-card.main-exchange-v600 .bbex-body{
    padding-bottom:10px !important;
  }
}
/* /V628_RAISE_LEFT_NOTE_THEN_MATCH_RIGHT */


/* V630_STABLE_SCALE_GRID */
/* Фикс: кнопка не прыгает, подвал не шевелится, внутри блока строки распределены ровно. */

.hero .exchange-card.main-exchange-v600{
  width:100% !important;
  max-width:500px !important;
  height:540px !important;
  min-height:540px !important;
  padding-bottom:0 !important;
  display:flex !important;
  flex-direction:column !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-tabs{
  height:54px !important;
  min-height:54px !important;
  flex:0 0 54px !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-tab{
  height:54px !important;
  font-size:14.5px !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-body{
  height:486px !important;
  min-height:486px !important;
  padding:14px 16px 14px !important;
  flex:0 0 486px !important;
}

/* все вкладки одинаковой высоты */
.hero .exchange-card.main-exchange-v600 .bbex-view{
  height:100% !important;
  min-height:100% !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-view.is-active{
  display:grid !important;
  grid-template-rows:auto auto auto auto !important;
  align-content:space-between !important;
  row-gap:0 !important;
  height:100% !important;
  min-height:100% !important;
  padding:0 !important;
  position:static !important;
}

/* нижний блок больше не absolute, поэтому не ломает режимы */
.hero .exchange-card.main-exchange-v600 .bbex-bottom{
  position:static !important;
  left:auto !important;
  right:auto !important;
  bottom:auto !important;
  margin:0 !important;
  min-height:0 !important;
  display:block !important;
}

/* кнопка одной высоты и на одном месте во всех вкладках */
.hero .exchange-card.main-exchange-v600 .bbex-helper{
  min-height:38px !important;
  height:38px !important;
  padding:8px 11px !important;
  margin:0 0 10px !important;
  font-size:11.5px !important;
  border-radius:12px !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-submit{
  width:100% !important;
  height:46px !important;
  min-height:46px !important;
  max-height:46px !important;
  margin:0 !important;
  border-radius:13px !important;
  font-size:13.5px !important;
}

/* внутренние размеры компактные */
.hero .exchange-card.main-exchange-v600 .bbex-select-wrap,
.hero .exchange-card.main-exchange-v600 .bbex-split{
  height:44px !important;
  min-height:44px !important;
  border-radius:12px !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-label{
  font-size:12.2px !important;
  margin-bottom:6px !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-select-value,
.hero .exchange-card.main-exchange-v600 .bbex-input-side{
  font-size:12.8px !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-asset-side{
  width:92px !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-subtext{
  font-size:11px !important;
  font-weight:400 !important;
  margin-top:5px !important;
  margin-bottom:0 !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-coin{
  width:20px !important;
  height:20px !important;
  flex-basis:20px !important;
  font-size:11px !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-swap{
  width:34px !important;
  height:34px !important;
  border-radius:11px !important;
  font-size:16px !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-swap-wrap{
  width:auto !important;
  align-self:center !important;
  margin:0 auto !important;
}

/* левую карточку оставляем поднятой */
.hero .hero-copy .direction-note{
  margin-top:18px !important;
  max-width:590px !important;
}

@media(max-width:1200px){
  .hero .exchange-card.main-exchange-v600{
    max-width:500px !important;
    height:auto !important;
    min-height:0 !important;
  }

  .hero .exchange-card.main-exchange-v600 .bbex-body{
    height:auto !important;
    min-height:0 !important;
    flex:1 1 auto !important;
  }

  .hero .exchange-card.main-exchange-v600 .bbex-view.is-active{
    display:flex !important;
    flex-direction:column !important;
    gap:18px !important;
  }
}
/* /V630_STABLE_SCALE_GRID */


/* V631_WIDTH_AND_LEFT_NOTE_FIX */
/* 1) строки в правом блоке снова на полную ширину
   2) левую карточку чуть ниже */

.hero .exchange-card.main-exchange-v600 .bbex-view.is-active > *{
  width:100% !important;
  max-width:none !important;
  justify-self:stretch !important;
  align-self:stretch !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-grid-2,
.hero .exchange-card.main-exchange-v600 .bbex-field,
.hero .exchange-card.main-exchange-v600 .bbex-bottom,
.hero .exchange-card.main-exchange-v600 .bbex-helper,
.hero .exchange-card.main-exchange-v600 .bbex-submit,
.hero .exchange-card.main-exchange-v600 .bbex-select-wrap,
.hero .exchange-card.main-exchange-v600 .bbex-split{
  width:100% !important;
  max-width:none !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-grid-2{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:16px !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-split{
  width:100% !important;
  max-width:none !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-input-side{
  width:100% !important;
  min-width:0 !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-asset-side{
  width:116px !important;
  min-width:116px !important;
}

.hero .hero-copy .direction-note{
  margin-top:30px !important;
}

@media(max-width:1200px){
  .hero .exchange-card.main-exchange-v600 .bbex-grid-2{
    grid-template-columns:1fr !important;
    gap:14px !important;
  }

  .hero .hero-copy .direction-note{
    margin-top:20px !important;
  }
}
/* /V631_WIDTH_AND_LEFT_NOTE_FIX */


/* V632_RESTORE_FULL_WIDTH_LINES */
/* Возвращаем нормальную длину строк в правом блоке */

.hero .exchange-card.main-exchange-v600 .bbex-field,
.hero .exchange-card.main-exchange-v600 .bbex-split,
.hero .exchange-card.main-exchange-v600 .bbex-helper,
.hero .exchange-card.main-exchange-v600 .bbex-submit{
  width:100% !important;
  max-width:none !important;
  justify-self:stretch !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-split{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 126px !important;
  gap:0 !important;
  align-items:stretch !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-input-side{
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-asset-side{
  width:126px !important;
  min-width:126px !important;
  max-width:126px !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-input{
  width:100% !important;
  max-width:none !important;
}

@media (max-width:1200px){
  .hero .exchange-card.main-exchange-v600 .bbex-split{
    grid-template-columns:minmax(0,1fr) 120px !important;
  }

  .hero .exchange-card.main-exchange-v600 .bbex-asset-side{
    width:120px !important;
    min-width:120px !important;
    max-width:120px !important;
  }
}
/* /V632_RESTORE_FULL_WIDTH_LINES */


/* V633_RESTORE_LINE_WIDTH */
/* Возвращаем длину строк как была: правый блок снова шире. Логику и высоту не трогаем. */

.hero .hero-grid{
  grid-template-columns:minmax(0,1fr) minmax(500px,565px) !important;
  column-gap:58px !important;
}

.hero .exchange-card.main-exchange-v600{
  width:100% !important;
  max-width:565px !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-body{
  width:100% !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-view.is-active{
  width:100% !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-grid-2{
  width:100% !important;
  max-width:none !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  gap:14px !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-field,
.hero .exchange-card.main-exchange-v600 .bbex-split,
.hero .exchange-card.main-exchange-v600 .bbex-helper,
.hero .exchange-card.main-exchange-v600 .bbex-submit{
  width:100% !important;
  max-width:none !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-split{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 116px !important;
  gap:0 !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-input-side{
  min-width:0 !important;
  width:100% !important;
}

.hero .exchange-card.main-exchange-v600 .bbex-asset-side{
  width:116px !important;
  min-width:116px !important;
  max-width:116px !important;
}

@media(max-width:1200px){
  .hero .hero-grid{
    grid-template-columns:1fr !important;
  }

  .hero .exchange-card.main-exchange-v600{
    width:100% !important;
    max-width:565px !important;
  }

  .hero .exchange-card.main-exchange-v600 .bbex-split{
    grid-template-columns:minmax(0,1fr) 112px !important;
  }

  .hero .exchange-card.main-exchange-v600 .bbex-asset-side{
    width:112px !important;
    min-width:112px !important;
    max-width:112px !important;
  }
}
/* /V633_RESTORE_LINE_WIDTH */


/* V634_INNER_FULL_WIDTH_FIX */
/* Не трогаем размер основного блока. Возвращаем полную ширину внутренних строк. */

html body .hero .exchange-card.main-exchange-v600 .bbex-view.is-active{
  grid-template-columns:minmax(0, 1fr) !important;
  width:100% !important;
}

/* Все прямые дети активной вкладки должны занимать всю колонку */
html body .hero .exchange-card.main-exchange-v600 .bbex-view.is-active > *{
  grid-column:1 / -1 !important;
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  justify-self:stretch !important;
  align-self:stretch !important;
}

/* Верхняя строка из двух селектов */
html body .hero .exchange-card.main-exchange-v600 .bbex-grid-2{
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  gap:14px !important;
}

html body .hero .exchange-card.main-exchange-v600 .bbex-grid-2 > div{
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
}

/* Селекты и строки ввода на всю ширину */
html body .hero .exchange-card.main-exchange-v600 .bbex-select-wrap,
html body .hero .exchange-card.main-exchange-v600 .bbex-field,
html body .hero .exchange-card.main-exchange-v600 .bbex-split,
html body .hero .exchange-card.main-exchange-v600 .bbex-bottom,
html body .hero .exchange-card.main-exchange-v600 .bbex-helper,
html body .hero .exchange-card.main-exchange-v600 .bbex-submit{
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  justify-self:stretch !important;
  align-self:stretch !important;
}

/* Строка суммы: левая часть растягивается, правая валюта фиксированная */
html body .hero .exchange-card.main-exchange-v600 .bbex-split{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 116px !important;
  gap:0 !important;
  align-items:stretch !important;
}

html body .hero .exchange-card.main-exchange-v600 .bbex-input-side{
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
}

html body .hero .exchange-card.main-exchange-v600 .bbex-asset-side{
  width:116px !important;
  min-width:116px !important;
  max-width:116px !important;
}

/* На мобильном сохраняем полную ширину */
@media(max-width:1200px){
  html body .hero .exchange-card.main-exchange-v600 .bbex-grid-2{
    grid-template-columns:1fr !important;
  }

  html body .hero .exchange-card.main-exchange-v600 .bbex-split{
    grid-template-columns:minmax(0,1fr) 112px !important;
  }

  html body .hero .exchange-card.main-exchange-v600 .bbex-asset-side{
    width:112px !important;
    min-width:112px !important;
    max-width:112px !important;
  }
}
/* /V634_INNER_FULL_WIDTH_FIX */


/* V638_HEADER_MY_ORDERS */
/* Шапка: вместо поиска — кнопка "Мои заявки" */

.header-orders-link-v600{
  min-height:44px !important;
  padding:0 18px !important;
  border-radius:15px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-decoration:none !important;
  color:#ffffff !important;
  font-size:14px !important;
  font-weight:800 !important;
  white-space:nowrap !important;
  border:1px solid rgba(255,255,255,.13) !important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.045)),
    rgba(255,255,255,.035) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06) !important;
}

.header-orders-link-v600:hover{
  border-color:rgba(115,230,255,.32) !important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.095),rgba(255,255,255,.055)),
    rgba(255,255,255,.045) !important;
}

.mobile-orders-btn-v600{
  text-decoration:none !important;
  color:#ffffff !important;
  font-size:12px !important;
  font-weight:900 !important;
  line-height:1 !important;
  display:none !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 10px !important;
  min-width:58px !important;
}

@media(max-width:980px){
  .header-orders-link-v600{
    display:none !important;
  }

  .mobile-orders-btn-v600{
    display:inline-flex !important;
  }
}
/* /V638_HEADER_MY_ORDERS */


/* V641_DYNAMIC_INPUTS */
.bbex-input-side .bbex-amount-input{
  width:100% !important;
  height:100% !important;
  border:0 !important;
  outline:0 !important;
  background:transparent !important;
  color:#fff !important;
  font:inherit !important;
  font-size:inherit !important;
  padding:0 !important;
}

.bbex-input-side .bbex-amount-input::placeholder{
  color:rgba(230,236,255,.72) !important;
  opacity:1 !important;
}

.bbex-tab[hidden]{
  display:none !important;
}

.bbex-tab[disabled]{
  opacity:.45 !important;
  cursor:default !important;
}
/* /V641_DYNAMIC_INPUTS */

/* V819_CODEX_SITE_CATALOG_FAIL_CLOSED */
.main-exchange-v600 .bbex-catalog-error{
  width:100%;
  min-height:420px;
  padding:44px 42px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  gap:12px;
}

.main-exchange-v600 .bbex-catalog-error-kicker{
  color:#62e6ff;
  font-size:14px;
  font-weight:950;
}

.main-exchange-v600 .bbex-catalog-error h2{
  margin:0;
  color:#fff;
  font-size:30px;
  line-height:1.12;
  font-weight:950;
}

.main-exchange-v600 .bbex-catalog-error p{
  margin:0;
  max-width:520px;
  color:rgba(235,240,255,.78);
  font-size:15px;
  line-height:1.45;
}
/* /V819_CODEX_SITE_CATALOG_FAIL_CLOSED */


/* V923_MOBILE_EXCHANGE_RHYTHM_TUNE */
@media (max-width:900px){
  html body .hero .exchange-card.main-exchange-v600{
    padding-bottom:14px !important;
  }

  html body .hero .exchange-card.main-exchange-v600 .bbex-body{
    padding-top:16px !important;
    padding-bottom:14px !important;
  }

  html body .hero .exchange-card.main-exchange-v600 .bbex-grid-2{
    gap:14px !important;
    margin-bottom:15px !important;
  }

  html body .hero .exchange-card.main-exchange-v600 .bbex-field{
    margin-bottom:15px !important;
  }

  html body .hero .exchange-card.main-exchange-v600 .bbex-field + .bbex-field{
    margin-top:0 !important;
  }

  html body .hero .exchange-card.main-exchange-v600 .bbex-label{
    margin-bottom:7px !important;
    line-height:1.22 !important;
  }

  html body .hero .exchange-card.main-exchange-v600 .bbex-split,
  html body .hero .exchange-card.main-exchange-v600 .bbex-select-wrap{
    min-height:58px !important;
  }

  html body .hero .exchange-card.main-exchange-v600 .bbex-input-side,
  html body .hero .exchange-card.main-exchange-v600 .bbex-select-value,
  html body .hero .exchange-card.main-exchange-v600 .bbex-asset-side{
    line-height:1.24 !important;
  }

  html body .hero .exchange-card.main-exchange-v600 .bbex-subtext{
    margin-top:6px !important;
    line-height:1.28 !important;
  }

  html body .hero .exchange-card.main-exchange-v600 .bbex-swap-wrap{
    margin:12px 0 15px 0 !important;
  }

  html body .hero .exchange-card.main-exchange-v600 .bbex-bottom{
    margin-top:2px !important;
    gap:0 !important;
    margin-bottom:0 !important;
    padding-bottom:0 !important;
  }

  html body .hero .exchange-card.main-exchange-v600 .bbex-helper{
    margin-top:2px !important;
    margin-bottom:9px !important;
    padding-top:10px !important;
    padding-bottom:10px !important;
    line-height:1.25 !important;
  }

  html body .hero .exchange-card.main-exchange-v600 .bbex-submit{
    min-height:58px !important;
    line-height:1.2 !important;
    margin-top:0 !important;
    margin-bottom:0 !important;
  }
}

@media (max-width:380px){
  html body .hero .exchange-card.main-exchange-v600 .bbex-body{
    padding-top:15px !important;
    padding-bottom:13px !important;
  }

  html body .hero .exchange-card.main-exchange-v600 .bbex-field{
    margin-bottom:14px !important;
  }

  html body .hero .exchange-card.main-exchange-v600 .bbex-split,
  html body .hero .exchange-card.main-exchange-v600 .bbex-select-wrap{
    min-height:57px !important;
  }

  html body .hero .exchange-card.main-exchange-v600 .bbex-submit{
    min-height:57px !important;
  }
}
/* /V923_MOBILE_EXCHANGE_RHYTHM_TUNE */
