/* Ritmo OPS — сайт-витрина. Один файл на все страницы. */
:root {
  --ground: #f6f3fd; --surface: #fff; --surface-2: #faf8ff;
  --ink: #2e2745; --ink-soft: #6f6891; --line: #e7e1f7;
  --accent: #6d58b8; --accent-2: #8a74d2; --accent-soft: #ece6fb; --lilac: #d9cef7;
  --ok: #2f7d5c; --ok-soft: #e3f3ec;
  --radius: 14px; --wrap: 1120px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* шапка */
header.top { position: sticky; top: 0; z-index: 20; background: rgba(246,243,253,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px;
  letter-spacing: -.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 32px; height: 32px; border-radius: 9px; overflow: hidden; flex: none; }
.brand b { background: var(--accent); color: #fff; font-size: 11px; font-weight: 800;
  letter-spacing: .08em; padding: 3px 7px; border-radius: 6px; }
nav.menu { display: flex; gap: 20px; margin-left: auto; align-items: center; }
nav.menu a { color: var(--ink-soft); font-weight: 600; font-size: 15px; }
nav.menu a:hover { color: var(--accent); text-decoration: none; }
nav.menu a.btn { color: #fff; }
nav.menu a.btn:hover { color: #fff; }
.lang { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.lang a { color: var(--ink-soft); font-weight: 600; padding: 2px 6px; border-radius: 6px; }
.lang a[aria-current] { background: var(--accent-soft); color: var(--accent); }
.btn { display: inline-block; background: var(--accent); color: #fff; font-weight: 700;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent; font-size: 15px; }
.btn:hover { background: #5c48a3; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--accent); border-color: var(--line); }
.btn.ghost:hover { background: var(--accent-soft); }
.burger { display: none; }

/* секции */
section { padding: 72px 0; }
section.tint { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 18px; }
h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 14px; }
h3 { font-size: 18px; margin: 0 0 8px; }
p.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-soft); margin: 0 0 26px; max-width: 42em; }
p { margin: 0 0 14px; }
.muted { color: var(--ink-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 800;
  color: var(--accent); margin: 0 0 12px; }

/* герой */
.hero { padding: 64px 0 40px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hero .note { font-size: 14px; color: var(--ink-soft); }
.shot { margin-top: 38px; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--surface); box-shadow: 0 18px 40px rgba(60,44,120,.10); }
.shot img { width: 100%; }
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--ink-soft); padding: 10px 14px; border-top: 1px solid var(--line);
  background: var(--surface-2); }

/* сетки */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { display: flex; align-items: center; gap: 9px; }
.card p:last-child { margin-bottom: 0; }
.ico { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 15px; flex: none; }

/* шаги */
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr); }
ol.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; }
ol.steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; margin-bottom: 10px; }
ol.steps b { display: block; margin-bottom: 4px; }

/* чат-пример */
.chat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.bubble { background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; font-size: 15px;
  white-space: pre-line; margin-bottom: 10px; }
.arrowdown { text-align: center; color: var(--accent); font-size: 22px; margin: 6px 0; }
.docline { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; font-size: 15px; }
.docline b { font-weight: 700; }
.tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--ok-soft); color: var(--ok); white-space: nowrap; }

/* тарифы */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.plan.best { border-color: var(--accent); box-shadow: 0 12px 30px rgba(109,88,184,.12); position: relative; }
.plan.best::after { content: "Más elegido"; position: absolute; top: -12px; right: 18px; background: var(--accent);
  color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.price { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.price span { font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.plan ul { list-style: none; padding: 0; margin: 14px 0 18px; }
.plan li { padding: 6px 0 6px 24px; position: relative; color: var(--ink-soft); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 10px; }
details[open] { border-color: var(--lilac); }
summary { font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--accent); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--ink-soft); }

/* финальный блок и подвал */
.final { background: linear-gradient(135deg, var(--lilac), var(--accent-soft)); border-radius: 18px;
  padding: 40px; text-align: center; }
.final h2 { margin-bottom: 10px; }
footer { border-top: 1px solid var(--line); padding: 34px 0 48px; color: var(--ink-soft); font-size: 14px; }
footer .cols { display: flex; gap: 28px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--ink-soft); }
footer .legal { max-width: 34em; }

@media (max-width: 900px) {
  .g3, .plans, ol.steps { grid-template-columns: 1fr 1fr; }
  nav.menu { display: none; }
  section { padding: 52px 0; }
}
@media (max-width: 620px) {
  .g2, .g3, .plans, ol.steps { grid-template-columns: 1fr; }
  .final { padding: 28px 20px; }
}

[data-copy] { cursor: pointer; }

/* демо-блоки вместо скриншотов */
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.demo h4 { margin: 0 0 14px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 700; }
.paper { background: #fffdf8; border: 1px solid #ece4d3; border-radius: 10px; padding: 16px 18px;
  font-size: 13.5px; line-height: 1.55; color: #3a3322; }
.paper .ph { font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.paper .pm { color: #8b8270; font-size: 12px; margin-bottom: 10px; }
.paper table { width: 100%; border-collapse: collapse; }
.paper td { padding: 3px 0; }
.paper td.n { text-align: right; white-space: nowrap; padding-left: 12px; }
.paper .pf { border-top: 1px solid #ece4d3; margin-top: 10px; padding-top: 8px; font-size: 12.5px; color: #6b6354; }
.paper .pf b { color: #3a3322; }
.match-list { display: grid; gap: 8px; }
.mrow { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; font-size: 15px; }
.mrow .src { color: var(--ink-soft); font-size: 14px; }
.mrow .to { color: var(--accent); font-weight: 800; }
.mrow .dst { font-weight: 700; }
.mrow .qty { margin-left: auto; font-size: 13.5px; color: var(--ink-soft); white-space: nowrap; }
.ok-line { display: flex; align-items: center; gap: 8px; margin: 14px 0 0;
  font-size: 14px; color: var(--ok); font-weight: 700; }
.doclist { display: grid; gap: 8px; }
.drow { display: flex; align-items: baseline; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; font-size: 15px; }
.drow .num { font-weight: 700; white-space: nowrap; }
.drow .sup { color: var(--ink-soft); font-size: 14px; }
.drow .sum { margin-left: auto; font-weight: 700; white-space: nowrap; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.rdy { background: var(--accent-soft); color: var(--accent); }
.pill.wait { background: #fdf3d8; color: #8a6a10; }
@media (max-width: 760px) {
  .drow, .mrow { flex-wrap: wrap; }
  .drow .sum, .mrow .qty { margin-left: 0; }
}
