/* ═══ NAM0NETY — Bold typography, separate exchange section ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.6; color: #0F172A; background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input { font-family: inherit; }
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
.container { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 16px; }

/* ─── HEADER (solid navy) ─── */
.header { position: sticky; top: 0; z-index: 200; background: #1E3A8A; }
.header .container { display: flex; align-items: center; height: 56px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; color: #fff; }
.logo-icon { width: 30px; height: 30px; background: rgba(255,255,255,.15); border-radius: 7px; display: flex; align-items: center; justify-content: center; }
.logo strong { color: #93C5FD; }
.nav { display: none; }
.burger { display: flex; flex-direction: column; gap: 4px; margin-left: auto; padding: 6px; }
.burger span { display: block; width: 20px; height: 2px; background: rgba(255,255,255,.8); border-radius: 2px; }
@media (min-width: 640px) {
  .nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
  .nav a { padding: 6px 14px; border-radius: 6px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.7); transition: all .2s; }
  .nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
  .burger { display: none; }
}
.nav.open { display: flex; flex-direction: column; position: fixed; top: 56px; left: 0; right: 0; background: #1E3A8A; border-bottom: 1px solid rgba(255,255,255,.1); padding: 12px 16px; z-index: 199; }
.nav.open a { padding: 13px 0; font-size: 15px; color: rgba(255,255,255,.8); border-bottom: 1px solid rgba(255,255,255,.08); }

/* ─── HERO: big text, no form ─── */
.hero { padding: 56px 0 48px; background: linear-gradient(160deg, #EFF6FF 0%, #fff 70%); }
.hero-badge { display: inline-block; border: 2px solid #1D4ED8; color: #1D4ED8; padding: 5px 14px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { font-size: 36px; font-weight: 900; line-height: 1.08; letter-spacing: -.04em; color: #0F172A; margin-bottom: 18px; }
.hero-sub { font-size: 16px; color: #475569; line-height: 1.7; margin-bottom: 32px; max-width: 500px; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; max-width: 320px; }
.btn-primary { display: flex; align-items: center; justify-content: center; gap: 8px; background: #1D4ED8; color: #fff; padding: 14px 28px; border-radius: 8px; font-weight: 700; font-size: 15px; transition: all .2s; }
.btn-primary:hover { background: #1E40AF; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(29,78,216,.3); }
.btn-outline { display: flex; align-items: center; justify-content: center; border: 2px solid #BFDBFE; color: #1D4ED8; padding: 13px 28px; border-radius: 8px; font-weight: 700; font-size: 15px; transition: all .2s; background: transparent; }
.btn-outline:hover { border-color: #1D4ED8; background: #EFF6FF; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #64748B; align-items: center; }
.hero-proof span { font-weight: 500; }
@media (min-width: 540px) {
  .hero { padding: 80px 0 60px; }
  .hero h1 { font-size: 56px; }
  .hero-actions { flex-direction: row; max-width: none; }
  .btn-primary, .btn-outline { width: auto; }
}
@media (min-width: 900px) {
  .hero h1 { font-size: 72px; }
}

/* ─── EXCHANGE SECTION (full-width, separate) ─── */
.exchange-section { background: #F8FAFF; padding: 56px 0; border-top: 3px solid #1D4ED8; }
.ex-wrap { display: flex; flex-direction: column; gap: 32px; }
.ex-info h2 { font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.ex-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.ex-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #374151; }
.check { width: 22px; height: 22px; border-radius: 50%; background: #1D4ED8; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #6B7280; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #10B981; animation: pulse 2s infinite; }
.live-dot.error { background: #EF4444; animation: none; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.4} }
.exchange-card { background: #fff; border: 2px solid #BFDBFE; border-radius: 14px; padding: 20px 16px; box-shadow: 0 4px 24px rgba(29,78,216,.08); }
.card-row { margin-bottom: 8px; }
.card-row label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #9CA3AF; margin-bottom: 7px; }
.input-wrap { display: flex; border: 1.5px solid #BFDBFE; border-radius: 9px; overflow: visible; transition: border-color .2s; }
.input-wrap:focus-within { border-color: #1D4ED8; box-shadow: 0 0 0 3px rgba(29,78,216,.1); }
.cur-select { position: relative; flex-shrink: 0; }
.cur-btn { display: flex; align-items: center; gap: 6px; padding: 12px 10px 12px 12px; background: #EFF6FF; border-right: 1.5px solid #BFDBFE; border-radius: 0; min-width: 98px; white-space: nowrap; transition: background .15s; }
.cur-btn:hover { background: #DBEAFE; }
.cur-icon { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; background: #BFDBFE; flex-shrink: 0; }
.cur-label { font-size: 13px; font-weight: 700; color: #0F172A; }
.cur-drop { position: absolute; top: calc(100% + 6px); left: 0; width: 220px; background: #fff; border: 1.5px solid #BFDBFE; border-radius: 9px; box-shadow: 0 8px 30px rgba(0,0,0,.1); z-index: 500; display: none; }
.cur-drop.open { display: block; }
.cur-drop.drop-up { top: auto; bottom: calc(100% + 6px); }
.currency-search { width: 100%; padding: 10px 12px; border: none; border-bottom: 1px solid #E5E7EB; outline: none; font-size: 13px; border-radius: 9px 9px 0 0; }
.currency-list { list-style: none; max-height: 200px; overflow-y: auto; padding: 4px 0; }
.currency-list li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; font-size: 13px; font-weight: 500; }
.currency-list li:hover, .currency-list li.selected { background: #DBEAFE; color: #1D4ED8; }
.currency-list .c-name { flex: 1; }
.currency-list .c-full { font-size: 11px; color: #9CA3AF; }
.num-input { flex: 1; border: none; outline: none; padding: 12px 10px; font-size: 19px; font-weight: 700; color: #0F172A; background: transparent; min-width: 0; max-width: 100%; }
.num-input[readonly] { color: #6B7280; }
.card-mid { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.swap-btn { width: 34px; height: 34px; border-radius: 50%; background: #DBEAFE; color: #1D4ED8; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .2s; }
.swap-btn:hover { background: #1D4ED8; color: #fff; transform: rotate(180deg); }
.rate-text { font-size: 12px; color: #9CA3AF; }
.exchange-btn { display: block; width: 100%; padding: 14px; background: #1D4ED8; color: #fff; border-radius: 9px; font-size: 15px; font-weight: 700; margin-top: 14px; transition: background .2s, transform .15s; }
.exchange-btn:hover { background: #1E40AF; transform: translateY(-1px); }
.card-note { font-size: 11px; color: #9CA3AF; text-align: center; margin-top: 8px; }

@media (max-width: 400px) {
  .cur-drop { width: calc(100vw - 40px); }
  .cur-btn { min-width: 82px; }
}
@media (min-width: 800px) {
  .ex-wrap { flex-direction: row; align-items: flex-start; gap: 48px; }
  .ex-info { flex: 1; }
  .ex-info h2 { font-size: 28px; }
  .exchange-card { flex: 0 0 420px; }
}

/* ─── RATES (card grid) ─── */
.rates { padding: 56px 0; background: #fff; }
.rates-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.rates-head h2 { font-size: 22px; font-weight: 800; }
.rates-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.rf-btn { padding: 7px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; border: 1.5px solid #BFDBFE; color: #1D4ED8; background: #fff; cursor: pointer; transition: all .2s; }
.rf-btn.active, .rf-btn:hover { background: #1D4ED8; color: #fff; border-color: #1D4ED8; }
.rates-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.rate-card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid #E5E7EB; border-radius: 10px; transition: all .2s; overflow: hidden; min-width: 0; }
.rate-card:hover { border-color: #1D4ED8; background: #EFF6FF; }
.rate-pair { display: flex; align-items: center; gap: 5px; flex: 1; min-width: 0; overflow: hidden; }
.rc-icon { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: #fff; flex-shrink: 0; }
.rc-name { font-size: 13px; font-weight: 700; white-space: nowrap; }
.rc-fname { font-size: 11px; color: #9CA3AF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-arrow { color: #BFDBFE; font-size: 14px; flex-shrink: 0; }
.rate-info { text-align: right; flex-shrink: 0; min-width: 0; }
.rate-price { font-size: 12px; font-weight: 700; color: #0F172A; white-space: nowrap; }
.rate-min-label { font-size: 11px; color: #9CA3AF; white-space: nowrap; }
.rate-action-btn { padding: 7px 12px; border-radius: 6px; background: #DBEAFE; color: #1D4ED8; font-size: 12px; font-weight: 700; cursor: pointer; border: none; transition: all .2s; flex-shrink: 0; white-space: nowrap; }
.rate-action-btn:hover { background: #1D4ED8; color: #fff; }
@media (min-width: 560px) {
  .rates-grid { grid-template-columns: 1fr 1fr; }
  .rates-head h2 { font-size: 28px; }
}
@media (min-width: 900px) {
  /* 2 cols max — 3 cols cramped the card content */
  .rates-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rate-card { padding: 14px 18px; gap: 14px; }
  .rc-icon { width: 32px; height: 32px; font-size: 12px; }
  .rc-name { font-size: 14px; }
  .rate-price { font-size: 13px; }
  .rate-action-btn { padding: 8px 16px; font-size: 13px; }
}
@media (min-width: 1200px) {
  .rates-grid { grid-template-columns: 1fr 1fr 1fr; }
  /* at 1200px+ each card is ~370px — enough for 3 cols */
}

/* ─── FEATURES: alternating blocks ─── */
.features { padding: 56px 0; background: #EFF6FF; }
.features h2 { font-size: 22px; font-weight: 800; margin-bottom: 36px; text-align: center; }
.feat-blocks { display: flex; flex-direction: column; gap: 0; }
.feat-block { display: flex; flex-direction: column; gap: 20px; padding: 32px 0; border-bottom: 1px solid #BFDBFE; }
.feat-block:last-child { border-bottom: none; }
.feat-visual { display: flex; justify-content: center; }
.feat-icon-big { width: 72px; height: 72px; background: #1D4ED8; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.feat-content h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; color: #0F172A; }
.feat-content p { font-size: 14px; color: #475569; line-height: 1.7; }
@media (min-width: 640px) {
  .feat-block { flex-direction: row; align-items: center; gap: 36px; }
  .feat-block--rev { flex-direction: row-reverse; }
  .feat-visual { flex: 0 0 120px; }
  .feat-icon-big { width: 90px; height: 90px; font-size: 40px; }
  .feat-content h3 { font-size: 20px; }
  .features h2 { font-size: 28px; }
}

/* ─── FAQ ─── */
.faq { padding: 56px 0; background: #fff; }
.faq h2 { font-size: 22px; font-weight: 800; margin-bottom: 24px; }
.faq-list { display: flex; flex-direction: column; gap: 6px; max-width: 720px; }
.faq-item { border: 1.5px solid #E5E7EB; border-radius: 10px; overflow: hidden; }
.faq-item.open { border-color: #1D4ED8; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; font-size: 14px; font-weight: 600; text-align: left; gap: 12px; color: #0F172A; }
.faq-q:hover { background: #EFF6FF; }
.faq-ic { font-size: 20px; font-weight: 300; color: #1D4ED8; flex-shrink: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p { padding: 0 18px 16px; font-size: 14px; color: #475569; line-height: 1.7; }
@media (min-width: 600px) { .faq h2 { font-size: 28px; } }

/* ─── CONTACTS ─── */
.contacts { padding: 48px 0; background: #1E3A8A; }
.contacts-inner { display: flex; flex-direction: column; gap: 24px; }
.contacts h2 { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.contacts p { font-size: 15px; color: rgba(255,255,255,.65); }
.contacts-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.contacts .btn-primary { background: #fff; color: #1D4ED8; }
.contacts .btn-primary:hover { background: #EFF6FF; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.contacts .btn-outline { border: 2px solid rgba(255,255,255,.3); color: #fff; }
.contacts .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }
@media (min-width: 640px) {
  .contacts-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
  .contacts h2 { font-size: 28px; }
}

/* ─── FOOTER ─── */
.footer { background: #0F172A; color: #475569; padding: 32px 0 20px; }
.footer-inner { display: flex; flex-direction: column; gap: 20px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.06); }
.footer .logo { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { font-size: 13px; color: #475569; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { font-size: 12px; }
@media (min-width: 640px) {
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ─── MODAL ─── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; border-radius: 16px; padding: 32px 24px; max-width: 380px; width: 100%; text-align: center; position: relative; animation: popIn .25s ease; }
@keyframes popIn { from{opacity:0;transform:scale(.9)} to{opacity:1;transform:scale(1)} }
.modal-close { position: absolute; top: 12px; right: 14px; font-size: 24px; color: #6B7280; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.modal-check { width: 52px; height: 52px; border-radius: 50%; background: #DBEAFE; color: #1D4ED8; font-size: 22px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.modal-box h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.modal-box p { font-size: 14px; color: #475569; line-height: 1.6; margin-bottom: 20px; }

/* TG float */
#tg-float-btn { position: fixed; bottom: 20px; right: 16px; width: 50px; height: 50px; background: #1D4ED8; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(29,78,216,.4); z-index: 999; transition: transform .2s; }
#tg-float-btn:hover { transform: scale(1.1); }
