
:root {
  --bg: #ffffff;
  --card: #ffffff;
  --yellow: #ffd400;
  --yellow-dark: #f2c200;
  --text: #0f172a;
  --muted: #6b7280;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

#bg-pattern {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-logo {
  position: absolute;
  opacity: 0.055;
  filter: grayscale(1) blur(0.3px);
}

.hero {
  padding: 60px 0 120px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: #fff2b3;
  color: #9a7a00;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 16px;
}

h1 {
  font-size: 52px;
  line-height: 1.1;
  margin-bottom: 20px;
}

h1 .highlight {
  color: var(--yellow-dark);
}

.hero-text p {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.btn {
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 15px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--yellow);
  color: #000;
  box-shadow: 0 12px 30px rgba(255, 208, 0, 0.45);
}

.btn-outline {
  background: transparent;
  border: 2px solid #f5c400;
  color: #111;
  cursor: pointer;
  transition: 0.2s;
}

.calc-wrap {
  width: 100%;
}

.calculator {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf6 100%);
  border-radius: 32px;
  padding: 56px 48px 48px;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.12),
    0 10px 30px rgba(255, 212, 0, 0.25);
}

.rate-badge {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 12px 30px rgba(255, 208, 0, 0.45);
}

/* Fields */
.calc-field {
  background: #fff;
  border-radius: 20px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: inset 0 0 0 1px var(--border);
}

.calc-field.yellow {
  background: #fffbe6;
  box-shadow:
    inset 0 0 0 1px var(--yellow),
    0 8px 20px rgba(255, 212, 0, 0.15);
}

.calc-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.calc-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.calc-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 22px;
  outline: none;
}

.currency {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 14px;
  background: #fff;
}

/* Swap */
.swap-btn {
  display: block;
  margin: 8px auto 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--yellow);
  border: none;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255, 208, 0, 0.45);
}


.calc-submit {
  width: 100%;
  height: 60px;
  border-radius: 999px;
  background: var(--yellow);
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(255, 208, 0, 0.55);
}

.receive {
  padding: 80px 0;
}

.receive-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.receive-header {
  text-align: center;
  margin-bottom: 56px;
}

.receive-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--yellow);
  font-size: 14px;
}

.receive-title {
  margin: 16px 0 8px;
  font-size: 36px;
}

.receive-subtitle {
  font-size: 16px;
  color: #7a7a7a;
}

.receive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.receive-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.receive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.1);
}

.receive-content h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.receive-content p {
  font-size: 14px;
  color: #6f6f6f;
  line-height: 1.4;
}

.receive-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: #fff7cc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.receive-icon svg {
  width: 24px;
  height: 24px;
  stroke: #000;
  stroke-width: 1.6;
  fill: none;
}

.footer {
  padding: 80px 20px;
}

.footer-card {
  max-width: 1200px;
  margin: 0 auto;
  background: #fffdf7;
  border-radius: 28px;
  padding: 60px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 3fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 120px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-size: 15px;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid #f0e6c5;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #999;
}

