@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --bg: #11131b;
  --panel: #1a1e2b;
  --panel-2: #222838;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef1f7;
  --muted: #96a0b5;
  --accent: #6ee7c9;     /* стекло окна на рассвете */
  --accent-2: #f4a35f;   /* тёплый свет сквозь окно */
  --danger: #f2726a;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

a { color: inherit; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.nav a:hover { color: var(--text); }

/* ---------- Hero (compact — email+tariffs visible without scrolling) ---------- */
.hero-compact {
  padding-top: 16px;
}
.hero-compact h1 {
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.15;
  margin-bottom: 14px;
}
.hero-compact h1 em {
  font-style: italic;
  color: var(--accent);
}

/* ---------- Email step ---------- */
.email-card {
  background: var(--panel);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
  max-width: 480px;
  margin-bottom: 16px;
}
.email-card label {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 15px;
  margin-bottom: 6px;
}
.email-card input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font-size: 16px;
}
.email-hint {
  color: var(--muted);
  font-size: 12px;
  margin: 6px 0 0;
}

/* ---------- Tariffs ---------- */
.section-title {
  font-size: 26px;
  margin-bottom: 6px;
}
.section-sub {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 32px;
}
.tariffs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 20px;
}
.tariff-row {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color .15s ease;
}
.tariff-row:hover {
  border-color: rgba(110,231,201,0.4);
}
.tariff-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.tariff-name {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tariff-price {
  font-size: 17px;
  font-weight: 700;
}
.tariff-price small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.tariff-row .btn {
  padding: 9px 16px;
  font-size: 13px;
  flex-shrink: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: filter .15s ease, transform .1s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #072019; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); }
.btn-tg { background: #2aabee; color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ---------- Cabinet ---------- */
.cabinet-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin: 48px 0;
}
.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
}
.dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--muted);
}
.dot.ok { background: var(--accent); }
.dot.pending { background: var(--accent-2); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.copy-box {
  display: flex;
  gap: 8px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  align-items: center;
  margin: 18px 0;
}
.copy-box code {
  flex: 1;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 13px;
  color: var(--accent);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.clients-grid-featured {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.clients-grid-featured .client-icon {
  width: 44px;
  height: 44px;
}
.clients-grid-featured .client-app {
  font-size: 19px;
}
.import-row {
  display: flex;
  gap: 8px;
}
.import-row .btn {
  font-size: 13px;
  padding: 10px 12px;
}
.import-row .btn-primary {
  flex: 2;
}
.import-row .btn-secondary {
  flex: 1;
  white-space: nowrap;
}
.store-row {
  display: flex;
  gap: 8px;
}
.store-row .btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 8px;
  font-size: 13px;
  white-space: nowrap;
}
.btn-routing {
  background: rgba(244, 163, 95, 0.16);
  color: var(--accent-2);
  border: 1px solid rgba(244, 163, 95, 0.4);
  font-size: 13px;
}
.btn-routing:hover { background: rgba(244, 163, 95, 0.26); }
.client-desktop {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}
.client-desktop:hover { color: var(--accent); }
.client-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.client-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}
.client-icon-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #072019;
  font-weight: 700;
  font-family: 'Fraunces', serif;
}
.client-note {
  font-size: 11px;
  color: var(--danger);
}
.client-os {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.client-app {
  font-family: 'Fraunces', serif;
  font-size: 16px;
}
.client-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.client-actions .btn {
  padding: 8px 12px;
  font-size: 12px;
  flex: 1;
}
.client-card-featured {
  border-color: rgba(110,231,201,0.5);
}

.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  text-align: center;
}
.qr-box img {
  width: 220px;
  height: 220px;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
}

.order-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
}
.order-card .order-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}
.order-card .badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.badge.paid { background: rgba(110,231,201,0.15); color: var(--accent); }
.badge.pending { background: rgba(244,163,95,0.15); color: var(--accent-2); }
.badge.failed { background: rgba(242,114,106,0.15); color: var(--danger); }

.divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 14px 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .window { max-width: 320px; margin: 0 auto; }
}
