

:root {

  --bg: #f6f7f9;
  --bg-sunk: #eef0f4;
  --surface: #ffffff;
  --surface-warm: #f8f9fb;

  --ink: #202735;
  --ink-2: #4e5969;
  --muted: #697382;

  --line: #e4e7ec;
  --line-strong: #d3d9e2;

  --terra: #de6330;
  --terra-dark: #b9471d;
  --terra-soft: #fff0e7;
  --green: #2f6b4f;
  --green-soft: #e3efe7;
  --mustard: #b07d1f;
  --mustard-soft: #f6ecd4;
  --red: #bf4a30;
  --red-soft: #f6e5df;

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --shadow-sm: 0 2px 6px rgba(32, 39, 53, .025), 0 4px 16px rgba(32, 39, 53, .035);
  --shadow: 0 8px 30px rgba(32, 39, 53, .065);
  --shadow-lg: 0 16px 38px rgba(32, 39, 53, .1);

  --font-display: "Segoe UI", Arial, sans-serif;
  --font-ui: "Segoe UI", Arial, sans-serif;
  --font-mono: "Segoe UI", Arial, sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --wrap: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; }
h1 { line-height: .98; letter-spacing: -.025em; }
h2 { line-height: 1.05; letter-spacing: -.02em; }

a { color: var(--terra-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 12px 20px;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.btn-primary { background: var(--terra); border-color: var(--terra); color: #fff; }
.btn-primary:hover { background: var(--terra-dark); border-color: var(--terra-dark); }
.btn-soft { background: var(--surface-warm); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-warm); }
.btn-small { padding: 9px 14px; font-size: 14px; }
.btn-big { padding: 15px 26px; font-size: 16px; }
.btn-block { width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.badge-sale { background: var(--terra); color: #fff; font-family: var(--font-mono); letter-spacing: 0; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-mustard { background: var(--mustard-soft); color: var(--mustard); }
.badge-terra { background: var(--terra-soft); color: var(--terra-dark); }

.status {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0;
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}
.st-wait { background: var(--mustard-soft); color: var(--mustard); }
.st-work { background: var(--terra-soft); color: var(--terra-dark); }
.st-done { background: var(--green-soft); color: var(--green); }
.st-clarify { background: #eae4f2; color: #6b4ea6; }
.st-cancel { background: var(--red-soft); color: var(--red); }
.st-refund { background: var(--bg-sunk); color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 244, 239, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none !important; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.01em;
  color: var(--ink);
  display: inline-flex;
  gap: 7px;
}
.brand-word b { font-weight: 700; color: var(--terra); }

.main-nav { display: flex; gap: 26px; margin-right: auto; }
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.main-nav a:hover { color: var(--terra-dark); border-bottom-color: var(--terra); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 14px;
  text-decoration: none !important;
  transition: box-shadow .15s ease;
}
.balance-pill:hover { box-shadow: var(--shadow-sm); }
.balance-pill .plus {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px;
  background: var(--terra); color: #fff;
  border-radius: 50%; font-size: 14px; line-height: 1;
  font-family: var(--font-ui);
}
.nav-toggle { display: none; }

.page { flex: 1; padding: 40px 0 72px; }
.page-narrow { max-width: 900px; }

.flash {
  background: var(--terra-soft);
  border: 1px solid var(--terra);
  color: var(--terra-dark);
  border-radius: var(--r-sm);
  padding: 13px 18px;
  font-size: 15px;
  margin-bottom: 26px;
}

.page-head { margin-bottom: 30px; }

.page-head h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 700; }
.page-sub { color: var(--muted); margin-top: 8px; font-size: 16px; }

.section { margin-top: 64px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.section-head h2 { font-size: clamp(36px, 4.2vw, 42px); }
.section-link { font-weight: 500; font-size: 15px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r);
  padding: 40px;
  text-align: center;
  color: var(--muted);
}

.hero {
  padding: 22px 0 8px;
  max-width: 760px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: -.03em;
}
.hero h1 .accent { color: var(--terra); }
.hero-sub {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 620px;
}
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 30px;
}
.hero-fact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
}
.hero-fact .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.collection { margin-top: 62px; }
.collection-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.collection-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 27px);
  letter-spacing: -.01em;
}
.collection-note { font-size: 14px; color: var(--muted); margin-top: 2px; }