@media (max-width: 900px) {

  .hero {
    padding: 40px 0 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  h1 {
    font-size: 36px;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .calculator {
    padding: 28px 20px;
    border-radius: 24px;
  }

  .calc-input {
    font-size: 20px;
  }

  .rate-badge {
    font-size: 13px;
    padding: 8px 16px;
  }

  .receive-grid {
    grid-template-columns: 1fr;
  }

  .receive-title {
    font-size: 28px;
  }

  .footer-card {
    padding: 40px 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-brand img {
    height: 64px;
  }
}
.calc-wrap {
  margin-top: 40px;
}

@media (max-width: 900px) {
  .calc-wrap {
    margin-top: 32px;
  }

  .rate-badge {
    top: -14px;
  }

  .calculator {
    padding-top: 36px;
  }
}
@media (max-width: 900px) {

  /* 1. Добавляем воздух ПОСЛЕ hero-текста */
  .hero-text {
    padding-bottom: 32px;
  }

  /* 2. Жёстко отодвигаем калькулятор */
  .calc-wrap {
    margin-top: 48px;
  }

  /* 3. Опускаем бейдж курса ВНУТРЬ карточки */
  .rate-badge {
    position: static;
    transform: none;
    margin: 0 auto 16px;
    display: inline-block;
  }

  /* 4. Чуть уменьшаем свечение, чтобы не «липло» */
  .calculator {
    padding-top: 28px;
    box-shadow:
      0 24px 48px rgba(0,0,0,0.12),
      0 10px 24px rgba(255, 212, 0, 0.25);
  }
}
@media (max-width: 900px) {

  /* HERO больше не grid */
  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* ВАЖНО */
  }

  /* Калькулятор по центру экрана */
  .calc-wrap {
    margin: 40px auto 0;
    max-width: 420px;
  }

  /* Бейдж курса как на ПК */
  .rate-badge {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 16px;
    text-align: center;
  }
}
@media (max-width: 900px) {

  .rate-badge {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 16px;
    text-align: center;
  }

}

.calc-submit {
  color: #000;
}

.swap-btn {
  color: #000;
}

.swap-btn * {
  color: #000 !important;
  fill: #000 !important;
  stroke: #000 !important;
}
@media (max-width: 900px) {

  /* Общий отступ футера */
  .footer {
    padding: 60px 16px;
  }

  .footer-card {
    padding: 32px 20px;
    border-radius: 24px;
  }

  /* Верх футера — в колонку */
  .footer-top {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  /* Бренд по центру */
  .footer-brand {
    text-align: center;
  }

  .footer-brand img {
    height: 56px;
    margin: 0 auto 12px;
  }

  .footer-brand p {
    max-width: none;
    font-size: 14px;
  }

  /* Колонки → одна колонка */
  .footer-cols {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .footer-col h4 {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .footer-col li {
    font-size: 14px;
    line-height: 1.6;
  }

  /* Контакты — компактнее и аккуратнее */
  .footer-col:last-child li {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .footer-col:last-child a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
  }

  /* Низ футера */
  .footer-bottom {
    margin-top: 32px;
    padding-top: 16px;
    font-size: 12px;
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-logo {
  height: 36px;
}

.topbar-name {
  font-weight: 600;
  font-size: 16px;
}

.topbar-nav {
  display: flex;
  gap: 24px;
}

.topbar-nav a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  opacity: 0.7;
}

.topbar-nav a:hover {
  opacity: 1;
}

.topbar-actions {
  display: flex;
  gap: 12px;
}

.tg-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: 14px;
  color: #000;
}

.topbar-cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--yellow);
  border: none;
  font-size: 14px;
  cursor: pointer;
}
.topbar-secondary {
  padding: 8px 18px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border);
  font-size: 14px;
  cursor: pointer;
}

.how {
  padding: 100px 20px;
  background: #fff;
}

.how-container {
  max-width: 1100px;
  margin: 0 auto;
}

.how-header {
  text-align: center;
  margin-bottom: 64px;
}

.how-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background: #f7dc47;
  font-size: 14px;
}

.how-title {
  margin: 16px 0 8px;
  font-size: 36px;
}

.how-subtitle {
  font-size: 16px;
  color: #7a7a7a;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.how-step {
  background: #fff;
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.how-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.1);
}

.how-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: #fff7cc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.how-step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.how-step p {
  font-size: 14px;
  color: #6f6f6f;
  line-height: 1.4;
}

.how-flow {
  padding: 100px 20px;
  background: #fff;
}

.how-flow-container {
  max-width: 900px;
  margin: 0 auto;
}

.how-flow-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 64px;
}

.how-flow-steps::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(255,212,0,0.3),
    rgba(255,212,0,0.05)
  );
  transform: translateX(-50%);
}

.how-flow-step {
  display: flex;
  align-items: center;
  gap: 24px;
}

.how-flow-step.left {
  justify-content: flex-start;
}

