:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #f6f7f9;
  --text: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --accent: #0ea5e9;
  --accent-dark: #0369a1;
  --discount: #f59e0b;
  --verified: #16a34a;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(20px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand {
  align-items: center;
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
  height: 42px;
  width: auto;
}

.brand-mark {
  background: #f97316;
  border-radius: 6px;
  display: inline-block;
  height: 18px;
  position: relative;
  width: 18px;
}

.brand-mark::after {
  background: #fff;
  border-radius: 2px;
  content: "";
  height: 8px;
  left: 5px;
  position: absolute;
  top: 5px;
  width: 8px;
}

.brand-text {
  color: #0b2f6b;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.nav {
  align-items: center;
  display: flex;
  gap: 22px;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav a:hover {
  color: var(--text);
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.header-actions select,
.quote-form select {
  appearance: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 9px 30px 9px 12px;
}

.hero {
  display: grid;
  gap: clamp(24px, 4vw, 72px);
  grid-template-columns: minmax(0, 1fr) 340px;
  min-height: 560px;
  padding: clamp(56px, 8vw, 112px) clamp(20px, 4vw, 56px) 44px;
}

.hero-copy {
  align-self: center;
  max-width: 860px;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(44px, 7vw, 86px);
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 22px;
  max-width: 980px;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 12px;
}

h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.hero-subcopy,
.section-heading p,
.contact-section p,
.steps p,
.site-footer p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-subcopy {
  font-size: 20px;
  max-width: 680px;
}

.fx-note {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: inline-block;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 0;
  padding: 10px 12px;
}

.search-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 34px 0 18px;
  max-width: 720px;
  padding: 8px;
}

.search-panel input {
  background: transparent;
  border: 0;
  color: var(--text);
  min-height: 46px;
  outline: 0;
  padding: 0 12px;
}

.search-panel button,
.primary-button,
.secondary-button,
.ghost-button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  min-height: 44px;
  padding: 0 18px;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.search-panel button,
.primary-button {
  background: var(--text);
  color: #fff;
}

.primary-button:hover,
.search-panel button:hover {
  background: #000;
  transform: translateY(-1px);
}

.secondary-button,
.ghost-button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
}

.secondary-button:hover,
.ghost-button:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-panel {
  align-self: center;
  background: var(--text);
  border-radius: 10px;
  box-shadow: var(--shadow);
  color: #fff;
  display: grid;
  gap: 1px;
  overflow: hidden;
}

.hero-panel div {
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 6px;
  padding: 28px;
}

