@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: 1400px;
  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 {
  display: flex;
  align-items: center;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.nav a:hover { color: var(--text); }

.nav-cta {
  margin-left: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #072019 !important;
}
.nav-cta:hover { filter: brightness(1.08); }
.nav-cta-main { font-size: 14px; font-weight: 700; }
.nav-cta-sub { font-size: 10px; font-weight: 500; opacity: 0.85; }

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

/* ---------- Мини-инструкция "как это работает" ---------- */
.how-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.how-step {
  flex: 1 1 150px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.35;
}
.how-step-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
}
.how-step-btn {
  pointer-events: none;
  font-size: 12px;
  padding: 8px 12px;
  cursor: default;
}
.how-step-apps {
  display: flex;
  gap: 8px;
  align-items: center;
}
.how-step-apps img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
}
@media (max-width: 760px) {
  .how-step { flex: 1 1 42%; }
}

/* ---------- Email step ---------- */
.email-card {
  background: var(--panel);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
  width: 100%;
  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: 10px;
  padding-bottom: 20px;
}

/* ---------- Разбивка страницы: слева покупка, справа вход ---------- */
.main-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}
.col-login {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.login-col {
  margin-bottom: 22px;
}
.login-col:last-child {
  margin-bottom: 0;
}
.login-col label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.login-col input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font-size: 15px;
  margin-bottom: 10px;
}
.inline-input {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font-size: 14px;
  margin-right: 8px;
}
#login-result-block:not(:empty), #tg-result-block:not(:empty) {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .main-columns { grid-template-columns: 1fr; }
}
.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(210px, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.clients-grid-featured {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.client-card-featured .client-icon {
  width: 44px;
  height: 44px;
}
.client-card-featured .client-app {
  font-size: 19px;
}
.client-os-inline {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.card-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.client-card > .card-step:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 2px;
}
.card-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #072019;
  font-size: 12px;
  font-weight: 800;
}
.usage-bar-wrap {
  margin: 10px 0;
}
.usage-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.usage-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--panel-2);
  overflow: hidden;
}
.usage-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width .3s ease;
}
.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: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .15s ease, transform .15s ease;
}
.client-card:hover {
  border-color: rgba(110,231,201,0.4);
  transform: translateY(-2px);
}
.client-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  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;
}