.how-flow-step.right {
  justify-content: flex-end;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--yellow);
  color: #000;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(255,212,0,0.4);
}

.step-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px 28px;
  max-width: 360px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.step-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.step-card p {
  font-size: 14px;
  color: #6f6f6f;
  line-height: 1.4;
}

.how-sticky {
  padding: 80px 20px;
  background: transparent;
}

.how-sticky-container {
  max-width: 1100px;
  margin: 0 auto;
}

.how-sticky-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
  margin-top: 80px;
}

.how-sticky-steps {
  display: none;
}

.how-sticky-steps .step {
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 14px;
  cursor: pointer;
  color: #666;
  transition: all .2s ease;
}

.how-sticky-steps .step.active {
  background: #fff7cc;
  color: #000;
  font-weight: 500;
}

.how-sticky-cards {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.how-card {
  padding: 16px 20px;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.05);
  opacity: 0.35;
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(2px);
}
.how-card.active {
  opacity: 1;
  transform: scale(1);
}

.how-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.how-card p {
  font-size: 15px;
  color: #666;
  max-width: 520px;
}

.how-card-ui {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
}

.guarantees {
  padding: 80px 20px;
}

.guarantees-container {
  max-width: 1100px;
  margin: 0 auto;
}

.guarantees-header {
  text-align: center;
  margin-bottom: 48px;
}

.guarantees-title {
  font-size: 32px;
  margin-bottom: 8px;
}

.guarantees-subtitle {
  font-size: 15px;
  color: #6b7280;
}

.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.guarantee-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(2px);
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow:
    0 12px 32px rgba(0,0,0,0.06),
    0 2px 6px rgba(0,0,0,0.03);
  text-align: left;
}

.guarantee-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 247, 204, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.guarantee-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.guarantee-card p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.4;
}

.guarantees-facts {
  padding: 80px 20px;
}

.guarantees-facts-container {
  max-width: 900px;
  margin: 0 auto;
}

.guarantees-facts-header {
  text-align: center;
  margin-bottom: 40px;
}

.guarantees-facts-header h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

.guarantees-facts-header p {
  font-size: 15px;
  color: #6b7280;
}

.guarantees-facts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
}

.guarantees-facts-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: #1f2937;
}

.fact-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 247, 204, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.fact-text {
  max-width: 360px;
}
.guarantees-rail {
  padding: 100px 20px;
}

.guarantees-rail-container {
  max-width: 900px;
  margin: 0 auto;
}

.guarantees-rail-header {
  text-align: center;
  margin-bottom: 64px;
}

.guarantees-rail-header h2 {
  font-size: 34px;
  margin-bottom: 10px;
}

.guarantees-rail-header p {
  font-size: 15px;
  color: #6b7280;
}

.guarantees-rail-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* центральная линия */
.rail-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(255,212,0,0.6),
    rgba(255,212,0,0.1)
  );
  transform: translateX(-50%);
}

/* элементы */
.rail-item {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.rail-item.left {
  justify-content: flex-start;
}

.rail-item.right {
  justify-content: flex-end;
}

/* иконка */
.rail-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 247, 204, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 8px 24px rgba(255,212,0,0.35);
}

/* текст */
.rail-text {
  max-width: 360px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(2px);
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow:
    0 14px 36px rgba(0,0,0,0.06),
    0 2px 6px rgba(0,0,0,0.03);
}

.rail-text h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.rail-text p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.45;
}

.topbar-nav a {
  position: relative;
  font-size: 14px;
  color: #6b7280;
  text-decoration: none;
  padding: 6px 0;
  transition: color .2s ease;
}

.topbar-nav a.active {
  color: #000;
  font-weight: 500;
}

.topbar-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #ffd400;
  border-radius: 2px;
}

