*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Плавная прокрутка */
html {
  scroll-behavior: smooth;
}

/* Оптимизация для touch-устройств */
html {
  -webkit-tap-highlight-color: rgba(255, 215, 96, 0.2);
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

/* Улучшение производительности скролла на iOS */
body {
  -webkit-overflow-scrolling: touch;
}

/* Оптимизация кнопок и интерактивных элементов для мобильных */
button,
.product-card,
.language-switcher,
.promo-apply,
.promo-change,
.action-btn,
.connect-btn,
.empty-cart-btn,
.remove-item-btn,
.product-add,
.telegram-btn,
.header-bot-btn,
.accordion-header {
  -webkit-tap-highlight-color: rgba(255, 215, 96, 0.2);
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

select,
input,
textarea {
  -webkit-user-select: text;
  user-select: text;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

:root {
  color-scheme: dark;
  --bg-base: #0a0a0f;
  --bg-gradient-1: rgba(77, 51, 10, 0.55);
  --bg-gradient-2: rgba(20, 17, 36, 0.7);
  --surface: rgba(18, 18, 26, 0.85);
  --surface-strong: rgba(20, 20, 32, 0.92);
  --surface-soft: rgba(24, 24, 36, 0.75);
  --border: rgba(252, 191, 73, 0.28);
  --border-strong: rgba(252, 191, 73, 0.45);
  --text-primary: #fdf6e4;
  --text-muted: #d7cfa9;
  --accent-start: #ffd760;
  --accent-end: #ffb347;
  --shadow-lg: 0 30px 80px rgba(5, 3, 10, 0.65);
  --shadow-md: 0 20px 50px rgba(11, 5, 25, 0.45);
  --shadow-sm: 0 9px 25px rgba(252, 191, 73, 0.25);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 14px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: rgba(253, 246, 228, 0.95);
  background: radial-gradient(1200px 900px at -10% -10%, rgba(255, 215, 96, 0.15) 0%, transparent 50%),
              radial-gradient(900px 700px at 110% 20%, rgba(255, 179, 71, 0.12) 0%, transparent 55%),
              radial-gradient(600px 600px at 50% 50%, rgba(255, 200, 87, 0.08) 0%, transparent 70%),
              linear-gradient(160deg, rgba(12, 12, 18, 0.95) 0%, rgba(14, 14, 20, 0.97) 45%, rgba(10, 10, 15, 1) 100%),
              var(--bg-base);
  padding: 24px 36px;
  line-height: 1.6;
  font-size: 14px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

p {
  margin: 0;
}

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

a:hover {
  text-decoration: underline;
}

ol,
ul {
  margin: 0;
  padding-left: 20px;
}

.aside-lead {
  font-size: 14px;
  color: rgba(215, 207, 169, 0.85);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(800px 800px at 15% 25%, rgba(255, 215, 96, 0.12), transparent 65%),
              radial-gradient(700px 700px at 85% 15%, rgba(255, 179, 71, 0.1), transparent 70%),
              radial-gradient(600px 600px at 50% 80%, rgba(255, 200, 87, 0.08), transparent 65%);
  mix-blend-mode: screen;
  opacity: 0.8;
  z-index: -1;
}

.page {
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  gap: 36px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-start);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-bot-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0088cc, #229ED9);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 180ms ease;
  box-shadow: 0 2px 12px rgba(0, 136, 204, 0.25);
  white-space: nowrap;
}

.header-bot-btn .telegram-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.header-bot-btn:hover {
  background: linear-gradient(135deg, #0077b3, #1e8bc3);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 136, 204, 0.35);
  text-decoration: none;
}

.header-bot-btn:active {
  transform: scale(0.98);
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(24, 24, 36, 0.7);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(252, 191, 73, 0.15);
  cursor: pointer;
  transition: all 180ms ease;
  position: relative;
  min-width: fit-content;
}

.language-switcher:hover {
  background: rgba(24, 24, 36, 0.9);
  border-color: rgba(252, 191, 73, 0.35);
  box-shadow: 0 2px 12px rgba(252, 191, 73, 0.15);
}

.lang-icon {
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lang-code {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  pointer-events: none;
  line-height: 1;
  min-width: 20px;
  text-align: center;
}

.lang-select {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  border: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.lang-select option {
  background: #12121a;
  color: var(--text-primary);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid rgba(252, 191, 73, 0.1);
}

.lang-select option:hover {
  background: rgba(252, 191, 73, 0.15);
}

.lang-select option:checked {
  background: linear-gradient(135deg, rgba(255, 215, 96, 0.2), rgba(255, 179, 71, 0.15));
  color: var(--accent-start);
  font-weight: 600;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none !important;
  color: inherit;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.brand:hover {
  opacity: 0.85;
  text-decoration: none !important;
}

.brand * {
  text-decoration: none !important;
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--accent-start) 0%, var(--accent-end) 100%);
  color: #1a1220;
  font-weight: 700;
  font-size: 28px;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.22), 0 18px 40px rgba(255, 215, 96, 0.4);
}

.brand-meta {
  display: grid;
  gap: 6px;
}

.brand-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.brand-subtitle {
  font-size: 13px;
  color: rgba(215, 207, 169, 0.85);
}

.network-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: rgba(24, 24, 36, 0.7);
  backdrop-filter: blur(18px);
  color: rgba(215, 207, 169, 0.85);
}

.network-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  margin-bottom: 16px;
}

.network-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.network-text {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #34d399 0%, #0f766e 100%);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}

.badge-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: rgba(215, 207, 169, 0.85);
}

.content {
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(620px, 880px) minmax(300px, 420px);
  gap: 40px;
  align-items: start;
}

/* Порядок колонок на десктопе: product (слева), invoice (центр), payment (справа) */
.payment-aside {
  order: 3;
}

.invoice-card {
  order: 2;
}

.product-aside {
  order: 1;
}

.aside-shell {
  position: sticky;
  top: 32px;
}

.product-aside,
.payment-aside {
  display: grid;
  gap: 18px;
}

.payment-aside {
  position: sticky;
  top: 32px;
  align-self: flex-start;
}

.product-aside {
  position: static;
}

@media (min-width: 1281px) {
  .payment-aside {
    position: sticky;
    top: 32px;
  }
  
  .product-aside {
    position: static;
  }
}

.product-aside .aside-shell,
.payment-aside .aside-shell {
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  display: grid;
  gap: 24px;
}

.product-aside .aside-shell {
  padding-right: 20px;
}

.payment-aside .aside-shell {
  padding-left: 20px;
}

.payment-amount {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 215, 96, 0.2);
  background: rgba(0, 0, 0, 0.15);
}

.amount-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: rgba(215, 207, 169, 0.85);
}

