:root {
  --bg: #07070a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-2: rgba(255, 255, 255, 0.17);
  --text: #f5f5f7;
  --muted: #9a9aa6;
  --red: #ff3b52;
  --red-2: #d61b3b;
  --red-glow: rgba(255, 59, 82, 0.35);
  --green: #35d07f;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; }
.hidden { display: none !important; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-fill { fill: currentColor; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

/* ------------------------------------------------------------ background */

.bg-glow { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(110px); }
.glow.g1 {
  width: 620px; height: 420px;
  top: -180px; left: 50%; margin-left: -310px;
  background: rgba(255, 59, 82, 0.30);
  animation: glow-drift 14s ease-in-out infinite alternate;
}
.glow.g2 {
  width: 420px; height: 420px;
  bottom: -160px; left: -120px;
  background: rgba(160, 20, 50, 0.22);
  animation: glow-drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes glow-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, 30px, 0) scale(1.12); }
}

/* --------------------------------------------------------------- layout */

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 7, 10, 0.65);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: 0.5px; }
.logo-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 11px;
  color: #ff5a6e;
  background: linear-gradient(145deg, rgba(255, 59, 82, 0.25), rgba(255, 59, 82, 0.05));
  border: 1px solid rgba(255, 59, 82, 0.35);
  box-shadow: 0 0 20px rgba(255, 59, 82, 0.25);
}
.logo-mark .icon { width: 18px; height: 18px; filter: drop-shadow(0 0 6px rgba(255, 59, 82, 0.7)); }
.logo-text b { color: var(--red); }
.topnav-link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.topnav-link:hover { color: var(--text); border-color: var(--border-2); background: var(--surface); }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 8px;
}
body.is-home .layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 480px);
  justify-content: space-between;
  align-items: start;
  gap: 56px;
  padding-top: 64px;
}

#hero, #landing-extra { display: none; }
body.is-home #hero { display: block; }
body.is-home #landing-extra { display: block; }

/* ------------------------------------------------------------------ hero */

.hero { position: relative; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ffb3bd;
  background: rgba(255, 59, 82, 0.10);
  border: 1px solid rgba(255, 59, 82, 0.25);
}
.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.8); } }

.hero-title {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.grad {
  background: linear-gradient(90deg, #ff8a98, #ff3b52 55%, #d61b3b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { margin: 0 0 26px; max-width: 500px; font-size: 17px; color: var(--muted); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-stat {
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.hero-stat b { display: block; font-size: 20px; letter-spacing: -0.01em; }
.hero-stat span { font-size: 12.5px; color: var(--muted); }
.hero-bolt {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: -90px;
  width: 170px;
  opacity: 0.10;
  transform: rotate(10deg);
  filter: drop-shadow(0 0 30px rgba(255, 59, 82, 0.7));
  pointer-events: none;
}

/* ----------------------------------------------------------------- panel */

.panel {
  position: relative;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(255, 59, 82, 0.10);
}
.panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: 25px;
  background: linear-gradient(160deg, rgba(255, 59, 82, 0.55), transparent 35%, transparent 70%, rgba(255, 59, 82, 0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.state { text-align: center; color: var(--muted); padding: 40px 0; }

.banner {
  display: flex;
  gap: 10px;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(255, 170, 60, 0.08);
  border: 1px solid rgba(255, 170, 60, 0.28);
}
.banner-ok { background: rgba(53, 208, 127, 0.08); border-color: rgba(53, 208, 127, 0.3); }
.banner-info { background: rgba(90, 160, 255, 0.08); border-color: rgba(90, 160, 255, 0.28); }
.banner-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  color: #ffb74a;
  background: rgba(255, 170, 60, 0.14);
}
.banner-ok .banner-icon { color: var(--green); background: rgba(53, 208, 127, 0.14); }
.banner-info .banner-icon { color: #7db4ff; background: rgba(90, 160, 255, 0.14); }
.banner-title { font-weight: 600; font-size: 14px; }
.banner-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

.sub-card {
  padding: 16px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.sub-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.label { font-size: 11px; color: var(--muted); letter-spacing: 0.8px; text-transform: uppercase; }
.username { margin-top: 2px; font-weight: 700; font-size: 17px; word-break: break-all; }

.badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(53, 208, 127, 0.12);
  color: var(--green);
}
.badge.badge-red { background: rgba(255, 59, 82, 0.14); color: var(--red); }
.badge.badge-muted { background: rgba(154, 154, 166, 0.14); color: var(--muted); }

.traffic { margin-top: 16px; }
.traffic-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; }
.traffic-bar { height: 6px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, 0.08); }
.traffic-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--red-2), var(--red)); }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #d8d8de;
}