@media (max-width: 768px) {

  /* ---------- GLOBAL ---------- */
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.15;
  }

  h2 {
    font-size: 28px;
  }

  /* ---------- TOPBAR ---------- */
  .topbar-inner {
    padding: 12px 16px;
  }

  .topbar-nav {
    display: none; /* скрываем меню */
  }

  .topbar-actions {
    gap: 8px;
  }

  .topbar-secondary {
    display: none; /* оставляем только Вход */
  }

  /* ---------- HERO ---------- */
  .hero {
    padding: 32px 0 48px;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text p {
    font-size: 16px;
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }

  /* ---------- CALCULATOR ---------- */
  .calc-wrap {
    margin: 0 auto;
    max-width: 420px;
  }

  .calculator {
    padding: 28px 20px;
    border-radius: 24px;
  }

  .rate-badge {
    position: static;
    transform: none;
    margin: 0 auto 16px;
    display: inline-block;
    font-size: 13px;
  }

  .calc-field {
    padding: 18px 18px;
    margin-bottom: 16px;
  }

  .calc-input {
    font-size: 20px;
  }

  .calc-submit {
    height: 56px;
    font-size: 15px;
  }

  /* ---------- HOW (STICKY FLOW) ---------- */
  .how-sticky {
    padding: 56px 16px;
  }

  .how-sticky-body {
    gap: 32px;
    margin-top: 40px;
  }

  .how-card {
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.06);
  }

  .how-card h3 {
    font-size: 18px;
  }

  .how-card p {
    font-size: 14px;
  }

  .how-card-ui {
    font-size: 13px;
    padding: 10px 14px;
  }

  /* ---------- RECEIVE ---------- */
  .receive {
    padding: 56px 16px;
  }

  .receive-header {
    margin-bottom: 32px;
  }

  .receive-title {
    font-size: 26px;
  }

  .receive-subtitle {
    font-size: 14px;
  }

  .receive-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .receive-card {
    padding: 20px;
    border-radius: 18px;
  }

  .receive-content h3 {
    font-size: 16px;
  }

  .receive-content p {
    font-size: 13px;
  }

  /* ---------- GUARANTEES (RAIL) ---------- */
  .guarantees-rail {
    padding: 64px 16px;
  }

  .guarantees-rail-container {
    max-width: 100%;
  }

  .rail-line {
    left: 22px;
  }

  .rail-item {
    justify-content: flex-start !important;
    gap: 14px;
  }

  .rail-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .rail-text {
    max-width: none;
    padding: 16px;
    border-radius: 16px;
  }

  .rail-text h3 {
    font-size: 15px;
  }

  .rail-text p {
    font-size: 13px;
  }

  /* ---------- FOOTER ---------- */
  .footer {
    padding: 48px 16px;
  }

  .footer-card {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .footer-top {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-brand img {
    height: 56px;
    margin: 0 auto 12px;
  }

  .footer-cols {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .footer-col h4 {
    font-size: 14px;
  }

  .footer-col li {
    font-size: 13px;
  }

  .footer-bottom {
    margin-top: 24px;
    font-size: 12px;
  }
}

.topbar-cta {
  background: var(--yellow) !important;
  color: #000 !important;
  appearance: none;
  -webkit-appearance: none;
  border: none;
}

.topbar-cta:visited,
.topbar-cta:active,
.topbar-cta:focus {
  color: #000 !important;
}

.rail-icon {
  position: relative;
  font-size: 0;
}

.rail-icon::before {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* lock */
.rail-icon.lock::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='1.6' viewBox='0 0 24 24'%3E%3Crect x='4' y='11' width='16' height='9' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 018 0v4'/%3E%3C/svg%3E");
}

/* manager */
.rail-icon.manager::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='1.6' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E");
}

/* location */
.rail-icon.location::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='1.6' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s7-7.5 7-12a7 7 0 10-14 0c0 4.5 7 12 7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E");
}

/* support */
.rail-icon.support::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='1.6' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a9 9 0 00-9 9v3a3 3 0 003 3h2v-6H6v-2a6 6 0 1112 0v2h-2v6h2a3 3 0 003-3v-3a9 9 0 00-9-9z'/%3E%3C/svg%3E");
}