.card-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* Product cards: one linked surface, artwork followed by a stable content grid. */
.pcard {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-decoration: none !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.pcard-media { position: relative; margin: 8px 8px 0; overflow: hidden; border-radius: 14px; }
.product-image { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: contain; background: var(--bg-sunk); }
.pcard-media .badge-sale { position: absolute; top: 12px; right: 12px; background: #fff; color: var(--terra-dark); box-shadow: var(--shadow-sm); font-weight: 700; padding: 5px 10px; }
.pcard-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 20px; }
.pcard-cat { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pcard-name { font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--ink); min-height: 2.7em; overflow-wrap: anywhere; }
.pcard-short { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.9em; font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 8px; }
.pcard-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: auto; padding-top: 20px; }
.pcard-price { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pcard-price .amount { font-size: 24px; font-weight: 700; letter-spacing: -.04em; color: var(--ink); }
.pcard-arrow { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); color: var(--ink-2); transition: background .2s ease, color .2s ease; }
.pcard:hover .pcard-arrow { background: var(--terra-soft); color: var(--terra-dark); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 22px;
}
.step-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--terra);
  margin-bottom: 12px;
}
.step-title { font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--muted); line-height: 1.5; }

.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.why-card {
  background: var(--surface-warm);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px;
}
.why-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 19px; margin-bottom: 8px; }
.why-card p { font-size: 15px; color: var(--ink-2); line-height: 1.55; }

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 48px 16px 20px;
  position: relative;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 20px; color: var(--terra); font-weight: 400;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 20px 18px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }

.cta-band {
  margin-top: 66px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 40px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(36px, 4.2vw, 42px); margin-bottom: 6px; }
.cta-band p { color: rgba(255, 255, 255, .72); font-size: 15px; }

.catalog-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 8px 8px 16px;
  flex: 1 1 280px;
  max-width: 420px;
}
.search input {
  border: none; outline: none; background: transparent;
  font-family: var(--font-ui); font-size: 15px; color: var(--ink);
  width: 100%;
}
.search input::placeholder { color: var(--muted); }
.search button { padding: 8px 16px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 15px;
  text-decoration: none !important;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--terra); color: var(--terra-dark); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.catalog-group { margin-top: 40px; }
.catalog-group:first-of-type { margin-top: 0; }
.catalog-group h2 { font-size: clamp(36px, 4.2vw, 42px); margin-bottom: 18px; }

.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--terra-dark); }
.crumbs span { margin: 0 7px; opacity: .6; }
.crumbs b { color: var(--ink); font-weight: 500; }

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 28px;
  align-items: start;
}
.product-main { padding: 32px; }
.product-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.product-head h1 { font-size: 28px; font-weight: 700; letter-spacing: -.01em; }
.product-cat {
  display: inline-block;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0; color: var(--terra-dark);
  background: var(--terra-soft); border-radius: 999px;
  padding: 2px 10px; margin-top: 8px;
}
.product-desc p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; margin-bottom: 12px; }
.product-info-list { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.product-info-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14.5px; color: var(--ink-2);
  padding: 13px 16px;
  background: var(--surface-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.product-info-list .k { font-weight: 600; color: var(--ink); min-width: 108px; }
.product-note {
  margin-top: 18px;
  font-size: 14px; color: var(--mustard);
  background: var(--mustard-soft);
  border-radius: var(--r-sm);
  padding: 12px 16px;
}

.product-buy { padding: 24px; position: sticky; top: 96px; }
.buy-label {
  font-weight: 600; font-size: 14px; color: var(--ink);
  margin: 20px 0 10px;
}
.buy-form .buy-label:first-child { margin-top: 0; }

.variant-list { display: flex; flex-direction: column; gap: 8px; }
.variant input { position: absolute; opacity: 0; pointer-events: none; }
.variant-body {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 12px 15px;
  cursor: pointer;
  background: var(--surface);
  transition: border-color .12s ease, background .12s ease;
}
.variant:hover .variant-body { border-color: var(--terra); }
.variant input:checked + .variant-body { border-color: var(--terra); background: var(--terra-soft); }
.variant-title { font-weight: 500; font-size: 15px; }
.variant-prices { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.variant-price {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-weight: 500; font-size: 16px; color: var(--ink);
}
.variant-old {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 13px; color: var(--muted);
  text-decoration: line-through; text-decoration-thickness: 1px;
}

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--terra); box-shadow: 0 0 0 3px var(--terra-soft); }
.field input::placeholder { color: #b7ad9c; }
.field-hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.field-prefill { font-size: 12px; color: var(--green); margin-top: 5px; }

.buy-total {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  margin: 18px 0;
}
.buy-total span { font-size: 14px; color: var(--muted); }
.buy-total b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 500; }
.buy-note { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.buy-note b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.auth-wrap { display: flex; justify-content: center; padding: 20px 0; }
.auth-card { width: 100%; max-width: 440px; padding: 36px 34px; }
.auth-card h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.auth-sub { color: var(--muted); margin-bottom: 24px; }
.auth-alt { text-align: center; font-size: 14px; margin-top: 20px; color: var(--muted); }

.agree {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 2px 0 18px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}
.agree input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--terra);
}
.agree a { color: var(--terra-dark); text-decoration: underline; }

