/* MarkOneFlow — общие стили сайта (все языковые версии) */
:root {
  --bg: #0b1226;
  --bg-2: #111a36;
  --card: #141f40;
  --line: #24305a;
  --text: #e8ecf8;
  --muted: #9aa6c7;
  --red: #ff4f5f;
  --purple: #a46bff;
  --blue: #3e8bff;
  --yellow: #f4ff6a;
  --green: #53ffbc;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Шапка */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 18, 38, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(36, 48, 90, .6);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; text-decoration: none; font-size: 18px; }
.brand img { width: 34px; height: auto; border-radius: 8px; }
.brand b { background: linear-gradient(90deg, var(--red), var(--purple), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 26px; font-size: 15px; color: var(--muted); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.tg-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #fff; background: #229ed9; transition: transform .15s; }
.tg-icon:hover { transform: translateY(-1px); }
.btn-tg { background: #229ed9; color: #fff; box-shadow: 0 10px 30px -12px rgba(34, 158, 217, .8); }
.final-cta { justify-content: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 12px; border: 0;
  font: 700 16px Manrope, sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(95deg, var(--red), var(--purple) 55%, var(--blue));
  color: #fff; box-shadow: 0 10px 30px -10px rgba(164, 107, 255, .7);
}
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-small { padding: 9px 16px; font-size: 14px; }

/* Первый экран */
.hero { position: relative; overflow: hidden; padding: 72px 0 80px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(164,107,255,.28), transparent 62%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(20, 31, 64, .7); color: var(--muted); font-size: 14px; font-weight: 600;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; margin: 20px 0 18px; letter-spacing: -.02em; font-weight: 800; }
h1 mark { background: linear-gradient(transparent 58%, rgba(244,255,106,.55) 58%); color: inherit; padding: 0 4px; }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0 0 28px; }
.hero-points { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 12px; align-items: baseline; }
.hero-points span { font-size: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { color: var(--muted); font-size: 14px; margin-top: 14px; }
.hero-art { position: relative; }
.hero-art img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 28px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06); }

section { padding: 84px 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }
.kicker { color: var(--purple); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; margin-bottom: 10px; }

/* Боль → решение */
.pain { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare > div { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); background: var(--card); }
.compare h3 { margin: 0 0 14px; font-size: 20px; }
.compare ul { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 8px; }
.compare .before h3 { color: var(--red); }
.compare .after { border-color: rgba(83,255,188,.35); }
.compare .after h3 { color: var(--green); }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px;
  font-weight: 800; background: linear-gradient(135deg, var(--red), var(--purple));
}
.step:nth-child(2)::before { background: linear-gradient(135deg, var(--purple), var(--blue)); }
.step:nth-child(3)::before { background: linear-gradient(135deg, var(--blue), var(--green)); color: #0b1226; }
.step h3 { margin: 0 0 8px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); }

/* Возможности */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: border-color .2s; }
.feature:hover { border-color: rgba(164,107,255,.55); }
.feature .ico { font-size: 26px; margin-bottom: 10px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; margin-left: 6px; vertical-align: middle; background: rgba(164,107,255,.18); color: #cbb0ff; }

/* Пример выгрузки */
.demo { display: grid; grid-template-columns: .95fr 1.05fr; gap: 40px; align-items: center; }
.demo-text h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; margin: 0 0 16px; }
.demo-text p { color: var(--muted); margin: 0 0 14px; }
.colors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.colors span { font: 500 13px "JetBrains Mono", monospace; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); }
.colors b { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.code {
  border-radius: var(--radius); background: #0a0f1f; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); overflow: hidden;
}
.code-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.code-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a355e; }
.code-bar i:nth-child(1) { background: var(--red); } .code-bar i:nth-child(2) { background: var(--yellow); } .code-bar i:nth-child(3) { background: var(--green); }
.code-bar span { margin-left: 8px; }
pre { margin: 0; padding: 20px; font: 13.5px/1.7 "JetBrains Mono", ui-monospace, monospace; color: #c9d2ee; overflow-x: auto; white-space: pre; }
.c-y { color: #a46bff; } .c-h { color: #ff8a95; font-weight: 600; } .c-q { color: #f4ff6a; } .c-l { color: #6fb2ff; } .c-m { color: #7d89ad; } .c-t { color: #53ffbc; }

/* Цены */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1120px; margin: 0 auto; }
.plan { padding: 32px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan.pro { position: relative; border: 1px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, var(--red), var(--purple), var(--blue)) border-box; }
.plan h3 { margin: 0 0 4px; font-size: 22px; }
.plan .price { font-size: 44px; font-weight: 800; margin: 10px 0 2px; letter-spacing: -.02em; }
.plan .price small { font-size: 17px; font-weight: 600; color: var(--muted); }
.plan .sub { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--green); font-weight: 800; }
.badge { position: absolute; top: -13px; right: 24px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: linear-gradient(90deg, var(--purple), var(--blue)); }

.plan .price-alt { color: var(--muted); font-size: 14px; margin: 0 0 12px; }

/* Переключатель языка */
.lang { position: relative; }
.lang summary {
  display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--text);
}
.lang summary::after { content: "▾"; color: var(--muted); font-size: 12px; }
.lang[open] summary::after { content: "▴"; }
.lang ul {
  position: absolute; right: 0; top: 44px; z-index: 20; margin: 0; padding: 6px; list-style: none; min-width: 190px;
  border-radius: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(0,0,0,.8);
}
.lang li a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 15px; }
.lang li a:hover { background: var(--bg-2); }
.lang li a[aria-current] { color: var(--purple); font-weight: 700; }
/* details общего вида (вопросы) не должен влиять на переключатель */
details.lang { border: 0; background: none; padding: 0; border-radius: 0; }
details.lang summary { font-size: 14px; justify-content: flex-start; }

/* Приватность */
.privacy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.privacy div { padding: 24px; border-radius: var(--radius); border: 1px dashed var(--line); }
.privacy h3 { margin: 0 0 6px; font-size: 18px; }
.privacy p { margin: 0; color: var(--muted); font-size: 15px; }

/* Вопросы */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
details { border-radius: 14px; background: var(--card); border: 1px solid var(--line); padding: 18px 22px; }
summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--purple); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; }

.final { text-align: center; }
.final-box { padding: 56px 28px; border-radius: 28px; background: radial-gradient(circle at 20% 0%, rgba(255,79,95,.22), transparent 50%), radial-gradient(circle at 80% 100%, rgba(62,139,255,.25), transparent 50%), var(--card); border: 1px solid var(--line); }
.final-box img { width: 96px; height: auto; margin: 0 auto 20px; border-radius: 20px; }
.final-box h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 12px; }
.final-box p { color: var(--muted); margin: 0 0 28px; font-size: 18px; }

footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

@media (max-width: 900px) {
  .hero-grid, .demo, .compare, .pricing { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin: 0 auto; order: -1; }
  .steps, .features, .privacy { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 56px; }
  section { padding: 60px 0; }
  .steps, .features, .privacy { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .nav .btn { width: auto; }
}
