/* arpato.com — один файл стилей для всех страниц. Светлая и тёмная тема берутся из настроек системы.
   Всё содержимое по центру: и тексты, и формы, это просьба владельца. */

@font-face { font-family: "Onest"; src: url(fonts/onest-cyrillic.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url(fonts/onest-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; src: url(fonts/onest-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #fafafc;
  --surface: #ffffff;
  --surface-2: #f2f2f6;
  --text: #0e0e13;
  --muted: #5c5c69;
  --line: rgb(14 14 19 / .09);
  --line-strong: rgb(14 14 19 / .2);
  --accent: #5a3df0;
  --accent-hover: #4a2fd8;
  --accent-ink: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 10%, var(--surface));
  --pink: #e0336c;
  --ok: #0c7a48;
  --warn: #94590a;
  --danger: #c4283a;
  --glass: rgb(255 255 255 / .84);
  --r-l: 22px;
  --r-m: 14px;
  --r-s: 10px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Onest", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "SF Mono", Consolas, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090c;
    --surface: #131318;
    --surface-2: #1b1b22;
    --text: #f4f4f7;
    --muted: #a4a4b2;
    --line: rgb(255 255 255 / .085);
    --line-strong: rgb(255 255 255 / .2);
    --accent: #a08dff;
    --accent-hover: #b6a7ff;
    --accent-ink: #0b0a14;
    --pink: #ff6f9a;
    --ok: #3ecf8e;
    --warn: #f0b252;
    --danger: #ff7385;
    --glass: rgb(19 19 24 / .86);
  }
}

/* ── основа ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 150px; interpolate-size: allow-keywords; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16.5px/1.6 var(--font);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; transition: color .15s ease, text-decoration-color .15s ease; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 1.5rem + 3.6vw, 4.4rem); font-weight: 640; letter-spacing: -.036em; line-height: 1.04; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.4rem); font-weight: 620; letter-spacing: -.026em; }
h3 { font-size: 1.08rem; font-weight: 610; letter-spacing: -.012em; line-height: 1.3; }
p { margin: 0 0 1em; text-wrap: pretty; }
code, kbd { font-family: var(--mono); font-size: .88em; }
code { padding: .1em .35em; border-radius: 6px; background: var(--surface-2); }
kbd { display: inline-block; padding: .05em .45em; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); white-space: nowrap; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 30; }
.skip:focus { left: 8px; }
main, footer.site, .consent { text-align: center; }
main ul, main ol { padding-left: 0; list-style-position: inside; }
pre, pre.cmd, .cmd { text-align: left; }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--text); text-decoration-color: currentColor; }

/* ── шапка: плавающая панель ── */
.top { position: sticky; top: 0; z-index: 20; padding: 12px var(--gutter) 0; pointer-events: none; view-transition-name: site-top; }
.top .wrap {
  position: relative; pointer-events: auto; max-width: calc(var(--wrap) - 2 * var(--gutter));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 60px; padding: 0 10px 0 18px;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(1.5) blur(20px); backdrop-filter: saturate(1.5) blur(20px);
  border: 1px solid var(--line); border-radius: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; justify-self: start; color: var(--text); text-decoration: none; font-weight: 680; font-size: 1.22rem; line-height: 1; letter-spacing: -.03em; }
.brand img { width: 28px; height: 28px; flex: none; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a, .drop summary {
  display: flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 10px; color: var(--muted);
  font-weight: 520; font-size: .93rem; text-decoration: none; cursor: pointer; transition: color .15s ease, background .15s ease;
}
.nav > a:hover, .nav > a[aria-current="page"], .drop summary:hover, .drop[open] summary, .drop summary.on { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.nav .studio-link { color: var(--accent); }
.actions { display: flex; align-items: center; gap: 4px; justify-self: end; }
.lang { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; color: var(--muted); font-weight: 560; font-size: .84rem; text-decoration: none; transition: color .15s ease, background .15s ease; }
.lang:hover { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.account-link { padding: 9px 16px; border-radius: 11px; background: var(--text); color: var(--bg); font-weight: 580; font-size: .9rem; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: opacity .15s ease; }
.account-link:hover { opacity: .85; }

.drop summary { list-style: none; }
.drop summary::-webkit-details-marker { display: none; }
.drop summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .18s ease; }
.drop[open] summary::after { transform: translateY(1px) rotate(225deg); }
.drop-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; width: min(680px, calc(100vw - 32px)); padding: 8px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px;
  box-shadow: 0 24px 70px rgb(0 0 0 / .28);
  transform: translateX(-50%); transform-origin: top center; animation: drop-in .18s var(--ease);
}
.drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
@keyframes drop-in { from { opacity: 0; transform: translateX(-50%) translateY(-6px) scale(.985); } to { opacity: 1; transform: translateX(-50%); } }
.app-items { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.app-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 13px; color: var(--text); text-align: left; text-decoration: none; transition: background .15s ease; }
.app-item:hover, .app-item[aria-current="page"] { background: var(--surface-2); }
.app-item img { width: 42px; height: 42px; border-radius: 11px; flex: none; }
.app-text { display: grid; gap: 1px; min-width: 0; }
.app-name { font-weight: 600; font-size: .95rem; line-height: 1.25; letter-spacing: -.01em; }
.app-note { color: var(--muted); font-size: .83rem; line-height: 1.3; }
.drop-menu .all { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; padding: 11px; border-radius: 13px; background: var(--surface-2); color: var(--text); font-weight: 560; font-size: .9rem; text-decoration: none; }
.drop-menu .all:hover { color: var(--accent); }
.drop-menu .all svg { transition: transform .18s var(--ease); }
.drop-menu .all:hover svg { transform: translateX(3px); }

.menu-check { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.menu-btn { display: none; padding: 8px; border-radius: 10px; color: var(--text); cursor: pointer; line-height: 0; }
.menu-btn:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.menu-check:focus-visible + .menu-btn { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 860px) {
  .top { padding: 8px 10px 0; }
  .top .wrap { display: flex; gap: 4px; height: 56px; padding: 0 6px 0 14px; }
  .actions { order: 1; margin-left: auto; }
  .menu-btn { display: block; order: 2; }
  .nav { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: 8px; flex-direction: column; align-items: stretch; gap: 2px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: 0 24px 70px rgb(0 0 0 / .28); max-height: calc(100vh - 90px); overflow-y: auto; }
  .menu-check:checked ~ .nav { display: flex; }
  .nav > a, .drop summary { padding: 12px; font-size: 1rem; }
  .drop summary { justify-content: space-between; }
  .drop-menu { position: static; width: auto; padding: 0 0 6px; background: none; border: 0; box-shadow: none; transform: none; animation: none; }
  .drop-menu::before { display: none; }
  .app-items { grid-template-columns: 1fr; }
}
@media (max-width: 380px) { .brand { font-size: 1.08rem; gap: 7px; } .lang { padding: 8px 6px; } .account-link { padding: 9px 11px; } }

/* разделы программы или студии: плавающий ряд под шапкой */
.subnav { position: sticky; top: 80px; z-index: 15; margin-top: 10px; padding-inline: var(--gutter); pointer-events: none; display: flex; justify-content: center; }
.subnav .wrap {
  display: flex; align-items: center; gap: 2px; width: fit-content; max-width: 100%; padding: 4px; margin: 0; pointer-events: auto; overflow-x: auto; scrollbar-width: none;
  background: var(--glass); -webkit-backdrop-filter: saturate(1.5) blur(20px); backdrop-filter: saturate(1.5) blur(20px);
  border: 1px solid var(--line); border-radius: 14px;
}
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { color: var(--muted); text-decoration: none; padding: 7px 12px; border-radius: 10px; font-weight: 520; font-size: .88rem; white-space: nowrap; transition: color .15s ease, background .15s ease; }
.subnav a:hover, .subnav a[aria-current="page"] { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.subnav .sub-home { color: var(--text); font-weight: 620; }
.subnav .cta { margin-left: 4px; background: var(--accent); color: var(--accent-ink); font-weight: 580; }
.subnav .cta:hover { background: var(--accent-hover); color: var(--accent-ink); }
@media (max-width: 860px) { .subnav { position: relative; top: 0; padding-inline: 10px; } html { scroll-padding-top: 90px; } }

/* ── кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 13px; cursor: pointer;
  font: inherit; font-weight: 590; font-size: .97rem; letter-spacing: -.005em; line-height: 1.2; text-decoration: none; border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease, scale .12s ease;
}
.btn:active { scale: .98; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: color-mix(in srgb, var(--text) 10%, transparent); border-color: var(--line-strong); }
.btn small { display: block; font-weight: 450; opacity: .78; font-size: .78rem; margin-top: 2px; }
.btn[aria-disabled="true"] { pointer-events: none; opacity: .55; }
.btn-small { padding: 8px 14px; font-size: .86rem; border-radius: 10px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }

/* ── первый экран: «струны и свет» из знака-арфы (картинку рисует hero_bg.py) ── */
.hero { position: relative; isolation: isolate; padding: clamp(64px, 10vw, 128px) 0 clamp(40px, 6vw, 72px); overflow-x: clip; }
/* фон уходит вверх под шапку и ряд разделов: меню висит поверх струн */
.hero::before {
  content: ""; position: absolute; inset: -140px 0 0; z-index: -1;
  background: radial-gradient(50% 60% at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 72%);
}
.hero::after {
  content: ""; position: absolute; inset: -140px 0 0; z-index: -1; opacity: .9;
  background: url(img/hero-strings.svg) center top / 2400px auto no-repeat;
  -webkit-mask-image: linear-gradient(#000 50%, transparent); mask-image: linear-gradient(#000 50%, transparent);
}
.hero h1 { max-width: 16em; margin-inline: auto; }
.hero p.lead { font-size: clamp(1.06rem, 1rem + .45vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 660px; margin-inline: auto; }
.hero .btns { margin-top: 30px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 540; color: var(--muted); padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); font-size: .84rem; margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.studio-hero h1 { max-width: 18em; }
.studio-hero .btns { margin-top: 28px; }

/* ── карточки ── */
.app-card, .feature, .industry, .pick, .value, .dl, .steps li, .post-card, .faq details, .release, .cta-box, .studio-band, .panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
}
.industry, .pick, .post-card, .app-card { transition: border-color .2s ease, translate .25s var(--ease); }
.industry:hover, .pick:hover, .post-card:hover, .app-card:hover { border-color: var(--line-strong); translate: 0 -2px; }

/* главная: программы со снимками */
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0 0 clamp(48px, 7vw, 88px); }
@media (max-width: 860px) { .apps { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 861px) { .apps > .app-card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); } }
.app-card { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 32px 28px 0; overflow: hidden; }
.app-card header { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.app-card header img { width: 60px; height: 60px; border-radius: 15px; }
.app-card h3 { margin: 0; font-size: 1.5rem; font-weight: 630; letter-spacing: -.026em; display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.app-card h3 a { color: inherit; text-decoration: none; }
.app-card .tag { color: var(--muted); margin: 4px 0 0; }
.app-card ul { margin: 0; list-style: none; display: grid; gap: 5px; color: var(--muted); font-size: .95rem; }
.app-card .btns { padding-bottom: 28px; }
.app-card .btn { padding: 11px 18px; font-size: .92rem; }
.app-card:not(:has(.app-peek)) { justify-content: center; }
.app-peek { display: block; width: min(100%, 460px); height: 210px; margin-top: auto; overflow: hidden; border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; }
.app-peek img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: scale .4s var(--ease); }
.app-card:hover .app-peek img { scale: 1.015; }
.badge { font-size: .74rem; font-weight: 560; letter-spacing: 0; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.badge.soon { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }

.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 0 0 clamp(48px, 7vw, 88px); }
@media (max-width: 980px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .values { grid-template-columns: minmax(0, 1fr); } }
.value { padding: 24px 22px; background: none; }
.value .ind-icon { width: 38px; height: 38px; border-radius: 11px; margin-bottom: 12px; }
.value .ind-icon svg { width: 20px; height: 20px; }
.value h3 { margin-bottom: 6px; }
.value p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.5; }

.studio-band { display: grid; justify-items: center; gap: 18px; margin: 0 0 16px; padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px); }
.studio-band:last-child { margin-bottom: clamp(48px, 7vw, 88px); }
.studio-band h2 { margin-bottom: 8px; }
.studio-band p { color: var(--muted); margin: 0 auto; max-width: 680px; }
.studio-band .eyebrow { margin-bottom: 16px; }
.catalog-band { background: none; }

/* ── страница программы ── */
.product-hero { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 40px; padding-top: clamp(44px, 7vw, 88px); padding-bottom: clamp(44px, 6vw, 72px); position: relative; }
.product-hero > div:first-child { max-width: 820px; }
.product-title { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 14px; }
.product-title img { width: 76px; height: 76px; border-radius: 19px; }
.product-title h1 { margin: 0; }
.product-lead { color: var(--muted); font-size: clamp(1.06rem, 1rem + .4vw, 1.25rem); line-height: 1.5; }
.product-hero .btns { margin-top: 26px; }
.meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; color: var(--muted); font-size: .84rem; margin: 18px 0 0; padding: 0; list-style: none; }
.meta li { padding: 3px 11px; border: 1px solid var(--line); border-radius: 999px; }
.shot { display: block; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); }
.shot img { width: 100%; }
.product-hero .shot { max-width: 920px; width: 100%; box-shadow: 0 30px 90px color-mix(in srgb, var(--accent) 16%, transparent); }
.notice { margin: 18px auto 0; max-width: 760px; padding: 12px 16px; border-radius: var(--r-m); background: color-mix(in srgb, var(--warn) 10%, transparent); font-size: .92rem; border: 1px solid color-mix(in srgb, var(--warn) 28%, transparent); }
.dl-note { color: var(--muted); font-size: .88rem; margin: 12px 0 0; }
section.block .dl-note { margin: -8px 0 18px; }
.formerly { color: var(--muted); font-size: .9rem; margin: -4px 0 16px; }

