/* MiniSul — сайт. Токены из бренд-системы MiniSul. */

:root {
  color-scheme: light;
  --brand: #3D5AFE;          /* индиго MiniSul: плашки, кнопки */
  --brand-strong: #2B44D9;
  --brand-text: #3D5AFE;     /* ссылки и акценты текстом */
  --brand-tint: #E8ECFF;
  --accent: #FFC83D;         /* жёлтая «точка решения» — только акцент */
  --on-brand: #FFFFFF;
  --ink: #12142B;
  --ink-muted: #5A5F7A;
  --surface: #F6F7FB;
  --surface-raised: #FFFFFF;
  --line: #DDE0EE;
  --bubble: #FFFDF0;
  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px; --radius-md: 16px; --radius-lg: 28px;
  --space-1: 4px; --space-2: 8px; --space-4: 16px; --space-6: 24px;
  --page: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --brand-text: #8C9EFF;
    --brand-tint: #1E2450;
    --ink: #F2F3FA;
    --ink-muted: #A3A8C3;
    --surface: #0E1020;
    --surface-raised: #181B33;
    --line: #2A2E4D;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 500 17px/1.6 var(--font-sans); }
img { max-width: 100%; display: block; }
a { color: var(--brand-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--space-6); }

/* Шапка */
.top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding: 22px 0; }
.top .logo img { height: 30px; width: auto; }
.top nav { display: flex; gap: 22px; font-weight: 700; font-size: 15px; }
.top nav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.top nav a:hover { color: var(--brand-text); }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: block; } }

