/* SFERA GO — сайт о программе. Цвета и шрифты те же, что в самой программе. */
:root {
  --ink: #14213d;
  --ink-2: #4a5873;
  --paper: #eef1ee;
  --sheet: #ffffff;
  --line: #c9d1cc;
  --cobalt: #2648d9;
  --cobalt-dark: #1b36a8;
  --target: #f2c230;
  --night: #0e1a2b;
  --night-2: #16263d;
  --on-night: #dfe6f0;
  --on-night-2: #9fb0c8;
  --font: "Onest", "Segoe UI", system-ui, sans-serif;
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --wrap: 1160px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--cobalt); }
:focus-visible { outline: 3px solid var(--target); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; max-width: 18ch; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 500; }
p { margin: 0 0 12px; }
.sub { color: var(--ink-2); max-width: 62ch; margin-top: 14px; }
.muted { color: var(--on-night-2); font-size: 15px; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--cobalt); background: var(--cobalt); color: #fff;
  font: 600 16px/1 var(--font); padding: 12px 18px; border-radius: 10px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--cobalt-dark); border-color: var(--cobalt-dark); }
.btn.big { padding: 16px 24px; font-size: 17px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.ghost.on-dark { color: #fff; border-color: #ffffff4d; }
.btn.ghost.on-dark:hover { border-color: #fff; background: #ffffff12; }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; background: var(--night); color: #fff; }
.bar { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { font: 700 18px var(--display); color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.top .logo, .logo.on-dark { color: #fff; }
.logo i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid currentColor; position: relative; flex: none; }
.logo i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--target); }
.menu { display: flex; gap: 24px; }
.menu a { color: var(--on-night); text-decoration: none; font-size: 15px; }
.menu a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.bar-acts { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.bar-acts .btn { padding: 9px 16px; font-size: 15px; }
.burger { display: none; width: 44px; height: 40px; border: 1px solid #ffffff4d; border-radius: 10px; background: none; cursor: pointer; padding: 0; }
.burger span { display: block; width: 18px; height: 2px; background: #fff; margin: 4px auto; }

/* первый экран */
.hero { background: var(--night); color: #fff; padding: 56px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.6vw, 58px); line-height: 1.08; max-width: 15ch; }
.lead { font-size: 19px; color: var(--on-night); max-width: 52ch; margin: 22px 0 28px; }
.hero-acts { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { font-size: 14px; color: var(--on-night-2); margin-top: 14px; }
.sphere { margin: 0; position: relative; justify-self: center; width: 100%; max-width: 520px; }
.sphere canvas { width: 100%; height: auto; aspect-ratio: 1; display: block; }
.sphere figcaption { text-align: center; color: var(--on-night-2); font-size: 15px; margin-top: 6px; min-height: 24px; }
.sphere figcaption b { color: #fff; font: 700 20px var(--display); }

/* разделы */
.sec { padding: 88px 0; }
.sec.alt { background: var(--sheet); }

.steps { list-style: none; counter-reset: st; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.steps li { counter-increment: st; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(st); display: block; font: 700 44px/1 var(--display); color: var(--cobalt); margin-bottom: 14px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--ink-2); font-size: 16px; }
.steps .note { color: var(--ink); font-size: 15px; background: #f2c2302e; border-left: 3px solid var(--target); padding: 8px 12px; border-radius: 0 6px 6px 0; }

.demo-frame { margin-top: 28px; border-radius: 14px; overflow: hidden; background: var(--night); aspect-ratio: 16 / 9; }
.demo-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.who article { padding: 28px 28px 8px 0; }
.who article + article { padding-left: 28px; border-left: 1px solid var(--line); }
.who h3 { font-size: 21px; margin-bottom: 10px; }
.who p { color: var(--ink-2); font-size: 16px; }
.who ul { margin: 14px 0 0; padding: 0; list-style: none; }
.who li { padding: 8px 0 8px 22px; position: relative; font-size: 16px; border-top: 1px solid #e3e8e4; }
.who li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--cobalt); }

.feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; margin-top: 40px; }
.feat h3 { margin-bottom: 8px; color: var(--cobalt); }
.feat p { color: var(--ink-2); max-width: 54ch; }

.app-sec { background: var(--night); color: #fff; }
.app-sec .sub { color: var(--on-night); }
.app-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.plain { padding: 0; list-style: none; margin: 22px 0 28px; max-width: 60ch; }
.plain li { padding: 10px 0; border-top: 1px solid #ffffff22; color: var(--on-night); }
.plain b { color: #fff; }
.qr-box { justify-self: center; text-align: center; background: #fff; color: var(--ink); border-radius: 16px; padding: 22px; max-width: 280px; }
.qr-box img { display: block; margin: 0 auto 10px; image-rendering: pixelated; }
.qr-box p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* тарифы */
.period { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 28px 0 22px; }
.period button { border: 0; background: var(--sheet); color: var(--ink-2); font: 500 15px var(--font); padding: 10px 18px; cursor: pointer; }
.period button + button { border-left: 1px solid var(--line); }
.period button.on { background: var(--ink); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--sheet); }
.plan { padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.plan.hit { background: #2648d90d; box-shadow: inset 0 3px 0 var(--cobalt); }
.plan h3 { font-size: 18px; }
.plan .hit-tag { font-size: 13px; color: var(--cobalt); font-weight: 600; }
.price { font: 700 30px/1.1 var(--display); }
.price small { font: 500 14px var(--font); color: var(--ink-2); }
.plan .lim { font-size: 15px; color: var(--ink-2); margin: 0; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 8px; font-size: 14px; }
.plan li { padding: 4px 0 4px 18px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--target); }
.plan .btn { margin-top: auto; width: 100%; }
.addons { margin-top: 18px; color: var(--ink-2); font-size: 15px; }

/* вопросы */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
details { border-top: 1px solid var(--line); padding: 4px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 600; font-size: 18px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 500 26px var(--display); color: var(--cobalt); }
details[open] summary::after { content: "−"; }
details p { color: var(--ink-2); max-width: 66ch; padding-bottom: 10px; }

.cta { background: var(--cobalt); color: #fff; padding: 72px 0; }
.cta-in { display: grid; gap: 14px; justify-items: start; }
.cta h2 { max-width: 22ch; }
.cta p { color: #dbe3ff; font-size: 18px; }
.cta .btn { background: var(--target); border-color: var(--target); color: var(--ink); }
.cta .btn:hover { background: #ffd34d; border-color: #ffd34d; }

.foot { background: var(--night); color: var(--on-night); padding: 48px 0 56px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.foot a { color: #fff; }
.foot p { margin: 6px 0; }

/* установка на телефон */
.inst { border: 0; border-radius: 18px; padding: 0; width: min(460px, calc(100% - 24px)); color: var(--ink); }
.inst::backdrop { background: #0e1a2bb3; }
.inst-in { padding: 24px; }
.inst h2 { font-size: 22px; margin-bottom: 8px; max-width: none; }
.inst p { color: var(--ink-2); font-size: 16px; }
.inst ol { padding-left: 22px; margin: 12px 0 18px; }
.inst li { margin: 8px 0; }
.inst .acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 12px; }
.inst .acts .btn { flex: 1 1 auto; }

@media (max-width: 960px) {
  .hero-grid, .app-grid { grid-template-columns: 1fr; }
  .sphere { max-width: 380px; }
  .steps, .who { grid-template-columns: 1fr; }
  .who article, .who article + article { padding: 24px 0 8px; border-left: 0; }
  .who article + article { border-top: 1px solid var(--line); }
  .faq { grid-template-columns: 1fr; gap: 20px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .sec { padding: 60px 0; }
  .hero { padding: 36px 0 48px; }
  .lead { font-size: 17px; }
  .hero-acts .btn { width: 100%; }
  .feat { grid-template-columns: 1fr; gap: 24px; }
  .burger { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--night); flex-direction: column; gap: 0; padding: 8px 16px 16px; border-top: 1px solid #ffffff1f; }
  .menu.open { display: flex; }
  .menu a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid #ffffff14; }
  .qr-box { display: none; }
  .plans { grid-template-columns: 1fr; }
  .inst { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 18px 18px 0 0; }
}