/* ------------------------------------------------------------------ tabs */

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding: 11px 8px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.tab:hover:not(.active) { color: var(--text); }
.tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  box-shadow: 0 6px 20px var(--red-glow);
}

/* ------------------------------------------------------------- plan cards */

.plans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }

.plan-card {
  position: relative;
  padding: 15px 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  will-change: transform;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.25s ease, transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.plan-card:hover { border-color: var(--border-2); background: var(--surface-2); transform: translateY(-2px); }
.plan-card:active { transform: scale(0.97); }
.plan-card.full { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.plan-card.selected {
  border-color: rgba(255, 59, 82, 0.85);
  background: linear-gradient(180deg, rgba(255, 59, 82, 0.15), rgba(255, 59, 82, 0.04));
  box-shadow: 0 0 0 1px rgba(255, 59, 82, 0.5), 0 10px 30px rgba(255, 59, 82, 0.2);
  transform: translateY(-2px);
  animation: plan-pop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes plan-pop {
  0% { transform: scale(0.96); }
  60% { transform: translateY(-2px) scale(1.03); }
  100% { transform: translateY(-2px) scale(1); }
}
.plan-card.popular::before {
  content: "ХИТ";
  position: absolute;
  top: -9px;
  left: 12px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #1a0509;
  background: linear-gradient(90deg, #ff9aa6, #ff3b52);
}
.plan-days { font-size: 13.5px; font-weight: 600; }
.plan-price { margin-top: 4px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; transition: color 0.2s ease; }
.plan-card.selected .plan-price { color: #ff6a7d; }
.plan-per-day { margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.plan-discount {
  position: absolute;
  top: -8px;
  right: 10px;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text);
  background: #34343d;
  transition: background 0.2s ease, transform 0.2s ease;
}
.plan-card.selected .plan-discount { background: var(--red); transform: scale(1.08); }
.plan-card.full .plan-discount { position: static; margin-right: 8px; }
.plan-radio {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.plan-card.selected .plan-radio {
  border-color: var(--red);
  background: var(--red);
  box-shadow: inset 0 0 0 3px #1a0d11;
  transform: scale(1.12);
}
.plan-card.full .plan-radio { display: none; }
.plan-full-left { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.plan-full-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.plan-full-per-day { font-size: 11.5px; color: var(--muted); }
.plan-full-price { font-size: 20px; font-weight: 800; white-space: nowrap; }

/* --------------------------------------------------------- summary & pay */

.pay-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
  border-radius: 16px;
  font-size: 14px;
  background: linear-gradient(135deg, rgba(255, 59, 82, 0.11), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 59, 82, 0.26);
}
.pay-summary .amount {
  display: inline-block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  animation: amount-pop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes amount-pop {
  0% { transform: scale(0.85); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

.extra-device-note {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
}

.pay-methods { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; }
.chip {
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.pay-button {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 17px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.6px;
  cursor: pointer;
  background:
    linear-gradient(#0b0b0f, #0b0b0f) padding-box,
    linear-gradient(120deg, #ff9aa6, #ff3b52 45%, #d61b3b) border-box;
  box-shadow: 0 8px 30px rgba(255, 59, 82, 0.18);
  transition: box-shadow 0.25s ease, transform 0.15s ease, background 0.25s ease;
}
.pay-button::before {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 45%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 59, 82, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.pay-button:hover:not(:disabled) {
  background:
    linear-gradient(#1a0b10, #1a0b10) padding-box,
    linear-gradient(120deg, #ff9aa6, #ff3b52 45%, #d61b3b) border-box;
  box-shadow: 0 10px 40px rgba(255, 59, 82, 0.42);
}
.pay-button:hover:not(:disabled)::before { left: 130%; }
.pay-button:disabled { opacity: 0.7; cursor: not-allowed; }
.pay-button:active:not(:disabled) { transform: scale(0.98); }

.pay-label { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.pay-button .pay-label .icon { color: #ff6a7d; }
.pay-button.is-loading .pay-label { visibility: hidden; }
.pay-button-spinner {
  display: none;
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  border: 2.5px solid rgba(255, 59, 82, 0.25);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: pay-spin 0.7s linear infinite;
}
.pay-button.is-loading .pay-button-spinner { display: block; }
@keyframes pay-spin { to { transform: rotate(360deg); } }

.error-text { margin-top: 10px; font-size: 13px; text-align: center; color: var(--red); }

.secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 13px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.secondary-button:hover {
  border-color: rgba(255, 59, 82, 0.6);
  background: rgba(255, 59, 82, 0.08);
  transform: translateY(-1px);
}
.secondary-button:active { transform: translateY(0) scale(0.98); }

/* ---------------------------------------------------------------- forms */

.id-form-row { display: flex; gap: 8px; }
.id-input {
  flex: 1;
  min-width: 0;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.id-input::placeholder { color: #6d6d78; }
.id-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 59, 82, 0.18); }
.id-submit {
  padding: 13px 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--red-glow);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.id-submit:hover:not(:disabled) { box-shadow: 0 8px 28px rgba(255, 59, 82, 0.5); }
.id-submit:active { transform: scale(0.97); }
.id-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.device-picker-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper-btn {
  width: 38px; height: 38px;
  border-radius: 11px;
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.stepper-btn:hover:not(:disabled) { border-color: var(--red); background: rgba(255, 59, 82, 0.1); }
.stepper-btn:active:not(:disabled) { transform: scale(0.92); }
.stepper-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper-value { min-width: 22px; text-align: center; font-size: 20px; font-weight: 800; }

/* ------------------------------------------------------------- devices */

.devices-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.device-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.device-icon {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  color: #ff8a98;
  background: rgba(255, 59, 82, 0.08);
  border: 1px solid rgba(255, 59, 82, 0.2);
}
.device-icon .icon { width: 17px; height: 17px; }
.device-row-text { flex: 1; min-width: 0; }
.device-name { font-weight: 600; }
.device-meta { font-size: 11.5px; color: var(--muted); }
.device-client { margin-top: 2px; font-size: 11.5px; color: #ff8a98; }
.device-delete {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.device-delete:hover { color: #fff; background: rgba(255, 59, 82, 0.22); border-color: var(--red); }
.device-delete:active { transform: scale(0.94); }
.device-delete .icon { width: 14px; height: 14px; }

/* ------------------------------------------------- "subscription is ready" */

.order-card { text-align: center; }
.order-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  margin: 0 auto 10px;
  border-radius: 20px;
}
.order-icon .icon { width: 30px; height: 30px; }
.order-icon.ok { color: var(--green); background: rgba(53, 208, 127, 0.12); border: 1px solid rgba(53, 208, 127, 0.35); box-shadow: 0 0 34px rgba(53, 208, 127, 0.25); }
.order-icon.wait { color: #ffb74a; background: rgba(255, 170, 60, 0.12); border: 1px solid rgba(255, 170, 60, 0.35); box-shadow: 0 0 34px rgba(255, 170, 60, 0.2); }
.order-icon.bad { color: var(--red); background: rgba(255, 59, 82, 0.12); border: 1px solid rgba(255, 59, 82, 0.35); box-shadow: 0 0 34px rgba(255, 59, 82, 0.25); }
.order-title { margin: 8px 0 6px; font-size: 18px; font-weight: 800; }
.order-spinner {
  width: 32px; height: 32px;
  margin: 6px auto 12px;
  border: 3px solid rgba(255, 59, 82, 0.25);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: pay-spin 0.8s linear infinite;
}
.order-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; text-align: left; }
.order-fields b { display: block; margin-top: 2px; font-size: 15px; word-break: break-all; }
.copy-row { display: flex; gap: 8px; margin: 6px 0 10px; }
.copy-row .id-input { font-size: 12px; }

.app-buttons { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.app-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.app-button:hover {
  border-color: var(--red);
  background: rgba(255, 59, 82, 0.1);
  transform: translateY(-1px);
}
.app-button:active { transform: scale(0.98); }

/* ------------------------------------------------------- landing sections */

.section { padding-top: 72px; }
.section-head { margin-bottom: 30px; text-align: center; }
.section-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--red); }
.section-title { margin: 8px 0 0; font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.02em; }

.steps, .features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step, .feature {
  padding: 22px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.step h3, .feature h3 { margin: 0 0 6px; font-size: 16.5px; }
.step p, .feature p { margin: 0; font-size: 14px; color: var(--muted); }
.step-num {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  color: #ff8a98;
  background: rgba(255, 59, 82, 0.14);
  border: 1px solid rgba(255, 59, 82, 0.4);
  box-shadow: 0 0 18px rgba(255, 59, 82, 0.25);
}
.feature { transition: transform 0.2s ease, border-color 0.2s ease; }
.feature:hover { transform: translateY(-3px); border-color: rgba(255, 59, 82, 0.4); }
.feature-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  color: #ff8a98;
  background: rgba(255, 59, 82, 0.10);
  border: 1px solid rgba(255, 59, 82, 0.25);
}
.feature-icon .icon { width: 22px; height: 22px; }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details {
  padding: 0 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}
.faq details[open] { border-color: rgba(255, 59, 82, 0.35); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--red); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; font-size: 14.5px; color: var(--muted); }

/* --------------------------------------------------------------- footer */

.site-footer { margin-top: 72px; padding: 32px 0 44px; text-align: center; border-top: 1px solid var(--border); }
.bots-row { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.bot-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.bot-link:hover { transform: translateY(-2px); }
.bot-whatsapp { color: #25d366; }
.bot-whatsapp:hover { border-color: #25d366; background: rgba(37, 211, 102, 0.08); }
.bot-telegram { color: #2aabee; }
.bot-telegram:hover { border-color: #2aabee; background: rgba(42, 171, 238, 0.08); }
.footer-note { margin: 22px 0 0; font-size: 12.5px; color: #6d6d78; }
.footer-note + .footer-note { margin-top: 8px; }
.footer-link { color: #9a9aa6; text-decoration: underline; text-underline-offset: 3px; }
.footer-link:hover { color: #f5f5f7; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  body.is-home .layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 32px; }
  .hero { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-stats { justify-content: center; }
  .hero-bolt { display: none; }
  .steps, .features { grid-template-columns: 1fr; }
  .section { padding-top: 56px; }
}

@media (max-width: 600px) {
  body.is-home .layout { gap: 24px; padding-top: 22px; }
  .hero-title { margin: 14px 0 10px; font-size: 30px; }
  .hero-sub { margin-bottom: 0; font-size: 15px; }
  .hero-stats { display: none; }
}

@media (max-width: 480px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .panel { padding: 14px; border-radius: 20px; }
  .tab { padding: 11px 4px; gap: 6px; font-size: 12.5px; white-space: nowrap; }
  .id-form-row { flex-direction: column; }
  .order-fields { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------- hub actions */

.hub-actions {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 184, 74, 0.14), rgba(255, 184, 74, 0.03));
  border: 1px solid rgba(255, 184, 74, 0.4);
  box-shadow: 0 0 30px rgba(255, 184, 74, 0.12);
}
.hub-actions-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hub-actions-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 12px;
  color: #ffcf7a;
  background: rgba(255, 184, 74, 0.15);
  border: 1px solid rgba(255, 184, 74, 0.4);
}
.hub-actions-icon .icon { width: 20px; height: 20px; fill: currentColor; }
.hub-actions-title { font-weight: 800; font-size: 15px; }
.hub-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hub-action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 184, 74, 0.4);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit; font-size: 13.5px; font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.hub-action-btn .icon { width: 22px; height: 22px; color: #ffcf7a; }
.hub-action-btn:hover { background: rgba(255, 184, 74, 0.12); border-color: #ffcf7a; }
.hub-action-btn:active { transform: scale(0.97); }

.qr-box {
  margin: 6px auto 4px;
  padding: 16px;
  max-width: 240px;
  background: #fff;
  border-radius: 16px;
  display: grid;
  place-items: center;
}
.qr-box svg { width: 100%; height: auto; display: block; }

@media (max-width: 380px) {
  .hub-actions-row { grid-template-columns: 1fr; }
}

/* Promo button */

.topnav { display: flex; align-items: center; gap: 8px; }
button.topnav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  cursor: pointer;
  background: transparent;
}
button.topnav-link .icon { color: var(--red); }

/* Promo modal */

.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 7, 0.74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 28px 22px 22px;
  text-align: center;
  border-radius: 22px;
  background: linear-gradient(180deg, #15151b, #0d0d12);
  border: 1px solid rgba(255, 59, 82, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 59, 82, 0.15);
  animation: modal-in 0.22s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.modal-close:hover { color: var(--text); border-color: var(--border-2); }
.modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ff8a98;
  background: rgba(255, 59, 82, 0.12);
  border: 1px solid rgba(255, 59, 82, 0.35);
  box-shadow: 0 0 30px rgba(255, 59, 82, 0.25);
}
.modal-icon .icon { width: 26px; height: 26px; }
.modal-card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.modal-card .id-form-row { margin-top: 16px; }

#promo-open .short { display: none; }

@media (max-width: 480px) {
  #promo-open .full { display: none; }
  #promo-open .short { display: inline; }
  #promo-open { gap: 5px; }
  .topnav { gap: 6px; }
  .topnav-link { padding: 8px 10px; font-size: 13px; }
  .logo-text { white-space: nowrap; }
}

@media (max-width: 400px) {
  .logo { gap: 8px; }
  .logo-mark { width: 32px; height: 32px; }
  .logo-text { font-size: 14px; }
  .topnav-link { padding: 7px 9px; font-size: 12.5px; }
}

@media (max-width: 350px) {
  #promo-open .icon { display: none; }
  .logo-text { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