section.block { padding-block: clamp(44px, 6vw, 80px); }
section.block > .wrap > h2:first-child { margin-bottom: .75em; }
section.block > .wrap > p.intro { color: var(--muted); max-width: 720px; margin: 0 auto 28px; }
section.block .meta { margin-bottom: 20px; }
.block.first { padding-top: 44px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { padding: 24px 22px; }
.feature h3, .feature h2 { margin-bottom: 7px; }
.feature h2 { font-size: 1.12rem; font-weight: 610; letter-spacing: -.012em; line-height: 1.3; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.feature ul { margin: 0; color: var(--muted); list-style: none; }
.feature li { margin: 6px 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery figcaption { color: var(--muted); font-size: .88rem; margin-top: 10px; }
.steps { counter-reset: s; display: grid; gap: 10px; padding: 0; margin: 0 auto; list-style: none; max-width: 820px; }
.steps li { counter-increment: s; padding: 20px 22px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 10px; border-radius: 50%; font-weight: 620; font-size: .9rem; background: var(--accent-soft); color: var(--accent); }
.steps + h2, .steps + h3 { margin-top: 40px; }

/* таблицы */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); margin-inline: auto; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: center; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 580; font-size: .86rem; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
table.compare { min-width: 640px; }
table.compare td:first-child { font-weight: 570; }
.src { font-size: .72em; line-height: 0; margin-left: 2px; }
.sources { display: grid; gap: 8px; margin: 16px 0 24px; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.sources li { scroll-margin-top: 140px; }
.sources + .note { margin-bottom: 0; }
.note { font-size: .86rem; color: var(--muted); margin: 0 0 56px; }
.ours-line { margin: -40px 0 64px; color: var(--muted); }

/* вопросы и ответы */
.faq details { padding: 0 20px; margin: 0 auto 8px; max-width: 840px; border-radius: var(--r-m); transition: border-color .15s ease; }
.faq details:hover, .faq details[open] { border-color: var(--line-strong); }
.faq summary { display: flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; font-weight: 570; padding: 15px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 22px; height: 22px; line-height: 20px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-weight: 400; transition: rotate .2s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--muted); }
details::details-content { block-size: 0; overflow: clip; transition: block-size .24s var(--ease), content-visibility .24s allow-discrete; }
details[open]::details-content { block-size: auto; }
.drop::details-content { block-size: auto; overflow: visible; transition: none; }

.releases { display: grid; gap: 12px; max-width: 840px; margin-inline: auto; }
.release { padding: 18px 22px; border-radius: var(--r-m); }
.release h3 { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin: 0 0 8px; }
.release h3 time { color: var(--muted); font-weight: 450; font-size: .88rem; }
.release ul { margin: 0; list-style: none; }
.release li { margin: 4px 0; }

/* скачивание */
.downloads { display: grid; gap: 10px; max-width: 840px; margin-inline: auto; }
.downloads + p { margin-top: 20px; }
.dl { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 22px; border-radius: var(--r-m); }
.dl .what { width: 100%; }
.dl .what strong { display: block; font-weight: 600; font-size: 1.05rem; letter-spacing: -.012em; }
.dl .what span { color: var(--muted); font-size: .9rem; }
.hash { font-family: var(--mono); font-size: .74rem; color: var(--muted); word-break: break-all; }

/* текстовые страницы */
.prose { max-width: 740px; margin-inline: auto; padding-block: clamp(44px, 6vw, 72px) 80px; }
.wrap.prose { padding-inline: var(--gutter); }
.prose h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.prose h2 { margin-top: 1.7em; font-size: 1.35rem; letter-spacing: -.018em; }
.prose ul, .article ul { list-style: none; }
.prose li { margin: 10px 0; }
.wrap.text { max-width: 860px; margin-inline: auto; }
.wrap.text h2 { margin-top: 1.2em; }
.wrap.text h2:first-child { margin-top: 0; }
.wrap.text h3 { margin-top: 1.4em; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .cols, .cols.two { grid-template-columns: minmax(0, 1fr); } }
.cols ul { margin: 0; list-style: none; }
.cols li { margin: 6px 0; }
ul.pros li::marker { content: "+  "; color: var(--ok); font-weight: 700; }
ul.cons li::marker { content: "−  "; color: var(--pink); font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags a { display: inline-block; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-size: .9rem; transition: border-color .15s ease; }
.tags a:hover { border-color: var(--line-strong); }
.tags.proof a { display: inline-flex; align-items: center; gap: 8px; }
.tags.proof img { width: 22px; height: 22px; border-radius: 6px; }
.tags.global { margin: 4px 0 0; }
.tags.global span { display: inline-block; padding: 6px 13px; border-radius: 999px; font-size: .88rem; background: var(--glass); border: 1px solid var(--line); }
.tags.global span::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.cmd, pre.cmd { margin: 12px 0; padding: 14px 16px; overflow-x: auto; border-radius: var(--r-s); background: var(--surface-2); border: 1px solid var(--line); font: .88rem/1.5 var(--mono); }
.cmd code { padding: 0; background: none; }

/* ── студия и каталог ── */
.industries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 980px) { .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .industries { grid-template-columns: minmax(0, 1fr); } }
.compare-cards { grid-template-columns: repeat(auto-fit, minmax(240px, 340px)); justify-content: center; }
.industry { display: block; text-decoration: none; color: var(--text); padding: 24px 22px; }
.industry h3 { margin-bottom: 7px; }
.industry p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.industry .more { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 560; font-size: .9rem; }
.ind-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; margin-bottom: 14px; background: var(--accent-soft); color: var(--accent); }
.ind-icon svg { width: 23px; height: 23px; }
.ind-icon.big { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 16px; }
.ind-icon.big svg { width: 32px; height: 32px; }
.order .form { margin-top: 8px; }

.toc { margin-top: 26px; }
.picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1040px) { .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .picks { grid-template-columns: minmax(0, 1fr); } }
.pick { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--text); padding: 22px 20px; }
.pick .num { position: absolute; top: 14px; right: 16px; font: 500 .76rem/1 var(--mono); color: var(--muted); }
.pick h3 { margin: 6px 0 0; }
.pick p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.pick .lic { margin-top: auto; padding-top: 6px; font-size: .8rem; color: var(--muted); }
.pick.ours { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.pick.ours .num { color: var(--accent); font-family: var(--font); font-weight: 650; }
.pick.ours img { width: 44px; height: 44px; border-radius: 12px; }
.mono { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; font-weight: 650; font-size: 1.25rem; line-height: 1; background: var(--mono-bg, var(--accent)); }
.mono.big { width: 72px; height: 72px; border-radius: 18px; font-size: 2rem; margin-inline: auto; }
.mono[data-cat="ai"] { --mono-bg: linear-gradient(135deg, #6a46f5, #f0477d); }
.mono[data-cat="browsers"] { --mono-bg: linear-gradient(135deg, #2f7cf6, #22b8e6); }
.mono[data-cat="security"] { --mono-bg: linear-gradient(135deg, #138a52, #3ecf8e); }
.mono[data-cat="office"] { --mono-bg: linear-gradient(135deg, #e0782d, #f2b13a); }
.mono[data-cat="chat"] { --mono-bg: linear-gradient(135deg, #1590c2, #4dc6e8); }
.mono[data-cat="graphics"] { --mono-bg: linear-gradient(135deg, #d93c78, #f27aa6); }
.mono[data-cat="screen"] { --mono-bg: linear-gradient(135deg, #7c4ff0, #a77cff); }
.mono[data-cat="media"] { --mono-bg: linear-gradient(135deg, #d9363e, #f2705f); }
.mono[data-cat="remote"] { --mono-bg: linear-gradient(135deg, #0d8b7b, #2cc4a8); }
.mono[data-cat="utils"] { --mono-bg: linear-gradient(135deg, #4c5468, #7d879d); }
.mono[data-cat="dev"] { --mono-bg: linear-gradient(135deg, #3554d1, #6d86f2); }

/* Logitech MX Master 4 / MX Keys S */
.logi-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; margin-bottom: 28px; }
@media (max-width: 860px) { .logi-grid { grid-template-columns: minmax(0, 1fr); } }
.logi-grid figure { margin: 0; }
.logi-grid figcaption { color: var(--muted); font-size: .88rem; margin-top: 10px; }
.logi-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .logi-blocks { grid-template-columns: 1fr; } }
.logi-actions { columns: 2; column-gap: 32px; margin: 0 0 16px; list-style: none; }
@media (max-width: 560px) { .logi-actions { columns: 1; } }
.logi-actions li { margin: 5px 0; break-inside: avoid; }

/* блог */
.post-meta { color: var(--muted); font-size: .88rem; margin: -4px 0 16px; }
.posts { display: grid; gap: 16px; padding-block: 8px 80px; }
.post-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: center; padding: 18px; }
@media (max-width: 760px) { .post-card { grid-template-columns: minmax(0, 1fr); } }
.post-card .post-image img { border-radius: var(--r-m); width: 100%; }
.post-card h2 { font-size: 1.45rem; margin: 0 0 8px; }
.post-card h2 a { color: inherit; text-decoration: none; }
.post-card p { color: var(--muted); }
.post-card .post-meta { margin: 0 0 8px; }
.article { max-width: 780px; margin-inline: auto; padding-block: clamp(40px, 6vw, 64px) 72px; }
.article h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.article .lead { font-size: 1.18rem; color: var(--muted); line-height: 1.5; }
.article h2 { margin-top: 1.8em; }
.article p, .article li { font-size: 1.03rem; }
.article li { margin: 8px 0; }
.article figure { margin: 28px 0; }
.article figcaption { color: var(--muted); font-size: .88rem; margin-top: 10px; }
.article .tip { margin: 24px 0; padding: 16px 18px; border-radius: var(--r-m); background: var(--accent-soft); }
.article .faq details { max-width: none; }
.cta-box { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 40px 0; padding: 28px; }
.cta-box img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.cta-box h2 { margin: 0 0 6px; font-size: 1.35rem; }
.cta-box p { color: var(--muted); }

/* ── формы ── */
.form { display: grid; gap: 14px; max-width: 620px; margin-inline: auto; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
@media (max-width: 640px) { .form .row { grid-template-columns: minmax(0, 1fr); } }
.form label { display: grid; gap: 6px; font-weight: 540; font-size: .88rem; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: color-mix(in srgb, var(--text) 4%, transparent); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; width: 100%; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.form input, .form select { text-align: center; text-align-last: center; }
.form select option { background: var(--surface); color: var(--text); }
.form textarea { min-height: 140px; resize: vertical; text-align: left; field-sizing: content; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--line-strong); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); background: transparent; }
.form .check { display: flex; gap: 10px; align-items: flex-start; justify-content: center; font-weight: 400; color: var(--muted); text-align: center; }
.form .check input { width: 18px; height: 18px; margin-top: 3px; padding: 0; flex: none; accent-color: var(--accent); }
.form button { justify-self: center; }
.form button:disabled { opacity: .6; cursor: progress; }
.msg { padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); max-width: 620px; margin-inline: auto; font-size: .94rem; }
.msg.ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 9%, var(--surface)); }
.msg.err { border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: color-mix(in srgb, var(--danger) 9%, var(--surface)); }
.panel { padding: 24px; max-width: 620px; margin-inline: auto; }

/* ── вход ── */
.account { padding-block: clamp(36px, 6vw, 72px) 80px; }
.auth { max-width: 460px; margin-inline: auto; padding: clamp(26px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: 26px; }
.auth h1 { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.2rem); letter-spacing: -.03em; line-height: 1.12; }
.auth-logo { width: 44px; height: 44px; margin: 0 auto 16px; }
.auth .lead { color: var(--muted); font-size: .98rem; line-height: 1.5; margin-bottom: 20px; }
.auth .form { max-width: none; }
.auth .msg { margin: 0 0 16px; }
.auth .btns { margin-top: 18px; }
.account > .msg { margin-bottom: 18px; }
.check.agree { display: flex; gap: 10px; align-items: flex-start; justify-content: center; color: var(--muted); font-size: .86rem; line-height: 1.45; margin: 0 auto 16px; text-align: center; }
.check.agree input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.check.agree.attention { padding: 10px 12px; border-radius: 12px; outline: 2px solid var(--pink); outline-offset: 0; }
.oauth { display: grid; gap: 10px; }
.oauth-btn { width: 100%; background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.oauth-btn:hover { background: var(--surface-2); }
.oauth-btn svg { width: 20px; height: 20px; }
.oauth-btn[hidden] { display: none !important; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .84rem; margin: 8px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form input.code { font: 600 1.6rem/1.2 var(--mono); letter-spacing: .32em; max-width: 260px; text-align: center; justify-self: center; }
#acc-code-form p { margin: 0; font-size: .88rem; }

/* ── личный кабинет: рабочая панель ── */
.dash { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.dash > * { grid-column: span 6; min-width: 0; }
.dash-head { display: grid; justify-items: center; gap: 4px; padding: 4px 0 18px; }
.avatar { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 10px; border-radius: 50%; background: var(--text); color: var(--bg); font-size: 1.6rem; font-weight: 620; line-height: 1; text-transform: uppercase; }
.dash-head h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); margin-bottom: 6px; }
.dash-head p { margin: 0; color: var(--muted); }
.dash-head strong { color: var(--text); font-weight: 580; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.chip { padding: 3px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.chip.on { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.dash-card { padding: clamp(20px, 3vw, 28px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.dash-card > h2, .dash-title h2 { font-size: 1.22rem; letter-spacing: -.018em; margin: 0; }
.dash-card > h2 { margin-bottom: 16px; }
.dash-title { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 6px; }
.count { min-width: 24px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .8rem; font-weight: 560; }
.dash-note { max-width: 620px; margin: 0 auto 18px; color: var(--muted); font-size: .92rem; line-height: 1.5; }
@media (min-width: 900px) { .dash .half { grid-column: span 3; } }

.machines { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.machine { position: relative; flex: 1 1 250px; max-width: 360px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 14px 14px; background: color-mix(in srgb, var(--text) 3%, transparent); border: 1px solid var(--line); border-radius: var(--r-m); overflow-wrap: anywhere; transition: border-color .15s ease; }
.machine:hover { border-color: var(--line-strong); }
.machine-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 8px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); }
.machine-icon svg { width: 20px; height: 20px; }
.machine.phone .machine-icon { background: color-mix(in srgb, var(--pink) 14%, transparent); color: var(--pink); }
.machine-star { position: absolute; top: 12px; right: 14px; color: var(--warn); font-size: 1.05rem; line-height: 1; }
.machine strong { font-weight: 590; letter-spacing: -.01em; }
.machine .id { font: 500 .96rem/1.5 var(--mono); letter-spacing: .02em; }
.machine p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.machine .chip { margin-top: 6px; }
.machine-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; margin-top: 10px; color: var(--muted); font-size: .84rem; }
.empty { padding: 26px 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-m); color: var(--muted); font-size: .94rem; }
.machines .empty { flex: 1 1 100%; }
.adder summary { list-style: none; display: inline-flex; }
.adder summary::-webkit-details-marker { display: none; }
.adder .form { margin-top: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-m); }

.rows { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rowline { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: .93rem; }
.rowline strong { font-weight: 570; }
.rowline span { color: var(--muted); font-size: .85rem; }
.rowline .linkbtn { color: var(--muted); font-size: .85rem; }
.rows .empty { padding: 18px 14px; }
.mini-apps { display: grid; gap: 8px; }
.mini-app { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; text-align: left; }
.mini-app img { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.mini-app div { flex: 1; min-width: 0; line-height: 1.3; }
.mini-app strong { display: block; font-weight: 570; font-size: .94rem; }
.mini-app span { color: var(--muted); font-size: .8rem; }
.history { padding: 0; }
.history summary { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 20px; cursor: pointer; list-style: none; font-weight: 570; }
.history summary::-webkit-details-marker { display: none; }
.history summary::after { content: "+"; width: 22px; height: 22px; line-height: 20px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-weight: 400; transition: rotate .2s var(--ease); }
.history[open] summary::after { rotate: 45deg; }
.history ul { margin: 0; padding: 0 20px 18px; list-style: none; display: grid; gap: 4px; font-size: .9rem; }
.dash-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; padding-top: 14px; color: var(--muted); font-size: .88rem; }

/* ── согласие на cookie: не закрывает страницу ── */
.consent {
  position: fixed; right: 16px; bottom: 16px; z-index: 25; width: min(372px, calc(100vw - 32px)); padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: 0 16px 50px rgb(0 0 0 / .3);
  display: grid; gap: 10px; animation: consent-in .3s var(--ease);
}
@keyframes consent-in { from { opacity: 0; translate: 0 10px; } }
/* приглашение войти: сверху справа, чтобы не спорить с плашкой cookie внизу */
.signin-offer {
  position: fixed; top: 84px; right: 16px; z-index: 26; width: min(340px, calc(100vw - 32px)); padding: 20px 18px 16px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: 0 16px 50px rgb(0 0 0 / .3);
  display: grid; gap: 10px; justify-items: stretch; text-align: center; animation: consent-in .3s var(--ease);
}
.signin-offer > img { justify-self: center; }
.signin-offer > strong { font-size: 1.1rem; letter-spacing: -.01em; font-weight: 610; }
.signin-offer > p { margin: 0 0 4px; font-size: .88rem; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.signin-offer > .btn { justify-content: center; padding: 10px 14px; font-size: .92rem; }
.signin-offer > small { font-size: .72rem; line-height: 1.4; color: var(--muted); text-wrap: pretty; }
.signin-offer > small a { color: inherit; text-decoration: underline; }
.offer-google[hidden] { display: none !important; }
.offer-close { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.offer-close:hover { background: var(--surface-2); color: var(--text); }
@media (max-width: 600px) {
  .signin-offer { top: 76px; right: 16px; padding: 14px 16px 12px; gap: 8px; }
  .signin-offer > img { display: none; }
}
.consent p { margin: 0; font-size: .82rem; line-height: 1.45; color: var(--muted); }
.consent .btns { flex-wrap: nowrap; gap: 8px; }
.consent .btn { flex: 1; padding: 9px 12px; font-size: .86rem; border-radius: 11px; }

/* ── подвал ── */
footer.site { margin-top: clamp(32px, 5vw, 64px); border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 64px) 0 36px; color: var(--muted); font-size: .9rem; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); }
.foot-brand { margin-bottom: 32px; }
.foot-brand .brand { justify-content: center; margin-bottom: 8px; }
.foot-brand p { margin: 0; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.foot-cols nav { display: grid; gap: 7px; align-content: start; }
.foot-cols h2 { margin: 0 0 5px; color: var(--text); font-size: .86rem; font-weight: 590; letter-spacing: 0; }
.foot-end { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .84rem; }

/* ── движение: только там, где оно не мешает ── */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .app-card, .feature, .industry, .pick, .value, .post-card, .steps li, .machine {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 24%;
    }
    @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  @view-transition { navigation: none; }
}

/* --------------------------------------------------- arpato studio: крупный шрифт, линии и воздух вместо карточек */
.btn-big { padding: 15px 28px; font-size: 1.02rem; border-radius: 14px; }
.st-hero { padding: clamp(72px, 13vh, 150px) 0 clamp(56px, 9vh, 104px); }
.st-hero h1 { max-width: 15em; margin: 18px auto 26px; font-size: clamp(2.5rem, 6.4vw, 5.2rem); line-height: 1.04; letter-spacing: -.04em; font-weight: 620; text-wrap: balance; }
.st-lead { max-width: 36em; margin: 0 auto 38px; font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.st-kind { display: block; font-size: .86rem; font-weight: 560; letter-spacing: .04em; color: var(--muted); }
.st-section { padding: clamp(56px, 9vh, 104px) 0; border-top: 1px solid var(--line); }
.st-section h2 { margin: 0 auto 14px; font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.st-intro { max-width: 40em; margin: 0 auto 46px; font-size: 1.08rem; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.st-cases { display: grid; gap: clamp(56px, 8vh, 96px); margin-top: 46px; }
.st-case { display: grid; gap: 26px; justify-items: center; }
.st-shot { display: block; width: 100%; max-width: 880px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 30px 70px -40px rgb(0 0 0 / .55); transition: translate .35s var(--ease), border-color .2s ease; }
.st-shot:hover { translate: 0 -3px; border-color: var(--line-strong); }
.st-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.st-case-text { max-width: 44em; }
.st-case-text h3 { margin: 6px 0 12px; font-size: clamp(1.45rem, 2.4vw, 1.9rem); letter-spacing: -.02em; font-weight: 600; }
.st-case-text p { margin: 0 auto 16px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.st-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 0 0 16px; padding: 0; list-style: none; font-size: .94rem; }
.st-link { font-weight: 560; text-decoration: none; }
.st-link:hover { text-decoration: underline; }
.st-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 10px; border-top: 1px solid var(--line); }
.st-group { padding: 30px 22px 14px; }
.st-group + .st-group { border-left: 1px solid var(--line); }
.st-num { display: block; margin-bottom: 14px; font-size: .84rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.st-group h3 { margin: 0 0 10px; font-size: 1.2rem; letter-spacing: -.01em; font-weight: 600; text-wrap: balance; }
.st-group p { margin: 0 0 18px; font-size: .96rem; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.st-group ul { margin: 0; padding: 0; list-style: none; }
.st-group li { padding: 5px 0; }
.st-group a, .st-list a { color: var(--text); text-decoration: none; }
.st-group a:hover, .st-list a:hover { color: var(--accent); }
.st-how { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.st-how li { padding: 26px 18px 6px; }
.st-how li + li { border-left: 1px solid var(--line); }
.st-how h3 { margin: 0 0 10px; font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; }
.st-how p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.st-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 30px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 1.14rem; }
.st-band { padding: clamp(76px, 13vh, 150px) 0; border-top: 1px solid var(--line); }
.st-band h2 { margin: 0 auto 16px; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 610; text-wrap: balance; }
.st-band p { max-width: 34em; margin: 0 auto 32px; font-size: 1.1rem; color: var(--muted); text-wrap: pretty; }
@media (max-width: 980px) {
  .st-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-group:nth-child(odd) { border-left: 0; }
  .st-group:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .st-how { grid-template-columns: minmax(0, 1fr); }
  .st-how li + li { border-left: 0; border-top: 1px solid var(--line); }
  .st-how li { padding: 22px 0; }
}
@media (max-width: 600px) {
  .st-groups { grid-template-columns: minmax(0, 1fr); }
  .st-group, .st-group:nth-child(odd) { border-left: 0; padding: 26px 0 16px; }
  .st-group + .st-group { border-top: 1px solid var(--line); border-left: 0; }
  .st-shot { border-radius: 14px; }
}

/* --------------------------------------------------- приложение из магазина (arpato Balans): экраны в рамке телефона, крупные блоки */
:root { --sc-a: #6a46f5; --sc-b: #e0336c; }
@media (prefers-color-scheme: dark) { :root { --sc-a: #a08dff; --sc-b: #ff6f9a; } }
.sc-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(36px, 6vw, 80px) 0 clamp(32px, 5vw, 64px); }
.sc-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(38% 46% at 74% 46%, color-mix(in srgb, var(--sc-a) 20%, transparent), transparent 72%),
              radial-gradient(26% 34% at 88% 72%, color-mix(in srgb, var(--sc-b) 14%, transparent), transparent 72%);
}
.sc-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(24px, 4vw, 56px); }
.sc-hero-text { max-width: 620px; justify-self: center; }
.sc-hero .product-title { margin-bottom: 12px; }
.sc-hero .product-title .eyebrow { margin: 0; }
.sc-hero h1 { margin: 0 0 8px; }
.sc-tagline, .sc-fact strong, .sc-plan.pro h3 { background: linear-gradient(120deg, var(--sc-a), var(--sc-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sc-tagline { margin: 0 0 16px; font-size: clamp(1.3rem, 1rem + 1.1vw, 1.75rem); font-weight: 620; letter-spacing: -.022em; line-height: 1.25; }
.sc-hero .btns { margin-top: 24px; }
.btn.is-soon[aria-disabled="true"] { opacity: 1; background: var(--text); color: var(--bg); cursor: default; }
.sc-free { margin: 14px 0 0; color: var(--muted); font-size: .92rem; }
.sc-hero-phones { display: grid; justify-items: center; padding: 8px 0 28px; }
.sc-hero-phones .phone { grid-area: 1 / 1; width: min(270px, 56vw); }
.sc-hero-phones .back { translate: -36% 7%; rotate: -8deg; scale: .9; }
.sc-hero-phones .front { translate: 28% 0; rotate: 4deg; }

.phone {
  margin: 0; width: 100%; max-width: 300px; padding: 9px; border-radius: 42px;
  background: linear-gradient(160deg, #2c2c35, #0c0c10 42%, #1d1d24);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .1), 0 40px 80px -34px rgb(28 12 80 / .6);
}
.phone img { width: 100%; height: auto; aspect-ratio: 720 / 1600; border-radius: 33px; object-fit: cover; background: #1a1032; }

.sc-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.sc-fact { display: grid; gap: 6px; justify-items: center; align-content: start; padding: 26px 16px; }
.sc-fact + .sc-fact { border-left: 1px solid var(--line); }
.sc-fact strong { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-weight: 650; letter-spacing: -.04em; line-height: 1.05; }
.sc-fact span { max-width: 15em; color: var(--muted); font-size: .93rem; line-height: 1.4; }

.sc-rows .wrap { display: grid; gap: clamp(56px, 9vw, 120px); }
.sc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 72px); }
.sc-row.flip .sc-row-text { order: 2; }
.sc-row-text { max-width: 520px; justify-self: center; }
.sc-row-text .eyebrow { margin-bottom: 0; }
.sc-row-text h2 { margin: 14px 0; }
.sc-row-text p { color: var(--muted); font-size: 1.04rem; line-height: 1.6; }
.sc-row-phone { position: relative; isolation: isolate; display: grid; justify-items: center; }
.sc-row-phone::before { content: ""; position: absolute; inset: 14% 6%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--sc-a) 24%, transparent), transparent); }
.sc-row-phone .phone { width: min(290px, 68vw); }
.sc-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.sc-points li { padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .9rem; }
.sc-pro { display: inline-flex; align-items: center; gap: 9px; margin: 18px 0 0; color: var(--muted); font-size: .88rem; }
.sc-pro-badge { flex: none; padding: 2px 9px; border-radius: 999px; background: linear-gradient(120deg, #5a3df0, #c4285e); color: #fff; font-weight: 650; font-size: .76rem; letter-spacing: .02em; }

.sc-trio { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 3vw, 36px); }
.sc-trio .phone { width: min(250px, 29vw); padding: 7px; border-radius: 34px; }
.sc-trio .phone img { border-radius: 27px; }
.sc-trio .mid { width: min(280px, 33vw); }
.sc-widgets-img { width: min(340px, 80vw); border: 1px solid var(--line-strong); border-radius: 28px; box-shadow: 0 30px 70px -36px rgb(28 12 80 / .6); }
.sc-devices { padding-bottom: 0; }

.sc-safe { padding: clamp(32px, 5vw, 60px) clamp(20px, 4vw, 56px); border: 1px solid var(--line); border-radius: var(--r-l);
  background: radial-gradient(120% 130% at 0% 0%, color-mix(in srgb, var(--sc-a) 13%, var(--surface)), var(--surface) 62%); }
.sc-safe-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 8px 0 28px; }
.sc-safe-item .ind-icon { margin-bottom: 12px; }
.sc-safe-item h3 { margin-bottom: 6px; }
.sc-safe-item p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.5; }

.sc-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 940px; margin: 0 auto; }
.sc-plan { padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.sc-plan h3 { margin: 0 0 4px; font-size: 1.7rem; letter-spacing: -.025em; }
.sc-plan-sub { min-height: 2.9em; margin: 0 0 18px; color: var(--muted); font-size: .92rem; }
.sc-plan ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sc-plan li { padding: 9px 12px; border-radius: 12px; background: var(--surface-2); font-size: .94rem; line-height: 1.4; }
.sc-plan.pro { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--sc-a), var(--sc-b)) border-box;
  box-shadow: 0 30px 70px -40px color-mix(in srgb, var(--sc-a) 70%, transparent); }
.sc-note { max-width: 680px; margin: 18px auto 0; font-size: .9rem; }

.sc-strip { display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin: 6px 0 24px; list-style: none;
  padding: 12px max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))) 22px; scrollbar-width: thin; }
.sc-strip li { flex: none; display: grid; justify-items: center; align-content: start; gap: 10px; width: 196px; scroll-snap-align: center; }
.sc-strip a { display: block; text-decoration: none; transition: translate .25s var(--ease); }
.sc-strip a:hover { translate: 0 -4px; }
.sc-strip .phone { width: 196px; padding: 6px; border-radius: 30px; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .1), 0 24px 44px -28px rgb(28 12 80 / .6); }
.sc-strip .phone img { border-radius: 24px; }
.sc-strip span { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.sc-more { margin: 22px 0 0; }
.sc-cta img { border-radius: 16px; }
.sc-cta h2 { margin-top: 4px; }

/* страницы будущих приложений (/soon/): проверка спроса до разработки */
.top .wrap.soon-top { grid-template-columns: 1fr auto; }
.sc-hero.soon-hero .wrap.soon-wrap { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 0; max-width: 860px; }
.soon-icon { display: grid; place-items: center; width: 96px; height: 96px; margin-bottom: 22px; border-radius: 28px; color: #fff;
  background: linear-gradient(135deg, #6a46f5, #e0336c); box-shadow: 0 24px 60px -26px color-mix(in srgb, var(--sc-a) 80%, transparent); }
.soon-icon svg { width: 52px; height: 52px; }
.soon-hero .eyebrow { margin-bottom: 16px; }
.soon-join .form { margin-top: 10px; }
.soon-join .intro { margin-bottom: 18px; }
.soon-foot p { margin: 0 0 6px; color: var(--muted); font-size: .9rem; }

.gallery.phones { grid-template-columns: repeat(auto-fill, minmax(min(210px, 42vw), 1fr)); }
.gallery.phones .shot { border-radius: 26px; }
.gallery .wide { grid-column: 1 / -1; }
.gallery .wide .shot { max-width: 920px; margin-inline: auto; border-radius: var(--r-m); }

@media (max-width: 980px) { .sc-safe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .sc-hero .wrap, .sc-row { grid-template-columns: minmax(0, 1fr); }
  .sc-row.flip .sc-row-text { order: 0; }
  .sc-hero-phones .phone { width: min(230px, 50vw); }
}
@media (max-width: 760px) {
  .sc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-fact:nth-child(3) { border-left: 0; }
  .sc-fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .sc-plans { grid-template-columns: minmax(0, 1fr); }
  .sc-plan-sub { min-height: 0; }
}
@media (max-width: 600px) {
  .sc-trio .phone, .sc-trio .mid { padding: 4px; border-radius: 20px; }
  .sc-trio .phone img { border-radius: 16px; }
  .sc-safe-grid { grid-template-columns: minmax(0, 1fr); }
}

/* arpato Girya: цвет страницы как у приложения, подарки Pro, звания, четыре темы и набор тестировщиков */
.sc-accent-girya { --sc-a: #ff7a35; --sc-b: #e22c50; }
@media (prefers-color-scheme: dark) { .sc-accent-girya { --sc-a: #ffa060; --sc-b: #ff5a7a; } }

.sc-gifts { position: relative; overflow: hidden; text-align: center; color: #fff; padding: clamp(32px, 5vw, 60px) clamp(18px, 4vw, 48px); border-radius: var(--r-l);
  background: linear-gradient(135deg, var(--sc-a), var(--sc-b)); box-shadow: 0 40px 80px -46px color-mix(in srgb, var(--sc-b) 80%, transparent); }
.sc-gifts::before { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -160px; border-radius: 50%; background: rgb(255 255 255 / .1); }
.sc-gifts h2 { color: #fff; margin: 10px 0 8px; }
.sc-gifts .intro { max-width: 680px; margin: 0 auto; color: rgb(255 255 255 / .92); }
.sc-gift-box { display: block; font-size: 3rem; line-height: 1; }
.sc-gift-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 26px 0 18px; }
.sc-gift { display: grid; justify-items: center; align-content: start; gap: 4px; padding: 20px 12px; border-radius: 20px; background: rgb(255 255 255 / .16); }
.sc-gift-emoji { font-size: 2rem; line-height: 1.15; }
.sc-gift strong { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.sc-gift-days { font-size: .85rem; opacity: .9; }
.sc-gift p { margin: 6px 0 0; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.sc-gift-total { position: relative; margin: 0; font-weight: 650; }

.sc-ladder { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-items: end; gap: 10px; max-width: 1100px; margin: 0 auto 8px; padding: 0; list-style: none; }
.sc-ladder li { display: grid; justify-items: center; align-content: end; gap: 3px; padding: 14px 6px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); text-align: center; }
.sc-ladder li:nth-child(1) { min-height: 104px; } .sc-ladder li:nth-child(2) { min-height: 118px; }
.sc-ladder li:nth-child(3) { min-height: 132px; } .sc-ladder li:nth-child(4) { min-height: 146px; }
.sc-ladder li:nth-child(5) { min-height: 160px; border: 2px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--sc-a), var(--sc-b)) border-box; }
.sc-ladder li:nth-child(6) { min-height: 174px; } .sc-ladder li:nth-child(7) { min-height: 188px; } .sc-ladder li:nth-child(8) { min-height: 202px; }
.sc-rank-emoji { font-size: 1.9rem; line-height: 1.15; }
.sc-ladder strong { font-size: .92rem; line-height: 1.25; }
.sc-ladder span:last-child { color: var(--muted); font-size: .78rem; }

.sc-quad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: clamp(10px, 2.4vw, 28px); max-width: 1100px; margin: 0 auto; }
.sc-quad-item { display: grid; justify-items: center; gap: 12px; }
.sc-quad-item .phone { width: 100%; max-width: 250px; padding: 7px; border-radius: 34px; }
.sc-quad-item .phone img { border-radius: 27px; }
.sc-quad-item span { font-weight: 600; }
.sc-strip-h { margin: 52px 0 0; text-align: center; }

.sc-testers { text-align: center; padding: clamp(32px, 5vw, 60px) clamp(18px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--r-l);
  background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--sc-a) 14%, var(--surface)), var(--surface) 62%); }
.sc-testers .intro { max-width: 720px; margin: 0 auto; color: var(--muted); }
.sc-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0; }
.sc-perk { padding: 22px 18px; border-radius: 20px; background: var(--surface-2); }
.sc-perk-emoji { font-size: 2rem; line-height: 1.15; }
.sc-perk h3 { margin: 8px 0 6px; }
.sc-perk p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.sc-needs { max-width: 620px; margin: 0 auto 26px; }
.sc-needs ul { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.sc-needs li { padding: 9px 12px; border-radius: 12px; background: var(--surface-2); font-size: .94rem; }
.sc-testers .msg.ok { max-width: 620px; margin: 0 auto; }

@media (max-width: 860px) {
  .sc-ladder { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sc-ladder li:nth-child(n) { min-height: 0; }
}
@media (max-width: 760px) {
  .sc-gift-grid, .sc-quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-perks { grid-template-columns: minmax(0, 1fr); }
}