/* =========================
   CABINET (One2Cash Style)
   ========================= */

.cabinet {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 16px 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ---------- CARD ---------- */
.cabinet-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(2px);
  border-radius: 24px;
  padding: 28px 32px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.06),
    0 4px 12px rgba(0,0,0,0.03);
}

/* ---------- TITLES ---------- */
.cabinet-card h2 {
  font-size: 22px;
  margin-bottom: 20px;
}

.cabinet-card h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

/* ---------- ORDER GRID ---------- */
.cabinet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 32px;
}

.cabinet-grid span {
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}

.cabinet-grid strong {
  font-size: 16px;
  font-weight: 600;
  color: #000;
}

/* ---------- STATUS ---------- */
.status-steps {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.status-step {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  background: #f3f4f6;
  color: #6b7280;
}

.status-step.done {
  background: #ecfeff;
  color: #0369a1;
}

.status-step.active {
  background: #fff7cc;
  color: #000;
  font-weight: 500;
}

/* ---------- PAYMENT ---------- */
.payment-box {
  background: #fffbe6;
  border-radius: 16px;
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 212, 0, 0.6);
}

/* ---------- BUTTONS ---------- */
.cabinet .btn {
  width: fit-content;
  min-width: 200px;
}

/* ---------- MANAGER ---------- */
.cabinet-card p {
  font-size: 15px;
  color: #374151;
}

/* =========================
   MOBILE CABINET
   ========================= */
@media (max-width: 768px) {

  .cabinet {
    padding: 32px 14px 60px;
    gap: 20px;
  }

  .cabinet-card {
    padding: 20px 18px;
    border-radius: 20px;
  }

  .cabinet-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cabinet-card h2 {
    font-size: 20px;
  }

  .cabinet-card h3 {
    font-size: 16px;
  }

  .status-steps {
    gap: 10px;
  }

  .status-step {
    font-size: 12px;
    padding: 8px 14px;
  }

  .payment-box {
    font-size: 14px;
    padding: 14px 16px;
  }

  .cabinet .btn {
    width: 100%;
  }
}

.login {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(2px);
  border-radius: 28px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.08),
    0 6px 16px rgba(0,0,0,0.04);
  text-align: center;
}

.login-card h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.login-card p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
}

.login-input {
  width: 100%;
  height: 56px;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 0 18px;
  font-size: 16px;
  margin-bottom: 16px;
  outline: none;
}

.login-input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255,212,0,0.25);
}
.telegram-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  width: 100%;
  height: 54px;

  background: linear-gradient(135deg, #ffd400, #ffbf00);
  color: #111;
  font-weight: 600;
  font-size: 16px;

  border-radius: 14px;
  text-decoration: none;

  box-shadow:
    0 10px 25px rgba(255, 200, 0, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.08);

  transition: all 0.2s ease;
}