/* Первый экран */
.hero { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 48px; align-items: center; padding: 40px 0 88px; }
.hero h1 { font: 700 clamp(38px, 5vw, 64px)/1.04 var(--font-display); letter-spacing: -0.025em; margin: 0 0 28px; }
.hero h1 .dot { display: inline-block; width: .22em; height: .22em; border-radius: 50%; background: var(--accent); margin-left: .06em; vertical-align: baseline; }
.lead { font-size: 20px; line-height: 1.55; color: var(--ink-muted); max-width: 34em; margin: 0 0 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 700 16px/1 var(--font-sans); text-decoration: none; border: 0; cursor: pointer; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--brand-text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Живая демонстрация переводчика */
.demo { position: relative; background: var(--brand); border-radius: var(--radius-lg); padding: 36px 28px 26px; color: var(--on-brand); overflow: hidden; }
.demo .dots { position: absolute; top: 22px; right: 22px; display: grid; grid-template-columns: repeat(4, 8px); gap: 14px; }
.demo .dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); }
.demo .dots i.yes { background: var(--accent); }
.phone { position: relative; width: min(100%, 300px); margin: 0 auto; aspect-ratio: 9 / 16; background: #fff; color: #222; border-radius: 34px; padding: 14px; box-shadow: 0 0 0 8px #12142B; font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; font-weight: 700; }
.phone .bar { display: flex; justify-content: space-between; font-size: 13px; color: #555; padding: 4px 6px 10px; }
.phone .pic { height: 34%; border-radius: 18px; background: #F2F2F2; display: grid; place-items: center; }
.phone .pic svg { width: 46%; height: auto; }
.cn { position: relative; margin: 10px 4px 0; }
.cn .cn, .bar .cn { margin: 0; }
.cn { font-size: 15px; line-height: 1.35; }
.cn.title { font-size: 16px; }
.cn.price { color: #E02E24; font-size: 22px; }
.cn.tag { display: inline-block; font-size: 12px; color: #E02E24; border: 1.5px solid #E02E24; border-radius: 6px; padding: 1px 6px; margin-right: 6px; }
.cn.small { color: #777; font-size: 12px; }
.phone .buy { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone .buy > span { position: relative; text-align: center; color: #fff; border-radius: 999px; padding: 10px 4px; font-size: 13px; }
.phone .buy > span:first-child { background: #FF9F1C; }
.phone .buy > span:last-child { background: #E02E24; }
/* русские плашки поверх оригинала — как в приложении */
.ru { position: absolute; inset: -3px -5px auto -5px; min-height: calc(100% + 6px); z-index: 2; display: flex; align-items: center; padding: 2px 7px; background: var(--bubble); color: #14142B; border: 1.5px solid rgba(61,90,254,.6); border-radius: 6px; font: 700 12.5px/1.25 var(--font-sans); opacity: 0; transform: scale(.96); transition: opacity .28s ease, transform .28s ease; pointer-events: none; }
.cn.price .ru { font-size: 15px; }
.phone .buy .ru { inset: 0; min-height: 0; justify-content: center; border-radius: 999px; font-size: 12px; }
.tag .ru, .bar .ru { right: auto; white-space: nowrap; }
.phone.on .ru { opacity: 1; transform: none; }
.fab { position: absolute; right: -14px; top: 46%; width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff; background: var(--brand); color: #fff; font: 700 22px/1 "Noto Sans SC", sans-serif; cursor: pointer; box-shadow: 0 6px 18px rgba(18,20,43,.35); }
.fab[aria-pressed="true"] { background: var(--accent); color: #12142B; }
.demo .hint { text-align: center; margin: 26px 0 0; font-size: 15px; color: #E8ECFF; }
@media (prefers-reduced-motion: reduce) { .ru { transition: none; } html { scroll-behavior: auto; } }

/* Разделы */
section { padding: 72px 0; }
.sec-title { font: 700 clamp(28px, 3.6vw, 40px)/1.12 var(--font-display); letter-spacing: -0.02em; margin: 0 0 12px; }
.sec-lead { color: var(--ink-muted); max-width: 40em; margin: 0 0 40px; font-size: 18px; }

/* Приложения */
.app-main { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 28px; background: var(--surface-raised); border-radius: var(--radius-lg); padding: 36px; border: 1px solid var(--line); }
.app-main img.icon { width: 112px; height: 112px; }
.app-main h3 { font: 700 26px/1.2 var(--font-display); margin: 4px 0 10px; letter-spacing: -0.01em; }
.app-main p { margin: 0 0 18px; max-width: 38em; }
.status { display: inline-block; font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--brand-tint); color: var(--ink); margin-bottom: 14px; }
.facts { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.facts li { position: relative; padding-left: 22px; }
.facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.app-next { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; align-items: center; padding: 26px 36px; margin-top: 16px; border-radius: var(--radius-lg); border: 2px dashed var(--line); }
.app-next img { width: 64px; height: 64px; }
.app-next h3 { font: 700 18px/1.3 var(--font-display); margin: 0 0 4px; }
.app-next p { margin: 0; color: var(--ink-muted); font-size: 16px; }
.app-next .status { margin: 0 0 0 10px; vertical-align: 2px; font-size: 12px; padding: 4px 10px; }

/* Правила */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 56px; }
.rule h3 { font: 800 19px/1.3 var(--font-sans); margin: 0 0 6px; display: flex; gap: 12px; align-items: baseline; }
.rule h3::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); transform: translateY(-1px); }
.rule p { margin: 0 0 0 24px; color: var(--ink-muted); }

/* О бренде */
.about { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.about p { font-size: 18px; max-width: 34em; }
.field { background: var(--brand); border-radius: var(--radius-lg); padding: 40px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 18px; justify-items: center; }
.field i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.4); }
.field i.yes { background: var(--accent); transform: scale(1.9); }

/* Контакты */
.contact { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 44px; }
.contact .mail { font: 700 clamp(22px, 3.2vw, 34px)/1.2 var(--font-display); letter-spacing: -0.01em; word-break: break-word; }

/* Подвал */
footer { padding: 40px 0 56px; color: var(--ink-muted); font-size: 15px; }
footer .row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 28px; }
footer .links { display: flex; flex-wrap: wrap; gap: 20px; }
footer .links a { color: var(--ink-muted); }
footer .brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; }
footer .brand img { width: 32px; height: 32px; border-radius: 8px; }

/* Текстовые страницы */
.doc { max-width: 760px; padding: 24px 0 64px; }
.doc h1 { font: 700 clamp(30px, 4.4vw, 44px)/1.12 var(--font-display); letter-spacing: -0.02em; margin: 16px 0 12px; }
.doc h2 { font: 700 22px/1.3 var(--font-display); margin: 40px 0 10px; }
.doc .meta { color: var(--ink-muted); margin: 0 0 28px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.back { font-weight: 700; text-decoration: none; }

/* Телефон */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; gap: 40px; }
  .about { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .top nav a.opt { display: none; }
  .top nav { gap: 16px; font-size: 14px; }
  .top .logo img { height: 26px; }
  section { padding: 52px 0; }
  .lead { font-size: 18px; }
  .app-main { grid-template-columns: 1fr; padding: 26px; gap: 14px; }
  .app-main img.icon { width: 84px; height: 84px; }
  .app-next { grid-template-columns: 52px minmax(0, 1fr); padding: 20px; }
  .app-next img { width: 52px; height: 52px; }
  .contact { padding: 28px; }
  .field { padding: 26px; gap: 14px; }
  .fab { right: -8px; }
}
