/* ============================================================
   SardorPOS — лендинг
   Палитра и радиусы взяты из дизайн-системы приложения
   (shadcn Twitter theme, primary #1939DA, radius 0.375rem).
   ============================================================ */

:root {
  --primary: #1939da;
  --primary-hover: #142fb4;
  --primary-soft: #eef1fe;
  --primary-ring: rgba(25, 57, 218, 0.35);

  --ink: #0f1419;
  --ink-2: #2b3440;
  --muted: #5b6673;
  --line: #dfe3e9;
  --line-soft: #ecf0f4;

  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-dark: #0f1419;
  --card: #ffffff;

  --success: #22c55e;
  --warning: #f59e0b;
  --info: #0891b2;
  --danger: #f4212e;

  --order-active: #1f6f5f;
  --order-printed: #f16821;
  --order-changed: #db1a1a;

  --radius: 0.375rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.125rem;

  --shadow-sm: 0 1px 2px rgba(15, 20, 25, 0.06), 0 1px 3px rgba(15, 20, 25, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 20, 25, 0.07), 0 2px 4px rgba(15, 20, 25, 0.04);
  --shadow-lg: 0 24px 60px rgba(15, 20, 25, 0.14), 0 8px 20px rgba(15, 20, 25, 0.07);

  --container: 1180px;
  --header-h: 64px;

  /* Иконки действий заказа (те же, что в приложении: Eye, ArrowRightLeft, Ban, Lock, Printer) */
  --i-eye: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7z'/><circle cx='12' cy='12' r='3'/></svg>");
  --i-swap: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M8 3 4 7l4 4'/><path d='M4 7h16'/><path d='m16 21 4-4-4-4'/><path d='M20 17H4'/></svg>");
  --i-ban: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='m4.9 4.9 14.2 14.2'/></svg>");
  --i-lock: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='11' width='18' height='11' rx='2'/><path d='M7 11V7a5 5 0 0 1 10 0v4'/></svg>");
  --i-print: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9V2h12v7'/><path d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/><rect x='6' y='14' width='12' height='8'/></svg>");
  --i-phone: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2 4.2 2 2 0 0 1 4 2h3a2 2 0 0 1 2 1.7c.1 1 .3 1.9.6 2.8a2 2 0 0 1-.4 2.1L8 9.8a16 16 0 0 0 6 6l1.2-1.2a2 2 0 0 1 2.1-.4c.9.3 1.8.5 2.8.6a2 2 0 0 1 1.7 2z'/></svg>");
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
code {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.875em;
}
img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 11px 18px;
  min-height: 44px;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease,
    transform 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(25, 57, 218, 0.35);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--ink); border-color: transparent; }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary); }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.btn-lg { min-height: 50px; padding: 13px 26px; font-size: 16px; }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px rgba(15, 20, 25, 0.05);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); }
