:root {
  --bg: #0A111F;
  --bg-2: #0D1628;
  --card: #111C31;
  --card-2: #16233C;
  --line: #22324F;
  --line-2: #2C3F62;
  --text: #E9EDF5;
  --muted: #8C99B3;
  --gold: #C9A45C;
  --gold-2: #E3C88A;
  --gold-3: #9C7A3C;
  --danger: #F0716B;
  --ok: #4FC08D;
  --radius: 14px;
  --font: 'Inter', 'Noto Sans Armenian', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
html[lang="hy"] body { font-family: 'Noto Sans Armenian', 'Inter', system-ui, sans-serif; }
body.no-scroll { overflow: hidden; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.gold { background: linear-gradient(90deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: .02em; }

/* header */
.header { position: sticky; top: 0; z-index: 40; background: rgba(10, 17, 31, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-name { font-family: 'Cinzel', Georgia, serif; font-weight: 600; font-size: 19px; letter-spacing: .14em; white-space: nowrap; }
.brand-name b { color: var(--gold); font-weight: 700; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 500; font-size: 14px; }
.nav a:hover { color: var(--text); text-decoration: none; }
.lang-switch { display: flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.lang-switch button { background: none; border: 0; color: var(--muted); font: 600 12px var(--font); padding: 7px 10px; cursor: pointer; letter-spacing: .04em; }
.lang-switch button.active { background: var(--gold); color: #10182A; }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px 8px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

/* hero */
.hero {
  position: relative; padding: 64px 0 80px; overflow: hidden;
  background:
    radial-gradient(800px 400px at 85% 0%, rgba(201, 164, 92, .10), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(39, 80, 160, .14), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 470px; grid-template-areas: 'text card' 'extra card'; grid-template-rows: auto 1fr; column-gap: 56px; align-items: start; }
.hero-text { grid-area: text; }
.hero-extra { grid-area: extra; }
.exchange { grid-area: card; }
.kicker { display: inline-block; color: var(--gold); font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; border: 1px solid rgba(201, 164, 92, .35); padding: 6px 12px; border-radius: 999px; }
h1 { font-size: 48px; line-height: 1.12; margin: 22px 0 18px; font-weight: 700; letter-spacing: -.01em; }
html[lang="hy"] h1 { font-size: 40px; }
.lead { color: var(--muted); font-size: 17px; max-width: 540px; margin: 0 0 26px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; font-weight: 500; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(201, 164, 92, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23C9A45C' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}
.notice { margin-top: 28px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(201, 164, 92, .4); background: rgba(201, 164, 92, .08); color: var(--gold-2); }


/* hero: live rates, facts, methods */
.live-rates { margin-top: 34px; background: linear-gradient(180deg, rgba(22, 35, 60, .7), rgba(17, 28, 49, .7)); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.live-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.live-head h3 { margin: 0; font-size: 15px; letter-spacing: .02em; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.live-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(79, 192, 141, .6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(79, 192, 141, .55); } 70% { box-shadow: 0 0 0 8px rgba(79, 192, 141, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 192, 141, 0); } }
.live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.live-card { display: block; width: 100%; text-align: left; font: inherit; color: var(--text); cursor: pointer; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; transition: border-color .15s, transform .15s; }
.live-card:hover { border-color: var(--gold-3); transform: translateY(-1px); }
.live-pair { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.live-pair b { display: block; font-size: 14px; }
.live-pair small { color: var(--muted); font-size: 11px; }
.live-vals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.live-vals span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.live-vals b { font-size: 16px; font-variant-numeric: tabular-nums; }
.live-vals div:first-child b { color: var(--gold-2); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.fact { padding: 16px 18px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact b { display: block; font-family: 'Cinzel', Georgia, serif; font-size: 22px; color: var(--gold-2); white-space: nowrap; }
.fact span { color: var(--muted); font-size: 12.5px; line-height: 1.35; display: block; margin-top: 2px; }
.methods { margin-top: 22px; }
.methods-label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.methods-row { display: flex; flex-wrap: wrap; gap: 8px; }
.method { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(13, 22, 40, .6); font-size: 12.5px; font-weight: 500; }

/* card / exchange */
.card { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.exchange { padding: 26px; position: relative; }
.exchange::before { content: ''; position: absolute; inset: 0 24px auto; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .7; }
.card-title { margin: 0 0 18px; font-size: 20px; }
.ex-block { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 14px; }
.ex-label { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.ex-label .hint { text-align: right; font-size: 12px; }
.ex-row { display: flex; align-items: center; gap: 10px; }
.amount { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: 600 26px var(--font); padding: 4px 0; }
.amount.invalid { color: var(--danger); }
.cur-btn { display: flex; align-items: center; gap: 9px; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 7px 10px 7px 8px; color: var(--text); cursor: pointer; min-width: 168px; font: inherit; text-align: left; }
.cur-btn:hover { border-color: var(--gold-3); }
.cur-btn-txt { display: flex; flex-direction: column; line-height: 1.2; flex: 1; }
.cur-btn-txt b { font-size: 14px; }
.cur-btn-txt small { color: var(--muted); font-size: 11px; }
.cur-btn .chev { color: var(--muted); flex: none; }
.swap { display: grid; place-items: center; width: 38px; height: 38px; margin: -9px auto; position: relative; z-index: 2; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 50%; color: var(--gold); cursor: pointer; }
.swap:hover { border-color: var(--gold); }
.rate-line { margin: 14px 2px 4px; color: var(--muted); font-size: 14px; }
.rate-line b { color: var(--text); }
.section-label { margin: 20px 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px; color: var(--text);
  padding: 12px 13px; font: 15px var(--font); outline: none; transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 44px; }
.field input:focus, .field textarea:focus { border-color: var(--gold-3); }
.field input.invalid { border-color: var(--danger); }
.field-err { color: var(--danger); font-size: 12px; min-height: 0; margin-top: 4px; }
.field-err:empty { display: none; }
.note { margin: -2px 0 12px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.seg button { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); border-radius: 11px; padding: 11px; font: 600 14px var(--font); cursor: pointer; }
.seg button.active { border-color: var(--gold); color: var(--text); background: rgba(201, 164, 92, .08); }
.seg button[data-ct="telegram"].active svg { color: #2AABEE; }
.seg button[data-ct="whatsapp"].active svg { color: #25D366; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; margin: 6px 0 4px; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--gold); flex: none; }
.form-error { margin: 12px 0 0; padding: 11px 13px; border-radius: 10px; background: rgba(240, 113, 107, .1); border: 1px solid rgba(240, 113, 107, .35); color: var(--danger); font-size: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 14px 22px; font: 600 15px var(--font); cursor: pointer; border: 1px solid transparent; text-decoration: none !important; }
.btn-block { width: 100%; margin-top: 14px; }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-3)); color: #111A2C; letter-spacing: .02em; }
.btn-gold:hover { filter: brightness(1.06); }
.btn-gold:disabled { opacity: .6; cursor: progress; }
.btn-outline { border-color: var(--gold); color: var(--gold-2); background: none; }
.btn-ghost { background: none; color: var(--muted); }

.success { text-align: center; padding: 20px 6px; }
.success-icon { width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: rgba(79, 192, 141, .12); color: var(--ok); border: 1px solid rgba(79, 192, 141, .4); }
.success h2 { margin: 0 0 10px; }
.success p { color: var(--muted); }
.success p b { color: var(--gold-2); }

/* sections */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: 32px; margin: 0 0 36px; letter-spacing: -.01em; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-n { font-family: 'Cinzel', Georgia, serif; color: var(--gold); font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.step h3, .adv-item h3 { margin: 0 0 8px; font-size: 17px; }
.step p, .adv-item p { margin: 0; color: var(--muted); font-size: 14px; }
.adv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.adv-item { padding: 6px 4px; }
.adv-item svg { width: 40px; height: 40px; color: var(--gold); padding: 8px; border: 1px solid rgba(201, 164, 92, .35); border-radius: 12px; margin-bottom: 16px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.dir-table { width: 100%; border-collapse: collapse; min-width: 460px; }
.dir-table th, .dir-table td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.dir-table th { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--bg-2); }
.dir-table tr:last-child td { border-bottom: 0; }
.dir-cur { display: flex; gap: 12px; align-items: center; }
.dir-cur b { display: block; font-size: 14px; }
.dir-cur small { color: var(--muted); font-size: 12px; }

.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

.footer { padding: 48px 0; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-h { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); font-weight: 600; margin-bottom: 10px; }
.footer-links { display: grid; gap: 6px; }

/* floating support */
.support-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px; border-radius: 999px; background: #229ED9; color: #fff !important; font-weight: 600; font-size: 15px;
  box-shadow: 0 10px 30px rgba(34, 158, 217, .35), 0 2px 8px rgba(0, 0, 0, .3); text-decoration: none !important; transition: transform .15s, box-shadow .15s;
}
.support-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(34, 158, 217, .45), 0 2px 8px rgba(0, 0, 0, .3); }
@media (max-width: 560px) { .support-fab { right: 14px; bottom: 14px; padding: 11px 16px 11px 12px; font-size: 14px; } }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(4, 8, 16, .72); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-box { width: 100%; max-width: 440px; max-height: min(640px, 90vh); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; }
.modal-text { max-width: 620px; padding: 0 22px 18px; overflow-y: auto; }
.modal-text .modal-head { padding: 18px 0 6px; }
.modal-text h3 { margin: 0; }
.modal-text p { color: var(--muted); }
.modal-head { display: flex; gap: 10px; align-items: center; padding: 14px; justify-content: space-between; }
.modal-head input { flex: 1; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 11px 12px; font: 15px var(--font); outline: none; }
.modal-x { background: none; border: 0; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; width: 36px; height: 36px; }
.modal-head, .tabs { flex: none; }
.tabs { display: flex; align-items: center; gap: 6px; padding: 0 14px 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { flex: none; line-height: 1.3; background: none; border: 1px solid var(--line); color: var(--muted); padding: 6px 12px; border-radius: 999px; font: 500 13px var(--font); cursor: pointer; white-space: nowrap; }
.tabs button.active { border-color: var(--gold); color: var(--gold-2); }
.cur-list { overflow-y: auto; padding: 8px; }
.cur-item { display: flex; gap: 12px; align-items: center; width: 100%; background: none; border: 1px solid transparent; color: var(--text); padding: 9px 10px; border-radius: 11px; cursor: pointer; text-align: left; font: inherit; }
.cur-item:hover { background: var(--card-2); }
.cur-item.sel { border-color: var(--gold-3); background: rgba(201, 164, 92, .07); }
.cur-item.dim { opacity: .55; }
.cur-item span { display: flex; flex-direction: column; line-height: 1.25; }
.cur-item small { color: var(--muted); font-size: 12px; }

/* order status page */
.status-page { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 40px 20px; }
.status-card { width: 100%; max-width: 520px; padding: 30px; }
.status-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; border: 1px solid; }
.status-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st-new { color: #7DB4FF; border-color: rgba(125, 180, 255, .4); }
.st-in_progress { color: var(--gold-2); border-color: rgba(201, 164, 92, .5); }
.st-done { color: var(--ok); border-color: rgba(79, 192, 141, .45); }
.st-cancelled { color: var(--danger); border-color: rgba(240, 113, 107, .45); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 22px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; word-break: break-all; }

/* responsive */
@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'text' 'card' 'extra'; grid-template-rows: auto; row-gap: 32px; }
  .hero-extra .live-rates { margin-top: 0; }
  .hero-grid > * { min-width: 0; }
  .exchange { max-width: 560px; width: 100%; }
  .steps, .adv { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav { position: fixed; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; display: none; }
  .nav a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  body.nav-open .nav { display: flex; }
  .burger { display: block; }
  .lang-switch { margin-left: auto; }
  .header-inner { gap: 12px; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 13px; letter-spacing: .08em; }
  .brand img { width: 30px; height: 30px; }
  .lang-switch button { padding: 6px 7px; font-size: 11px; }
  .burger { width: 34px; padding: 10px 4px; }
  .hero { padding: 36px 0 56px; }
  h1, html[lang="hy"] h1 { font-size: 31px; }
  .lead { font-size: 15px; }
  .exchange { padding: 18px 14px; border-radius: 16px; }
  .cur-btn { min-width: 0; max-width: 52%; }
  .cur-btn-txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .amount { font-size: 22px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 25px; margin-bottom: 24px; }
  .steps, .adv { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .live-grid { grid-template-columns: 1fr; }
  .fact { padding: 12px 10px; }
  .fact b { font-size: 17px; }
  .fact span { font-size: 11.5px; }
  .modal { padding: 0; align-items: end; }
  .modal-box { max-width: none; border-radius: 18px 18px 0 0; max-height: 85vh; }
}
