:root {
  --ink: #111;
  --paper: #fafafa;
  --muted: #666;
  --rule: #d8d8d8;
  --soft: #f1f1f1;
  --ok: #0b6b35;
  --bad: #9e1c1c;
}

* { box-sizing: border-box; }
html[dir="rtl"] body { direction: rtl; }
body {
  margin: 0;
  font-family: "Noto Sans", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.topbar {
  min-height: 66px;
  border-bottom: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 10;
}
.brand {
  font-weight: 900;
  font-size: 1.35rem;
  text-decoration: none;
  letter-spacing: 0;
}
.nav-actions { display: flex; gap: 0; }
.nav-link {
  background: transparent;
  border: 1.5px solid var(--ink);
  border-right: 0;
  padding: 9px 15px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.nav-link:last-child { border-right: 1.5px solid var(--ink); }
.nav-link.dark { background: var(--ink); color: var(--paper); }
.nav-anchor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--ink);
  border-right: 0;
  padding: 9px 15px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-anchor:last-child { border-right: 1.5px solid var(--ink); }
.nav-anchor.dark { background: var(--ink); color: var(--paper); }

.shell { max-width: 1220px; margin: 0 auto; }
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  border-bottom: 1.5px solid var(--ink);
}
.hero-copy {
  padding: 54px 32px;
  border-right: 1.5px solid var(--ink);
}
.kicker {
  display: inline-flex;
  border: 1.5px solid var(--ink);
  padding: 5px 10px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
h1, h2, h3, p { margin: 0; }
h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  line-height: .94;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 28px;
}
.lead {
  color: #444;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 620px;
  margin-bottom: 28px;
}
.hero-panel {
  padding: 42px 28px;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
}
.wallet-card {
  width: min(390px, 100%);
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  padding: 26px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.wallet-card.light {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
}
.wallet-card .mini { opacity: .5; font-size: .62rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.wallet-card .name { font-weight: 900; font-size: 2rem; margin-top: 22px; }
.wallet-card .role { opacity: .58; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }
.wallet-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 38px; }
.price-box {
  border: 1.5px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 32px;
}
.price-box div { padding: 16px; border-right: 1.5px solid var(--ink); }
.price-box div:last-child { border-right: 0; }
.price-label { color: #777; font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.price-value { margin-top: 5px; font-weight: 900; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 13px 18px;
  font-weight: 850;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.full { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.band {
  border-bottom: 1.5px solid var(--ink);
  padding: 22px 32px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1.5px solid var(--ink);
}
.pane { padding: 30px; }
.pane + .pane { border-left: 1.5px solid var(--ink); }
.section-title { font-size: 1.4rem; font-weight: 900; margin-bottom: 18px; }
.big-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: .98;
  margin-bottom: 18px;
}
.section-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  font-weight: 850;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 0;
  border-right: 0;
}
.steps-list {
  display: grid;
  grid-template-columns: 1fr;
}
.steps-list div {
  padding: 24px;
  border-left: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
.steps-list div:last-child { border-bottom: 0; }
.steps-list span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  font-size: .72rem;
  font-weight: 900;
  margin-bottom: 14px;
}
.steps-list strong { display: block; margin-bottom: 6px; }
.steps-list p { color: #555; line-height: 1.55; }
.spec-list {
  border: 1.5px solid var(--ink);
}
.spec-list div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px;
  border-bottom: 1.5px solid var(--ink);
}
.spec-list div:last-child { border-bottom: 0; }
.spec-list span {
  color: #777;
  font-size: .67rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.spec-list strong {
  font-size: .9rem;
  line-height: 1.5;
}
.faq-strip {
  border-bottom: 1.5px solid var(--ink);
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-page {
  border-bottom: 1.5px solid var(--ink);
  max-width: 980px;
}
.form-stack { display: flex; flex-direction: column; gap: 12px; }
.field-label {
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 6px;
}
.field {
  width: 100%;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  padding: 12px 13px;
  min-height: 46px;
  border-radius: 0;
  outline: 0;
}
.field:focus { background: var(--soft); }
textarea.field { min-height: 96px; resize: vertical; }
.username {
  display: flex;
  border: 1.5px solid var(--ink);
}
.username span {
  background: var(--soft);
  border-right: 1.5px solid var(--ink);
  padding: 12px 13px;
  font-weight: 800;
  color: #555;
  white-space: nowrap;
}
.username input { border: 0; flex: 1; min-width: 0; }
.hint { color: #777; font-size: .74rem; line-height: 1.5; }
.ok { color: var(--ok); }
.bad { color: var(--bad); }
.profile-card {
  border: 1.5px solid var(--ink);
  padding: 24px;
  background: var(--paper);
}
.profile-name { font-size: 2rem; font-weight: 900; line-height: 1; margin-bottom: 8px; }
.profile-meta { color: #555; line-height: 1.5; }
.link-list { display: grid; gap: 8px; margin-top: 18px; }
.link-list a {
  border: 1.5px solid var(--ink);
  padding: 11px 12px;
  text-decoration: none;
  font-weight: 750;
}
.status {
  border: 1.5px solid var(--ink);
  padding: 12px;
  background: var(--soft);
  font-size: .8rem;
  line-height: 1.5;
}
.legal-hero {
  border-bottom: 1.5px solid var(--ink);
  padding: 46px 32px;
}
.legal-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  max-width: 880px;
  margin-bottom: 16px;
}
.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  border-bottom: 1.5px solid var(--ink);
}
.legal-sidebar {
  border-right: 1.5px solid var(--ink);
  padding: 28px;
  background: var(--soft);
}
.legal-sidebar .price-value { font-size: 1.7rem; }
.legal-content {
  padding: 28px 32px 44px;
  max-width: 860px;
}
.legal-content h2 {
  font-size: 1.05rem;
  font-weight: 900;
  margin: 26px 0 10px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p,
.legal-content li {
  color: #444;
  font-size: .95rem;
  line-height: 1.75;
}
.legal-content ul { padding-left: 20px; margin: 8px 0 0; }
.plan-card {
  border: 1.5px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 24px;
  margin-top: 18px;
}
.plan-card h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}
.plan-price {
  font-size: 2rem;
  font-weight: 900;
  white-space: nowrap;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1.5px solid var(--ink);
  margin-top: 20px;
}
.feature-grid div {
  padding: 16px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
.feature-grid div:nth-child(2n) { border-right: 0; }
.feature-grid div:nth-last-child(-n+2) { border-bottom: 0; }
.product-grid div:nth-child(2n) { border-right: 1.5px solid var(--ink); }
.product-grid div:nth-child(4n) { border-right: 0; }
.product-grid div:nth-last-child(-n+4) { border-bottom: 0; }
.site-footer {
  max-width: 1220px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1.5px solid var(--ink);
}
.site-footer a {
  color: #666;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}
.language-row { display: flex; gap: 0; margin-bottom: 16px; }
.language-row button {
  flex: 1;
  border: 1.5px solid var(--ink);
  border-right: 0;
  background: transparent;
  padding: 9px;
  font-weight: 800;
}
.language-row button:last-child { border-right: 1.5px solid var(--ink); }
.language-row button.active { background: var(--ink); color: var(--paper); }
#qrcode canvas, #qrcode img { display: block; margin: 0 auto; }
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font-size: .82rem;
  font-weight: 800;
  opacity: 0;
  transition: .2s ease;
  z-index: 20;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 860px) {
  .hero, .grid-2, .legal-layout { grid-template-columns: 1fr; }
  .hero-copy, .pane + .pane { border-right: 0; border-left: 0; }
  .legal-sidebar { border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid div:nth-child(2n) { border-right: 0; }
  .product-grid div:nth-child(4n) { border-right: 0; }
  .product-grid div:nth-last-child(-n+4) { border-bottom: 1.5px solid var(--ink); }
  .product-grid div:nth-last-child(-n+2) { border-bottom: 0; }
  .steps-list div { border-left: 0; }
  .faq-strip, .section-line { align-items: flex-start; flex-direction: column; }
  .hero-copy { border-bottom: 1.5px solid var(--ink); }
  .hero-panel { min-height: 380px; }
  .price-box { grid-template-columns: 1fr; }
  .price-box div { border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .price-box div:last-child { border-bottom: 0; }
  .topbar { align-items: flex-start; gap: 12px; flex-direction: column; }
  .nav-actions { width: 100%; flex-wrap: wrap; }
  .nav-link, .nav-anchor { flex: 1; padding-inline: 8px; }
  .plan-card { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero-copy, .pane, .band, .legal-hero, .legal-content, .legal-sidebar { padding: 24px 18px; }
  .username { flex-direction: column; }
  .username span { border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .feature-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .spec-list div { grid-template-columns: 1fr; gap: 4px; }
  .feature-grid div,
  .feature-grid div:nth-child(2n),
  .feature-grid div:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1.5px solid var(--ink);
  }
  .feature-grid div:last-child { border-bottom: 0; }
}