.profile-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 10px;
}
.balance-card { padding: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.balance-label {
  font-size: 13px; font-weight: 500;
  letter-spacing: 0; color: var(--muted);
}
.balance-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500; font-size: 38px; line-height: 1; color: var(--ink);
}
.tg-card { padding: 26px; }
.tg-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 18px; margin-bottom: 10px; }
.tg-card p { font-size: 14.5px; color: var(--ink-2); }
.tg-steps { margin: 12px 0 14px 20px; font-size: 14.5px; color: var(--ink-2); }
.tg-steps li { margin-bottom: 4px; }
.tg-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--bg-sunk);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 9px 13px;
  user-select: all;
  word-break: break-all;
}

.order-list { display: flex; flex-direction: column; gap: 16px; }
.order-card { padding: 22px 24px; }
.order-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.order-title { font-weight: 600; font-size: 16px; }
.order-title .oid { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--muted); }
.order-meta { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.order-price {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-weight: 500; font-size: 18px;
}
.order-fields {
  display: flex; gap: 8px 18px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--ink-2); margin-top: 12px;
}
.order-fields b { font-weight: 600; }

.timeline { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; list-style: none; }
.timeline-item { position: relative; padding: 0 0 16px 22px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: 3px; top: 4px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--terra);
}
.timeline-item:not(:last-child)::after {
  content: ''; position: absolute; left: 7px; top: 13px; bottom: 0;
  width: 2px; background: var(--line);
}
.timeline-item.is-done::before { background: var(--green); border-color: var(--green); }
.timeline-item.is-cancel::before { background: var(--red); border-color: var(--red); }
.timeline-time {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 12px; color: var(--muted);
}
.timeline-status { font-weight: 600; font-size: 14px; margin: 1px 0; }
.timeline-note { font-size: 13.5px; color: var(--ink-2); }

.clarify-box {
  margin-top: 16px;
  background: #f3eefa;
  border: 1px solid #ddd0ef;
  border-radius: var(--r-sm);
  padding: 16px 18px;
}
.clarify-box .q { font-size: 14.5px; color: var(--ink); margin-bottom: 12px; }
.clarify-box .q b { color: #6b4ea6; }
.clarify-form { display: flex; gap: 10px; flex-wrap: wrap; }
.clarify-form input { flex: 1 1 240px; }

.table-wrap { overflow-x: auto; padding: 4px; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.table th {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0; color: var(--muted);
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); }
.table td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: none; }

.pass-card { max-width: 440px; padding: 24px; }

.profile-exit { margin-top: 36px; text-align: center; }
.profile-exit a { color: var(--muted); font-size: 14px; }

.need-banner {
  background: var(--terra-soft);
  border: 1px solid var(--terra);
  color: var(--terra-dark);
  border-radius: var(--r-sm);
  padding: 13px 18px;
  margin-bottom: 24px;
  font-size: 15px;
}
.need-banner b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.topup-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
.topup-form { padding: 28px; }
.topup-form .buy-label:first-child { margin-top: 0; }

.method-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method-body {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 12px 8px;
  font-weight: 500; font-size: 14px;
  cursor: pointer; background: var(--surface);
  transition: border-color .12s ease, background .12s ease;
}
.method:hover .method-body { border-color: var(--terra); }
.method input:checked + .method-body { border-color: var(--terra); background: var(--terra-soft); }

