:root {
  --bg-page: #f8f6ff;
  --text-main: #1a1a1a;
  --text-dark: #1a1a3a;
  --text-secondary: #4a4a59;

  --accent-bg: #e5ff68;
  --accent-border: rgba(0,0,0,.2);
  --accent-shadow: 0 16px 32px rgba(160,190,0,.25);

  --card-bg: #ffffff;
  --card-border: rgba(0,0,0,.05);
  --card-shadow: 0 24px 48px rgba(14,8,48,.08);

  --radius-card: 14px;
  --radius-field: 10px;

  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* управление логотипом */
  --logo-size: 100px;   /* высота логотипа */
  --logo-offset-x: 0px; /* сдвиг вправо/влево */
  --logo-offset-y: 0px; /* сдвиг вверх/вниз */
}

/* базовые */
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  font-family: var(--font-ui);
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.4;
}

/* ===== ХЕДЕР (не белый фон, общий фон сайта) ===== */
.topbar {
  background: var(--bg-page);
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 6px rgba(0,0,0,.02);
  padding: 20px 24px;
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* левая часть (логотип) */
.topbar-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

/* блок логотипа с возможностью двигать */
.brand-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-left: var(--logo-offset-x);
  margin-top: var(--logo-offset-y);
}

/* сам логотип */
.brand-logo img {
  height: var(--logo-size);
  width: auto;
  display: block;
  object-fit: contain;

  background: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.08);
}

/* правая часть хэдера */
.topbar-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: right;
}

.support-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
}

/* RU */
.pill-plain {
  appearance: none;
  border: 1px solid rgba(0,0,0,.15);
  background: #ffffff;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s ease;
}

/* Telegram */
.pill-accent {
  text-decoration: none;
  display: inline-block;
  background: var(--accent-bg);
  color: #1a1a1a;
  border-radius: 8px;
  border: 1px solid var(--accent-border);
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  box-shadow: var(--accent-shadow);
  white-space: nowrap;
  transition: all .2s ease;
}
.pill-accent:hover {
  filter: brightness(0.95);
}

/* адаптив хэдера */
@media (max-width: 700px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .topbar-right {
    text-align: left;
  }

  .brand-logo img {
    height: 70px;
  }
}

/* ===== ОСНОВНАЯ СЕТКА (2 КОЛОНКИ) ===== */
.page-wrap {
  max-width: 1280px;
  margin: 32px auto 64px;
  padding: 0 24px;

  display: grid;
  grid-template-columns: 1fr 400px; /* слева текст, справа форма */
  gap: 32px;
}

@media (max-width: 1100px) {
  .page-wrap {
    grid-template-columns: 1fr;
    max-width: 640px;
  }

  .form-card {
    max-width: 640px;
    margin: 0 auto;
  }

  .info-col {
    max-width: 640px;
    margin: 0 auto;
  }
}

/* ===== ЛЕВАЯ КОЛОНКА ===== */

.info-block h2,
.info-col h2 {
  margin: 0 0 20px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-dark);
  font-family: var(--font-ui);
}

/* преимущества */
.subpoints {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 16px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-main);
}

.point-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.15);
  background:#fff;
  box-shadow:0 10px 22px rgba(0,0,0,.06);
  font-size:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#1a1a3a;
}

.point-title {
  font-weight: 600;
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.point-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* текст направлений */
.final-text {
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-dark);
  font-weight: 500;
  margin: 24px 0 16px;
}

/* блок актуальных курсов */
.final-small {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 20px 20px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #1a1a1a;
  max-width: 640px;
}

.final-small-head {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 12px;
}

.rates-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.5;
  color: #1a1a1a;
}

.hint {
  font-size: 13px;
  line-height: 1.4;
  color: #6b6b76;
}

/* ===== ПРАВАЯ КОЛОНКА (ФОРМА) ===== */

.form-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 24px 48px rgba(14,8,48,.08);
  padding: 24px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-main);
}

.form-head {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 20px;
  text-align: center;
  line-height: 1.3;
}

.row {
  margin-bottom: 16px;
}

.row-label {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 6px;
  display: block;
}

.row-field {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* поля ввода */
.input {
  flex: 1 1 auto;
  min-width: 140px;
  border:1px solid #3a3371;
  border-radius: var(--radius-field);
  background:#fff;
  font-size:15px;
  line-height:1.4;
  color:#1a1a3a;
  padding:10px 12px;
  outline:none;
  font-family: var(--font-ui);
}
.input[readonly] {
  background:#fafafa;
  color:#555;
}

/* стрелка обмена */
.swap-arrow {
  text-align:center;
  color:var(--text-dark);
  font-weight:600;
  font-size:18px;
  line-height:1;
  margin:-4px 0 8px;
}

/* подсказка по курсу */
.calc-note {
  background:#fafafa;
  border:1px solid rgba(0,0,0,.1);
  border-radius: var(--radius-field);
  padding:12px;
  font-size:14px;
  line-height:1.4;
  color:#1a1a3a;
  margin-top:8px;
  white-space:pre-line;
}

/* чекбоксы согласия */
.agree-block {
  margin-top: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: inherit;
}

.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  color: #1a1a1a;
  flex-wrap: wrap;
}