.breakdown-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.breakdown-value {
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}

.fee-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 215, 96, 0.15);
  color: rgba(255, 215, 96, 0.7);
  font-size: 11px;
  font-weight: 700;
  cursor: help;
  transition: all 180ms ease;
}

.fee-tooltip:hover {
  background: rgba(255, 215, 96, 0.25);
  color: var(--accent-start);
  transform: scale(1.1);
}

.fee-percent {
  font-size: 12px;
  color: rgba(215, 207, 169, 0.6);
  margin-left: 4px;
}

.discount-value {
  color: rgba(52, 211, 153, 0.9);
}

.fee-row .breakdown-value {
  color: rgba(255, 215, 96, 0.85);
}

.breakdown-divider {
  height: 1px;
  background: rgba(255, 215, 96, 0.15);
  margin: 4px 0;
}

.total-row {
  padding-top: 4px;
}

.total-row .breakdown-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.total-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-start);
}

.amount-hint {
  font-size: 12px;
  color: rgba(215, 207, 169, 0.7);
  margin-bottom: 12px;
  min-height: 16px;
}

.amount-hint.error {
  color: rgba(255, 68, 68, 0.9);
}

.amount-hint.success {
  color: rgba(52, 211, 153, 0.9);
}

.payment-section {
  display: grid;
  gap: 12px;
}

.payment-section + .payment-section {
  padding-top: 18px;
  border-top: 1px solid rgba(252, 191, 73, 0.15);
}

.payment-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: rgba(215, 207, 169, 0.7);
}

.amount-display {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0 0 0;
}

.amount-value {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.amount-currency {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 215, 96, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.payment-wallet .wallet-address {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 215, 96, 0.15);
  background: rgba(0, 0, 0, 0.3);
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(253, 246, 228, 0.95);
  word-break: break-all;
}

.payment-promo .promo-input-wrap {
  display: flex;
  gap: 12px;
}

.payment-method {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255, 215, 96, 0.3);
  background: linear-gradient(135deg, rgba(255, 215, 96, 0.08), rgba(255, 179, 71, 0.05));
  margin-top: 16px;
}

.payment-method-header {
  margin-bottom: 16px;
}

.payment-method-title {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 700;
  color: #FFD760;
  letter-spacing: 0.02em;
}

.payment-method-description {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.payment-actions {
  display: grid;
  gap: 12px;
}

.payment-panel {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  display: grid;
  gap: 26px;
}

.invoice-card {
  display: grid;
  gap: 24px;
  border-radius: 0;
  border: none;
  padding: 0 20px;
  background: transparent;
  overflow: visible;
  position: relative;
}

.invoice-card::before,
.invoice-card::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 215, 96, 0.12);
  pointer-events: none;
}

.invoice-card::before {
  left: -20px;
}

.invoice-card::after {
  right: -20px;
}

.invoice-head {
  display: grid;
  gap: 8px;
  padding: 0 0 16px 0;
}

.invoice-head h1 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.invoice-tagline {
  margin: 0;
  font-size: 14px;
  color: rgba(215, 207, 169, 0.85);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 36px 40px 0 40px;
  gap: 20px;
}

.card-head h1 {
  margin: 0 0 10px 0;
  font-size: 32px;
  letter-spacing: 0.02em;
}

.muted {
  margin: 0;
  color: rgba(215, 207, 169, 0.85);
}

.card-body {
  display: grid;
  gap: 24px;
  padding: 0;
}

.panel {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 215, 96, 0.15);
  background: rgba(0, 0, 0, 0.15);
  padding: 24px;
  display: grid;
  gap: 20px;
}

.panel.soft {
  border-style: dashed;
  border-color: rgba(255, 215, 96, 0.1);
  background: transparent;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
}

.panel-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  background: rgba(252, 191, 73, 0.2);
  color: var(--text-primary);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.detail {
  display: grid;
  gap: 6px;
}

.detail-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: rgba(215, 207, 169, 0.7);
}

