/* DancingAI — лендинг. Палитра из логотипа: #FF4D29 / #141416. Mobile-first, светлая и тёмная темы. */

:root {
  --bg: #f7f7f9;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --ink: #141416;
  --ink-soft: #6b6b76;
  --line: #e4e4e9;
  --hair: #eeeef2;
  --accent: #ff4d29;
  --accent-deep: #e33d1b;
  --accent-soft: rgba(255, 77, 41, .12);
  --shadow: 0 1px 2px rgba(20,20,22,.05), 0 8px 24px rgba(20,20,22,.05);
  --radius: 16px;
  --wrap: 1080px;
  --header-h: 60px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d10;
    --surface: #17171b;
    --surface-2: #1d1d22;
    --ink: #f0f0f2;
    --ink-soft: #9d9da8;
    --line: #2b2b33;
    --hair: #212128;
    --accent: #ff5c3a;
    --accent-deep: #ff4d29;
    --accent-soft: rgba(255, 92, 58, .16);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 14px); }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

h1, h2, h3 { letter-spacing: -.02em; }
h1 { font-size: clamp(31px, 7vw, 46px); line-height: 1.1; margin: 0 0 18px; }
h2 { font-size: clamp(25px, 5vw, 38px); line-height: 1.15; margin: 0 0 12px; }
h3 { font-size: clamp(17px, 2.3vw, 19px); margin: 0 0 7px; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

section { padding: clamp(48px, 8vw, 82px) 0; }
.sec-hair { border-top: 1px solid var(--hair); }

/* кикер над заголовком секции */
.kicker {
  display: block; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent); margin: 0 0 12px;
}
.section-sub { color: var(--ink-soft); margin: 0 0 32px; max-width: 620px; font-size: clamp(16px, 2.2vw, 18px); }

/* ---------------------------------------------------------------- шапка */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hair);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 25px; width: auto; display: block; }
.brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .brand .logo-light { display: none; }
  .brand .logo-dark { display: block; }
}
.nav { display: none; gap: 24px; margin-left: auto; }
.nav a { color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.header-cta { margin-left: auto; }

/* ---------------------------------------------------------------- кнопки */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 16px; font-weight: 600; text-align: center;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; text-decoration: none; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); text-decoration: none; }
.btn-soon { background: var(--surface); color: var(--ink-soft); border-color: var(--line); cursor: default; }
.btn-soon:active { transform: none; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  background: var(--accent-soft); color: var(--accent-deep);
  padding: 3px 8px; border-radius: 999px;
}

/* ------------------------------------------------------------------ герой */

.hero { padding: clamp(34px, 7vw, 70px) 0 clamp(40px, 7vw, 66px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -30%;
  width: 900px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--accent-soft), transparent 72%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 34px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-soft); font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); }
.hero-lead { font-size: clamp(17px, 2.5vw, 20px); color: var(--ink-soft); max-width: 540px; margin: 0 0 26px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; }
.hero-note { margin: 16px 0 0; font-size: 15px; color: var(--ink-soft); }

/* ------------------------------------------------------------------ демо */