.metric {
  color: #7dd3fc;
  display: block;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.hero-panel span:last-child {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.trust-strip {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: center;
  padding: 18px clamp(20px, 4vw, 56px);
}

.trust-strip span::before {
  color: var(--verified);
  content: "OK";
  font-weight: 900;
  margin-right: 8px;
}

.section {
  padding: 72px clamp(20px, 4vw, 56px);
}

.section-heading {
  max-width: 780px;
}

.section-heading.split {
  align-items: end;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
}

.compact {
  min-width: 128px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.category-tabs button {
  background: var(--panel);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 750;
  min-height: 40px;
  padding: 0 16px;
}

.category-tabs button.active,
.category-tabs button:hover {
  background: #e0f2fe;
  border-color: #bae6fd;
  color: var(--accent-dark);
}

.deals-section {
  background: var(--panel);
}

.product-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  display: grid;
  overflow: hidden;
}

.product-visual {
  align-items: center;
  aspect-ratio: 1.45;
  background: #f8fafc;
  display: flex;
  justify-content: center;
  position: relative;
}

.product-visual img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.discount {
  background: var(--discount);
  border-radius: 999px;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  left: 14px;
  padding: 6px 10px;
  position: absolute;
  top: 14px;
}

.card-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.card-kicker {
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: space-between;
  text-transform: uppercase;
}

.price-line {
  align-items: baseline;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.unit-price {
  font-size: 26px;
  font-weight: 900;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
}

.price-unit {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.product-specs {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 0;
}

.product-meta {
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.verified {
  color: var(--verified);
  font-weight: 800;
}

.add-button {
  background: var(--text);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 850;
  min-height: 44px;
}

.add-button.added {
  background: var(--accent-dark);
}

.steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.steps article,
.contact-section,
.payment-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.steps span {
  align-items: center;
  background: #e0f2fe;
  border-radius: 50%;
  color: var(--accent-dark);
  display: flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  margin-bottom: 18px;
  width: 34px;
}

.payment-section {
  margin: 0 clamp(20px, 4vw, 56px) 72px;
  padding: 44px;
}

.payment-rails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.payment-rails span {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
  padding: 14px 18px;
}

.contact-section {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 0 clamp(20px, 4vw, 56px) 72px;
}

.contact-section div {
  max-width: 720px;
}

.quote-drawer {
  background: rgba(15, 23, 42, 0.28);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 60;
}

.quote-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  height: 100%;
  margin-left: auto;
  max-width: 480px;
  overflow-y: auto;
  padding: 24px;
  transform: translateX(24px);
  transition: transform 180ms ease;
  width: min(100%, 480px);
}

.quote-drawer.open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.icon-button {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  height: 36px;
  width: 36px;
}

.quote-items {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.empty-quote {
  background: var(--panel);
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: var(--muted);
  padding: 18px;
  text-align: center;
}

.quote-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.quote-item header {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.remove-button {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.quote-form {
  display: grid;
  gap: 14px;
}

.quote-form label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  outline: none;
  padding: 12px;
}

.checkout-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-form textarea {
  min-height: 86px;
  resize: vertical;
}

.quote-total {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
}

.payment-total {
  border-top: 0;
  color: var(--accent-dark);
  padding-top: 0;
}

.payment-method-field select {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
  font-weight: 900;
}

.payment-total[hidden],
.usdt-address-box[hidden],
.usdt-network-field[hidden] {
  display: none;
}

.usdt-address-box {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 12px;
}

.usdt-address-box span,
.usdt-address-box small {
  color: var(--muted);
  font-size: 12px;
}

.usdt-address-box code {
  color: var(--text);
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
  font-weight: 800;
}

.usdt-address-box small {
  grid-column: 1 / -1;
}

.copy-button {
  background: #111827;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  min-height: 36px;
  padding: 0 14px;
}

.fx-total {
  border-top: 0;
  color: var(--muted);
  padding-top: 0;
}

.full {
  width: 100%;
}

.form-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 0;
}

.checkout-note {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 0;
  padding: 12px;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(20px, 4vw, 56px);
}

.site-footer strong,
.site-footer a {
  color: var(--text);
}

.site-footer div:last-child {
  display: flex;
  gap: 18px;
}

.support-widget {
  bottom: 22px;
  position: fixed;
  right: 22px;
  z-index: 80;
}

.support-toggle {
  background: #111827;
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  min-height: 48px;
  padding: 0 20px;
}

.support-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  bottom: 62px;
  box-shadow: var(--shadow);
  display: none;
  gap: 10px;
  padding: 18px;
  position: absolute;
  right: 0;
  width: min(340px, calc(100vw - 32px));
}

.drawer-open .support-widget {
  z-index: 60;
}

.support-widget.open .support-panel {
  display: grid;
}

.support-close {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
}

.support-panel h2 {
  font-size: 24px;
  margin-bottom: 0;
  padding-right: 44px;
}

.support-panel input,
.support-panel select,
.support-panel textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 42px;
  padding: 10px 12px;
}

.support-panel textarea {
  min-height: 86px;
  resize: vertical;
}

@media (max-width: 980px) {
  .site-header {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .nav {
    justify-content: flex-start;
    order: 3;
    overflow-x: auto;
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body {
    overflow-x: hidden;
  }

  h1 {
    font-size: 42px;
    line-height: 1;
  }

  h2 {
    font-size: 30px;
  }

  .site-header {
    gap: 10px;
    padding: 10px 16px;
  }

  .brand {
    height: 38px;
  }

  .brand-text {
    font-size: 16px;
  }

  .nav {
    gap: 14px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .header-actions {
    justify-content: flex-end;
    margin-left: 0;
  }

  .header-actions select {
    max-width: 86px;
    min-height: 38px;
    padding: 8px 24px 8px 10px;
  }

  .hero {
    min-height: auto;
    padding: 34px 16px 34px;
  }

  .hero-panel,
  .product-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-panel div {
    padding: 22px;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .section-heading.split,
  .contact-section,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-section,
  .contact-section {
    margin-left: 16px;
    margin-right: 16px;
    padding: 24px;
  }

  .section {
    padding: 48px 16px;
  }

  .drawer-panel {
    border-left: 0;
    max-width: 100%;
    padding: 18px;
    width: 100%;
  }

  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .category-tabs::-webkit-scrollbar {
    display: none;
  }

  .category-tabs button {
    flex: 0 0 auto;
  }

  .product-visual {
    aspect-ratio: 1.25;
  }

  .site-footer div:last-child {
    flex-direction: column;
    gap: 6px;
  }

  .support-widget {
    bottom: 14px;
    right: 14px;
  }

  .support-panel {
    bottom: 58px;
    max-height: 72vh;
    overflow-y: auto;
  }
}