.detail-value {
  font-size: 15px;
  font-weight: 500;
  color: rgba(253, 246, 228, 0.95);
}

.line-items {
  display: grid;
  gap: 8px;
}

.line-items-head,
.line-item {
  display: grid;
  grid-template-columns: 2fr 0.8fr 0.8fr 0.9fr;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(252, 191, 73, 0.18);
  font-size: 14px;
}

.line-items-head {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: rgba(215, 207, 169, 0.7);
}

.line-items-head span:first-child {
  padding-left: 28px;
}

.line-items-head span:last-child,
.line-item span:last-child {
  text-align: right;
}

.line-item {
  color: rgba(253, 246, 228, 0.95);
  position: relative;
}

.empty-cart-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
  text-align: center;
  gap: 16px;
}

.empty-cart-icon {
  font-size: 56px;
  opacity: 0.3;
  margin-bottom: 8px;
}

.empty-cart-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.empty-cart-message {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(215, 207, 169, 0.85);
  max-width: 360px;
  margin: 0;
}

.empty-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 215, 96, 0.35);
  background: rgba(255, 215, 96, 0.1);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 180ms ease;
}

.empty-cart-btn:hover {
  border-color: var(--accent-start);
  background: rgba(255, 215, 96, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(252, 191, 73, 0.2);
}

.empty-cart-btn:active {
  transform: scale(0.98);
}

.empty-cart-btn .btn-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 215, 96, 0.2);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.item-description {
  display: flex;
  align-items: center;
  gap: 10px;
}

.remove-item-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: none;
  background: rgba(255, 68, 68, 0.15);
  color: rgba(255, 68, 68, 0.8);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: all 150ms ease;
  flex-shrink: 0;
}

.remove-item-btn:hover {
  background: rgba(255, 68, 68, 0.25);
  color: #ff4444;
}

.remove-item-btn:active {
  transform: scale(0.95);
}

.status-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin: 20px 0 24px 0;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 215, 96, 0.2);
  font-size: 13px;
}

.summary-left,
.summary-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-status-label {
  color: rgba(215, 207, 169, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 600;
}

.summary-status {
  color: #ffd760;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 13px;
}

.summary-separator {
  color: rgba(215, 207, 169, 0.5);
}

.summary-due {
  color: var(--text-primary);
  font-weight: 500;
}

.summary-timezone {
  color: rgba(215, 207, 169, 0.7);
  font-size: 12px;
}

.summary-network-label {
  color: rgba(215, 207, 169, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

.summary-network-value {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 12px;
}

.totals {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.subtotal {
  display: grid;
  gap: 4px;
  font-weight: 600;
}

.network-note {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: rgba(24, 24, 36, 0.5);
  color: rgba(215, 207, 169, 0.85);
}

.network-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: rgba(215, 207, 169, 0.7);
}

.auto-fill-note {
  font-size: 13px;
  margin: 0;
  color: rgba(215, 207, 169, 0.8);
}

.accordion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.accordion-panel {
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: all 180ms ease;
}

.accordion-header:hover .accordion-title {
  color: var(--accent-start);
}

.accordion-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 180ms ease;
}

.accordion-icon {
  font-size: 14px;
  color: rgba(215, 207, 169, 0.7);
  transition: transform 180ms ease;
  flex-shrink: 0;
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--accent-start);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}

.accordion-header.active + .accordion-content {
  max-height: 1000px;
  margin-top: 16px;
}

.instruction-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
  color: rgba(253, 246, 228, 0.95);
  line-height: 1.6;
  font-size: 14px;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  display: grid;
  gap: 8px;
}

.faq-question {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-answer {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(215, 207, 169, 0.85);
}

.payment-info {
  display: grid;
  gap: 26px;
}

.amount-block {
  background: linear-gradient(135deg, rgba(252, 191, 73, 0.22), rgba(249, 115, 22, 0.18));
  border-radius: var(--radius-md);
  border: 1px solid rgba(252, 191, 73, 0.4);
  padding: 26px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.amount-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: rgba(255, 230, 195, 0.88);
}

.amount-value {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  font-size: 42px;
  font-weight: 700;
}

.currency {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(252, 191, 73, 0.35);
  background: rgba(17, 13, 22, 0.7);
  letter-spacing: 0.18em;
  font-size: 13px;
}

.wallet-block {
  display: grid;
  gap: 12px;
}

.wallet-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--text-muted);
}

.wallet-address {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(252, 191, 73, 0.28);
  background: rgba(14, 11, 18, 0.92);
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  word-break: break-all;
}

.wallet-hint {
  font-size: 13px;
  color: rgba(215, 207, 169, 0.8);
  margin: 0;
  text-align: center;
}

.promo-block {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(252, 191, 73, 0.28);
  background: rgba(18, 14, 24, 0.86);
  box-shadow: var(--shadow-md);
}

.promo-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--text-muted);
}

.promo-input-wrap {
  display: flex;
  gap: 12px;
}

.promo-input-wrap input {
  flex: 1 1 auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 215, 96, 0.2);
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 180ms ease;
}

.promo-input-wrap input:focus {
  border-color: #ffd760;
}

.promo-input-wrap input::placeholder {
  color: rgba(215, 207, 169, 0.5);
}

.promo-apply,
.promo-change {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 215, 96, 0.25);
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 18px;
  cursor: pointer;
  transition: all 180ms ease;
}

