:root {
  /* Один тёмный мир Flint: тёплый почти чёрный, янтарь только там, где Флинт «светится».
     Раскладка: узкая колонка текста по центру, крупные экраны продукта на мягком свечении. */
  --bg: #0b0908;
  --panel: #15110e;
  --panel-2: #1c1713;
  --line: rgba(255, 240, 225, 0.08);
  --line-strong: rgba(255, 240, 225, 0.14);
  --text: #f6f0ea;
  --muted: #a99c90;
  --faint: #6f655d;
  --amber: #f8a14b;
  --amber-deep: #ff7a35;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 20px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); margin-inline: auto; }

/* Шапка */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(11, 9, 8, 0.72); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 650; letter-spacing: -0.01em; font-size: 17px; }
.brand img { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 22px; margin-right: auto; }
.nav-links a, .lang { color: var(--muted); text-decoration: none; font-size: 14px; padding: 6px 0; }
.nav-links a:hover, .lang:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 16px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 20px; border-radius: 12px;
  font: 600 15px/1 var(--body); text-decoration: none; border: 1px solid transparent; transition: background-color .18s ease, border-color .18s ease, transform .12s ease; }
.btn:active { transform: scale(0.98); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--text); color: #120d09; }
.btn-primary:hover { background: #fff; }
.btn-ghost { background: rgba(255, 240, 225, 0.04); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 240, 225, 0.08); }
.btn-small { height: 34px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* Первый экран */
.hero { position: relative; padding: 88px 0 40px; text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -10% -20% auto; height: 760px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(248, 161, 75, 0.22), rgba(248, 161, 75, 0.06) 55%, transparent 75%);
  transform: translateY(18%); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--muted); font-size: 13.5px; background: rgba(255, 240, 225, 0.03); }
