/* Сайт Контура: светлый «как в macOS». Шрифт Onest лежит на сайте (static/fonts). */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #F5F5F7; --card: #FFFFFF; --text: #1D1D1F; --muted: #6E6E73; --line: #E3E3E8;
  --brand: #5A52F2; --brand-strong: #4B44D6; --on-brand: #FFFFFF;
  --ok: #1E7A4A; --ok-bg: #E3F5EC; --warn: #8A5300; --warn-bg: #FFF1D6; --bad: #B42318; --bad-bg: #FDE8E7;
  --dark: #1D1D1F; --on-dark: #F5F5F7; --on-dark-muted: #A1A1A6;
  --header: rgba(245, 245, 247, 0.82);
  --radius: 24px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --card: #1C1C1E; --text: #F5F5F7; --muted: #A1A1A6; --line: #2C2C2E;
    --brand: #7B74FF; --brand-strong: #9A95FF; --on-brand: #FFFFFF;
    --ok: #4CD38A; --ok-bg: #12301F; --warn: #F5B84A; --warn-bg: #33260C; --bad: #FF7B72; --bad-bg: #3A1513;
    --dark: #1C1C1E; --header: rgba(0, 0, 0, 0.72);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 "Onest", -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-strong); }
img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Шапка и подвал */
.top { position: sticky; top: 0; z-index: 10; background: var(--header); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }
nav { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; font-size: 15px; }
nav a { color: var(--text); opacity: 0.85; }
nav a:hover { color: var(--text); opacity: 1; }
nav .button { opacity: 1; }
main { padding: 0 0 72px; }
.bottom { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.bottom-row { display: flex; gap: 22px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }
.bottom a { color: var(--muted); }
.bottom a:hover { color: var(--text); }

/* Типографика */
h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; margin: 40px 0 14px; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; margin: 56px 0 16px; }
h3 { font-size: 20px; margin: 0 0 6px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 680px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Кнопки */
.button { display: inline-block; background: var(--brand); color: var(--on-brand); border: 0; border-radius: 999px; padding: 13px 24px;
  font: inherit; font-weight: 600; cursor: pointer; text-align: center; transition: background .15s; }
.button:hover { background: var(--brand-strong); color: var(--on-brand); }
.button.small { padding: 7px 14px; font-size: 14px; }
.button.secondary { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.button.secondary:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.button.dark { background: var(--text); color: var(--bg); }
.button.light { background: #FFFFFF; color: #1D1D1F; }
.button.danger { background: var(--bad); color: #FFFFFF; }
.button.link { background: none; color: var(--brand); padding-left: 8px; padding-right: 8px; }
.button[disabled], .button.disabled { opacity: .45; pointer-events: none; }

/* Карточки и сетки */
.card { background: var(--card); border-radius: var(--radius); padding: 28px; }
.card + .card { margin-top: 12px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid > .card + .card { margin-top: 0; }
.narrow { max-width: 560px; }

/* Главная */
.hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 88px 0 36px; }
.hero h1 { margin: 0; font-size: clamp(44px, 8vw, 76px); line-height: 1.02; max-width: 900px; }
.hero .lead { margin: 0; }
.app-icon { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 20px 44px rgba(90, 82, 242, 0.28); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; align-items: center; }
.fineprint { font-size: 14px; color: var(--muted); }

.showcase { border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, #C9D6FF 0%, #E2E2F7 45%, #F7D9E4 100%);
  box-shadow: 0 40px 80px rgba(29, 29, 31, 0.12); padding-bottom: 56px; color: #1D1D1F; margin-bottom: 96px; }
.menubar { display: flex; justify-content: flex-end; align-items: center; gap: 18px; padding: 7px 20px; background: rgba(255, 255, 255, 0.55); font-size: 13px; font-weight: 500; }
.menubar .item { display: inline-flex; align-items: center; gap: 6px; background: rgba(29, 29, 31, 0.08); padding: 2px 8px; border-radius: 6px; }
.menubar img { width: 14px; height: 14px; border-radius: 4px; }
.panel-wrap { display: flex; justify-content: flex-end; padding: 10px 28px 0; }
.panel { width: 360px; max-width: 100%; background: rgba(255, 255, 255, 0.84); border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 18px;
  padding: 14px; box-shadow: 0 24px 48px rgba(29, 29, 31, 0.18); text-align: left; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; }
.panel-head img { width: 34px; height: 34px; border-radius: 9px; }
.panel-head .title { font-weight: 600; font-size: 14px; }
.panel-head .sub { font-size: 12px; color: #6E6E73; }
.panel-head .ip { margin-left: auto; font-size: 12px; background: #E3F5EC; color: #1E7A4A; padding: 4px 8px; border-radius: 999px; }
.panel-label { font-size: 11px; font-weight: 600; color: #8E8E93; letter-spacing: 0.06em; padding: 8px 6px 4px; }
.panel-row { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px; font-size: 14px; }
.panel-row.active { background: rgba(90, 82, 242, 0.08); }
.panel-row .name { flex: 1; }
.panel-row .meta { color: #6E6E73; font-size: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34C759; flex: none; }
.switch { width: 34px; height: 20px; border-radius: 999px; background: #34C759; display: inline-flex; justify-content: flex-end; padding: 2px; flex: none; }
.switch::after { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #FFFFFF; }
.panel-foot { border-top: 1px solid #E3E3E8; margin-top: 8px; padding: 8px 8px 0; font-size: 14px; color: #3A3A3F; display: flex; justify-content: space-between; }

.section-title { text-align: center; margin: 0 0 32px; }
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: 96px; }
.tile { background: var(--card); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 10px; min-height: 210px; }
.tile svg { width: 32px; height: 32px; stroke: var(--brand); }
.tile b { font-size: 21px; line-height: 1.25; }
.tile p { margin: 0; color: var(--muted); }
.tile.dark { background: var(--dark); color: var(--on-dark); }
.tile.dark svg { stroke: #FFFFFF; }
.tile.dark p { color: var(--on-dark-muted); }

.band { background: var(--card); }
.band-inner { padding: 88px 0; text-align: center; }
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 820px; margin: 40px auto 0; text-align: left; }
.plan { background: var(--bg); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.plan.featured { box-shadow: inset 0 0 0 2px var(--brand); }
.plan .name { font-weight: 700; font-size: 20px; }
.price { font-size: 46px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.price small { font-size: 18px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan p { margin: 0; color: var(--muted); flex: 1; }
.plan .button { margin-top: 10px; }

.split { display: grid; gap: 48px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; padding: 88px 0; }
.split h2 { margin-top: 0; }
.step-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: step; }
.step-list li { counter-increment: step; background: var(--card); border-radius: 18px; padding: 18px 22px 18px 58px; position: relative; }
.step-list li::before { content: counter(step); position: absolute; left: 22px; top: 18px; font-weight: 800; color: var(--brand); }

.cta-dark { background: var(--dark); color: var(--on-dark); border-radius: 32px; padding: 64px 32px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta-dark h2 { margin: 0; }
.cta-dark p { margin: 0; color: var(--on-dark-muted); }
.platforms { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.platforms .soon { border: 1.5px dashed rgba(255, 255, 255, 0.3); color: var(--on-dark-muted); padding: 12px 20px; border-radius: 999px; font-size: 15px; }

/* Шаги и снимки (инструкция) */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0; display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.steps li { counter-increment: step; background: var(--card); border-radius: 18px; padding: 18px 22px 18px 62px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 16px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.screens { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 24px; }
.screens figure { margin: 0; }
.screens img, .shot { width: 100%; border-radius: 18px; background: var(--card); }
.shot { aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; color: var(--muted); border: 1px dashed var(--line); }
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* Таблицы, метки, формы, сообщения (кабинет) */
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); padding: 8px 20px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-size: 13px; font-weight: 600; color: var(--muted); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; background: var(--bg); }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
form p { margin: 0 0 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
input[type=email], input[type=password], input[type=text], textarea, select {
  width: 100%; max-width: 520px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  color: var(--text); font: inherit; }
input:focus, textarea:focus, select:focus { outline: 3px solid color-mix(in srgb, var(--brand) 30%, transparent); border-color: var(--brand); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); vertical-align: middle; }
.errorlist { color: var(--bad); padding-left: 18px; margin: 4px 0; }
.helptext { color: var(--muted); font-size: 14px; }
.messages { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.msg { margin: 0; padding: 14px 18px; border-radius: 14px; background: var(--card); }
.msg.success { background: var(--ok-bg); color: var(--ok); }
.msg.error { background: var(--bad-bg); color: var(--bad); }
.msg.warning { background: var(--warn-bg); color: var(--warn); }
.inline { display: inline; }
.thread .card.from-staff { box-shadow: inset 3px 0 0 var(--brand); }
.legal { padding-bottom: 24px; }
.legal h2 { font-size: 22px; margin: 32px 0 8px; letter-spacing: -0.01em; }
.placeholder { background: var(--warn-bg); color: var(--warn); padding: 0 4px; border-radius: 4px; }
.faq .card b { font-size: 18px; }
.faq .card p { margin: 8px 0 0; }

/* Телефон: шапка в одну строку и не закрывает экран при прокрутке */
@media (max-width: 640px) {
  .top { position: static; }
  nav { gap: 16px; }
  nav .optional { display: none; }
  .hero { padding-top: 48px; }
  .showcase { border-radius: 20px; margin-bottom: 64px; }
  .panel-wrap { padding: 10px 12px 0; }
  .tile { min-height: 0; }
  .card, .plan, .tile { padding: 24px; }
}

/* Галочка («Принимаю оферту…») — слева от подписи, в одну строку */
form p:has(> input[type=checkbox]) { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 10px; }
form p:has(> input[type=checkbox]) label { margin: 0; font-weight: 500; }