.promo-apply:hover,
.promo-change:hover {
  border-color: #ffd760;
  background: rgba(255, 215, 96, 0.1);
}

.promo-apply:active,
.promo-change:active {
  transform: scale(0.98);
}

.promo-change {
  border-color: rgba(255, 100, 100, 0.3);
  color: rgba(255, 150, 150, 0.9);
}

.promo-change:hover {
  border-color: rgba(255, 100, 100, 0.5);
  background: rgba(255, 100, 100, 0.08);
}


.payment-promo {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 215, 96, 0.15);
  background: rgba(0, 0, 0, 0.1);
}

.promo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.promo-discount {
  font-size: 11px;
  font-weight: 600;
  color: #FFD760;
  background: rgba(255, 215, 96, 0.15);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 96, 0.3);
}

.qr-code-placeholder {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.qr-mock {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 215, 96, 0.2);
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.1em;
}

.payment-actions {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.action-btn {
  border: none;
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 180ms ease;
}

.connect-btn {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: #1a1220;
  border: none;
  box-shadow: 0 4px 20px rgba(252, 191, 73, 0.3);
  transition: all 200ms ease;
}

.connect-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 32px rgba(252, 191, 73, 0.4);
  transform: translateY(-2px);
}

.connect-btn:active {
  transform: scale(0.98);
}

.action-btn-primary {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: #1a1220;
  border: none;
  box-shadow: 0 4px 20px rgba(252, 191, 73, 0.3);
}

.action-btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 32px rgba(252, 191, 73, 0.4);
  transform: translateY(-2px);
}

.action-btn-ghost {
  border: 1px solid rgba(255, 215, 96, 0.2);
  background: transparent;
  color: rgba(215, 207, 169, 0.85);
  font-weight: 500;
}

.action-btn-ghost:hover {
  border-color: rgba(255, 215, 96, 0.4);
  color: var(--text-primary);
  background: rgba(255, 215, 96, 0.05);
}

.connect-btn:focus-visible,
.promo-apply:focus-visible,
.promo-change:focus-visible,
.action-btn:focus-visible {
  outline: 2px solid rgba(252, 191, 73, 0.7);
  outline-offset: 3px;
}

.aside-head {
  display: grid;
  gap: 8px;
  padding-bottom: 16px;
}

.aside-head h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.product-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-height: none;
  overflow: visible;
}

.product-stack::-webkit-scrollbar {
  width: 5px;
}

.product-stack::-webkit-scrollbar-thumb {
  background: rgba(252, 191, 73, 0.3);
  border-radius: 999px;
}

.product-card {
  position: relative;
  border-radius: var(--radius-md);
  border: 1px solid rgba(252, 191, 73, 0.2);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  padding: 20px;
  min-height: 280px;
  overflow: visible;
  cursor: pointer;
  transition: all 180ms ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-md);
  padding: 1px;
  background: linear-gradient(145deg, #ffd760, transparent, #ffb347);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.product-icon {
  font-size: 30px;
  margin-bottom: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: left;
  width: 110px;
  height: 46px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  transition: all 180ms ease;
}

.product-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

.product-description {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(215, 207, 169, 0.85);
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(215, 207, 169, 0.85);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 215, 96, 0.25);
  background: transparent;
  color: #ffd760;
  font-size: 8px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.product-add {
  margin-top: auto;
  padding-top: 16px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(0, 0, 0, 0);
  font-size: 0;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 180ms ease;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 215, 96, 0.25);
  background: transparent;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: #ffd760;
  transition: all 180ms ease;
}

.product-card:hover {
  border-color: rgba(255, 215, 96, 0.4);
  background: rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover .product-icon {
  transform: scale(1.05);
}

.product-card:hover .btn-icon {
  border-color: var(--accent-start);
  background: rgba(255, 215, 96, 0.1);
  transform: scale(1.1);
}

.product-add:active {
  transform: scale(0.98);
}

.footer {
  text-align: center;
  color: rgba(215, 207, 169, 0.7);
  font-size: 13px;
  margin-top: 40px;
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-top: 1px solid rgba(252, 191, 73, 0.1);
}

.footer-telegram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.telegram-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 180ms ease;
  border: 1px solid transparent;
}

