/* «Точка расчёта» — общие стили */
:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: #e5e5ea;
  --paper: #ffffff;
  --soft: #f5f5f7;
  --card: #ffffff;
  --accent: #0066cc;
  --accent-ink: #ffffff;
  --accent-soft: rgba(0, 102, 204, .1);
  --bar: rgba(255, 255, 255, .78);
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f5f5f7; --muted: #a1a1a6; --faint: #86868b; --line: #38383a;
    --paper: #000000; --soft: #111113; --card: #1c1c1e;
    --accent: #2997ff; --accent-ink: #ffffff; --accent-soft: rgba(41, 151, 255, .16);
    --bar: rgba(22, 22, 23, .78);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* шапка */
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--bar); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 52px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 17px; margin-right: auto; }
.logo:hover { text-decoration: none; }
.logo img { width: 22px; height: 22px; }
.nav { display: flex; gap: 24px; font-size: 14px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--ink); text-decoration: none; }

/* меню на телефоне: раскрывается по нажатию, без модальных окон */
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; color: var(--ink); margin-right: -10px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; }
.menu[open] summary { background: var(--soft); }
.menu .sheet {
  position: absolute; right: -8px; top: 50px; min-width: 220px; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}
.menu .sheet a { display: block; padding: 12px 14px; border-radius: 10px; color: var(--ink); font-size: 16px; }
.menu .sheet a:hover { background: var(--soft); text-decoration: none; }
@media (max-width: 720px) {
  .top .wrap:has(.menu) .nav { display: none; }
  .menu { display: block; }
  .nav { gap: 16px; }
}

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 980px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 17px;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), opacity .2s;
}
.btn:hover { text-decoration: none; opacity: .9; }
.btn:active { transform: scale(.97); }
.btn.soft { background: var(--accent-soft); color: var(--accent); }
.btn.small { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center; }
.more { font-size: 17px; }
.more::after { content: " ›"; }

/* первый экран */
.hero { text-align: center; padding: 96px 0 88px; }
.hero .eyebrow { color: var(--muted); font-size: 17px; font-weight: 600; margin: 0 0 12px; }
.hero h1 { font-size: clamp(40px, 7vw, 72px); font-weight: 700; margin: 0 auto 20px; max-width: 820px; }
.hero p.sub { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.35; color: var(--muted); max-width: 640px; margin: 0 auto 36px; }
.hero .btns { gap: 24px; }

/* разделы */
section { padding: 88px 0; }
section.alt { background: var(--soft); }
.head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
h2 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 19px; line-height: 1.4; margin: 0; }
h3 { font-size: 17px; font-weight: 600; margin: 0; letter-spacing: 0; }
.foot-note { text-align: center; color: var(--faint); font-size: 14px; margin: 20px 0 0; }