.eyebrow b { color: var(--text); font-weight: 600; }
.hero h1 { font: 700 clamp(42px, 7.2vw, 80px)/1.02 var(--display); letter-spacing: -0.035em; margin: 22px auto 18px; max-width: 14ch; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lead { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 600px; margin: 0 auto; text-wrap: balance; }
.cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.req { color: var(--faint); font-size: 13.5px; margin-top: 14px; }

/* Сцена: Mac с вырезом и iPhone */
.stage { position: relative; margin: 64px auto 0; width: min(1000px, 100%); aspect-ratio: 1000 / 560; }
.mac { position: absolute; left: 0; top: 0; width: 86%; height: 92%; border-radius: 22px; border: 1px solid var(--line-strong);
  background: radial-gradient(120% 90% at 30% 0%, #2a211a, #120e0b 60%), #120e0b; overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, .55); }
.mac::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, transparent 0 18%, rgba(255,255,255,.025) 18% 18.2%, transparent 18.2%),
  repeating-linear-gradient(180deg, transparent 0 34px, rgba(255,255,255,.018) 34px 35px); }
.notch { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 168px; height: 30px; background: #000; border-radius: 0 0 16px 16px; z-index: 2; }
.notch-card { position: absolute; left: 50%; top: 0; z-index: 1; width: min(440px, 62%); transform: translate(-50%, 0); padding: 40px 16px 14px;
  background: #000; border-radius: 0 0 26px 26px; display: flex; align-items: center; gap: 12px; text-align: left;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6); animation: drop 6s cubic-bezier(.23, 1, .32, 1) infinite; }
.notch-card img { width: 34px; height: 34px; flex: none; }
.notch-card .t { font-size: 14px; font-weight: 600; line-height: 1.3; }
.notch-card .s { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
@keyframes drop {
  0%, 8% { transform: translate(-50%, -100%); opacity: 0; }
  16%, 78% { transform: translate(-50%, 0); opacity: 1; }
  88%, 100% { transform: translate(-50%, -100%); opacity: 0; }
}
.mac-lines { position: absolute; left: 22%; right: 8%; top: 34%; display: grid; gap: 14px; z-index: 0; }
.mac-lines span { height: 9px; border-radius: 6px; background: rgba(255, 240, 225, .07); }
.mac-lines span:nth-child(2) { width: 72%; background: rgba(248, 161, 75, .22); }
.mac-lines span:nth-child(3) { width: 84%; }
.mac-lines span:nth-child(4) { width: 58%; }
.mac-lines span:nth-child(5) { width: 66%; background: rgba(120, 170, 255, .14); }
.phone { position: absolute; right: 2%; bottom: 0; width: 27%; aspect-ratio: 660 / 1434; border-radius: 15% / 7%; padding: 1.1%;
  background: linear-gradient(160deg, #3a332d, #15110e); box-shadow: 0 40px 90px rgba(0, 0, 0, .7), 0 0 0 1px var(--line-strong); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 13.6% / 6.3%; }

/* Совместимость */
.works { padding: 72px 0 24px; text-align: center; }
.works h2 { font: 600 15px/1.4 var(--body); color: var(--muted); margin: 0 0 18px; letter-spacing: 0; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 860px; margin: 0 auto; }
.chip { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-size: 14px; color: var(--text); }
.chip.dim { color: var(--muted); border-style: dashed; }
.works .note { color: var(--faint); font-size: 13.5px; margin: 16px auto 0; max-width: 560px; }

/* Разделы */
section.block { padding: 96px 0; }
.kicker { color: var(--amber); font-size: 14px; font-weight: 600; margin: 0 0 12px; }
h2.title { font: 700 clamp(32px, 4.6vw, 52px)/1.06 var(--display); letter-spacing: -0.03em; margin: 0 0 16px; text-wrap: balance; }
p.sub { color: var(--muted); font-size: 18px; margin: 0; max-width: 560px; text-wrap: pretty; }

.feature { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature.flip .shot { order: -1; }
.feature h3 { font: 700 clamp(26px, 3.2vw, 36px)/1.1 var(--display); letter-spacing: -0.025em; margin: 0 0 14px; text-wrap: balance; }
.feature p { color: var(--muted); margin: 0; max-width: 46ch; }
.feature ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.feature li { display: flex; gap: 10px; color: var(--text); font-size: 15.5px; }
.feature li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--amber); }
.shot { position: relative; display: flex; justify-content: center; }
.shot::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; top: 12%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(248, 161, 75, .18), transparent); filter: blur(10px); }
.shot .phone { position: relative; right: auto; bottom: auto; width: min(300px, 78%); }

/* Сетка возможностей */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.cell { padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.cell svg { width: 22px; height: 22px; color: var(--amber); }
.cell h4 { margin: 14px 0 6px; font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.cell p { margin: 0; color: var(--muted); font-size: 15px; }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; counter-reset: step; }
.step { padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.step b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(248, 161, 75, .14); color: var(--amber); font-size: 14px; }
.step h3 { margin: 16px 0 6px; font-size: 18px; font-weight: 650; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Приватность */
.privacy-band { border-radius: 28px; padding: clamp(32px, 5vw, 56px); background:
  radial-gradient(80% 120% at 0% 0%, rgba(248, 161, 75, .14), transparent 60%), var(--panel); border: 1px solid var(--line); }
.privacy-band .grid { margin-top: 32px; }
.privacy-band .cell { background: rgba(0, 0, 0, .25); }

/* Вопросы */
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 12px 0 0; max-width: 64ch; }

/* Финал и подвал */
.final { text-align: center; padding: 112px 0 96px; position: relative; }
.final img.mascot { width: 92px; height: 92px; margin: 0 auto 22px; filter: drop-shadow(0 12px 40px rgba(248, 161, 75, .45)); }
.final h2 { font: 700 clamp(34px, 5vw, 56px)/1.05 var(--display); letter-spacing: -0.03em; margin: 0 0 14px; text-wrap: balance; }
footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 18px; margin-left: auto; }
footer a { color: var(--muted); text-decoration: none; }
footer nav a { padding: 6px 0; }
footer a:hover { color: var(--text); }

/* Текстовые страницы: поддержка и политика */
.doc { padding: 72px 0 96px; }
.doc h1 { font: 700 clamp(36px, 5vw, 52px)/1.06 var(--display); letter-spacing: -0.03em; margin: 0 0 10px; }
.doc .meta { color: var(--faint); font-size: 14px; margin: 0 0 40px; }
.doc h2 { font: 650 22px/1.3 var(--display); letter-spacing: -0.015em; margin: 40px 0 10px; }
.doc p, .doc li { color: #d9cfc6; max-width: 68ch; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc code { font: 14px var(--mono); background: var(--panel-2); padding: 2px 6px; border-radius: 6px; }
.doc a { color: var(--amber); }
.contact { display: flex; gap: 14px; align-items: center; padding: 20px 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); margin: 28px 0; }
.contact img { width: 40px; height: 40px; }
.contact a { font-weight: 600; text-decoration: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .shot { order: 0; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .hero { padding-top: 56px; }
  .stage { aspect-ratio: 1000 / 1500; }
  .mac { width: 100%; height: 40%; }
  .stage > .phone { width: 58%; right: 21%; }
  .notch-card { width: 90%; padding-top: 36px; }
  .grid, .steps { grid-template-columns: 1fr; }
  section.block { padding: 72px 0; }
  .nav .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .notch-card { animation: none; }
  .btn { transition: none; }
}

/* ===== Макеты Mac и iPhone (mockups.py). Размеры в cqw от ширины рабочего стола ===== */
.m-desk { position: relative; text-align: left; container-type: inline-size; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line-strong); box-shadow: 0 50px 140px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .4);
  background: radial-gradient(70% 80% at 85% 0%, rgba(255, 150, 70, .55), transparent 60%),
              radial-gradient(60% 70% at 0% 100%, rgba(120, 70, 240, .35), transparent 60%),
              linear-gradient(155deg, #3a2418, #170f12 55%, #0e0b12); }
.m-scene { aspect-ratio: 16 / 9.6; }
/* Строка меню macOS 26: без подложки, белый текст 13 pt с лёгкой тенью для читаемости на обоях */
.m-menubar { position: relative; z-index: 3; height: 2.4cqw; display: flex; align-items: center; gap: 2cqw; padding: 0 1.6cqw;
  font: 500 1.3cqw/1 var(--body); color: #fff; text-shadow: 0 0 .5cqw rgba(0, 0, 0, .35); white-space: nowrap; }
.m-menubar .b { font-weight: 700; }
/* Меню слева кончаются до свёрнутой шторки (116 pt по центру): лишние переносятся на скрытую вторую строку */
.m-menus { display: flex; flex-wrap: wrap; column-gap: 2cqw; height: 2.4cqw; line-height: 2.4cqw; overflow: hidden; min-width: 0; max-width: 37cqw; }
.m-sp { flex: 1; }
.m-apple { width: 1.45cqw; height: 1.45cqw; flex: none; margin-right: .3cqw; filter: drop-shadow(0 0 .3cqw rgba(0,0,0,.3)); }
.mb-i { height: 1.4cqw; width: auto; flex: none; margin-left: -.2cqw; filter: drop-shadow(0 0 .3cqw rgba(0,0,0,.3)); }
.mb-flint { height: 1.5cqw; }
.mb-batt { height: 1.25cqw; }
.mb-wifi { height: 1.3cqw; }
.mb-clock { margin-left: .1cqw; }

/* Шторка Flint: стекло macOS 26 поверх строки меню, нижние углы 20 pt (свёрнутая 12 pt) */
.m-glass { position: absolute; z-index: 5; top: 0; left: 50%; transform: translateX(-50%); color: #fff;
  font: 400 1.2cqw/1.3 var(--body); border-radius: 0 0 2cqw 2cqw;
  background: linear-gradient(180deg, rgba(58, 54, 60, .42), rgba(34, 32, 38, .5));
  -webkit-backdrop-filter: blur(14px) saturate(1.8); backdrop-filter: blur(14px) saturate(1.8);
  box-shadow: inset 0 -.06cqw 0 rgba(255, 255, 255, .22), inset .06cqw 0 0 rgba(255, 255, 255, .1), inset -.06cqw 0 0 rgba(255, 255, 255, .1),
              0 1.4cqw 4cqw rgba(0, 0, 0, .38), 0 .2cqw .6cqw rgba(0, 0, 0, .18); }
/* Блик кромки: ярче по нижнему краю и у скруглений, как преломление света в стекле */
.m-glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: .1cqw; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.1) 70%, rgba(255,255,255,.42));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.m-glass .m-flame { width: 2.4cqw; height: 2.4cqw; flex: none; }
.m-flame { width: 1.8cqw; height: 1.8cqw; flex: none; }
.np-pill { width: 11.6cqw; height: 2.8cqw; display: flex; align-items: center; justify-content: space-between; padding: 0 .4cqw 0 .2cqw; border-radius: 0 0 1.2cqw 1.2cqw; }
.np-pill .m-flame { width: 1.9cqw; height: 1.9cqw; margin-left: .25cqw; }
.np-count { width: 2.4cqw; text-align: center; font: 600 1.3cqw/1 ui-rounded, var(--body); color: rgba(235, 235, 245, .6); font-variant-numeric: tabular-nums; }
.np-open { width: 38cqw; }
.np-head { height: 2.8cqw; display: flex; align-items: center; }
.np-head b { font-size: 1.3cqw; font-weight: 700; flex: 1; }
.np-body { display: flex; flex-direction: column; gap: 1cqw; padding: 0 1.4cqw 1.4cqw; }
.np-row { display: flex; align-items: flex-start; gap: .8cqw; padding: .3cqw .4cqw; }
.np-row .m-col b { font-size: 1.2cqw; font-weight: 500; }
.np-row .m-col span { font-size: 1cqw; color: rgba(235, 235, 245, .6); }
.np-sym { width: 1.4cqw; height: 1.4cqw; flex: none; margin-top: .2cqw; }
.np-sym svg, .np-ico svg { width: 100%; height: 100%; display: block; }
.np-sym.work { color: #ffd60a; } .np-sym.wait { color: #ff9f0a; } .np-sym.done { color: #30d158; }
.np-ico { width: 1.25cqw; height: 1.25cqw; flex: none; color: rgba(235, 235, 245, .6); margin-top: .5cqw; }
.np-row .m-col { flex: 1; }
.np-ico + .np-ico { margin-left: -.2cqw; }
.np-div { height: 1px; background: rgba(255, 255, 255, .12); }
.np-lim { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: .3cqw .6cqw; font-size: 1cqw; }
.np-lim b { font-weight: 600; font-variant-numeric: tabular-nums; }
.np-lim small { font-size: 1cqw; color: rgba(235, 235, 245, .6); }
.np-lim u { grid-column: 1 / -1; height: .4cqw; border-radius: .4cqw; background: rgba(255, 255, 255, .14); position: relative; text-decoration: none; }
.np-lim u::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: inherit; background: #ffd60a; }
.np-card-only { padding: .6cqw 1.6cqw 1.2cqw; }
.np-finish { display: flex; align-items: flex-start; gap: 1.2cqw; }
.np-finish .m-flame { width: 4cqw; height: 4cqw; }
.np-finish .m-col b { font-size: 1.3cqw; font-weight: 700; }
.np-finish .m-col em { font-style: normal; font-size: 1.2cqw; font-weight: 500; }
.np-finish .m-col span { white-space: normal; font-size: 1.2cqw; color: rgba(235, 235, 245, .6); }
.np-card { display: flex; flex-direction: column; gap: .8cqw; padding: 1cqw; border-radius: 1.2cqw; background: rgba(255, 255, 255, .06); }
.np-card-h { display: flex; align-items: baseline; gap: .6cqw; font-size: 1cqw; }
.np-card-h span { flex: 1; color: rgba(235, 235, 245, .6); }
.np-card-h b { font-weight: 600; color: #ff9f0a; }
.np-action { padding: .8cqw; border-radius: .8cqw; background: rgba(255, 255, 255, .08); font: 1.1cqw/1.3 var(--mono); }
.np-btns { display: flex; gap: .6cqw; }
.np-b { padding: .5cqw 1cqw; border-radius: .7cqw; font-size: 1.2cqw; background: rgba(255, 255, 255, .12); }
.np-b.pro { background: #ff9f0a; color: #000; font-weight: 600; }
.np-rule { font: 1cqw/1.3 var(--mono); color: rgba(235, 235, 245, .6); }
.m-dot { width: .95cqw; height: .95cqw; border-radius: 50%; flex: none; }
.m-dot.done { background: #30d158; }
.m-col { display: flex; flex-direction: column; min-width: 0; }
.m-col b { font-size: 1.2cqw; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-col span { font-size: .95cqw; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Окна macOS 26: скругление 16 pt у системных окон, 10 pt у VS Code, обводка в полпикселя и тень окна в фокусе */
.m-win { position: absolute; z-index: 2; border-radius: 1.6cqw; overflow: hidden; background: #1e1e1e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), 0 0 0 .5px rgba(0, 0, 0, .7), 0 2.2cqw 6cqw rgba(0, 0, 0, .55), 0 .4cqw 1.2cqw rgba(0, 0, 0, .25);
  font: 400 1.2cqw/1.4 var(--body); color: #ececec; }
.m-titlebar { position: relative; height: 2.8cqw; display: flex; align-items: center; padding: 0 1.3cqw; background: #2a2a2a; }
.m-titlebar b { position: absolute; left: 0; right: 0; text-align: center; font-size: 1.3cqw; font-weight: 700; color: rgba(255, 255, 255, .85); pointer-events: none; }
.m-tls { display: flex; gap: .8cqw; position: relative; z-index: 1; }
.m-tl { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25); }
.m-tl.r { background: #ff5f57; } .m-tl.y { background: #febc2e; } .m-tl.g { background: #28c840; }
.m-body { height: calc(100% - 2.8cqw); }
.m-vscode { left: 4.5cqw; top: 6.2cqw; width: 71cqw; height: 52cqw; }
.m-vs { display: grid; grid-template-columns: 11cqw 1fr 26cqw; height: 100%; }
.m-vs.solo { grid-template-columns: 11cqw 1fr; }
.m-tree { background: #1d1814; padding: 1.1cqw .9cqw; border-right: 1px solid rgba(255,255,255,.05); }
.m-file { font-size: .95cqw; color: var(--muted); padding: .25cqw .5cqw; border-radius: .4cqw; white-space: pre; }
.m-file.on { background: rgba(248, 161, 75, .14); color: var(--text); }
.m-editor { padding: 1.4cqw 1.6cqw; overflow: hidden; }
.m-line { display: flex; gap: .7cqw; align-items: center; height: 1.95cqw; }
.m-line i { height: .65cqw; border-radius: .4cqw; flex: none; }
.m-line .kw { background: #d3869b; } .m-line .fn { background: #83a7ff; } .m-line .st { background: #a9d47e; }
.m-line .tx { background: rgba(255,255,255,.2); } .m-line .cm { background: rgba(255,255,255,.08); }
.m-claude { display: flex; flex-direction: column; gap: .9cqw; padding: 1.2cqw; background: #15110e; border-left: 1px solid rgba(255,255,255,.06); }
.m-claude-h { display: flex; align-items: center; gap: .6cqw; font-weight: 600; font-size: 1.1cqw; }
.m-spark { width: 1.2cqw; height: 1.2cqw; background: radial-gradient(circle, #e07a4f 35%, transparent 37%), conic-gradient(from 0deg, #e07a4f 0 8%, transparent 8% 12.5%, #e07a4f 12.5% 20.5%, transparent 20.5% 25%, #e07a4f 25% 33%, transparent 33% 37.5%, #e07a4f 37.5% 45.5%, transparent 45.5% 50%, #e07a4f 50% 58%, transparent 58% 62.5%, #e07a4f 62.5% 70.5%, transparent 70.5% 75%, #e07a4f 75% 83%, transparent 83% 87.5%, #e07a4f 87.5% 95.5%, transparent 95.5%); border-radius: 50%; }
.m-bubble { align-self: flex-end; max-width: 90%; padding: .8cqw 1cqw; border-radius: 1cqw; background: rgba(255,255,255,.08); }
.m-group { color: var(--muted); font-size: 1cqw; }
.m-answer { color: #ececec; }
.m-input { margin-top: auto; padding: .8cqw 1cqw; border-radius: 1cqw; border: 1px solid rgba(255,255,255,.12); color: var(--faint); }
.m-aiwin { left: 9cqw; top: 6.5cqw; width: 50cqw; height: 50cqw; }
.m-ai { height: 100%; display: flex; flex-direction: column; gap: 1cqw; padding: 1.6cqw; font-size: 1.15cqw; }
.m-ai-ready { align-self: flex-start; padding: .5cqw 1cqw; border-radius: 1cqw; background: rgba(95, 211, 138, .14); color: #7fe0a3; font-size: .95cqw; }
.m-ai .m-bubble { background: rgba(248, 161, 75, .16); }
.m-flintwin { left: 50%; transform: translateX(-50%); top: 6.5cqw; width: 44cqw; height: 52cqw; }
.m-flint { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8cqw; text-align: center; padding: 2cqw; }
.m-flint .m-mac { font-size: 1.8cqw; }
.m-on { display: flex; align-items: center; gap: .6cqw; color: #7fe0a3; font-size: 1.05cqw; }
.m-qrbox { width: 19cqw; padding: 1cqw; margin: .8cqw 0; border-radius: 1.4cqw; background: #fff; }
.m-qr { width: 100%; height: auto; display: block; }
.m-flint span { color: rgba(235, 235, 245, .6); font-size: 1.1cqw; }
.m-net { margin-top: .6cqw; padding: .4cqw 1cqw; border-radius: 1cqw; border: 1px solid rgba(255,255,255,.12); }
/* iPhone 17 Pro: корпус Deep Blue с бликом по кромке, чёрная рамка экрана около 2% ширины, кнопки по бокам */
.m-phone { position: absolute; z-index: 7; padding: .36cqw; border-radius: 2.95cqw; border: .17cqw solid transparent;
  background: linear-gradient(#050506, #050506) padding-box,
              linear-gradient(150deg, #7d8ba6, #2b3445 26%, #1a202b 52%, #3d4a62 78%, #8592ab) border-box;
  box-shadow: 0 3cqw 7cqw rgba(0, 0, 0, .62), 0 .5cqw 1.4cqw rgba(0, 0, 0, .35); }
.m-phone img { display: block; width: 100%; height: auto; aspect-ratio: 660 / 1434; object-fit: cover; border-radius: 2.45cqw; }
.pb { position: absolute; width: .22cqw; border-radius: .12cqw; background: linear-gradient(90deg, #556380, #2a3346); }
.pb.a, .pb.v1, .pb.v2 { left: -.39cqw; } .pb.p, .pb.c { right: -.39cqw; background: linear-gradient(270deg, #556380, #2a3346); }
.pb.a { top: 18%; height: 3.6%; } .pb.v1 { top: 25%; height: 6.4%; } .pb.v2 { top: 33.4%; height: 6.4%; }
.pb.p { top: 26%; height: 9.5%; } .pb.c { top: 56%; height: 6%; }
.m-hero-phone { right: 3.5cqw; bottom: 3.5cqw; width: 18cqw; }
.m-side-phone { right: 4cqw; bottom: 4cqw; width: 17cqw; }
.m-landscape { container-type: inline-size; aspect-ratio: 2868 / 1320; padding: .85cqw; border-radius: 6cqw; border: .35cqw solid transparent;
  background: linear-gradient(#050506, #050506) padding-box,
              linear-gradient(120deg, #7d8ba6, #2b3445 26%, #1a202b 52%, #3d4a62 78%, #8592ab) border-box;
  box-shadow: 0 50px 120px rgba(0, 0, 0, .6); }
.m-land-screen { width: 100%; height: 100%; border-radius: 5.2cqw; overflow: hidden; }
.m-mini { aspect-ratio: auto; height: 100%; border: 0; border-radius: 0; box-shadow: none; }
/* Скругление экрана iPhone срезает углы: значки и часы строки меню отодвинуты от них */
.m-mini .m-menubar { padding: 0 3.6cqw 0 2.3cqw; }

/* Разделы с макетами */
.hero-mock { margin: 56px auto 0; width: min(1120px, 100%); }
.fx { padding: 72px 0; border-top: 1px solid var(--line); }
.fx:first-child { border-top: 0; padding-top: 0; }
.fx-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 32px; }
.fx-head h3 { font: 700 clamp(28px, 3.4vw, 42px)/1.08 var(--display); letter-spacing: -0.028em; margin: 0; text-wrap: balance; }
.fx-head p { color: var(--muted); margin: 0; }
.fx-head ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.fx-head li { display: flex; gap: 10px; font-size: 15px; }
.fx-head li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--amber); }
.fx .m-landscape { width: min(900px, 100%); margin: 0 auto; }
.pair { display: grid; grid-template-columns: .8fr 1.4fr; gap: 40px; align-items: center; margin-top: 40px; }
.pair .steps { grid-template-columns: 1fr; margin-top: 0; }
@media (max-width: 900px) {
  .fx-head, .pair { grid-template-columns: 1fr; gap: 16px; }
  .m-desk { border-radius: 12px; }
}

/* ===== Настоящие окна: VS Code (Dark+), Claude Code, терминал ===== */
.m-vscode { background: #1f1f1f; border-radius: 1cqw; }
.m-vscode .m-titlebar { background: #181818; border-bottom: 1px solid #2b2b2b; }
.m-vscode .m-titlebar b { font-weight: 400; font-size: 1.2cqw; color: #cccccc; }
.m-vscode .m-body { display: flex; flex-direction: column; }
.v-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 2.4cqw 12.5cqw 1fr 25cqw; }
.v-main.solo { grid-template-columns: 2.4cqw 12.5cqw 1fr; }
.v-bar { background: #181818; border-right: 1px solid #2b2b2b; }
.v-tree { background: #181818; border-right: 1px solid #2b2b2b; padding: .6cqw 0; font: .9cqw/1.75 var(--body); color: #cccccc; overflow: hidden; }
.v-f { white-space: nowrap; }
.v-f.head { font-size: .78cqw; font-weight: 700; letter-spacing: .04em; color: #bbbbbb; }
.v-f.dir::before { content: "⌄ "; color: #8a8a8a; } .v-f.dir.closed::before { content: "› "; }
.v-f.ts::before, .v-f.tsx::before { content: "TS "; color: #3b8eea; font-size: .7cqw; font-weight: 700; }
.v-f.json::before { content: "{} "; color: #cbcb41; font-size: .75cqw; } .v-f.md::before { content: "ⓘ "; color: #519aba; }
.v-f.on { background: #37373d; color: #fff; }
.v-f { position: relative; padding-right: 2cqw; overflow: hidden; text-overflow: ellipsis; }
.v-f.m { color: #e2c08d; } .v-f.m::after { content: "M"; position: absolute; right: .8cqw; color: #e2c08d; }
.v-editor { min-width: 0; display: flex; flex-direction: column; background: #1f1f1f; }
.v-tabs { display: flex; height: 2.3cqw; background: #181818; border-bottom: 1px solid #2b2b2b; }
.v-tab { display: flex; align-items: center; gap: .5cqw; padding: 0 1.1cqw; font-size: .9cqw; color: #9d9d9d; border-right: 1px solid #2b2b2b; }
.v-tab.on { background: #1f1f1f; color: #fff; border-top: .12cqw solid #0078d4; }
.v-tab i { font-style: normal; color: #ccc; font-size: .7cqw; }
.v-crumbs { padding: .3cqw 1.4cqw; font-size: .8cqw; color: #a0a0a0; }
.c-code { padding: .2cqw 0; font: .92cqw/1.6 var(--mono); color: #d4d4d4; overflow: hidden; }
.c-ln { display: flex; white-space: pre; }
.c-ln b { width: 3.2cqw; flex: none; text-align: right; padding-right: 1.4cqw; color: #6e7681; font-weight: 400; }
.c-ln.c-cur { background: rgba(255,255,255,.04); } .c-ln.c-cur b { color: #cccccc; }
.c-ln code { font: inherit; }
.c-kw { color: #569cd6; } .c-st { color: #ce9178; } .c-fn { color: #dcdcaa; } .c-ty { color: #4ec9b0; } .c-id { color: #9cdcfe; } .c-cm { color: #6a9955; }
.v-status { height: 1.8cqw; display: flex; align-items: center; gap: 1.3cqw; padding: 0 1cqw; background: #181818; border-top: 1px solid #2b2b2b; font-size: .8cqw; color: #a8a8a8; }
.v-claude { display: flex; flex-direction: column; min-width: 0; background: #181818; border-left: 1px solid #2b2b2b; font: .92cqw/1.45 var(--body); color: #d6d6d6; }
.v-claude-h { display: flex; align-items: center; gap: .55cqw; height: 2.3cqw; padding: 0 1cqw; border-bottom: 1px solid #2b2b2b; font-weight: 600; font-size: .9cqw; }
.v-sp { flex: 1; } .v-new { color: #9d9d9d; font-size: 1.2cqw; }
.v-thread { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: .7cqw; padding: 1cqw; }
.v-msg { padding: .65cqw .85cqw; border-radius: .7cqw; background: #2a2a2a; border: 1px solid #333; color: #e8e8e8; }
.v-msg.queued { opacity: .7; border-style: dashed; }
.v-step { position: relative; padding-left: 1.2cqw; font-size: .85cqw; color: #bdbdbd; }
.v-step::before { content: ""; position: absolute; left: .1cqw; top: .5cqw; width: .55cqw; height: .55cqw; border-radius: 50%; background: #4caf72; }
.v-step b { color: #e8e8e8; font-weight: 600; margin-right: .3cqw; }
.v-step em { font-style: normal; } .add { color: #6fcf8a; } .del { color: #f07178; }
.v-out { margin-top: .2cqw; font: .8cqw var(--mono); color: #6fcf8a; }
.v-ans { color: #e6e6e6; }
.v-perm { border: 1px solid #d97757; border-radius: .7cqw; padding: .8cqw; background: rgba(217, 119, 87, .08); font-size: .85cqw; }
.v-perm-h { font-weight: 700; color: #f0a585; margin-bottom: .3cqw; }
.v-perm-cmd { font: .85cqw var(--mono); color: #e8e8e8; margin-bottom: .5cqw; }
.v-perm-q { margin-bottom: .3cqw; }
.v-opt { padding: .25cqw .4cqw; border-radius: .4cqw; color: #bdbdbd; }
.v-opt.on { background: rgba(255,255,255,.08); color: #fff; }
.v-opt code { font: .8cqw var(--mono); }
.v-input { margin: 0 1cqw 1cqw; padding: .7cqw .85cqw; border-radius: .7cqw; border: 1px solid #3a3a3a; color: #7a7a7a; display: flex; justify-content: space-between; }
.m-term { width: 44cqw; height: 29cqw; background: #1e1e1e; }
.m-term .m-titlebar { background: #2b2b2b; border-bottom: 1px solid #111; }
.t-term { padding: 1.1cqw 1.3cqw; font: .95cqw/1.7 var(--mono); color: #e6e6e6; }
.t-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-l.dim { color: #8a8a8a; } .t-br { color: #c3a6ff; } .t-p { color: #6fcf8a; } .t-b { color: #8ab4ff; }
.t-path { color: #e2c08d; } .t-cmd { color: #9cdcfe; } .t-l.ok { color: #6fcf8a; }
.t-cur { display: inline-block; width: .6cqw; height: 1.1cqw; background: #e6e6e6; vertical-align: middle; }
.m-vscode.m-left { left: 3cqw; width: 58cqw; }
.m-term.m-right { right: 3cqw; top: 27cqw; z-index: 3; }
.m-term.m-behind { left: 40cqw; top: 18cqw; z-index: 1; opacity: .9; }

.m-vscode.m-behind-vs { left: 30cqw; top: 11cqw; width: 64cqw; height: 46cqw; z-index: 1; }

/* ===== Совместимость: логотипы ===== */
.works { padding: 96px 0 40px; text-align: left; }
.works h2.title { text-align: center; margin-bottom: 40px; }
.integr { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.deep, .rest { padding: 28px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.deep-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.deep-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; background: rgba(0,0,0,.3); border: 1px solid var(--line-strong); }
.deep-card .lg { width: 40px; height: 40px; flex: none; }
.deep-card.claude .lg { color: #D97757; } .deep-card.codex .lg { color: #f2f2f2; }
.deep-card b { display: block; font-size: 19px; font-weight: 650; } .deep-card span { color: var(--muted); font-size: 14px; }
.deep-sub { color: var(--text); margin: 16px 0 22px; font-size: 16px; }
.where { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.logo-row { display: flex; flex-wrap: wrap; gap: 8px; }
.lchip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 14px; }
.lchip .lg { width: 17px; height: 17px; color: #e9e2db; }
.rest-sub { color: var(--muted); margin: 0 0 20px; font-size: 16px; }
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ltile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 16px 6px; border-radius: 14px;
  background: rgba(255,255,255,.035); border: 1px solid var(--line); text-align: center; min-height: 96px; }
.ltile .lg { width: 28px; height: 28px; color: #e9e2db; }
.ltile i { font-style: normal; font-size: 12.5px; color: var(--muted); line-height: 1.2; }
.ltile.more { border-style: dashed; } .ltile.more i { color: var(--text); font-size: 13.5px; }
.lg-text { display: inline-grid; place-items: center; font-weight: 700; }
.v-logo { width: 1.2cqw; height: 1.2cqw; flex: none; }
.t-head { display: flex; align-items: center; gap: .6cqw; color: #9a9a9a; margin-bottom: .4cqw; } .t-head .v-logo { width: 1.1cqw; height: 1.1cqw; }
footer .wrap { flex-wrap: wrap; }
footer .tm { flex-basis: 100%; order: 3; margin: 6px 0 0; font-size: 12.5px; color: var(--faint); }
@media (max-width: 900px) { .integr { grid-template-columns: 1fr; } .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .deep-cards { grid-template-columns: 1fr; } }
.works h2.title { color: var(--text); font: 700 clamp(32px, 4.6vw, 52px)/1.06 var(--display); letter-spacing: -0.03em; }
.ltile.more { grid-column: 1 / -1; min-height: 52px; flex-direction: row; }

/* После аудита: списки вместо сеток карточек */
.w-h { font-size: 15px; font-weight: 600; color: var(--muted); margin: 0 0 16px; }
.fx-head p { color: var(--muted); margin: 0; font-size: 17px; max-width: 52ch; }
.ai-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin: 36px 0 0; border-top: 1px solid var(--line); }
.ai-list div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.ai-list dt { font-weight: 650; font-size: 17px; margin-bottom: 4px; }
.ai-list dd { margin: 0; color: var(--muted); font-size: 15.5px; }
.priv-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; max-width: 760px; }
.priv-list li { position: relative; padding-left: 22px; font-size: 17px; }
.priv-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.priv-link { color: var(--amber); font-size: 15px; }
.final-sub { color: var(--muted); margin: 0 0 8px; }
@media (max-width: 900px) { .ai-list { grid-template-columns: 1fr; } }

/* ===== Телефоны и планшеты ===== */
.m-frame { position: relative; }
@media (max-width: 1024px) {
  .wrap { width: min(1120px, 100% - 32px); }
  .hero { padding-top: 64px; }
  section.block { padding: 72px 0; }
  .fx { padding: 56px 0; }
}
@media (max-width: 700px) {
  .m-frame { overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 3.5; border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
  .m-frame > .m-desk { width: 185%; margin-left: var(--mx); border-radius: 0; border: 0; box-shadow: none; }
  .hero-mock { margin-top: 40px; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero .lead { font-size: 16.5px; }
  .cta .btn { width: 100%; max-width: 340px; }
  .fx-head h3 { font-size: 26px; }
  .fx-head p { font-size: 16px; }
  .integr { gap: 12px; } .deep, .rest { padding: 20px; border-radius: 20px; }
  .deep-card { padding: 14px; } .deep-card .lg { width: 32px; height: 32px; } .deep-card b { font-size: 17px; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); } .ltile { min-height: 84px; padding: 12px 4px; }
  .pair { gap: 20px; } .step { padding: 20px; }
  .privacy-band { border-radius: 22px; padding: 26px 20px; }
  .final { padding: 80px 0 72px; }
  footer nav { margin-left: 0; }
  .fx .m-landscape { border-radius: 9cqw; }
}
@media (min-width: 701px) and (max-width: 1024px) {
  .fx-head { grid-template-columns: 1fr; gap: 12px; }
  .integr { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(6, 1fr); }
  .pair { grid-template-columns: 1fr; }
  .pair .steps { grid-template-columns: repeat(3, 1fr); }
}
