/* ===============================
   ROOT / RESET
================================ */
: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
================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===============================
   BACKGROUND LOGOS
================================ */
#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
================================ */
.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;
}

/* ===============================
   BUTTONS
================================ */
.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: 1px solid var(--border);
  color: #000;
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===============================
   CALCULATOR
================================ */
.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);
}

/* Submit */
.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 SECTION
================================ */
.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
================================ */
.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;
}

/* ===============================
   MOBILE
================================ */
@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;
  }
}