.telegram-login-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 32px rgba(255, 200, 0, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.telegram-login-btn:active {
  transform: translateY(0);
  box-shadow:
    0 8px 18px rgba(255, 200, 0, 0.3),
    inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.tg-icon {
  font-size: 18px;
}

.tg-login {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

/* =========================
   CALC DIRECTION SWITCH
   ========================= */

.calc-switch {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  width: auto;
  min-width: 92px;
  height: 28px;

  margin-top: 0;

  padding: 0 10px;

  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;

  font-size: 11px;
  font-weight: 500;
  color: var(--muted);

  cursor: pointer;
  transition: all 0.2s ease;
}

/* hover */
.calc-switch:hover {
  border-color: var(--yellow);
  color: var(--text);
  background: #fffbe6;
}

/* текст валют */
.calc-switch span {
  min-width: 28px;
  text-align: center;
}

/* стрелка */
.calc-switch svg {
  width: 12px;
  height: 12px;
  opacity: 0.45;
}

/* === FIX: admin payment button clickable === */

.admin-actions,
.admin-panel,
.admin-chat,
.admin-footer {
  position: relative;
}

.issue-payment-btn,
#issuePaymentBtn,
button[data-action="issue-payment"] {
  position: relative;
  z-index: 1000;
  pointer-events: auto;
}

.calc-mode-btn {
  width: 100%;
  margin: 10px 0 14px;
  padding: 10px 14px;

  background: #FFD400;
  color: #111827;

  border: none;
  border-radius: 12px;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
  transition: all 0.2s ease;
}

.calc-mode-btn:hover {
  background: #ffcc00;
  transform: translateY(-1px);
}

.calc-mode-btn:active {
  transform: translateY(0);
}

.calc-mode-btn {
  width: 100%;
  margin: 10px 0 14px;
  padding: 10px 14px;

  background: #FFD400;
  color: #111827;

  border: none;
  border-radius: 12px;

  font-size: 14px;
  font-weight: 600;
  text-align: center;

  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.calc-mode-btn:hover {
  background: #ffcc00;
  transform: translateY(-1px);
}

.calc-mode-btn:active {
  transform: translateY(0);
}
.calc-mode {
  display: flex;
  justify-content: center;
  margin: 8px 0 14px;
}

.calc-mode-pill {
  padding: 6px 14px;

  background: #f8fafc;
  color: #475569;

  border: 1px solid #e2e8f0;
  border-radius: 999px;

  font-size: 13px;
  font-weight: 500;

  cursor: pointer;
  transition: all 0.2s ease;
}

.calc-mode-pill:hover {
  background: #fff;
  border-color: #cbd5f5;
  color: #1e293b;
}

.calc-mode-pill.active {
  background: #fff7cc;
  border-color: #FFD400;
  color: #111827;
}
.calc-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.calc-mode-inline {
  padding: 4px 10px;

  background: transparent;
  color: #64748b;

  border: 1px dashed #e5e7eb;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 500;

  cursor: pointer;
  transition: all 0.2s ease;
}

.calc-mode-inline:hover {
  background: #fff7cc;
  border-color: #FFD400;
  color: #111827;
}

.calc-mode-inline.active {
  background: #fff7cc;
  border-color: #FFD400;
  color: #111827;
}

/* ===== FIX: место для кнопки над калькулятором ===== */
.calc-wrap {
  position: relative;
  padding-top: 36px; /* место под кнопку */
}

/* кнопка-переключатель */
#toggleCalcMode {
  position: relative;
  z-index: 3;
}

/* бейдж курса — ниже кнопки */
.calculator .rate-badge {
  z-index: 1;
}
/* ===== CALC MODE TOGGLE (BEAUTIFUL) ===== */
#toggleCalcMode {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 18px;
  margin: 0 auto 14px;

  max-width: 320px; 
  width: fit-content; 

  background: #fff;
  color: #475569;

  border: 1px solid #e5e7eb;
  border-radius: 999px;

  font-size: 13px;
  font-weight: 500;

  box-shadow: 0 6px 16px rgba(0,0,0,0.06);

  cursor: pointer;
  transition: all 0.2s ease;
}

/* hover — мягкий, без агрессии */
#toggleCalcMode:hover {
  background: #fffbe6;
  border-color: #ffd400;
  color: #111827;
  box-shadow:
    0 10px 26px rgba(255,212,0,0.25);
}

/* active mode (когда включён режим THB) */
#toggleCalcMode.active {
  background: #ffd400;
  color: #000;
  border-color: #ffd400;
  box-shadow:
    0 12px 30px rgba(255,212,0,0.45);
}

/* ===== CALC MODE ANIMATION ===== */

.calc-wrap {
  position: relative;
}

/* оба калькулятора в одном месте */
.calculator {
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* скрытое состояние */
.calculator.is-hidden {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  position: absolute;
  inset: 0;
}

/* активное состояние */
.calculator.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  position: relative;
}

/* кнопка режима — лёгкая анимация */
#toggleCalcMode {
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