.agree-checkbox {
  width: 28px;
  height: 28px;
  min-width: 28px;
  appearance: none;
  border: 2px solid #9b8cf5;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
}

.agree-checkbox:checked {
  background: #9b8cf5;
  box-shadow: 0 0 10px rgba(155,140,245,0.5);
}

.agree-checkbox:checked::after {
  content: "✓";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.agree-text {
  color: #1a1a1a;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
}

.agree-link {
  color: var(--accent-bg); /* салатовый */
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
}
.agree-link:hover {
  text-decoration: underline;
}

/* кнопка */
.btn-main {
  width:100%;
  border-radius: var(--radius-field);
  border:1px solid var(--accent-border);
  background: var(--accent-bg);
  font-size:16px;
  font-weight:600;
  padding:14px 16px;
  color:#1a1a1a;
  text-align:center;
  cursor:pointer;
  box-shadow: var(--accent-shadow);
  margin-top:16px;
}
.btn-main[disabled] {
  opacity:0.4;
  cursor: not-allowed;
}

/* статус отправки */
.send-status {
  font-size:14px;
  line-height:1.4;
  font-weight:600;
  margin-top:8px;
}

/* пояснение */
.legal {
  font-size:13px;
  line-height:1.5;
  color:#4a4a59;
  margin-top:16px;
}

/* блок связи */
.support-box {
  font-size:14px;
  line-height:1.45;
  color:#1a1a3a;
  margin-top:16px;
}

.support-line {
  font-weight:600;
  margin-bottom:4px;
}

.support-row a {
  color:#1a1a3a;
  font-weight:600;
  text-decoration:none;
}

/* ===== кастомные селекты активов ===== */

.asset-select {
  position: relative;
  min-width: 180px;
  border:1px solid #3a3371;
  border-radius:10px;
  background:#fdfdff;
  padding:10px 12px;
  font-size:15px;
  font-weight:500;
  color:#1a163a;
  cursor:pointer;
}

.asset-current {
  display:flex;
  align-items:center;
  gap:10px;
  line-height:1.3;
}

/* КОНТЕЙНЕР ИКОНКИ (кружок) — универсальный */
.asset-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;

  /* для текстового фолбэка (буквы) */
  font-size: 14px;
  font-weight: 600;
  color: #fff;

  border: 1px solid rgba(0,0,0,.2);
}

/* Если внутри PNG (добавляется класс .is-img) */
.asset-icon.is-img {
  background: transparent;
  border: 1px solid rgba(0,0,0,.12);
}

/* Нормализация самой PNG-иконки внутри кружка */
.asset-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  background: #fff;
  border-radius: 50%;
}

.asset-labels {
  display:flex;
  flex-direction:column;
  line-height:1.2;
}

.asset-main {
  font-weight:600;
  color:#1a163a;
}

.asset-sub {
  font-size:12px;
  color:#4a4767;
}

.asset-dropdown {
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 6px);
  background:#f7f5ff;
  border:2px solid #3a3371;
  border-radius:10px;
  box-shadow:0 24px 48px rgba(14,8,48,.2);
  padding:8px 0;
  max-height:260px;
  overflow-y:auto;
  display:none;
  z-index:9999;
}

.asset-option {
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 14px;
  cursor:pointer;
  font-size:15px;
  line-height:1.3;
  border-bottom:1px solid rgba(0,0,0,.05);
  background:#f7f5ff;
  color:#000;
}
.asset-option:last-child {
  border-bottom:none;
}
.asset-option:hover {
  background:#fff;
}

/* ===== ФУТЕР ===== */
.foot {
  max-width:1280px;
  margin:40px auto 80px;
  text-align:center;
  font-size:13px;
  color:#6b6b76;
  padding:0 24px;
}

/* ===== Кнопка "Перейти в Telegram бот" ===== */
.btn-telegram {
  display: block;
  width: 100%;
  text-align: center;
  border-radius: var(--radius-field);
  border: 1px solid #1E97D5;
  background: #27A7E7;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 16px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(39,167,231,0.4);
  margin-top: 14px;
  transition: all 0.2s ease;
}

.btn-telegram:hover {
  background: #1E97D5;
  transform: translateY(-1px);
}

.btn-telegram:active {
  transform: translateY(0);
}