/* Публичный сайт Эмпилота. Без внешних шрифтов и скриптов - открывается мгновенно. */

:root {
  --brand: #2a78d6;
  --brand-dark: #1d5fb0;
  --brand-soft: #eaf2fc;
  --ink: #0f172a;
  --text: #1f2937;
  --muted: #5b6575;
  --line: #e4e8ef;
  --soft: #f6f8fc;
  --ok: #0f9d58;
  --radius: 16px;
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -0.02em;
  line-height: 1.08;
}
h2 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.01em;
}
h3 {
  font-size: 18px;
}
p {
  margin: 0 0 12px;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.wrap.narrow {
  max-width: 820px;
}
.center {
  text-align: center;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 14px;
}
.sub {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 18px;
}
.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 760px;
}

/* ── кнопки ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover {
  text-decoration: none;
}
.btn.primary {
  background: var(--brand);
  color: #fff;
}
.btn.primary:hover {
  background: var(--brand-dark);
}
.btn.ghost {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}
.btn.ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.btn.white {
  background: #fff;
  color: var(--brand);
}
.btn.big {
  padding: 14px 22px;
  font-size: 16px;
}
.btn.block {
  display: flex;
  width: 100%;
}

/* ── шапка ──────────────────────────────────────────────────────────── */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
}
.brand:hover {
  text-decoration: none;
}
.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
}
.nav {
  display: flex;
  gap: 22px;
  flex: 1;
}
.nav a {
  color: var(--muted);
  font-weight: 500;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}
.auth {
  display: flex;
  gap: 10px;
}
.burger {
  display: none;
  margin-left: auto;
  position: relative;
}
.burger summary {
  list-style: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.burger summary::-webkit-details-marker {
  display: none;
}
.burger summary span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.burger-menu {
  position: absolute;
  right: 0;
  top: 48px;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}
.burger-menu a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
}
.burger-menu a.btn {
  color: #fff;
  margin-top: 6px;
}

/* ── первый экран ───────────────────────────────────────────────────── */

.hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(900px 420px at 85% 10%, var(--brand-soft), transparent 70%),
    radial-gradient(600px 300px at 0% 100%, #f2f7ff, transparent 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 14px;
}
.hero .lead {
  margin: 18px 0 28px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 14px;
}

.mock {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(29, 95, 176, 0.16);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  font-size: 14px;
}
.mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d5dbe5;
}
.mock-bar b {
  margin-left: 8px;
  color: var(--ink);
}
.mock-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bubble {
  align-self: flex-end;
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips span {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  color: var(--ok);
}
.answer {
  font-size: 15px;
}
.answer table {
  border-collapse: collapse;
  font-size: 14px;
}
.answer td {
  border: 1px solid var(--line);
  padding: 5px 12px;
}
.mock figcaption {
  padding: 10px 20px 14px;
  font-size: 13px;
  color: var(--muted);
}

/* ── секции ─────────────────────────────────────────────────────────── */

.section {
  padding: 72px 0;
}
.section.soft {
  background: var(--soft);
}
.section h2.center {
  margin-bottom: 12px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.feature-card:hover {
  text-decoration: none;
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(29, 95, 176, 0.1);
}
.feature-card p {
  color: var(--muted);
  flex: 1;
}
.more {
  color: var(--brand);
  font-weight: 600;
  font-size: 15px;
}
.icon {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
}
.step p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.principles h3 {
  margin-bottom: 14px;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 12px 0 18px;
}
.checks li {
  position: relative;
  padding-left: 28px;
  margin: 8px 0;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%232a78d6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}

/* ── тарифы ─────────────────────────────────────────────────────────── */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 8px 0 24px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan .checks {
  flex: 1;
}
.plan.popular {
  border: 2px solid var(--brand);
  box-shadow: 0 18px 40px rgba(29, 95, 176, 0.12);
}
.badge {
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.price {
  font-size: 34px;
  font-weight: 800;
  color: var(--ink);
  margin: 4px 0 6px;
}
.price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.compare th,
.compare td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.compare th:first-child,
.compare td:first-child {
  text-align: left;
}
.compare tr:last-child td {
  border-bottom: 0;
}

.trial {
  margin: 0 auto 24px;
  max-width: 760px;
  padding: 14px 20px;
  border-radius: 14px;
  background: #e9f8ef;
  border: 1px solid #bfe9cf;
  color: #0b5d33;
  text-align: center;
}
.save {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: #e9f8ef;
  color: #0b5d33;
  font-size: 13px;
  font-weight: 600;
}

/* ── вопросы ────────────────────────────────────────────────────────── */

.faq {
  margin: 20px 0 28px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 0;
  position: relative;
  font-weight: 600;
  color: var(--ink);
  font-size: 17px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 14px;
  font-size: 24px;
  color: var(--brand);
  font-weight: 400;
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  color: var(--muted);
  padding-bottom: 14px;
}

/* ── внутренние страницы ────────────────────────────────────────────── */

.page-head {
  padding: 40px 0 8px;
  background: linear-gradient(180deg, var(--soft), #fff);
}
.page-head-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.page-head-row .icon {
  width: 44px;
  height: 44px;
}
.page-head-row h1 {
  margin: 0;
}
.page-head .lead {
  margin-top: 16px;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}
.crumbs .sep {
  color: #b5bdc9;
}
.blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.block h2 {
  font-size: 22px;
}
.note {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding: 14px 18px;
  border-left: 4px solid #f0b429;
  border-radius: 8px;
  background: #fff8e6;
  color: #5c4a14;
}
.doc h2 {
  font-size: 21px;
  margin-top: 30px;
}
.doc p,
.doc li {
  color: var(--text);
}
mark.todo {
  background: #fff1b8;
  color: #6b4e00;
  padding: 0 4px;
  border-radius: 4px;
}
.requisites {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px 16px;
  margin: 12px 0;
}
.requisites dt {
  color: var(--muted);
}
.requisites dd {
  margin: 0;
}

/* ── призыв и подвал ────────────────────────────────────────────────── */

.cta {
  padding: 0 0 72px;
}
.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 44px;
  border-radius: 24px;
  background: linear-gradient(120deg, var(--brand), #4b8fe3);
  color: #fff;
}
.cta-box h2 {
  color: #fff;
}
.cta-box p {
  margin: 0;
  opacity: 0.9;
}

.foot {
  background: #0b1324;
  color: #a9b4c4;
  padding: 56px 0 28px;
  font-size: 15px;
}
.foot .brand {
  color: #fff;
  margin-bottom: 12px;
}
.foot .muted {
  color: #8f9bad;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.foot h3 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 12px;
}
.foot-grid a:not(.brand) {
  display: block;
  color: #cbd5e1;
  margin: 6px 0;
}
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #1d2840;
  font-size: 13px;
  color: #8f9bad;
}

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #e2e8f0;
  font-size: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.3);
}
.cookie a {
  color: #93c5fd;
}
.cookie button {
  margin-left: 8px;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

/* ── узкие экраны ───────────────────────────────────────────────────── */

@media (max-width: 980px) {
  .nav,
  .auth {
    display: none;
  }
  .burger {
    display: block;
  }
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }
  .steps,
  .plans {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 52px 0;
  }
  .hero {
    padding: 44px 0;
  }
  .cta-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .requisites {
    grid-template-columns: 1fr;
  }
  .requisites dd {
    margin-bottom: 8px;
  }
  .blocks {
    grid-template-columns: 1fr;
  }
}