.demo {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; padding: 18px; box-shadow: var(--shadow);
}
.demo-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-soft); font-weight: 600;
  padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--hair);
}
.bubble {
  width: fit-content; max-width: 88%; padding: 12px 14px; border-radius: 16px;
  font-size: 15px; margin-bottom: 10px; line-height: 1.45;
}
.bubble small { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }
.bubble-out { margin-left: auto; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.bubble-out small { color: rgba(255,255,255,.75); }
.bubble-in { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble-in:last-child { margin-bottom: 0; }
.clip {
  aspect-ratio: 9 / 16; width: 92px; border-radius: 10px; margin-bottom: 10px;
  background: linear-gradient(160deg, #22222a, #131317);
  display: grid; place-items: center; color: #fff;
}
.clip svg { width: 46%; height: auto; }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.mini {
  font-size: 12px; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px;
}
.mini-more { border-style: dashed; color: var(--accent); border-color: var(--accent); }

/* --------------------------------------------------------------- метрики */

.metrics {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--hair); border: 1px solid var(--hair);
  border-radius: var(--radius); overflow: hidden;
}
.metric { background: var(--bg); padding: 18px 16px; }
.metric b { display: block; font-size: clamp(22px, 4.5vw, 28px); font-weight: 800; letter-spacing: -.02em; }
.metric span { font-size: 13.5px; color: var(--ink-soft); }

/* ----------------------------------------------------------------- сетки */

.grid { display: grid; gap: 14px; }
.grid > * { min-width: 0; }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.card p { color: var(--ink-soft); font-size: 16px; }
.card .emoji { font-size: 26px; line-height: 1; display: block; margin-bottom: 12px; }
.step-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}

/* ------------------------------------------------------------------ цена */

.price-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 2px solid var(--accent);
  border-radius: var(--radius); padding: clamp(22px, 4vw, 32px);
  box-shadow: 0 12px 36px var(--accent-soft);
}
.price-value { font-size: clamp(40px, 10vw, 56px); font-weight: 800; line-height: 1; margin: 10px 0 6px; letter-spacing: -.03em; }
.price-value small { font-size: 17px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.ticks { list-style: none; padding: 0; margin: 18px 0 24px; font-size: 16px; color: var(--ink-soft); }
.ticks li { padding: 6px 0 6px 26px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }
.pay-note {
  margin-top: 20px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 15.5px; color: var(--ink-soft);
}
.pay-note b { color: var(--ink); font-weight: 600; }

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

details { border-bottom: 1px solid var(--hair); padding: 16px 0; }
details:first-of-type { border-top: 1px solid var(--hair); }
summary { cursor: pointer; font-weight: 600; list-style: none; padding-right: 28px; position: relative; font-size: 17px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 2px; top: -3px; color: var(--ink-soft); font-weight: 400; font-size: 22px; }
details[open] summary::after { content: "−"; }
details p { margin: 12px 0 0; color: var(--ink-soft); font-size: 16px; }

/* ---------------------------------------------------------- финальный CTA */

.cta { text-align: center; }
.cta .wrap { max-width: 640px; }
.cta p { color: var(--ink-soft); margin: 0 auto 26px; }
.cta .hero-actions { align-items: center; }
.cta .btn { width: 100%; max-width: 320px; }

/* ---------------------------------------------------------------- подвал */

.site-footer { border-top: 1px solid var(--hair); padding: 34px 0 30px; font-size: 15px; color: var(--ink-soft); }
.site-footer img { height: 22px; width: auto; display: block; margin-bottom: 16px; }
.site-footer .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .site-footer .logo-light { display: none; }
  .site-footer .logo-dark { display: block; }
}
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 18px; }
.foot-links a { color: var(--ink); font-weight: 500; }
.foot-links a:hover { color: var(--accent); text-decoration: none; }
.foot-line { line-height: 1.9; }
.foot-line a { color: var(--ink-soft); }
.foot-req { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--hair); font-size: 14px; }
.soon-tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 7px; margin-left: 4px;
}

/* --------------------------------------------------- липкая кнопка мобиле */

.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line);
}
.mobile-cta .btn { width: 100%; }
body { padding-bottom: 76px; }
body.page-doc { padding-bottom: 0; }

/* ------------------------------------------------------------- документы */

.doc { padding: 36px 0 60px; }
.doc h1 { font-size: clamp(26px, 5vw, 34px); }
.doc .updated { color: var(--ink-soft); font-size: 14px; margin: -6px 0 28px; }
.doc h2 { font-size: clamp(19px, 3vw, 22px); margin: 32px 0 12px; }
.doc h3 { font-size: 17px; margin: 22px 0 8px; }
.doc p, .doc li { color: var(--ink-soft); font-size: 16px; }
.doc ol, .doc ul { padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc .back { display: inline-block; margin-bottom: 20px; font-size: 15px; }
.callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 18px; margin: 22px 0; font-size: 16px; color: var(--ink-soft);
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 16px; min-width: 460px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--hair); }
th { font-weight: 600; color: var(--ink-soft); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:last-child td { border-bottom: 0; }
.table-plain table { min-width: 0; font-size: 15px; }
.table-plain td { padding: 10px 0; }

/* ============================================================== планшет+ */

@media (min-width: 700px) {
  .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(2, 1fr); }
  .metrics { grid-template-columns: repeat(4, 1fr); }
  .hero-actions { flex-direction: row; }
  .hero-actions .btn { min-width: 200px; }
  .foot-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
}

/* ============================================================== десктоп */

@media (min-width: 1000px) {
  :root { --header-h: 68px; }
  .nav { display: flex; }
  .header-cta { margin-left: 0; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .hero .wrap { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 46px; }
  .mobile-cta { display: none; }
  body { padding-bottom: 0; }
  .wrap { padding: 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .001ms !important; }
}

.price-card .btn { margin-top: auto; }
