/* Kvitto — лендинг kvitto.ru. Чистый CSS, без фреймворков.
   Тёмная фирменная палитра, акцент — фиолетовый. Адаптив, без внешних шрифтов/JS. */

:root {
  --bg:        #0b1020;
  --bg-alt:    #11182e;
  --panel:     #161f3a;
  --panel-2:   #1c2748;
  --line:      #25315a;
  --text:      #eaf0ff;
  --muted:     #a6b2d6;
  --brand:     #7c5cff;
  --brand-2:   #5b8cff;
  --accent:    #34e0a1;
  --danger:    #ff6b6b;
  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1120px;
  --shadow:    0 20px 50px rgba(2, 6, 23, .45);
  --ff: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PT Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff);
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(124, 92, 255, .22), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(91, 140, 255, .14), transparent 55%),
    var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

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

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

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

/* --- Кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 10px 30px rgba(124, 92, 255, .4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(124, 92, 255, .55); }
.btn-ghost {
  background: rgba(255, 255, 255, .04);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--brand); background: rgba(124, 92, 255, .12); }
.btn-lg { padding: 16px 30px; font-size: 17px; }

/* --- Шапка --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 32, .72);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: .2px; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav > a:not(.btn) { color: var(--muted); font-weight: 500; }
.nav > a:not(.btn):hover { color: var(--text); }

/* --- Герой --- */
.hero { padding: 64px 0 40px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(124, 92, 255, .14);
  border: 1px solid rgba(124, 92, 255, .35);
  color: #c9bcff;
  font-size: 13px;
  font-weight: 600;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.5px;
}
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); margin: 0 0 28px; max-width: 38ch; }
.lead strong { color: var(--text); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.hero-marks li { position: relative; padding-left: 18px; }
.hero-marks li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--accent);
}

/* Демо-карточка экономии */
.hero-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.card-head b { color: var(--text); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-live { background: var(--accent); box-shadow: 0 0 0 4px rgba(52, 224, 161, .18); }
.dist { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.dist li { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: 12px; font-size: 14px; }
.dist .wh { color: var(--text); }
.dist .qty { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.dist .bar {
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.dist .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--w);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-2), var(--brand));
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.card-foot span { color: var(--muted); font-size: 13px; max-width: 18ch; }
.save { color: var(--accent); font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.card-note { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }

/* --- Секции --- */
.section { padding: 72px 0; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-alt) 12%, var(--bg-alt) 88%, transparent); }
.section-title {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.4px;
}
.section-sub { color: var(--muted); font-size: 17px; max-width: 62ch; margin: 0 0 36px; }
.section-sub strong { color: var(--text); }

/* --- Сетки --- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- Карточки проблемы --- */
.problem-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.problem-card h3 { margin: 0 0 10px; font-size: 19px; }
.problem-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* --- Карточки движков --- */
.engine-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}
.engine-card-hero {
  background: linear-gradient(160deg, rgba(124, 92, 255, .18), var(--panel));
  border-color: rgba(124, 92, 255, .5);
  box-shadow: var(--shadow);
}
.engine-num {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--brand);
  margin-bottom: 14px;
}
.engine-card h3 { margin: 0 0 12px; font-size: 22px; }
.engine-card p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.engine-payoff { color: var(--text) !important; font-weight: 500; margin-top: auto !important; padding-top: 6px; }

/* --- Сравнение --- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--panel); }
.compare th, .compare td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.compare thead th { color: var(--muted); font-weight: 600; font-size: 14px; }
.compare tbody th { color: var(--text); font-weight: 600; width: 26%; }
.compare td { color: var(--muted); }
.compare .hl { color: var(--text); }
.compare thead .hl, .compare tbody .hl {
  background: rgba(124, 92, 255, .1);
  border-left: 1px solid rgba(124, 92, 255, .35);
  border-right: 1px solid rgba(124, 92, 255, .35);
}
.compare tbody tr:last-child td, .compare tbody tr:last-child th { border-bottom: none; }
.edge {
  margin: 26px 0 0;
  padding: 20px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 16px;
}
.edge strong { color: var(--text); }

/* --- Шаги --- */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* --- Тарифы --- */
.pricing { align-items: stretch; }
.price-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.price-card-hl {
  border-color: rgba(124, 92, 255, .55);
  background: linear-gradient(165deg, rgba(124, 92, 255, .16), var(--panel));
  box-shadow: var(--shadow);
}
.price-badge {
  position: absolute;
  top: -12px;
  right: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.price-card h3 { margin: 0 0 10px; font-size: 20px; }
.price { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.price span { font-size: 15px; font-weight: 500; color: var(--muted); }
.price-meta { margin: 4px 0 18px; color: var(--muted); font-size: 14px; }
.price-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.price-card li { position: relative; padding-left: 24px; color: var(--muted); font-size: 14.5px; }
.price-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.pricing-note { margin: 22px 0 0; color: var(--muted); font-size: 14px; }

/* --- CTA-полоса --- */
.cta-band {
  margin: 0;
  background: linear-gradient(135deg, rgba(124, 92, 255, .22), rgba(91, 140, 255, .14)), var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 56px;
}
.cta-inner h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 34px); }
.cta-inner p { margin: 0; color: var(--muted); max-width: 58ch; font-size: 16px; }

/* --- Футер --- */
.site-footer { padding: 48px 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px 32px;
  align-items: start;
}
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.footer-brand p { flex-basis: 100%; margin: 8px 0 0; font-weight: 400; font-size: 14px; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 22px; justify-content: flex-end; }
.footer-nav a { color: var(--muted); font-size: 15px; }
.footer-nav a:hover { color: var(--text); }
.footer-legal { grid-column: 1 / -1; margin: 22px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* --- Адаптив --- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { max-width: 460px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .nav { gap: 12px; }
  .nav > a:not(.btn) { display: none; }
  .hero { padding-top: 40px; }
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .lead { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