#toggleCalcMode:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
/* ===== CALC MODE ANIMATION (FIXED) ===== */

.calculator {
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* скрытый */
.calculator.is-hidden {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}

/* активный */
.calculator.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  position: relative;
}
.calc-wrap {
  position: relative;
  min-height: 520px;
}
.target-direction {
  text-align: center;
  font-size: 14px;
  opacity: 0.6;
  margin-bottom: 10px;
}
/* ===== CALC DIRECTION SWITCH (CENTERED BETWEEN FIELDS) ===== */

.calc-switch {
  position: relative;
  z-index: 3;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  height: 28px;
  min-width: 96px;
  padding: 0 12px;

  margin: -12px auto -12px; /* 🔥 ВРЕЗАЕМСЯ между карточками */

  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;

  font-size: 11px;
  font-weight: 500;
  color: var(--muted);

  cursor: pointer;
  transition: all 0.2s ease;
}

/* hover */
.calc-switch:hover {
  background: #fffbe6;
  border-color: var(--yellow);
  color: #000;
}

/* текст валют */
.calc-switch span {
  min-width: 28px;
  text-align: center;
}

/* стрелка */
.calc-switch svg {
  width: 12px;
  height: 12px;
  opacity: 0.5;
}
/* === FORCE CENTER calc-switch in both calculators === */
.calculator {
  display: flex;
  flex-direction: column;
}

.calculator .calc-switch {
  align-self: center;
}
#normalCalc {
  padding-top: 28px;
}

#targetCalc {
  display: flex;
  flex-direction: column;
}

/* порядок элементов внутри #targetCalc */
#targetCalc > .rate-badge { order: 1; }
#targetCalc > .calc-field:not(.yellow) { order: 2; }  /* "Хочу получить" */
#targetCalc > .calc-switch { 
  order: 3; 
  margin: -12px auto -12px;  /* врезка как в normalCalc */
  align-self: center;
}
#targetCalc > .calc-field.yellow { order: 4; }         /* "Нужно оплатить" */
#targetCalc > .calc-submit { order: 5; }
.calc-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: -6px auto 10px;
  padding: 4px 10px;
  height: 26px;
  border-radius: 999px;
}

.order.unread {
  border-color: #facc15;
  background: #fffbea;
}

.unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  margin-left: 8px;
}
/* ===== CONTACT CTA CENTER FIX ===== */

.contact-cta {
  padding: 80px 20px;
  display: flex;
  justify-content: center;
}

.contact-cta-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 900px;
}

/* мобильная версия */
@media (max-width: 768px) {
  .contact-cta-container {
    flex-direction: column;
  }

  .contact-cta-container .btn {
    width: 100%;
    max-width: 320px;
  }
}
/* ===== FINAL HERO MOBILE FIX ===== */
@media (max-width: 768px) {

  .hero {
    padding-top: 24px !important;
    padding-bottom: 12px !important;
  }

  .hero-text {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .hero-text p {
    margin-bottom: 12px !important;
  }

  .calc-wrap {
    margin-top: 12px !important;
  }

}

.hero-grid {
  gap: 16px !important;
}
html {
  scroll-behavior: smooth;
}
.how-card{
  will-change: transform, opacity;
  transition: opacity .35s ease, transform .35s ease;
  transform-origin: center;
}
.how-card { transform: scale(0.985); opacity: .45; }
.how-card.active { transform: scale(1); opacity: 1; }

@media (max-width: 900px){
  .how-card,
  .footer-card,
  .cabinet-card{
    backdrop-filter: none !important;
  }

  .how-card{
    box-shadow: 0 10px 28px rgba(0,0,0,0.06) !important;
  }
}

@media (max-width: 900px) {
  .topbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255,255,255,0.97) !important;
  }
}

@media (max-width: 900px) {
  .how-card,
  .rail-text,
  .guarantee-card,
  .footer-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}
.map-link {
  display: inline-block;
  margin-left: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #facc15;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

.map-link:hover {
  background: #fde047;
}