.brand-mark { width: 34px; height: 34px; object-fit: contain; }
.brand-text {
  color: var(--ink);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand-text strong { font-weight: 800; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a {
  padding: 9px 12px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.16s ease, background-color 0.16s ease;
}
.nav > a:hover { color: var(--primary); background: var(--primary-soft); }
.nav > a.is-current { color: var(--primary); }
.nav > a.nav-phone {
  margin-left: 8px;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nav > a.nav-phone:hover { background: var(--primary-soft); }
.nav > a.nav-cta { margin-left: 8px; color: #fff; background: var(--primary); }
.nav > a.nav-cta:hover { color: #fff; background: var(--primary-hover); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  padding: 0;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */

.hero { position: relative; overflow: hidden; padding: 72px 0 84px; }
.hero-glow {
  position: absolute;
  inset: -220px -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(60% 60% at 22% 40%, rgba(25, 57, 218, 0.16), transparent 70%),
    radial-gradient(45% 55% at 78% 20%, rgba(8, 145, 178, 0.12), transparent 70%);
  filter: blur(4px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(25, 57, 218, 0.16);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
}
.pill .dot,
.mock-live .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.lead { font-size: 18px; color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }

.hero-checks { display: grid; gap: 10px; }
.hero-checks li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: var(--ink-2);
}
.hero-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px rgba(25, 57, 218, 0.2);
}
.hero-checks li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

/* ---------------- App mock ---------------- */

.mock-window {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.mock-window:hover { transform: perspective(1600px) rotateY(0deg) rotateX(0deg); }

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: #d3d9e0; }
.tl-dot:nth-child(1) { background: #ff5f57; }
.tl-dot:nth-child(2) { background: #febc2e; }
.tl-dot:nth-child(3) { background: #28c840; }
.mock-title {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.mock-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.mock-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.mock-tab {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 14px 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.mock-tab:hover { color: var(--ink); }
.mock-tab.is-active { color: var(--primary); border-bottom-color: var(--primary); }

.mock-body { padding: 18px; min-height: 366px; background: var(--bg-alt); }
.mock-pane { display: none; animation: fadeUp 0.32s ease both; }
.mock-pane.is-active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Фильтры столов — как в приложении: border-2, счётчик в бейдже */
.mock-filters { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.ftab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.ftab b {
  background: rgba(25, 57, 218, 0.14);
  color: var(--primary);
  border-radius: 4px;
  padding: 0 5px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.ftab.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.ftab.is-on b { background: rgba(255, 255, 255, 0.22); color: #fff; }

.zone-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

.table-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

/* Свободный / занятый стол */
.t-free {
  min-height: 120px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.t-free:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.tf-num { font-size: 22px; font-weight: 700; line-height: 1.1; }
.tf-state {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.tf-who { font-size: 12px; color: var(--ink-2); }
.t-free.is-busy { border-color: var(--warning); }
.t-free.is-busy:hover { border-color: var(--warning); }
.t-free.is-busy .tf-state { color: #a86a06; }

/* Карточка заказа: цветная шапка и подвал, белая середина, ряд действий */
.t-order {
  --acc: var(--order-active);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--acc);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.16s ease;
}
.t-order:hover { box-shadow: var(--shadow-md); }
.o-active { --acc: var(--order-active); }
.o-printed { --acc: var(--order-printed); }
.o-changed { --acc: var(--order-changed); }

.t-order header {
  background: var(--acc);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  padding: 3px 6px;
}
.t-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 4px;
}
.t-meta { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.t-total { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.t-tools { display: flex; justify-content: center; gap: 2px; padding-bottom: 4px; }
.t-order footer {
  background: var(--acc);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  padding: 2px 6px;
}

/* Иконки действий (mask, чтобы красились цветом текста) */
.ic {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  color: var(--muted);
}
.ic::before {
  content: "";
  width: 15px;
  height: 15px;
  background-color: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.ic-eye::before {
  -webkit-mask-image: var(--i-eye);
  mask-image: var(--i-eye);
}
.ic-swap::before {
  -webkit-mask-image: var(--i-swap);
  mask-image: var(--i-swap);
}
.ic-ban::before {
  -webkit-mask-image: var(--i-ban);
  mask-image: var(--i-ban);
  color: var(--danger);
}
.ic-ban { color: var(--danger); }
.ic-lock { color: var(--primary); }
.ic-lock::before {
  -webkit-mask-image: var(--i-lock);
  mask-image: var(--i-lock);
}
.ic-print::before {
  -webkit-mask-image: var(--i-print);
  mask-image: var(--i-print);
}
.ic b {
  position: absolute;
  top: 0;
  right: -1px;
  min-width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.mock-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
}
.mock-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.lg-active { background: var(--order-active); }
.lg-printed { background: var(--order-printed); }
.lg-changed { background: var(--order-changed); }

.order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.order-head strong { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.order-head .muted { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-info { background: #e6f4f8; color: #076e88; }
.badge-success { background: #e7f8ee; color: #157a41; }
.badge-warning { background: #fdf3e0; color: #a86a06; }

.order-lines { padding: 6px 0; display: grid; }
.order-lines li { padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.ol-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ol-top .n { font-size: 14px; font-weight: 500; }
.ol-top .p { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ol-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ol-sub .who {
  background: rgba(25, 57, 218, 0.1);
  color: var(--primary);
  font-weight: 600;
  border-radius: 3px;
  padding: 1px 5px;
}

.order-total { padding: 10px 0 12px; display: grid; gap: 6px; }
.ot-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ot-grand {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.order-actions .btn { cursor: default; }

.rep-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.kpi-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.kpi-value {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.kpi-sub { font-size: 12px; color: var(--muted); }

.chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 168px;
  padding: 12px 12px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.chart .bar {
  flex: 1;
  height: var(--h);
  min-height: 6px;
  background: linear-gradient(180deg, var(--primary) 0%, #4a63e6 100%);
  border-radius: 3px 3px 0 0;
  position: relative;
  transform-origin: bottom;
  animation: grow 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.chart .bar:nth-child(2) { animation-delay: 0.05s; }
.chart .bar:nth-child(3) { animation-delay: 0.1s; }
.chart .bar:nth-child(4) { animation-delay: 0.15s; }
.chart .bar:nth-child(5) { animation-delay: 0.2s; }
.chart .bar:nth-child(6) { animation-delay: 0.25s; }
.chart .bar:nth-child(7) { animation-delay: 0.3s; }
.chart .bar:nth-child(8) { animation-delay: 0.35s; }
.chart .bar span {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--muted);
}
@keyframes grow {
  from { transform: scaleY(0); opacity: 0.3; }
  to { transform: scaleY(1); opacity: 1; }
}
.rep-foot { display: flex; gap: 8px; margin-top: 30px; flex-wrap: wrap; }

/* ---------------- Stats ---------------- */

.stats { border-block: 1px solid var(--line); background: var(--bg-alt); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding-block: 40px;
}
.stat strong {
  display: block;
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 14px; color: var(--muted); }

/* ---------------- Sections ---------------- */

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-head { max-width: 660px; margin-bottom: 44px; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(27px, 3.6vw, 40px); letter-spacing: -0.03em; }
.section-head p { margin-top: 14px; font-size: 17px; color: var(--muted); }

/* ---------------- Problems ---------------- */

.pain-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pain {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.pain-q {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--ink);
}
.pain-a { color: var(--muted); font-size: 15px; }

/* ---------------- Features ---------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(25, 57, 218, 0.28);
}
.f-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 16px;
}
.f-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--muted); }

/* ---------------- Devices ---------------- */

.devices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.device {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px 28px;
}
.device-visual {
  height: 108px;
  display: grid;
  place-content: center;
  margin-bottom: 20px;
}
.device-visual .screen {
  background: var(--bg-dark);
  border-radius: 6px;
  padding: 9px;
  display: grid;
  gap: 5px;
  align-content: start;
}
.device-visual .screen span {
  display: block;
  height: 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
}
.device-visual .screen span:first-child { background: var(--primary); width: 55%; }

.dv-laptop .screen { width: 148px; height: 88px; }
.dv-laptop .base {
  width: 178px;
  height: 7px;
  margin: 4px auto 0;
  border-radius: 0 0 6px 6px;
  background: #c9d0d9;
}
.dv-monitor .screen { width: 130px; height: 82px; }
.dv-monitor .stand {
  width: 46px;
  height: 12px;
  margin: 5px auto 0;
  border-radius: 0 0 5px 5px;
  background: #c9d0d9;
}
.dv-phone .screen { width: 62px; height: 108px; border-radius: 10px; }

.device h3 { font-size: 18px; }
.device-role {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin: 6px 0 14px;
}
.device ul { display: grid; gap: 8px; }
.device li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--muted);
}
.device li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.55;
}

.flow {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 36px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.flow-step { flex: 1; display: flex; gap: 12px; align-items: flex-start; }
.fs-num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.flow-step p { font-size: 14px; color: var(--ink-2); }
.flow-arrow {
  flex: none;
  width: 22px;
  align-self: center;
  height: 1px;
  background: var(--line);
  position: relative;
}
.flow-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transform: rotate(45deg);
}

/* ---------------- Roles ---------------- */

.roles {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}
.role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 12px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.role-tab {
  border: 1px solid transparent;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 9px 16px;
  min-height: 40px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.16s ease;
}
.role-tab:hover { color: var(--ink); background: #fff; }
.role-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.role-panel { padding: 26px; }
.role-desc { font-size: 16px; color: var(--ink-2); margin-bottom: 20px; max-width: 70ch; }
.perm-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 20px;
}
.perm-list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  animation: fadeUp 0.3s ease both;
}
.perm-list li.off { color: #9aa3ae; }
.perm-list li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(25, 57, 218, 0.25);
}
.perm-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 7px;
  height: 4px;
  margin-top: -3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.perm-list li.off::before {
  background: #f1f3f6;
  box-shadow: inset 0 0 0 1px var(--line);
}
.perm-list li.off::after { display: none; }

/* ---------------- Timeline ---------------- */

.timeline { position: relative; display: grid; gap: 6px; max-width: 780px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 24px;
  width: 2px;
  background: var(--line);
}
.tl-item { position: relative; padding: 0 0 26px 36px; }
.tl-dot-m {
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
}
.tl-item.is-done .tl-dot-m { background: var(--success); border-color: var(--success); }
.tl-item.is-now .tl-dot-m {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 5px rgba(25, 57, 218, 0.14);
}
.tl-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.tl-status.st-done { color: #157a41; }
.tl-status.st-now { color: var(--primary); }
.tl-body h3 { font-size: 18px; margin-bottom: 6px; }
.tl-body p { color: var(--muted); font-size: 15px; }

/* ---------------- FAQ ---------------- */

.faq { display: grid; gap: 10px; max-width: 860px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  min-height: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq-item p { margin-top: 10px; color: var(--muted); font-size: 15px; max-width: 72ch; }

/* ---------------- CTA ---------------- */

.cta { padding: 88px 0; background: var(--bg); }
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 48px;
  align-items: start;
  background: linear-gradient(135deg, #1939da 0%, #2b4bf0 55%, #0f1fa8 100%);
  border-radius: var(--radius-xl);
  padding: 46px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-copy h2 { font-size: clamp(26px, 3.2vw, 36px); color: #fff; }
.cta-copy p { margin-top: 14px; color: rgba(255, 255, 255, 0.86); font-size: 16px; max-width: 46ch; }
.cta-points { margin-top: 22px; display: grid; gap: 10px; }
.cta-points li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
}
.cta-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 7px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 12px 18px 12px 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: background-color 0.16s ease, transform 0.16s ease;
}
.cta-phone:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-1px); }
.cp-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
}
.cp-icon::before {
  content: "";
  width: 18px;
  height: 18px;
  background-color: var(--primary);
  -webkit-mask: var(--i-phone) center / contain no-repeat;
  mask: var(--i-phone) center / contain no-repeat;
}
.cp-text { display: grid; line-height: 1.25; }
.cp-label { font-size: 12px; color: rgba(255, 255, 255, 0.8); }
.cp-text strong { font-size: 19px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }

.cta-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 26px;
  display: grid;
  gap: 14px;
  color: var(--ink);
  box-shadow: var(--shadow-md);
}
.cta-form h3 { font-size: 19px; }
.cta-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cta-form input,
.cta-form textarea {
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  padding: 11px 13px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  resize: vertical;
}
.cta-form input::placeholder,
.cta-form textarea::placeholder { color: #a6aeb9; }
.cta-form input:focus,
.cta-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.cta-form input.invalid { border-color: var(--danger); }
.form-note { font-size: 13px; min-height: 18px; color: var(--muted); }
.form-note.ok { color: #157a41; font-weight: 600; }
.form-note.err { color: var(--danger); font-weight: 600; }

/* ---------------- Footer ---------------- */

.site-footer { background: var(--bg-dark); color: #9aa6b4; padding: 40px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-mark { background: #fff; border-radius: 8px; padding: 4px; }
.fb-name { color: #fff; font-weight: 700; font-size: 16px; }
.fb-sub { font-size: 13px; color: #7b8794; }
.fb-phone {
  display: inline-block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.fb-phone:hover { color: #b9c6ff; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.footer-nav a:hover { color: #fff; }
.footer-copy { font-size: 13px; color: #6d7885; }

/* ---------------- Reveal ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .mock-window { transform: none; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .devices { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { flex-direction: column; gap: 16px; }
  .flow-arrow { display: none; }
  .perm-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-inner { grid-template-columns: 1fr; gap: 32px; padding: 36px; }
}

@media (max-width: 1000px) and (min-width: 761px) {
  .nav > a.nav-phone { display: none; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav > a { padding: 13px 12px; font-size: 16px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: grid; }

  .hero { padding: 44px 0 56px; }
  .section { padding: 60px 0; }
  .cta { padding: 56px 0; }
  .pain-grid,
  .feature-grid { grid-template-columns: 1fr; }
  .table-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perm-list { grid-template-columns: 1fr; }
  .stats-grid { gap: 22px; padding-block: 32px; }
  .stat strong { font-size: 32px; }
  .cta-inner { padding: 26px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