.telegram-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.telegram-btn-bot {
  background: linear-gradient(135deg, #0088cc, #229ED9);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 136, 204, 0.3);
}

.telegram-btn-bot:hover {
  background: linear-gradient(135deg, #0077b3, #1e8bc3);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 136, 204, 0.4);
}

.telegram-btn-support {
  background: rgba(24, 24, 36, 0.7);
  color: var(--text-primary);
  border-color: rgba(252, 191, 73, 0.2);
  backdrop-filter: blur(10px);
}

.telegram-btn-support:hover {
  background: rgba(24, 24, 36, 0.9);
  border-color: rgba(252, 191, 73, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(252, 191, 73, 0.2);
}

.telegram-btn:active {
  transform: scale(0.98);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-link {
  color: rgba(215, 207, 169, 0.85);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: color 180ms ease;
  letter-spacing: 0.02em;
}

.footer-link:hover {
  color: var(--accent-start);
  text-decoration: underline;
}

.footer-separator {
  color: rgba(215, 207, 169, 0.4);
  font-size: 12px;
}

.footer-copyright {
  margin: 0;
  font-size: 11px;
  color: rgba(215, 207, 169, 0.5);
  letter-spacing: 0.02em;
}

@media (max-width: 1480px) {
  .content {
    grid-template-columns: minmax(280px, 420px) minmax(580px, 820px) minmax(280px, 360px);
    gap: 32px;
  }
}

@media (max-width: 1280px) {
  body {
    padding: 30px;
  }

  .content {
    grid-template-columns: minmax(280px, 380px) minmax(540px, 760px);
  }

  .product-aside,
  .payment-aside {
    position: static;
    top: auto;
  }

  .product-stack {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .product-aside .aside-shell,
  .payment-aside .aside-shell {
    padding: 28px;
  }

  .product-aside {
    position: static;
  }

  .payment-aside {
    position: sticky;
    top: 24px;
  }

  .product-stack {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-height: none;
  }

  .payment-aside,
  .payment-panel {
    top: 24px;
  }
}

@media (max-width: 1024px) {
  .page {
    gap: 28px;
  }

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

  /* На мобильных: payment сверху, invoice в центре, products внизу */
  .payment-aside {
    order: 1;
  }

  .invoice-card {
    order: 1;
  }

  .product-aside {
    order: 3;
  }

  .product-aside,
  .payment-aside,
  .invoice-card {
    position: static;
    top: auto;
  }

  .product-aside .aside-shell,
  .payment-aside .aside-shell {
    padding: 28px;
  }

  .invoice-card {
    gap: 24px;
  }

  .card-head {
    padding: 28px 28px 0;
  }

  .card-body {
    padding: 0 28px 28px;
  }

  .invoice-head,
  .card-body {
    padding: 28px;
  }
}

@media (max-width: 720px) {
  body {
    padding: 12px 16px;
    font-size: 14px;
  }

  .page {
    gap: 24px;
  }

  .header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
  }

  .brand {
    flex: 1 1 auto;
  }

  .header-right {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: auto;
  }

  .header-bot-btn {
    padding: 9px 18px;
    font-size: 12px;
    gap: 6px;
  }

  .header-bot-btn .telegram-icon {
    width: 16px;
    height: 16px;
  }

  .header-bot-btn span {
    display: none;
  }

  .language-switcher {
    order: 2;
  }

  .network-badge {
    padding: 8px 14px;
    font-size: 10px;
  }

  .badge-label {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .badge-dot {
    width: 8px;
    height: 8px;
  }

  .brand {
    gap: 14px;
  }

  .logo {
    width: 48px;
    height: 48px;
    font-size: 24px;
    border-radius: 14px;
  }

  .brand-title {
    font-size: 18px;
  }

  .brand-subtitle {
    font-size: 12px;
  }

  .language-switcher {
    padding: 8px 12px;
    gap: 5px;
  }

  .lang-icon {
    font-size: 16px;
  }

  .lang-code {
    font-size: 11px;
  }

  .card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 20px 0;
  }

  .card-head h1 {
    font-size: 24px;
  }

  .invoice-head {
    padding: 0 0 12px 0;
  }

  .invoice-head h1 {
    font-size: 20px;
    white-space: normal;
  }

  .invoice-tagline {
    font-size: 13px;
  }

  .aside-head h2 {
    font-size: 20px;
    white-space: normal;
  }

  .aside-lead {
    font-size: 13px;
  }

  .panel-head h2 {
    font-size: 16px;
    white-space: normal;
  }

  .details-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .detail {
    gap: 4px;
  }

  .detail-label {
    font-size: 10px;
  }

  .detail-value {
    font-size: 14px;
  }

  .line-items-head,
  .line-item {
    grid-template-columns: 2fr 0.7fr 1fr;
    gap: 8px;
    font-size: 13px;
    padding: 8px 0;
  }

  .line-items-head span:first-child {
    padding-left: 24px;
  }

  .line-items-head span:nth-child(2) {
    display: none;
  }

  .line-item span:nth-child(2) {
    display: none;
  }

  .line-items-head span:last-child,
  .line-item span:last-child {
    text-align: right;
  }

  .line-items-head {
    font-size: 10px;
  }

  .remove-item-btn {
    width: 20px;
    height: 20px;
    font-size: 16px;
    border-radius: 6px;
  }

  .totals {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-aside .aside-shell,
  .payment-aside .aside-shell {
    padding: 0;
    gap: 16px;
  }

  .product-aside .aside-shell {
    padding-right: 0;
  }

  .payment-aside .aside-shell {
    padding-left: 0;
  }

  .invoice-card {
    padding: 0 12px;
  }

  .invoice-card::before,
  .invoice-card::after {
    display: none;
  }

  .panel {
    padding: 18px;
    gap: 16px;
  }

  .panel-head {
    padding-bottom: 12px;
    flex-wrap: wrap;
  }

  .card-body {
    gap: 16px;
  }

  .invoice-head {
    margin-bottom: -4px;
  }

  .product-stack {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .product-card {
    padding: 18px;
    min-height: auto;
  }

  .product-card h3 {
    font-size: 15px;
  }

  .product-description {
    font-size: 12px;
    line-height: 1.5;
  }

  .product-icon {
    font-size: 26px;
    width: 100px;
    height: 42px;
  }

  .feature-item {
    font-size: 11px;
  }

  .feature-icon {
    width: 12px;
    height: 12px;
    font-size: 7px;
  }

  .product-add {
    padding: 10px 18px;
  }

  .btn-icon {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  .status-summary-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    font-size: 12px;
  }

  .summary-left,
  .summary-right {
    gap: 6px;
  }

  .summary-status {
    font-size: 10px;
  }

  .summary-network-label {
    font-size: 10px;
  }

  .summary-network-value {
    font-size: 11px;
  }

  .empty-cart-state {
    padding: 36px 16px;
    gap: 12px;
  }

  .empty-cart-icon {
    font-size: 42px;
    margin-bottom: 4px;
  }

  .empty-cart-title {
    font-size: 17px;
  }

  .empty-cart-message {
    font-size: 12px;
    max-width: 320px;
  }

  .empty-cart-btn {
    padding: 12px 24px;
    font-size: 13px;
    margin-top: 8px;
  }

  .empty-cart-btn .btn-plus {
    width: 18px;
    height: 18px;
    font-size: 14px;
  }

  .payment-amount {
    padding: 16px;
  }

  .payment-section {
    gap: 10px;
  }

  .payment-section + .payment-section {
    padding-top: 14px;
  }

  .network-info {
    padding: 8px 0;
    margin-bottom: 12px;
    gap: 6px;
  }

  .network-icon {
    width: 18px;
    height: 18px;
  }

  .network-text {
    font-size: 11px;
  }

  .amount-breakdown {
    gap: 10px;
  }

  .breakdown-row {
    font-size: 12px;
    gap: 12px;
  }

  .breakdown-label {
    font-size: 11px;
  }

  .breakdown-value {
    font-size: 12px;
  }

  .total-row .breakdown-label {
    font-size: 12px;
  }

  .total-value {
    font-size: 16px;
  }

  .fee-tooltip {
    width: 14px;
    height: 14px;
    font-size: 10px;
  }

  .fee-percent {
    font-size: 11px;
  }

  .amount-hint {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .payment-promo {
    padding: 16px;
  }

  .payment-label {
    font-size: 10px;
  }
  
  .promo-discount {
    font-size: 10px;
    padding: 3px 8px;
  }

  .promo-input-wrap {
    gap: 10px;
    flex-wrap: wrap;
  }

  .promo-input-wrap input {
    font-size: 13px;
    padding: 11px 12px;
    min-width: 0;
    flex: 1 1 100%;
  }

  .promo-apply,
  .promo-change {
    padding: 13px 20px;
    font-size: 12px;
    flex: 1 1 100%;
    background: linear-gradient(135deg, rgba(255, 215, 96, 0.15), rgba(255, 179, 71, 0.12));
    border-color: rgba(255, 215, 96, 0.4);
    font-weight: 700;
  }
  
  .promo-change {
    background: transparent;
    border-color: rgba(255, 100, 100, 0.4);
  }

  .wallet-address {
    padding: 12px 14px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .qr-code-placeholder {
    margin-top: 12px;
    gap: 10px;
  }

  .qr-mock {
    width: 160px;
    height: 160px;
    font-size: 28px;
  }

  .wallet-hint {
    font-size: 12px;
  }

  .action-btn {
    padding: 14px 20px;
    font-size: 13px;
  }

  .payment-actions {
    gap: 10px;
    margin-top: 6px;
  }

  .payment-method {
    padding: 16px;
    margin-top: 12px;
  }

  .payment-method-title {
    font-size: 15px;
  }

  .payment-method-description {
    font-size: 12px;
  }

  .accordion-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .accordion-title {
    font-size: 16px;
  }

  .accordion-icon {
    font-size: 12px;
  }

  .faq-question {
    font-size: 14px;
  }

  .faq-answer {
    font-size: 13px;
  }

  .instruction-list {
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
  }

  .auto-fill-note {
    font-size: 12px;
  }

  .footer {
    font-size: 11px;
    margin-top: 32px;
    padding: 24px 4px;
    gap: 20px;
  }

  .footer-telegram {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .telegram-btn {
    width: 100%;
    max-width: 320px;
    padding: 13px 20px;
    font-size: 13px;
  }

  .telegram-icon {
    width: 18px;
    height: 18px;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }

  .footer-separator {
    display: none;
  }

  .footer-link {
    font-size: 11px;
  }

  .footer-copyright {
    font-size: 10px;
  }
}

/* Дополнительная адаптация для очень маленьких экранов */
@media (max-width: 480px) {
  body {
    padding: 12px;
    font-size: 13px;
  }

  .page {
    gap: 20px;
  }

  .header {
    gap: 12px;
  }

  .header-right {
    flex-direction: row;
    align-items: center;
    width: auto;
    gap: 8px;
  }

  .header-bot-btn {
    padding: 8px 16px;
    font-size: 11px;
  }

  .header-bot-btn .telegram-icon {
    width: 15px;
    height: 15px;
  }

  .language-switcher {
    align-self: flex-end;
  }

  .network-badge {
    align-self: flex-end;
    min-width: fit-content;
  }

  .brand {
    gap: 12px;
  }

  .logo {
    width: 42px;
    height: 42px;
    font-size: 22px;
    border-radius: 12px;
  }

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

  .brand-subtitle {
    font-size: 11px;
  }

  .language-switcher {
    padding: 7px 10px;
    gap: 4px;
  }

  .lang-icon {
    font-size: 15px;
  }

  .lang-code {
    font-size: 10px;
  }

  .invoice-head h1 {
    font-size: 18px;
  }

  .invoice-tagline {
    font-size: 12px;
  }

  .aside-head h2 {
    font-size: 18px;
  }

  .aside-lead {
    font-size: 12px;
  }

  .panel {
    padding: 16px;
    border-radius: var(--radius-sm);
  }

  .panel-head {
    padding-bottom: 10px;
  }

  .panel-head h2 {
    font-size: 15px;
  }

  .invoice-card {
    padding: 0 8px;
  }

  .card-body {
    gap: 12px;
  }

  .invoice-head {
    margin-bottom: -6px;
  }

  .product-aside .aside-shell,
  .payment-aside .aside-shell {
    gap: 12px;
  }

  .details-grid {
    gap: 14px;
  }

  .detail-label {
    font-size: 9px;
  }

  .detail-value {
    font-size: 13px;
  }

  .line-items-head,
  .line-item {
    grid-template-columns: 1.8fr 1fr;
    gap: 6px;
    font-size: 12px;
    padding: 6px 0;
  }

  .line-items-head span:first-child {
    padding-left: 22px;
  }

  .line-items-head span:nth-child(3) {
    display: none;
  }

  .line-item span:nth-child(3) {
    display: none;
  }

  .line-items-head {
    font-size: 9px;
  }

  .item-description {
    gap: 6px;
  }

  .remove-item-btn {
    width: 18px;
    height: 18px;
    font-size: 14px;
  }

  .status-summary-bar {
    padding: 10px 12px;
    font-size: 11px;
  }

  .summary-left,
  .summary-right {
    flex-wrap: wrap;
    gap: 4px;
  }

  .empty-cart-state {
    padding: 32px 12px;
    gap: 10px;
  }

  .empty-cart-icon {
    font-size: 38px;
  }

  .empty-cart-title {
    font-size: 16px;
  }

  .empty-cart-message {
    font-size: 11px;
    max-width: 280px;
  }

  .empty-cart-btn {
    padding: 11px 20px;
    font-size: 12px;
  }

  .product-card {
    padding: 16px;
  }

  .product-card h3 {
    font-size: 14px;
  }

  .product-description {
    font-size: 11px;
  }

  .product-icon {
    font-size: 24px;
    width: 90px;
    height: 38px;
  }

  .feature-item {
    font-size: 10px;
  }

  .product-add {
    padding: 8px 16px;
  }

  .btn-icon {
    width: 26px;
    height: 26px;
    font-size: 15px;
  }

  .payment-amount {
    padding: 14px;
  }

  .payment-section {
    gap: 8px;
  }

  .payment-section + .payment-section {
    padding-top: 12px;
  }

  .network-info {
    padding: 6px 0;
    margin-bottom: 10px;
    gap: 5px;
  }

  .network-icon {
    width: 16px;
    height: 16px;
  }

  .network-text {
    font-size: 10px;
  }

  .breakdown-row {
    font-size: 11px;
  }

  .breakdown-label {
    font-size: 10px;
  }

  .breakdown-value {
    font-size: 11px;
  }

  .total-row .breakdown-label {
    font-size: 11px;
  }

  .total-value {
    font-size: 15px;
  }

  .fee-tooltip {
    width: 13px;
    height: 13px;
    font-size: 9px;
  }

  .fee-percent {
    font-size: 10px;
  }

  .payment-promo {
    padding: 14px;
  }

  .promo-apply,
  .promo-change {
    padding: 12px 18px;
    font-size: 11px;
    background: linear-gradient(135deg, rgba(255, 215, 96, 0.18), rgba(255, 179, 71, 0.15));
    border-color: rgba(255, 215, 96, 0.45);
    font-weight: 700;
  }
  
  .promo-change {
    background: transparent;
    border-color: rgba(255, 100, 100, 0.45);
  }

  .payment-method {
    padding: 14px;
    margin-top: 10px;
  }

  .payment-method-title {
    font-size: 14px;
  }

  .payment-method-description {
    font-size: 11px;
  }

  .wallet-address {
    padding: 11px 12px;
    font-size: 10px;
  }

  .qr-mock {
    width: 140px;
    height: 140px;
    font-size: 24px;
  }

  .action-btn {
    padding: 13px 18px;
    font-size: 12px;
  }

  .accordion-title {
    font-size: 15px;
  }

  .accordion-icon {
    font-size: 11px;
  }

  .faq-list {
    gap: 14px;
  }

  .faq-question {
    font-size: 13px;
  }

  .faq-answer {
    font-size: 12px;
  }

  .instruction-list {
    font-size: 12px;
    padding-left: 18px;
  }

  .footer {
    font-size: 10px;
    margin-top: 28px;
    padding: 20px 4px;
    gap: 16px;
  }

  .footer-telegram {
    gap: 10px;
  }

  .telegram-btn {
    padding: 12px 18px;
    font-size: 12px;
    max-width: 280px;
  }

  .telegram-icon {
    width: 17px;
    height: 17px;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }

  .footer-separator {
    display: none;
  }

  .footer-link {
    font-size: 10px;
  }

  .footer-copyright {
    font-size: 9px;
  }
}

/* Оптимизация для landscape режима на мобильных */
@media (max-width: 896px) and (max-height: 414px) and (orientation: landscape) {
  body {
    padding: 12px;
  }

  .page {
    gap: 20px;
  }

  .header {
    gap: 10px;
  }

  .logo {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .brand-title {
    font-size: 15px;
  }

  .brand-subtitle {
    font-size: 11px;
  }

  .panel {
    padding: 14px;
  }

  .product-card {
    min-height: auto;
    padding: 14px;
  }

  .empty-cart-state {
    padding: 28px 16px;
  }

  .qr-mock {
    width: 120px;
    height: 120px;
  }
}

/* Улучшение touch-взаимодействия */
@media (hover: none) and (pointer: coarse) {
  .product-card {
    cursor: default;
  }

  .language-switcher,
  .product-add,
  .promo-apply,
  .promo-change,
  .action-btn,
  .empty-cart-btn,
  .remove-item-btn,
  .telegram-btn,
  .header-bot-btn,
  .accordion-header {
    min-height: 44px;
    cursor: default;
  }

  .language-switcher {
    min-width: auto;
  }

  .remove-item-btn {
    min-width: 32px;
    min-height: 32px;
  }

  /* Убираем hover эффекты на touch-устройствах */
  .product-card:hover {
    transform: none;
  }

  .product-card:active {
    border-color: rgba(255, 215, 96, 0.4);
    background: rgba(0, 0, 0, 0.3);
    transform: scale(0.98);
  }

  .promo-apply:hover,
  .promo-change:hover,
  .connect-btn:hover,
  .telegram-btn:hover,
  .header-bot-btn:hover {
    transform: none;
  }

  .empty-cart-btn:hover {
    transform: none;
  }

  .telegram-btn:active,
  .header-bot-btn:active {
    transform: scale(0.98);
  }
}

/* Payment Timer Styles */
.detail-timer {
  display: flex;
  align-items: center;
}

.timer-countdown {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

@media (max-width: 768px) {
  .timer-countdown {
    font-size: 14px;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 10, 8, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: linear-gradient(135deg, rgba(28, 20, 16, 0.98) 0%, rgba(20, 15, 12, 0.98) 100%);
  border: 1px solid rgba(255, 215, 96, 0.2);
  border-radius: 16px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(253, 246, 228, 0.6);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  color: rgba(253, 246, 228, 0.9);
  transform: rotate(90deg);
}

.modal-title {
  font-size: 24px;
  font-weight: 600;
  color: rgba(253, 246, 228, 0.95);
  margin: 0 0 24px 0;
  padding-right: 32px;
}

.product-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(253, 246, 228, 0.85);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(253, 246, 228, 0.05);
  border: 1px solid rgba(255, 215, 96, 0.2);
  border-radius: 8px;
  color: rgba(253, 246, 228, 0.95);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(255, 215, 96, 0.5);
  background: rgba(253, 246, 228, 0.08);
}

.form-group input::placeholder {
  color: rgba(253, 246, 228, 0.4);
}

.form-group select option {
  background: #1c1410;
  color: rgba(253, 246, 228, 0.95);
}

.modal-submit {
  margin-top: 8px;
  padding: 14px 24px;
  background: linear-gradient(135deg, rgba(255, 215, 96, 0.15) 0%, rgba(255, 215, 96, 0.08) 100%);
  border: 1px solid rgba(255, 215, 96, 0.3);
  border-radius: 8px;
  color: rgba(255, 215, 96, 0.95);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-submit:hover {
  background: linear-gradient(135deg, rgba(255, 215, 96, 0.25) 0%, rgba(255, 215, 96, 0.15) 100%);
  border-color: rgba(255, 215, 96, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 215, 96, 0.2);
}

.modal-submit:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .modal-content {
    padding: 24px;
  }

  .modal-title {
    font-size: 20px;
  }

  .form-group input,
  .form-group select {
    font-size: 14px;
  }
}

/* Lots Styles */
.lots-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lot-item {
  background: rgba(253, 246, 228, 0.03);
  border: 1px solid rgba(255, 215, 96, 0.15);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s ease;
}

.lot-item:hover {
  background: rgba(253, 246, 228, 0.05);
  border-color: rgba(255, 215, 96, 0.25);
}

.lot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 215, 96, 0.1);
}

.lot-title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 215, 96, 0.95);
  margin: 0;
}

.lot-amount {
  font-size: 16px;
  font-weight: 600;
  color: rgba(253, 246, 228, 0.95);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.lot-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lot-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.lot-label {
  font-size: 14px;
  color: rgba(253, 246, 228, 0.6);
  font-weight: 500;
}

.lot-value {
  font-size: 14px;
  color: rgba(253, 246, 228, 0.95);
  font-weight: 500;
  text-align: right;
}

@media (max-width: 768px) {
  .lot-item {
    padding: 12px;
  }

  .lot-title,
  .lot-amount {
    font-size: 14px;
  }

  .lot-label,
  .lot-value {
    font-size: 13px;
  }
}


/* Footer Styles */
.site-footer {
  margin-top: 60px;
  padding: 32px 20px;
  border-top: 1px solid rgba(255, 215, 96, 0.15);
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  color: var(--accent-start);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-link:hover {
  color: var(--accent-end);
  opacity: 0.8;
}

@media (max-width: 768px) {
  .header-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  
  .footer-links {
    gap: 16px;
  }
  
  .footer-link {
    font-size: 12px;
  }
}
