/* lapsusborz.net — LB Publisher. Тон и ритм — как у страниц продуктов Apple: системный шрифт,
   крупные плотные заголовки, чередование чёрных и светлых разделов, много воздуха. */
:root {
  --black: #000;
  --ink: #1d1d1f;
  --gray: #f5f5f7;
  --white: #fff;
  --dim: #6e6e73;
  --dim-dark: #a1a1a6;
  --line: #d2d2d7;
  --line-dark: #424245;
  --blue: #0071e3;
  --link: #0066cc;
  --link-dark: #2997ff;
  --pink: #ff2e88;
  --cyan: #00e5ff;
  --app-bg: #0b0a12;
  --app-surface: #17141f;
  --grad: linear-gradient(92deg, #ff2e88 0%, #b45cff 45%, #00e5ff 100%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 17px/1.47 var(--font); letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
:lang(zh-Hans) body, html:lang(zh-Hans) body { letter-spacing: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: 0.88em/1.4 var(--mono); background: rgba(0,0,0,.05); padding: .12em .38em; border-radius: 6px; letter-spacing: 0; overflow-wrap: anywhere; }
.dark code { background: rgba(255,255,255,.1); }
h1, h2, h3 { margin: 0; font-weight: 600; }

.wrap { max-width: 1024px; margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }

/* ── разделы ── */
section { padding: 120px 0; }
.dark { background: var(--black); color: #f5f5f7; }
.dark a { color: var(--link-dark); }
.light { background: var(--white); }
.gray { background: var(--gray); }

.eyebrow { margin: 0 0 10px; font-size: 21px; font-weight: 600; letter-spacing: .004em; color: var(--dim); }
.dark .eyebrow { color: var(--dim-dark); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.display { font-size: clamp(44px, 8.2vw, 96px); line-height: 1.04; letter-spacing: -0.015em; font-weight: 700; }
.display.sm { font-size: clamp(40px, 6.5vw, 80px); }
.headline { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.07; letter-spacing: -0.01em; font-weight: 700; margin-bottom: 18px; }
.lead { margin: 24px auto 0; max-width: 700px; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.38; color: var(--dim); font-weight: 500; letter-spacing: .005em; }
.dark .lead { color: var(--dim-dark); }
.lead.left { margin-left: 0; }
.lead.dim { color: var(--dim); }
.sub { color: var(--dim-dark); font-size: 17px; margin: 18px 0 0; }

.ctas { margin: 36px 0 0; display: flex; gap: 14px 30px; justify-content: center; align-items: center; flex-wrap: wrap; }
.btn {
  display: inline-block; background: var(--blue); color: #fff !important; padding: 12px 24px; border-radius: 980px;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em; transition: background .2s;
}
.btn:hover { background: #0077ed; text-decoration: none; }
.more { font-size: 19px; font-weight: 500; }
.more::after { content: "›"; margin-left: .3em; font-size: 1.15em; position: relative; top: .02em; }
.note { margin: 22px 0 0; color: var(--dim-dark); font-size: 14px; letter-spacing: 0; }
.soon { color: #f5f5f7; font-weight: 600; }

/* ── навигация ── */
.nav {
  position: sticky; top: 0; z-index: 50; height: 52px;
  background: rgba(0,0,0,.78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-in { max-width: 1024px; margin: 0 auto; padding: 0 22px; height: 100%; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 9px; color: #f5f5f7 !important; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 6px; }
.nav nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.nav ul a { color: rgba(245,245,247,.8); font-size: 13px; letter-spacing: -0.01em; }
.nav ul a:hover, .nav ul a[aria-current] { color: #fff; text-decoration: none; }
.langs { display: flex; gap: 2px; background: rgba(255,255,255,.1); border-radius: 980px; padding: 2px; }
.langs a { color: rgba(245,245,247,.75); font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 980px; letter-spacing: 0; }
.langs a:hover { text-decoration: none; color: #fff; }
.langs a[aria-current] { background: rgba(255,255,255,.92); color: #000; }

/* ── герой ── */
.hero { padding: 96px 0 0; overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: auto 0 -10% 0; height: 70%;
  background: radial-gradient(40% 55% at 38% 70%, rgba(255,46,136,.28), transparent 70%),
              radial-gradient(40% 55% at 64% 75%, rgba(0,229,255,.22), transparent 70%);
  pointer-events: none;
}
.hero .eyebrow { font-size: 24px; }
.phones { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 44px; margin-top: 72px; padding: 0 22px; height: 640px; }
.phones .phone:nth-child(2) { transform: translateY(70px); }

/* ── макет iPhone ── */
.phone {
  flex: 0 0 auto; width: 300px; height: 640px; border-radius: 56px; padding: 11px;
  background: linear-gradient(145deg, #3a3a3c, #1c1c1e 40%, #2c2c2e);
  box-shadow: 0 0 0 1px #48484a inset, 0 40px 80px rgba(0,0,0,.55), 0 0 0 2px #0a0a0a;
}
.screen { height: 100%; border-radius: 46px; overflow: hidden; position: relative; }
.app { background: var(--app-bg); color: #fff; padding: 0 14px; font-size: 13px; letter-spacing: -0.01em; text-align: left; }
.sb { display: flex; justify-content: space-between; align-items: center; height: 46px; padding: 0 16px 0 22px; font-weight: 600; font-size: 14px; }
.island { width: 92px; height: 27px; background: #000; border-radius: 20px; position: absolute; left: 50%; top: 10px; transform: translateX(-50%); }
.sb-r { display: flex; gap: 5px; align-items: center; }
.sb-r b { display: block; background: #fff; border-radius: 2px; }
.bars { width: 16px; height: 10px; clip-path: polygon(0 70%,20% 70%,20% 100%,0 100%,0 70%, 27% 50%,47% 50%,47% 100%,27% 100%,27% 50%, 54% 25%,74% 25%,74% 100%,54% 100%,54% 25%, 81% 0,100% 0,100% 100%,81% 100%); }
.wifi { width: 14px; height: 10px; clip-path: polygon(50% 100%, 0 30%, 15% 12%, 50% 0, 85% 12%, 100% 30%); }
.batt { width: 22px; height: 10px; border-radius: 3px !important; }
.a-top { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 12px; }
.a-top b { font-size: 15px; font-weight: 600; }
.a-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--app-surface); position: relative; }
.a-btn::before { content: ""; position: absolute; inset: 0; margin: auto; }
.menu::before { width: 13px; height: 9px; border-top: 2px solid var(--pink); border-bottom: 2px solid var(--pink); }
.menu::after { content: ""; position: absolute; left: 9.5px; right: 9.5px; top: 15px; height: 2px; background: var(--pink); }
.refresh::before { width: 12px; height: 12px; border: 2px solid var(--pink); border-top-color: transparent; border-radius: 50%; }
.back::before { width: 9px; height: 9px; border-left: 2px solid var(--pink); border-bottom: 2px solid var(--pink); transform: translateX(2px) rotate(45deg); }
.share::before { width: 11px; height: 11px; border: 2px solid var(--pink); border-top: 0; border-radius: 0 0 3px 3px; transform: translateY(3px); }
.a-seg { display: flex; background: var(--app-surface); border-radius: 10px; padding: 2px; margin-bottom: 12px; }
.a-seg span { flex: 1; text-align: center; padding: 6px 2px; font-size: 10.5px; color: #c7c4d1; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-seg .on { background: #3a3744; color: #fff; }
.q-card { background: var(--app-surface); border-radius: 14px; padding: 11px 12px; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.q-day { margin: 0; color: var(--cyan); font-size: 11px; font-weight: 600; }
.q-title { margin: 2px 0 4px; font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.q-title.done { color: #8e8a99; }
.q-marks { margin: 0; display: flex; gap: 9px; font-size: 10.5px; color: #8e8a99; }
.q-marks .ok { color: #4cd964; }
.chev { flex: 0 0 auto; width: 7px; height: 7px; border-right: 1.6px solid #6c6878; border-top: 1.6px solid #6c6878; transform: rotate(45deg); }
.e-cover { width: 112px; margin: 0 auto 10px; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.app .e-title { margin: 2px 0 8px; font-size: 16px; font-weight: 700; }
.e-cap { background: var(--app-surface); border-radius: 12px; padding: 8px 10px; font-size: 11.5px; margin-bottom: 10px; line-height: 1.35; }
.e-cap span { display: block; color: var(--cyan); font-size: 10px; font-weight: 600; margin-bottom: 2px; }
.e-btn { background: var(--pink); border-radius: 11px; text-align: center; font-weight: 600; font-size: 14px; padding: 10px 0; margin-bottom: 7px; }
.e-hint { margin: 6px 0 0; text-align: center; color: #8e8a99; font-size: 10px; }

/* ── три шага ── */
.steps { list-style: none; padding: 0; margin: 72px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; counter-reset: s; }
.steps .num { display: block; font-size: 64px; font-weight: 700; line-height: 1; margin-bottom: 18px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -0.02em; }
.steps h3 { font-size: 24px; line-height: 1.17; margin-bottom: 10px; letter-spacing: .005em; }
.steps p { margin: 0; color: var(--dim); }
.steps .num { background-size: 300% 100%; }
.steps li:nth-child(2) .num { background-position: 50% 0; }
.steps li:nth-child(3) .num { background-position: 100% 0; }

/* ── плитки ── */
.bento { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: var(--white); border-radius: 28px; padding: 36px 32px; min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; }
.tile h3 { font-size: 26px; line-height: 1.15; margin-bottom: 8px; letter-spacing: .002em; }
.tile p { margin: 0; color: var(--dim); }
.tile.wide { grid-column: span 3; }
.tile.span2 { grid-column: span 2; }
.tile.dark { background: var(--black); color: #f5f5f7; flex-direction: row; align-items: center; gap: 40px; justify-content: space-between; padding: 44px; }
.tile.dark p { color: var(--dim-dark); }
.tile.dark h3 { font-size: clamp(28px, 3.4vw, 40px); }
.tile-text { flex: 1 1 340px; }
.tile.accent { background: var(--app-bg); color: #fff; min-height: 220px; background-image: radial-gradient(60% 120% at 100% 0%, rgba(255,46,136,.35), transparent 60%), radial-gradient(50% 120% at 0% 100%, rgba(0,229,255,.22), transparent 60%); }
.tile.accent h3 { font-size: clamp(28px, 3.4vw, 40px); }
.tile.accent p { color: #c7c4d1; max-width: 640px; }
.big { margin: 0 0 auto !important; font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--ink) !important; }
.big.grad { color: transparent !important; }
.lang3 { font-size: 44px; }
.glyph { margin: 0 0 auto !important; width: 64px; height: 64px; border-radius: 18px; background: var(--grad); position: relative; }
.glyph::before { content: ""; position: absolute; inset: 0; margin: auto; }
.glyph.tap::before { width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 7px rgba(255,255,255,.35); }
.glyph.check::before { width: 26px; height: 13px; border-left: 4px solid #fff; border-bottom: 4px solid #fff; transform: translateY(-4px) rotate(-45deg); }
.glyph.net::before { width: 30px; height: 30px; border: 4px solid #fff; border-radius: 50%; box-shadow: inset 0 0 0 4px transparent; background: radial-gradient(circle, #fff 0 4px, transparent 5px); }
.formats { flex: 0 1 460px; display: flex; gap: 18px; align-items: flex-end; }
.formats figure { margin: 0; position: relative; }
.formats img { border-radius: 14px; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.fmt-v { width: 118px; flex: 0 0 auto; }
.fmt-h { flex: 1 1 auto; }
.formats figcaption { margin-top: 10px; font-size: 13px; color: var(--dim-dark); }
.pill { position: absolute; right: 12px; top: 12px; background: rgba(0,0,0,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 980px; }

/* ── агенты ── */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.code { background: #1c1c1e; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 0 0 1px #2c2c2e; }
.code-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #2c2c2e; }
.code-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.code-bar i:nth-child(2) { background: #febc2e; } .code-bar i:nth-child(3) { background: #28c840; }
.code-bar span { margin-left: 8px; color: #8e8e93; font: 12px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.code pre { margin: 0; padding: 22px 24px; overflow-x: auto; }
.code pre code { background: none; padding: 0; font-size: 14px; line-height: 1.7; color: #f5f5f7; }
.code .k { color: #ff7ab2; } .code .s { color: #fc6a5d; } .code .b { color: #d9c97c; }
.light-code { background: var(--gray); box-shadow: none; margin: 20px 0; }
.light-code pre code { color: var(--ink); }
.light-code .k { color: #ad3da4; } .light-code .s { color: #c41a16; } .light-code .b { color: #1c00cf; }

/* ── приватность, цена ── */
.lock { width: 64px; height: 56px; margin: 0 auto 28px; position: relative; border-radius: 12px; background: var(--ink); }
.lock::before { content: ""; position: absolute; left: 14px; right: 14px; top: -24px; height: 34px; border: 6px solid var(--ink); border-bottom: 0; border-radius: 20px 20px 0 0; }
.lock::after { content: ""; position: absolute; left: 50%; top: 18px; width: 8px; height: 16px; margin-left: -4px; border-radius: 4px; background: #fff; }
.price-card { margin: 48px auto 0; max-width: 460px; background: var(--white); border-radius: 28px; padding: 44px 36px 36px; box-shadow: 0 4px 24px rgba(0,0,0,.04); }
.price-card img { margin: 0 auto 18px; border-radius: 16px; }
.price { margin: 0; font-size: 72px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.per { margin: 8px 0 26px; color: var(--dim); }
.price-card ul { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); text-align: left; }
.price-card li { padding: 7px 0 7px 30px; position: relative; }
.price-card li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 12px; height: 6px; border-left: 2.5px solid #34c759; border-bottom: 2.5px solid #34c759; transform: rotate(-45deg); }
.final { padding: 140px 0; }

/* ── страницы-документы ── */
.doc { background: var(--gray); padding-bottom: 100px; }
.doc-head { background: var(--black); color: #f5f5f7; padding: 88px 0 72px; }
.doc-head h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.06; letter-spacing: -0.01em; font-weight: 700; }
.doc-head .eyebrow { font-size: 19px; }
.doc-head .lead { color: var(--dim-dark); font-size: clamp(18px, 2vw, 21px); }
.doc-body { padding-top: 40px; }
.card { background: var(--white); border-radius: 22px; padding: 34px 36px; margin-bottom: 20px; }
.card h2 { font-size: 26px; line-height: 1.2; margin-bottom: 14px; letter-spacing: .002em; }
.card h3 { font-size: 19px; margin: 26px 0 10px; }
.card ol, .card ul { margin: 0; padding-left: 22px; }
.card li { margin: 8px 0; padding-left: 4px; }
.card p { margin: 12px 0 0; }
.tbl { overflow-x: auto; margin-top: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; color: var(--dim); font-weight: 600; font-size: 13px; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
td { padding: 12px 12px 12px 0; border-bottom: 1px solid #e8e8ed; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td:first-child { white-space: nowrap; font-weight: 500; }
.faq { border-top: 1px solid #e8e8ed; }
.faq:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-size: 19px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 26px; font-weight: 300; color: var(--link); transition: transform .25s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 20px; color: #424245; }
.prose h2 { font-size: 21px; margin: 28px 0 6px; }
.prose p { margin: 0; color: #424245; }
.updated { color: var(--dim) !important; font-size: 14px; }

/* ── подвал ── */
.foot { background: var(--gray); color: var(--dim); font-size: 12px; letter-spacing: -0.01em; padding: 24px 0 36px; }
.doc + .foot, .page-connect .foot, .page-support .foot, .page-privacy .foot { border-top: 1px solid var(--line); }
.foot a { color: #424245; }
.foot-contact { margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.foot-contact a { color: var(--link); }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot-row p { margin: 0; }
.foot-links a, .foot-langs a { margin-right: 14px; }
.foot-links a:last-child, .foot-langs a:last-child { margin-right: 0; }
.foot-langs a[aria-current] { color: var(--ink); font-weight: 600; }

/* ── появление при прокрутке (без JS всё видно сразу) ── */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .phones.reveal { transform: translateY(60px); }
.js .phones.reveal.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── адаптив ── */
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.wide { grid-column: span 2; }
  .tile.span2 { grid-column: span 1; }
  .tile.dark { flex-direction: column; align-items: flex-start; justify-content: flex-start; }
  .tile-text { flex: none; }
  .formats { width: 100%; flex-basis: auto; }
  .split { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 734px) {
  section { padding: 80px 0; }
  .nav nav { display: none; }
  .langs { margin-left: auto; }
  .hero { padding-top: 64px; }
  .phones { gap: 20px; height: 640px; margin-top: 52px; zoom: .72; }
  .steps { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; }
  .bento { grid-template-columns: 1fr; gap: 14px; margin-top: 44px; }
  .tile.wide, .tile.span2 { grid-column: auto; }
  .tile { min-height: 0; padding: 30px 26px; }
  .tile .big, .tile .glyph { margin-bottom: 28px !important; }
  .tile.dark { padding: 32px 26px; gap: 28px; }
  .card { padding: 26px 22px; border-radius: 18px; }
  .doc-head { padding: 60px 0 48px; }
  .foot-row { flex-direction: column; }
}
@media (max-width: 420px) {
  .phones { zoom: .54; gap: 16px; }
  .brand span { font-size: 17px; }
  .formats { gap: 12px; }
  .fmt-v { width: 84px; }
}