/* сгруппированный список (как «Настройки» на iPhone) */
.group { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.group > li { display: flex; align-items: center; gap: 16px; padding: 16px 20px; position: relative; }
.group > li + li::before { content: ""; position: absolute; top: 0; left: 20px; right: 0; border-top: 1px solid var(--line); }
.group .t { flex: 1; min-width: 0; }
.group .t span { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.group .v { font-weight: 600; white-space: nowrap; text-align: right; }
section:not(.alt) .group { background: var(--soft); }

/* шаги */
.steps { counter-reset: s; }
.steps > li { counter-increment: s; align-items: flex-start; }
.steps > li::after {
  content: counter(s); order: -1; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 15px; display: grid; place-items: center;
}
.steps > li + li::before { left: 64px; }
.cta { margin-top: 32px; }

.kicker { display: block; color: var(--faint); font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.group .v small { font-weight: 400; color: var(--muted); font-size: 15px; }

/* витрина на первом экране: отчёт, телефон, табличка */
.hero { overflow: hidden; padding-bottom: 0; }
.showcase { position: relative; max-width: 760px; height: 520px; margin: 64px auto 0; }
.showcase .phone { position: absolute; left: 50%; top: 0; width: 260px; transform: translateX(-50%); z-index: 2; }
.sheet-img { position: absolute; height: auto; border-radius: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, .12); background: #fff; }
.sheet-img.back { width: 330px; left: 6%; top: 60px; transform: rotate(-4deg); }
.sheet-img.front { width: 210px; right: 7%; top: 150px; transform: rotate(3deg); z-index: 3; padding: 14px; }
@media (max-width: 640px) {
  .showcase { height: 400px; margin-top: 48px; }
  .showcase .phone { width: 200px; }
  .sheet-img.back { width: 230px; left: -4%; top: 50px; }
  .sheet-img.front { width: 116px; right: -3%; top: 250px; padding: 6px; }
}

/* рамка телефона для скриншотов приложения */
.phone {
  aspect-ratio: 780 / 1688; border-radius: 40px; padding: 8px;
  background: #1d1d1f; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px rgba(0, 0, 0, .18);
}
.phone img, .phone picture { display: block; width: 100%; height: 100%; border-radius: 32px; object-fit: cover; object-position: top; }

/* два способа */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; max-width: 860px; margin: 0 auto; }
.tile {
  display: flex; flex-direction: column; gap: 8px; padding: 32px 28px; border-radius: 20px;
  background: var(--card); color: var(--ink);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.tile:hover { text-decoration: none; transform: translateY(-2px); }
.tile:active { transform: scale(.98); }
.tile .kicker { margin: 0; }
.tile h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.tile p { margin: 0 0 8px; color: var(--muted); }
.tile .more { margin-top: auto; color: var(--accent); }
.contacts { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
.contacts .tile { background: var(--soft); text-align: center; align-items: center; padding: 28px 20px; }
.contacts .tile h3 { font-size: 20px; }
@media (max-width: 560px) { .contacts .tile h3 { font-size: 16px; } .contacts .tile { padding: 24px 12px; } }

/* образцы документов */
.pages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: end; }
.pages figure, .screens figure { margin: 0; text-align: center; }
.pages img { display: block; width: 100%; height: auto; border-radius: 4px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 12px 32px rgba(0, 0, 0, .08); }
.pages .signfig img { padding: 10%; }
figcaption { color: var(--muted); font-size: 15px; margin-top: 12px; }
@media (max-width: 760px) {
  .pages { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 16px; gap: 16px; }
  .pages figure { flex: 0 0 62%; scroll-snap-align: center; }
}

/* скриншоты программы */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 900px; margin: 0 auto; }
.screens .phone { max-width: 250px; margin: 0 auto; }
.screens figcaption { max-width: 260px; margin: 20px auto 0; line-height: 1.4; }
.screens figcaption b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) {
  .screens { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 16px; gap: 24px; }
  .screens figure { flex: 0 0 68%; scroll-snap-align: center; }
}

.plans { margin-top: 88px; }
.h3big { font-size: clamp(26px, 4vw, 32px); font-weight: 700; margin: 0 0 8px; }

.badge { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 980px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }

/* реквизиты */
.req > li { justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; }
.req .k { color: var(--muted); }
.req .v { font-weight: 400; white-space: normal; }
@media (max-width: 560px) {
  .req > li { flex-direction: column; align-items: flex-start; }
  .req .v { text-align: left; }
}

/* текстовые страницы */
.doc { padding: 48px 20px 72px; max-width: 720px; }
.doc h1 { font-size: clamp(32px, 5vw, 40px); margin: 0 0 8px; }
.doc .meta { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc p, .doc li { margin: 0 0 10px; }

/* подвал */
.foot { background: var(--soft); padding: 24px 0 32px; font-size: 13px; color: var(--faint); border-top: 1px solid var(--line); }
.foot .wrap { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

@media (max-width: 560px) {
  .hero { padding: 64px 0 56px; }
  section { padding: 64px 0; }
  .group > li { padding: 14px 16px; }
  .group > li + li::before { left: 16px; }
  .steps > li + li::before { left: 60px; }
  .wrap { padding: 0 16px; }
  .prices > li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .prices .v { text-align: left; }
  .doc { padding: 32px 16px 56px; }
}