.requisites {
  background: var(--surface-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 15px 16px;
}
.requisites code {
  font-family: var(--font-mono); font-size: 14px;
  word-break: break-all; color: var(--ink);
}
.requisites-note { font-size: 12.5px; color: var(--muted); margin-top: 7px; }

.topup-help { padding: 26px; background: var(--surface-warm); }
.topup-help h3 { font-family: var(--font-display); font-weight: 500; font-size: 18px; margin-bottom: 12px; }
.topup-steps { margin-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.topup-warn { margin-top: 16px; font-size: 13.5px; color: var(--mustard); }

.legal { max-width: 760px; }
.legal h2 { font-size: clamp(36px, 4.2vw, 42px); margin: 32px 0 12px; }
.legal h2:first-of-type { margin-top: 24px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; margin-bottom: 12px; }
.legal ul { margin-left: 22px; }
.legal .updated { color: var(--muted); font-size: 14px; }

.site-footer { background: var(--ink); color: #c9c0b3; margin-top: auto; }
.footer-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 24px 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand .brand-word { color: #fff; }
.footer-brand p { font-size: 14px; margin-top: 14px; max-width: 300px; line-height: 1.6; color: #a79e91; }
.footer-col h4 { font-family: var(--font-display); font-weight: 500; font-size: 14px; color: #fff; margin-bottom: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: #c9c0b3; font-size: 14px; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 20px 24px 30px;
  font-size: 13px;
  color: #8f8678;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer-bottom .pay { font-family: var(--font-mono); }

@media (max-width: 1080px) {
  .card-row, .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-layout { grid-template-columns: minmax(0, 1fr); }
  .product-buy { position: static; }
  .topup-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0;
    padding: 8px 24px 16px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: none; font-size: 16px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 4px; width: 42px; height: 40px;
    background: var(--surface); border: 1px solid var(--line-strong);
    border-radius: var(--r-sm); cursor: pointer;
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .card-row, .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .header-in { padding: 12px 16px; gap: 12px; }
  .brand-word { font-size: 17px; }
  .page { padding: 28px 0 56px; }
  .hero h1 { font-size: clamp(30px, 9vw, 40px); }
  .hero-cta .btn { width: 100%; }
  .card-row, .card-grid, .steps, .method-list { grid-template-columns: minmax(0, 1fr); }
  .footer-in { grid-template-columns: minmax(0, 1fr) 1fr; }
  .cta-band { padding: 28px 24px; }
  .cta-band .btn { width: 100%; }
  .product-main, .topup-form { padding: 22px; }
}

@media (max-width: 380px) {

  .footer-in { grid-template-columns: minmax(0, 1fr); }
  .product-head { flex-direction: column; align-items: flex-start; }
}

/* Shared marketplace system */
:focus-visible { outline: 3px solid var(--terra); outline-offset: 4px; }
.accent { color: var(--terra); }
.btn { border-radius: var(--r-sm); font-weight: 600; }
.btn-primary { box-shadow: 0 4px 12px rgba(222, 99, 48, .16); }
.btn-soft { background: var(--surface); }
h1, h2 { line-height: 1.12; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.eyebrow-line { height: 2px; width: 24px; background: var(--terra); }
.site-header { background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); }
.header-in { gap: var(--space-4); padding: 20px 24px; }
.brand { color: var(--ink); gap: 10px; flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 40px; }
.brand-word { display: flex; flex-direction: column; gap: 0; font-size: 17px; line-height: 1.08; font-weight: 800; letter-spacing: .015em; }
.brand-period { color: var(--terra); }
.header-search { display: flex; flex: 1; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; min-width: 0; }
.header-search svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--muted); }
.header-search input { min-width: 0; width: 100%; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); outline: 0; }
.header-search:focus-within, .search:focus-within { border-color: var(--terra); box-shadow: 0 0 0 3px var(--terra-soft); }
.header-search button { background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 8px; color: var(--ink-2); font: inherit; font-size: 12px; cursor: pointer; }
.header-search button:hover { color: var(--terra-dark); }
.header-actions { flex-shrink: 0; gap: 8px; }
.header-nav-wrap { border-top: 1px solid var(--line); }
.main-nav { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; gap: 30px; }
.main-nav a { padding: 13px 0; font-size: 13px; font-weight: 600; }
.main-nav a.is-current { color: var(--terra-dark); border-bottom-color: var(--terra); }
.main-nav .nav-support { margin-left: auto; color: var(--muted); }
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--space-5); max-width: none; padding: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.hero-content { min-width: 0; }
.hero h1 { font-size: clamp(34px, 4.3vw, 56px); font-weight: 750; line-height: 1.08; letter-spacing: -.045em; }
.hero-sub { font-size: 15px; line-height: 1.7; margin-top: 20px; }
.hero-cta { gap: 10px; margin-top: 24px; }
.hero-cta .btn { font-size: 14px; padding: 13px 18px; }
.hero-facts { gap: 8px 18px; margin-top: 24px; }
.hero-fact { font-size: 11px; }
.hero-art { align-self: center; min-width: 0; padding: 24px; background: var(--bg); border-radius: 24px; }
.hero-art-label { font-size: 10px; letter-spacing: .15em; color: var(--muted); margin-bottom: 20px; }
.hero-art-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hero-art-grid img { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow); }
.hero-art-grid img:nth-child(even) { transform: translateY(10px); }
.hero-art-caption { font-size: 11px; color: var(--muted); text-align: center; margin-top: 30px; }
.collection { margin-top: var(--space-5); }
.collection-title { font-weight: 700; font-size: 26px; }
.section-head h2, .catalog-group h2 { font-size: clamp(24px, 3vw, 32px); }
.card-row, .card-grid { gap: 20px; align-items: stretch; }
.catalog-tools { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 20px; margin-bottom: 36px; }
.catalog-tools > .search, .catalog-tools > .chips { min-width: 0; width: 100%; }
.search { max-width: none; flex: initial; padding: 10px 10px 10px 20px; border-radius: var(--r); box-shadow: var(--shadow-sm); }
.search input { min-width: 0; }
.search input::placeholder { color: var(--muted); }
.search .btn { padding: 12px 24px; }
.chips { gap: 8px; }
.chip { border-color: var(--line); border-radius: var(--r-sm); padding: 10px 18px; font-weight: 600; }
.chip.is-active { background: var(--ink); box-shadow: var(--shadow-sm); }
.catalog-group { margin-top: 36px; }
.product-cover { margin-bottom: 24px; border-radius: var(--r); overflow: hidden; }
.product-cover .product-image { max-height: 300px; }
.product-head { margin-bottom: 20px; }
.product-head h1 { margin-top: 12px; font-size: 30px; }
.product-cat { margin-top: 0; }
.product-buy { top: 160px; box-shadow: var(--shadow); }
.variant input:focus-visible + .variant-body, .method input:focus-visible + .method-body { outline: 3px solid var(--terra); outline-offset: 3px; }
.site-footer .brand { color: #fff; }
.footer-brand p, .footer-col a { color: #b6beca; }
.footer-bottom { color: #a0aaba; }

@media (max-width: 1080px) {
  .header-in { gap: 20px; }
  .hero { padding: 32px; gap: 24px; }
  .hero-cta .btn { padding: 12px 14px; }
  .product-buy { position: static; }
}
@media (max-width: 860px) {
  .header-in { flex-wrap: wrap; position: relative; }
  .header-search { order: 3; flex-basis: 100%; }
  .header-nav-wrap { border: 0; }
  .main-nav { padding: 8px 24px 16px; background: var(--surface); }
  .main-nav a { padding: 12px 0; }
  .main-nav .nav-support { margin-left: 0; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 560px) {
  .header-in { gap: 14px; padding: 14px 16px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-word { font-size: 13px; }
  .brand { gap: 7px; }
  .header-actions { gap: 5px; }
  .header-actions .btn { font-size: 12px; padding: 8px 9px; }
  .nav-toggle { width: 34px; height: 34px; }
  .balance-pill { font-size: 12px; padding: 6px 8px; }
  .header-search { padding: 9px 12px; }
  .header-search input { font-size: 16px; }
  .hero { padding: 26px 22px; }
  .hero h1 { font-size: clamp(30px, 8vw, 40px); }
  .hero-cta .btn { width: 100%; }
  .hero-facts { flex-direction: column; }
  .card-grid, .card-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pcard-media { margin: 5px 5px 0; border-radius: 10px; }
  .pcard-body { padding: 12px; }
  .pcard-name { font-size: 14px; }
  .pcard-cat { font-size: 9px; letter-spacing: .02em; }
  .pcard-short { font-size: 11px; }
  .pcard-price { font-size: 11px; }
  .pcard-price .amount { font-size: 20px; }
  .pcard-arrow { width: 24px; height: 24px; flex-shrink: 0; font-size: 13px; }
  .pcard-bottom { gap: 4px; padding-top: 16px; }
  .pcard-media .badge-sale { top: 7px; right: 7px; font-size: 10px; padding: 3px 6px; }
  .collection-title { font-size: 22px; }
  .section-link { font-size: 13px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .chip { flex-shrink: 0; font-size: 12px; padding: 10px 14px; }
  .product-head h1 { font-size: 26px; }
  .product-info-list li { flex-direction: column; gap: 4px; }
  .product-buy, .auth-card { padding: 22px; }
  .page-sub { font-size: 14px; }
}
@media (max-width: 350px) {
  .card-grid, .card-row { grid-template-columns: 1fr; }
  .header-actions .btn { padding: 8px 6px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .pcard:hover, .btn:hover { transform: none; }
}
.pcard-arrow svg { width: 16px; height: 16px; }
.nav-support svg { width: 14px; height: 14px; vertical-align: middle; margin-left: 4px; }
.page-head h1, .legal h2 { overflow-wrap: anywhere; }
