/* Appvoz: стили страницы поверх системы (assets/system.css) */

/* ---------- иконки приложений (настоящие, assets/apps) ---------- */
.ai { flex: none; width: var(--ai, 44px); height: var(--ai, 44px); border-radius: 23%; object-fit: cover; background: #fff; box-shadow: 0 0 0 .5px rgb(0 0 0 / .12); }

/* вторичная кнопка-ссылка: без рамки и подложки при наведении */
html[data-buttons="arrow"]:not([data-motion="off"]) .btn--secondary:hover,
html[data-buttons="arrow"] .btn--secondary:hover { background: none; border-color: transparent; box-shadow: none; }

/* ---------- iPhone: живая вёрстка (build.mjs → iphone()). --k: масштаб экрана 430×932 ---------- */
.iph { --k: .6; position: relative; z-index: 1; flex: none; box-sizing: content-box; width: calc(462px * var(--k)); height: calc(964px * var(--k)); margin: 0; padding: calc(4px * var(--k)); border-radius: calc(78px * var(--k));
  background: linear-gradient(140deg, #dcd9d3, #8e8b85 22%, #d2cfc9 48%, #7b7872 74%, #c4c1bb);
  box-shadow: 0 60px 80px -44px rgb(31 27 24 / .55), 0 24px 36px -24px rgb(31 27 24 / .4), inset 0 0 0 1px rgb(255 255 255 / .35); }
.iph__body { width: 100%; height: 100%; box-sizing: border-box; padding: calc(16px * var(--k)); border-radius: calc(74px * var(--k)); background: #060606; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .07); }
.iph__fit { position: relative; width: calc(430px * var(--k)); height: calc(932px * var(--k)); border-radius: calc(58px * var(--k)); overflow: hidden; background: #fff; }
.iph__fit::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(118deg, rgb(255 255 255 / .14), rgb(255 255 255 / 0) 34%, rgb(255 255 255 / 0) 72%, rgb(255 255 255 / .05)); }
.iph__btn { position: absolute; width: calc(5px * var(--k)); border-radius: 2px; background: linear-gradient(90deg, #6f6c66, #c9c6c0 60%, #8e8b85); }
.iph__btn--a { left: calc(-3px * var(--k)); top: calc(196px * var(--k)); height: calc(58px * var(--k)); }
.iph__btn--b { left: calc(-3px * var(--k)); top: calc(290px * var(--k)); height: calc(100px * var(--k)); }
.iph__btn--c { left: calc(-3px * var(--k)); top: calc(410px * var(--k)); height: calc(100px * var(--k)); }
.iph__btn--d { right: calc(-3px * var(--k)); top: calc(330px * var(--k)); height: calc(150px * var(--k)); }

/* экран iOS: всё в точках iPhone, а zoom уменьшает целиком (без размытия, в отличие от transform) */
.ios { zoom: var(--k); position: relative; width: 430px; height: 932px; overflow: hidden; background: #fff; color: #111; font: 400 17px/1.3 -apple-system, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
.ios--gray { background: #f2f2f7; }
.ios::before { content: ""; position: absolute; z-index: 3; top: 11px; left: 50%; width: 126px; height: 37px; margin-left: -63px; border-radius: 20px; background: #000; }
.ios svg { flex: none; }
.ios img { display: block; flex: none; border-radius: 23%; box-shadow: 0 0 0 .5px rgb(0 0 0 / .12); }
.ios__bar { display: flex; justify-content: space-between; align-items: center; height: 54px; padding: 6px 34px 0 50px; font-weight: 600; font-size: 17px; }
.ios__st { display: flex; align-items: center; gap: 6px; } .ios__st svg { width: 18px; height: 18px; }
.ios__sig { display: flex; align-items: flex-end; gap: 2px; height: 12px; } .ios__sig b { width: 3px; background: #111; border-radius: 1px; }
.ios__sig b:nth-child(1) { height: 4px; } .ios__sig b:nth-child(2) { height: 6px; } .ios__sig b:nth-child(3) { height: 9px; } .ios__sig b:nth-child(4) { height: 12px; }
.ios__bat { position: relative; width: 25px; height: 12px; border-radius: 4px; border: 1.5px solid rgb(0 0 0 / .4); }
.ios__bat::after { content: ""; position: absolute; inset: 1.5px 4px 1.5px 1.5px; border-radius: 2px; background: #111; }
.ios__nav { display: flex; align-items: center; gap: 2px; padding: 8px 12px 0; color: #0a7aff; } .ios__nav svg { width: 24px; height: 24px; }
.ios__h { margin: 6px 20px 12px; font: 700 34px/1.1 -apple-system, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; letter-spacing: -.02em; }
.ios__seg { display: grid; grid-template-columns: 1fr 1fr; margin: 0 20px 10px; padding: 2px; border-radius: 9px; background: #eeeef0; font-size: 14px; font-weight: 500; text-align: center; }
.ios__seg span { padding: 7px 0; border-radius: 7px; } .ios__seg span:first-child { background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.ios__search { display: flex; align-items: center; gap: 6px; height: 38px; margin: 0 20px 6px; padding: 0 10px; border-radius: 10px; background: #eeeef0; color: #8a8a8e; } .ios__search svg { width: 18px; height: 18px; }
.ios__list { margin: 0; padding: 0 0 0 20px; list-style: none; }
.ios__list li { display: flex; align-items: center; gap: 14px; padding: 11px 20px 11px 0; border-bottom: .5px solid #d9d9de; }
.ios__list li div, .ios__row div { flex: 1; min-width: 0; }
.ios b { display: block; font-weight: 600; } .ios__row b { font-weight: 500; }
.ios small { display: block; color: #8a8a8e; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ios .ios__cloud { width: 30px; height: 30px; color: #0a7aff; }
.ios__ring { position: relative; width: 32px; height: 32px; flex: none; }
.ios__ring svg { width: 32px; height: 32px; transform: rotate(-90deg); }
.ios__ring circle { fill: none; stroke-width: 2.6; } .ios__ring .t { stroke: #e3e3e8; }
.ios__ring .p { stroke: #0a7aff; stroke-dasharray: 81.7; stroke-dashoffset: 26; animation: ios-load 3.2s cubic-bezier(.4, 0, .2, 1) infinite; }
.ios__ring i { position: absolute; inset: 11px; border-radius: 2px; background: #0a7aff; }
@keyframes ios-load { 0% { stroke-dashoffset: 81.7; } 80%, 100% { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ios__ring .p { animation: none; } }
.ios__cap { margin: 0 36px 7px; color: #6d6d72; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; }
.ios__grp { margin: 0 18px 22px; border-radius: 12px; background: #fff; overflow: hidden; }
.ios__row { display: flex; align-items: center; gap: 13px; padding: 12px 16px; border-bottom: .5px solid #e1e1e6; } .ios__row:last-child { border-bottom: 0; }
.ios__row img { border-radius: 8px; }
.ios__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: #fff; flex: none; } .ios__ic svg { width: 19px; height: 19px; }
.ios__row--temp { background: #fff6ec; }
.ios__tag { padding: 4px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #fde7d9; color: #9b2f19; white-space: nowrap; } .ios__tag--own { background: #e7f3ea; color: #23633a; }

/* подложки под телефоном */
.safety-media { position: relative; display: grid; place-items: center; padding: 48px 0; border-radius: var(--r-lg, 24px); background: var(--p-surface); overflow: hidden; }

/* ---------- каталог ---------- */
.shop { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; margin-top: var(--s-7); }
.shop__main { min-width: 0; }
.shop svg { width: 18px; height: 18px; flex: none; }
.shop__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.shop__tabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--p-surface); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.shop__tabs button { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: none; font: 500 15px/1 var(--font-text); color: var(--p-muted); white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s; }
.shop__tabs button:hover { color: var(--p-ink); }
.shop__tabs button span { font-size: 13px; opacity: .6; }
.shop__tabs button[aria-pressed="true"] { background: var(--p-ink); color: var(--p-bg); }
.shop__search { position: relative; flex: 0 1 240px; }
.shop__search svg { position: absolute; left: 16px; top: 13px; color: var(--p-muted); pointer-events: none; }
.shop__search input { width: 100%; height: 44px; padding: 0 16px 0 44px; border: 1px solid rgb(31 27 24 / .12); border-radius: 999px; background: #fff; font: 400 16px/1 var(--font-text); color: var(--p-ink); }
.shop__search input:focus { outline: none; border-color: var(--p-ink); }

.shop__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.tile { display: flex; align-items: center; gap: 16px; min-height: 96px; padding: 16px 16px 16px 18px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgb(31 27 24 / .07), 0 1px 2px rgb(31 27 24 / .04); --ai: 56px; transition: transform .2s ease, box-shadow .2s ease; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgb(31 27 24 / .1), 0 16px 28px -18px rgb(31 27 24 / .35); }
.tile.is-on { box-shadow: 0 0 0 2px var(--p-accent), 0 16px 28px -20px color-mix(in oklab, var(--p-accent) 60%, transparent); }
.tile__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tile__name, .tile__text b { font: 600 17px/1.25 var(--font-text); color: var(--p-ink); text-decoration: none; }
.tile__name { display: inline-block; justify-self: start; padding: 10px 0; margin: -10px 0; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 1px no-repeat; transition: background-size .25s ease; }
.tile__name:hover { background-size: 100% 1px; }
.tile__text small { font-size: 14px; color: var(--p-muted); }
.tile__add, .tile__ask { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--p-surface); font: 600 14px/1 var(--font-text); color: var(--p-ink); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s, transform .15s; }
.tile__add:hover, .tile__ask:hover { background: color-mix(in oklab, var(--p-surface) 85%, var(--p-ink)); }
.tile__add:active, .tile__ask:active { transform: scale(.97); }
.tile.is-on .tile__add { background: var(--p-accent); color: var(--p-accent-ink); }
.tile--ask { background: transparent; box-shadow: inset 0 0 0 1.5px rgb(31 27 24 / .14); }
.tile--ask:hover { transform: none; box-shadow: inset 0 0 0 1.5px rgb(31 27 24 / .24); }
.tile--ask .tile__text b { font-size: 16px; }
.tile--none { grid-column: 1 / -1; color: var(--p-muted); }

/* заказ: тёмная панель */
.shop__cart { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 24px; background: var(--p-inv-bg); color: var(--p-inv-ink); }
.shop__cart-h { display: flex; align-items: center; gap: 10px; }
.shop__cart-h h3 { margin: 0; font: 600 20px/1.2 var(--font-text); color: inherit; }
.shop__badge { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; background: var(--p-accent); color: var(--p-accent-ink); font-size: 13px; font-weight: 600; }
.shop__empty { margin: 0; color: var(--p-inv-muted); }
.shop__items { display: grid; margin: 0; padding: 0; list-style: none; --ai: 36px; }
.shop__items li { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid rgb(255 255 255 / .08); }
.shop__items li > span:nth-child(2) { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop__items .app__price { color: var(--p-inv-muted); font-size: 14px; white-space: nowrap; }
.shop__items .app__icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: none; color: var(--p-inv-muted); cursor: pointer; }
.shop__items .app__icon-btn:hover { background: rgb(255 255 255 / .08); color: var(--p-inv-ink); }
.shop__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 4px; }
.shop__total span { color: var(--p-inv-muted); }
.shop__total b { font: 500 44px/1 var(--font-display); letter-spacing: -0.04em; }
.shop__cart .field { display: grid; gap: 6px; }
.shop__cart .field label { font-size: 14px; font-weight: 500; color: var(--p-inv-muted); }
.shop__cart .field input { height: 48px; padding: 0 14px; border: 1px solid rgb(255 255 255 / .16); border-radius: 12px; background: rgb(255 255 255 / .06); color: var(--p-inv-ink); font-size: 16px; }
.shop__cart .field input::placeholder { color: rgb(248 245 239 / .35); }
.shop__cart .field input:focus { outline: none; border-color: var(--p-inv-ink); }
.shop__cart .field__error { color: #ffb4a3; }
.shop__cart .btn { width: 100%; }
.shop__cart .btn[disabled] { opacity: .4; cursor: not-allowed; }
.shop__cart .form__status { margin: 0; color: var(--p-inv-ink); }
.shop__cart .form__status:empty { display: none; }
.shop__note { margin: 0; font-size: 13px; color: var(--p-inv-muted); }

/* ---------- три шага ---------- */
.steps { margin: 0; padding: 0; list-style: none; }
.steps__item { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 24px; padding: 32px 0; border-top: 1px solid rgb(31 27 24 / .12); }
.steps__item:first-child { padding-top: 8px; border-top: 0; }
.steps__n { font: 500 56px/1 var(--font-display); letter-spacing: -0.04em; color: var(--p-accent); font-variant-numeric: tabular-nums; }
.steps__body h3 { margin: 4px 0 8px; font: 500 var(--t-card, 20px)/1.3 var(--font-text); letter-spacing: -0.01em; }
.steps__body > p { margin: 0; max-width: 46ch; color: var(--p-ink); }
.steps__body > p.steps__meta { max-width: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; color: var(--p-ink); font-size: 14px; --ai: 28px; }
.steps__meta .ai { border-radius: 8px; }
.steps__meta svg { width: 24px; height: 24px; color: #0a7aff; }
.steps__mono { padding: 5px 10px; border-radius: 8px; background: var(--p-surface); font: 500 13px/1 var(--font-mono); }

/* ---------- цены ---------- */
.prices { align-items: start; }
.price__incl { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.price__incl li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--p-surface); font-size: 14px; }
.price__incl li::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--p-accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- страницы приложений ---------- */
.app-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 14px; color: var(--p-muted); }
.app-crumbs a { color: inherit; } .app-crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.peers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 64px; }
.peer { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgb(31 27 24 / .07); color: inherit; text-decoration: none; --ai: 44px; transition: transform .2s, box-shadow .2s; }
.peer:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgb(31 27 24 / .1), 0 16px 28px -18px rgb(31 27 24 / .35); }
.peer b { display: block; font-weight: 600; } .peer small { color: var(--p-muted); }

/* ---------- общее ---------- */
@media (max-width: 359px) { header.nav:not(.is-open) .nav__actions { display: none !important; } }
main > section.section { --h: 1; }
.closing .grid > *, .closing__cta > * { min-width: 0; }
.closing .btn--xl { max-width: 100%; white-space: normal; }
.footer__col a, .footer__lede { overflow-wrap: anywhere; }
.footer__legal a { color: inherit; }

/* ---------- адаптив ---------- */
@media (max-width: 1279px) {
  .shop { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 1023px) {
  #catalog, #prices { --h: 2; }
  .shop { grid-template-columns: 1fr; }
  .shop__cart { position: static; }
  .peers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .shop__bar { flex-direction: column; align-items: stretch; }
  .shop__search { flex-basis: auto; }
  .shop__grid { grid-template-columns: 1fr; }
  .tile { min-height: 84px; --ai: 48px; padding: 14px; gap: 12px; }
  .tile__add { padding: 0 14px; }
  .shop__cart { padding: 22px; }
  .steps__item { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .steps__n { font-size: 36px; }
  .shop__total b { font-size: 32px; }
  .shop__tabs { flex-wrap: wrap; border-radius: 24px; }
}
@media (max-width: 479px) {
  .peers { grid-template-columns: 1fr; }
  .tile__add span { display: none; }
  .tile__add { width: 44px; padding: 0; }
}

.shop__tabs button span { opacity: 1; color: inherit; }
.tile__ask { height: 44px; padding: 0 4px; background: none; border-radius: 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(31 27 24 / .3); }
.tile__ask:hover { background: none; text-decoration-color: currentColor; }

/* посадочные: цифры в установке, сетка плиток, крошки */
.how-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 24px; border-top: 1px solid rgb(31 27 24 / .12); }
.how-stats .t-stat { margin: 0; }
.how-stats .t-small { margin: 6px 0 0; }
.peers { gap: 24px; }
.peer { min-height: 80px; padding: 18px; border-radius: 20px; }
@media (max-width: 639px) { .app-crumbs { display: none; } }
/* шаги: номер над заголовком, всё на одной линии колонки */
.steps__item { grid-template-columns: 1fr; gap: 10px; }
.steps__n { font-size: 40px; }
.how-stats { grid-template-columns: 1fr; gap: 16px; }
.how-stats > div { display: flex; align-items: baseline; gap: 12px; flex-direction: column; }
/* другие приложения: список ссылок, а не кнопки */
.peer { background: none; box-shadow: none; border-radius: 0; border-top: 1px solid rgb(31 27 24 / .12); padding: 16px 0; }
.peer:hover { box-shadow: none; }

/* ---------- iPhone под углом, без подложки ---------- */
.hero--split .hero__media.stage-phone { display: grid; place-items: center; min-height: 660px; padding: 24px 0; overflow: visible; border-radius: 0; background: none; }
.safety-media { padding: 24px 0; border-radius: 0; background: none; overflow: visible; }
.stage-phone .iph, .safety-media .iph { --k: .62;
  transform: perspective(2200px) rotateY(-24deg) rotateX(7deg) rotateZ(-1deg);
  box-shadow:
    1px 0 0 #b8b5af, 2px .5px 0 #a8a59f, 3px .8px 0 #9c9993, 4px 1px 0 #918e88, 5px 1.3px 0 #87847e,
    6px 1.6px 0 #7e7b75, 7px 1.9px 0 #76736d, 8px 2.2px 0 #6e6b65, 9px 2.5px 0 #67645e, 10px 2.8px 0 #5f5c57,
    inset 0 0 0 1px rgb(255 255 255 / .4),
    40px 50px 60px -20px rgb(31 27 24 / .35), 80px 90px 90px -40px rgb(31 27 24 / .3); }
.stage-phone .iph__btn--a, .stage-phone .iph__btn--b, .stage-phone .iph__btn--c,
.safety-media .iph__btn--a, .safety-media .iph__btn--b, .safety-media .iph__btn--c { display: none; }
.stage-phone .iph__btn--d, .safety-media .iph__btn--d { right: calc(-14px * var(--k)); width: calc(6px * var(--k)); background: linear-gradient(90deg, #5f5c57, #8e8b85); }

/* посадочные: строка приложения страницы крупнее и с подсветкой */
.ios__list li.is-big { gap: 16px; margin: 4px 12px 8px -8px; padding: 16px; border-bottom: 0; border-radius: 18px; background: #eef4ff; box-shadow: 0 0 0 1px rgb(10 122 255 / .12), 0 14px 28px -16px rgb(10 122 255 / .45); }
.ios__list li.is-big img { width: 84px; height: 84px; }
.ios__list li.is-big b { font-size: 23px; letter-spacing: -.02em; }
.ios__list li.is-big small { font-size: 16px; }
.ios__list li.is-big .ios__ring, .ios__list li.is-big .ios__ring svg { width: 40px; height: 40px; }
.ios__list li.is-big .ios__ring i { inset: 14px; }

/* ---------- первый экран: текст сверху, факты и стрелка вниз прижаты к низу ---------- */
.hero--split .hero__text { display: flex; flex-direction: column; align-self: stretch; }
.hero__foot { display: grid; gap: 28px; margin-top: auto; padding-top: 48px; }
.hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding-top: 24px; border-top: 1px solid rgb(31 27 24 / .12); }
.hero__facts > div { grid-column: auto; display: block; min-width: 0; padding-right: 16px; }
.hero__facts > div + div { padding-left: 20px; border-left: 1px solid rgb(31 27 24 / .12); }
.hero__facts dt { font: 500 28px/1.1 var(--font-display); letter-spacing: -0.03em; color: var(--p-ink); white-space: nowrap; }
.hero__facts dd { margin: 8px 0 0; font-size: 14px; line-height: 1.35; color: var(--p-muted); }
.hero__down { display: inline-flex; align-items: center; gap: 14px; align-self: start; justify-self: start; font: 500 16px/1 var(--font-text); color: var(--p-ink); text-decoration: none; }
.hero__down-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(31 27 24 / .2); transition: background-color .2s, color .2s, box-shadow .2s; }
.hero__down-ic svg { width: 20px; height: 20px; animation: hero-down 2.2s ease-in-out infinite; }
.hero__down:hover .hero__down-ic { background: var(--p-ink); color: var(--p-bg); box-shadow: none; }
@keyframes hero-down { 0%, 100% { transform: none; } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .hero__down-ic svg { animation: none; } }

@media (max-width: 1279px) { .hero__facts dt { font-size: 24px; } }
@media (max-width: 1023px) {
  .hero__foot { padding-top: 40px; }
  .stage-phone .iph, .safety-media .iph { --k: .56; }
  .hero--split .hero__media.stage-phone { min-height: 600px; }
}
@media (max-width: 639px) {
  .stage-phone .iph, .safety-media .iph { --k: .5; transform: perspective(1600px) rotateY(-18deg) rotateX(6deg); }
  .hero--split .hero__media.stage-phone { min-height: 520px; margin-top: 8px; }
  .hero__foot { gap: 24px; padding-top: 32px; }
  .hero__facts > div { padding-right: 10px; } .hero__facts > div + div { padding-left: 12px; }
  .hero__facts dt { font-size: 19px; white-space: normal; }
  .hero__facts dd { font-size: 12px; }
}
@media (max-width: 1023px) { .hero__down { display: none; } }

/* ---------- иконки в разделах ---------- */
.ic, .hero__fact-ic, .steps__ic, .faq__ic, .safe-list__ic { display: inline-grid; place-items: center; flex: none; }
.ic svg, .hero__fact-ic svg, .steps__ic svg, .faq__ic svg, .safe-list__ic svg { width: 100%; height: 100%; }
.hero__fact-ic { width: 22px; height: 22px; margin-bottom: 12px; color: var(--p-accent-text, var(--p-accent)); }
.steps__n { display: flex; align-items: center; gap: 14px; }
.steps__ic { width: 48px; height: 48px; padding: 12px; box-sizing: border-box; border-radius: 14px; background: var(--p-surface); color: var(--p-accent-text, var(--p-accent)); }
.faq__item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; }
.faq__ic { width: 40px; height: 40px; padding: 10px; box-sizing: border-box; border-radius: 12px; background: var(--p-surface); color: var(--p-accent-text, var(--p-accent)); }
.faq__item h3 { margin-top: 0; }
.safe-list { display: grid; gap: 18px; margin: 8px 0 0; padding: 0; list-style: none; }
.safe-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.safe-list__ic { width: 44px; height: 44px; padding: 11px; box-sizing: border-box; border-radius: 13px; background: var(--p-surface); color: var(--p-accent-text, var(--p-accent)); }
.safe-list b { display: block; margin-bottom: 2px; font-weight: 600; color: var(--p-ink); }
.safe-list span { color: var(--p-muted); font-size: 15px; line-height: 1.45; }
@media (max-width: 639px) { .faq__item { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; } .faq__ic { width: 32px; height: 32px; padding: 8px; border-radius: 10px; } .steps__ic { width: 40px; height: 40px; padding: 10px; } }

/* ---------- свечение за телефоном: цвет темы, мягко ---------- */
.stage-phone, .safety-media { position: relative; isolation: isolate; }
.stage-phone::before, .safety-media::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(560px, 100%); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow-1, rgb(184 56 31 / .16)), transparent 70%), radial-gradient(circle at 70% 30%, var(--glow-2, rgb(240 160 120 / .18)), transparent 55%); filter: blur(20px); }

/* ---------- цветовые темы посадочных ---------- */
html[data-app="max"] {
  --p-bg: #f6f4fd; --p-surface: #e9e4fa; --p-ink: #1b1630; --p-muted: #5f5878;
  --p-accent: #6a3df0; --p-accent-ink: #fff; --p-action: #6a3df0; --p-action-ink: #fff;
  --p-inv-bg: #1b1533; --p-inv-surface: #2a2247; --p-inv-ink: #f6f4fd; --p-inv-muted: #a7a1c2;
  --glow-1: rgb(106 61 240 / .22); --glow-2: rgb(62 123 255 / .22);
}
html[data-app="sber"] {
  --p-bg: #f3f8f4; --p-surface: #e0eee3; --p-ink: #14211a; --p-muted: #55665b;
  --p-accent: #1a8a3c; --p-accent-ink: #fff; --p-action: #1a8a3c; --p-action-ink: #fff;
  --p-inv-bg: #0f2117; --p-inv-surface: #1b3325; --p-inv-ink: #f2f8f3; --p-inv-muted: #9bb0a2;
  --glow-1: rgb(33 160 56 / .2); --glow-2: rgb(0 180 200 / .16);
}
html[data-app="tbank"] {
  --p-bg: #faf8f1; --p-surface: #f3edd5; --p-ink: #141414; --p-muted: #5e5a4e;
  --p-accent: #ffdd2d; --p-accent-ink: #141414; --p-accent-text: #141414; --p-action: #141414; --p-action-ink: #fff;
  --p-inv-bg: #141414; --p-inv-surface: #222; --p-inv-ink: #faf8f1; --p-inv-muted: #a3a097;
  --glow-1: rgb(255 221 45 / .45); --glow-2: rgb(255 200 0 / .25);
}
html[data-app="tbank"] .btn--primary:not(.footer .btn) { background: #ffdd2d; color: #141414; border-color: #ffdd2d; }
html[data-app="tbank"] .btn--primary:not(.footer .btn):hover { background: #f5d000; border-color: #f5d000; }
html[data-app="tbank"] .steps__n { color: #141414; }
html[data-app="tbank"] .steps__ic, html[data-app="tbank"] .faq__ic, html[data-app="tbank"] .safe-list__ic { background: #ffdd2d; }
html[data-app="tbank"] .footer .btn--primary { background: #ffdd2d; color: #141414; border-color: #ffdd2d; }
html[data-app="vk"] {
  --p-bg: #f3f6fb; --p-surface: #e1eaf7; --p-ink: #0f1a2b; --p-muted: #56637a;
  --p-accent: #0070f0; --p-accent-ink: #fff; --p-action: #0070f0; --p-action-ink: #fff;
  --p-inv-bg: #0e1a2e; --p-inv-surface: #1a2a44; --p-inv-ink: #f2f6fc; --p-inv-muted: #9aa7bd;
  --glow-1: rgb(0 119 255 / .2); --glow-2: rgb(80 180 255 / .2);
}
html[data-app="avito"] {
  --p-bg: #f6f7f9; --p-surface: #e8ebf0; --p-ink: #1a1b1e; --p-muted: #5b5f68;
  --p-accent: #0084d1; --p-accent-ink: #fff; --p-action: #0084d1; --p-action-ink: #fff;
  --p-inv-bg: #18191c; --p-inv-surface: #26282c; --p-inv-ink: #f6f7f9; --p-inv-muted: #a0a4ab;
}
/* у Авито свечение из четырёх фирменных кругов */
html[data-app="avito"] .stage-phone::before, html[data-app="avito"] .safety-media::before { filter: blur(26px); opacity: .55;
  background: radial-gradient(circle at 30% 30%, #00aaff 0 14%, transparent 34%), radial-gradient(circle at 72% 28%, #a169f7 0 11%, transparent 30%),
    radial-gradient(circle at 34% 74%, #97cf26 0 15%, transparent 36%), radial-gradient(circle at 70% 70%, #ff6163 0 10%, transparent 30%); }
/* у МАКС градиент как в логотипе */
html[data-app="max"] .ios__list li.is-big { background: linear-gradient(120deg, #eef2ff, #f3ecff); }
html[data-app="sber"] .ios__list li.is-big { background: #ecf7ef; box-shadow: 0 0 0 1px rgb(33 160 56 / .14), 0 14px 28px -16px rgb(33 160 56 / .4); }
html[data-app="tbank"] .ios__list li.is-big { background: #fff8d6; box-shadow: 0 0 0 1px rgb(200 160 0 / .2), 0 14px 28px -16px rgb(200 160 0 / .45); }
.faq__item h3 { margin: 6px 0 6px; font: 600 18px/1.35 var(--font-text); letter-spacing: -0.01em; }
.faq__item p { margin: 0; }
html[data-app="avito"] .stage-phone::before, html[data-app="avito"] .safety-media::before { opacity: .3; filter: blur(34px); }

/* ---------- отступ перед списком про безопасность ---------- */
.stack-6 > .safe-list, .safe-list { margin: 32px 0 8px; }

/* ---------- факты: иконка слева от цифры ---------- */
.hero__facts > div { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; }
.hero__fact-ic { grid-row: 1; margin: 0; width: 22px; height: 22px; }
.hero__facts dt { grid-row: 1; grid-column: 2; font-size: 26px; }
.hero__facts dd { grid-column: 1 / -1; }
@media (max-width: 639px) { .hero__fact-ic { width: 16px; height: 16px; } .hero__facts > div { column-gap: 6px; } .hero__facts dt { font-size: 18px; } }

/* ---------- главная: по капле цвета каждого приложения ---------- */
html:not([data-app]) { --glow-1: rgb(106 61 240 / .16); --glow-2: rgb(0 112 240 / .14); --mesh-1: rgb(106 61 240 / .10); --mesh-2: rgb(26 138 60 / .08); --mesh-3: rgb(255 210 30 / .12); }
html:not([data-app]) .mark--initial { background: linear-gradient(135deg, #6a3df0, #0070f0 50%, #1a8a3c); color: #fff; }
html:not([data-app]) .hero__facts > div:nth-child(1) .hero__fact-ic { color: #6a3df0; }
html:not([data-app]) .hero__facts > div:nth-child(2) .hero__fact-ic { color: #1a8a3c; }
html:not([data-app]) .hero__facts > div:nth-child(3) .hero__fact-ic { color: #0070f0; }
html:not([data-app]) .steps__item:nth-child(1) .steps__ic { color: #6a3df0; background: #ede8fd; }
html:not([data-app]) .steps__item:nth-child(2) .steps__ic { color: #0070f0; background: #e4effd; }
html:not([data-app]) .steps__item:nth-child(3) .steps__ic { color: #1a8a3c; background: #e2f2e6; }
html:not([data-app]) .safe-list li:nth-child(1) .safe-list__ic { color: #0070f0; background: #e4effd; }
html:not([data-app]) .safe-list li:nth-child(2) .safe-list__ic { color: #6a3df0; background: #ede8fd; }
html:not([data-app]) .safe-list li:nth-child(3) .safe-list__ic { color: #1a8a3c; background: #e2f2e6; }
/* свечение за телефоном на главной: четыре цвета, очень мягко */
html:not([data-app]) .stage-phone::before { filter: blur(40px); opacity: .5;
  background: radial-gradient(circle at 30% 32%, rgb(106 61 240 / .55), transparent 38%), radial-gradient(circle at 72% 30%, rgb(0 112 240 / .45), transparent 36%),
    radial-gradient(circle at 34% 72%, rgb(26 160 60 / .4), transparent 36%), radial-gradient(circle at 70% 72%, rgb(255 205 0 / .5), transparent 34%); }
html:not([data-app]) .safety-media::before { opacity: .6; }

/* ---------- фон: точечная сетка и цветная дымка у первого экрана ---------- */
html[data-app="max"] { --mesh-1: rgb(106 61 240 / .14); --mesh-2: rgb(62 123 255 / .1); --mesh-3: rgb(200 90 255 / .08); }
html[data-app="sber"] { --mesh-1: rgb(33 160 56 / .13); --mesh-2: rgb(0 180 200 / .08); --mesh-3: rgb(160 220 40 / .1); }
html[data-app="tbank"] { --mesh-1: rgb(255 221 45 / .28); --mesh-2: rgb(255 190 0 / .12); --mesh-3: rgb(20 20 20 / .04); }
html[data-app="vk"] { --mesh-1: rgb(0 119 255 / .13); --mesh-2: rgb(80 180 255 / .1); --mesh-3: rgb(0 60 200 / .06); }
html[data-app="avito"] { --mesh-1: rgb(0 170 255 / .12); --mesh-2: rgb(151 207 38 / .12); --mesh-3: rgb(161 105 247 / .1); }
main#top { position: relative; isolation: isolate; }
main#top::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: -80px; height: 1180px; pointer-events: none;
  background:
    radial-gradient(48% 42% at 82% 18%, var(--mesh-1, transparent), transparent 70%),
    radial-gradient(36% 34% at 8% 4%, var(--mesh-2, transparent), transparent 70%),
    radial-gradient(30% 30% at 50% 70%, var(--mesh-3, transparent), transparent 70%),
    radial-gradient(circle at 1px 1px, rgb(28 26 36 / .10) 1px, transparent 1.5px) 0 0 / 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent); }
/* полоса «Как это работает»: та же сетка, проявляется к центру */
#how { position: relative; isolation: isolate; }
#how::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 1px 1px, rgb(28 26 36 / .09) 1px, transparent 1.5px) 0 0 / 26px 26px;
  -webkit-mask-image: radial-gradient(60% 70% at 70% 50%, #000, transparent 75%); mask-image: radial-gradient(60% 70% at 70% 50%, #000, transparent 75%); }

/* ---------- установка: шесть шагов лентой ---------- */
.flow-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 48px; }
.flow-head h2 { margin: 0; max-width: 16ch; }
.flow-head p { margin: 0; max-width: 52ch; color: var(--p-muted); font-size: 17px; line-height: 1.5; }
.flow-head .link { color: var(--p-ink); white-space: nowrap; }
.flow { --gap: 20px; position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.flow::before { content: ""; position: absolute; top: 24px; left: 24px; right: calc((100% - 5 * var(--gap)) / 6 - 24px); border-top: 2px dashed color-mix(in oklab, var(--p-ink) 16%, transparent); }
.flow__item { position: relative; min-width: 0; }
.flow__top { display: flex; align-items: center; gap: 12px; }
.flow__ic { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; padding: 12px; box-sizing: border-box; border-radius: 50%; background: var(--p-bg); color: var(--p-accent-text, var(--p-accent)); box-shadow: 0 0 0 1.5px color-mix(in oklab, var(--p-accent) 35%, transparent), 0 0 0 6px var(--p-bg); }
.flow__ic svg { width: 100%; height: 100%; }
.flow__n { font: 600 13px/1 var(--font-mono); color: var(--p-muted); letter-spacing: .04em; padding: 4px 8px; border-radius: 99px; background: var(--p-bg); position: relative; z-index: 1; }
.flow__item h3 { margin: 18px 0 6px; font: 600 16px/1.3 var(--font-text); letter-spacing: -0.01em; color: var(--p-ink); }
.flow__item p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--p-muted); }
.flow__meta { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--p-ink); --ai: 22px; }
.flow__meta .ai { border-radius: 6px; }
.flow__meta > span { margin-left: 4px; }
.flow__mono { padding: 4px 8px; border-radius: 8px; background: var(--p-surface); font: 500 12px/1.2 var(--font-mono); }
/* главная: шаги в цветах приложений */
html:not([data-app]) .flow__item:nth-child(6n+1) .flow__ic { color: #6a3df0; box-shadow: 0 0 0 1.5px rgb(106 61 240 / .35), 0 0 0 6px var(--p-bg); }
html:not([data-app]) .flow__item:nth-child(6n+2) .flow__ic { color: #0070f0; box-shadow: 0 0 0 1.5px rgb(0 112 240 / .35), 0 0 0 6px var(--p-bg); }
html:not([data-app]) .flow__item:nth-child(6n+3) .flow__ic { color: #1a8a3c; box-shadow: 0 0 0 1.5px rgb(26 138 60 / .35), 0 0 0 6px var(--p-bg); }
html:not([data-app]) .flow__item:nth-child(6n+4) .flow__ic { color: #b88a00; box-shadow: 0 0 0 1.5px rgb(220 170 0 / .45), 0 0 0 6px var(--p-bg); }
html:not([data-app]) .flow__item:nth-child(6n+5) .flow__ic { color: #0084d1; box-shadow: 0 0 0 1.5px rgb(0 132 209 / .35), 0 0 0 6px var(--p-bg); }
html:not([data-app]) .flow__item:nth-child(6n+6) .flow__ic { color: #6a3df0; box-shadow: 0 0 0 1.5px rgb(106 61 240 / .35), 0 0 0 6px var(--p-bg); }
html[data-app="tbank"] .flow__ic { background: #ffdd2d; color: #141414; box-shadow: 0 0 0 6px var(--p-bg); }
@media (max-width: 1199px) {
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .flow::before { display: none; }
}
@media (max-width: 639px) {
  .flow-head { margin-bottom: 28px; }
  .flow { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 8px; scroll-padding: 0 16px; scrollbar-width: none; }
  .flow::-webkit-scrollbar { display: none; }
  .flow__item { scroll-snap-align: start; padding: 18px; border-radius: 20px; background: color-mix(in oklab, var(--p-surface) 55%, #fff); }
  .flow__ic, .flow__n { box-shadow: none; }
  .flow__ic { background: #fff; }
  html:not([data-app]) .flow__item .flow__ic { box-shadow: none; }
}
/* блок установки не растягивается на экран: высота по содержимому */
main > section#how.section { height: auto !important; min-height: 0 !important; padding-top: 96px; padding-bottom: 96px; }
@media (max-width: 639px) { main > section#how.section { padding-top: 64px; padding-bottom: 64px; } }

/* =========================================================
   v9: плотнее ритм, новый логотип, SEO-блок, FAQ в два столбца
   ========================================================= */
/* секции по содержимому, а не на весь экран */
main > section.section:not(.hero), main > section.legal, footer.closing { height: auto !important; min-height: 0 !important; padding-top: 88px; padding-bottom: 88px; }
main > section.section:not(.hero) > .wrap, main > section.legal > .wrap, footer.closing > .wrap { height: auto !important; }
main > section#how.section { padding-top: 88px; padding-bottom: 88px; }
@media (max-width: 1023px) { main > section.section:not(.hero), footer.closing { padding-top: 72px; padding-bottom: 72px; } main > section#how.section { padding-top: 72px; padding-bottom: 72px; } }
@media (max-width: 639px) { main > section.section:not(.hero), footer.closing { padding-top: 56px; padding-bottom: 56px; } main > section#how.section { padding-top: 56px; padding-bottom: 56px; } }
footer.closing .closing__links { margin-top: 72px; }

/* первый экран: h1 в 2-3 строки */
.hero--split .hero__text h1 { font-size: clamp(34px, 2.1vw + 22px, 58px); line-height: 1.06; letter-spacing: -0.035em; max-width: 15ch; }
.nw { white-space: nowrap; }
.hero__chip { display: inline-flex; align-items: center; gap: 8px; align-self: start; margin: 0 0 20px; padding: 7px 14px 7px 10px; border-radius: 999px; font: 500 14px/1 var(--font-text); color: var(--p-ink); background: color-mix(in srgb, var(--p-surface) 80%, transparent); box-shadow: inset 0 0 0 1px rgb(31 27 24 / .08); }
.hero__chip-ic { width: 18px; height: 18px; color: var(--p-accent-text, var(--p-accent)); }
html[data-app] .hero--split .hero__text h1 { max-width: none; }
.h1-ic { display: inline-block; width: .92em; height: .92em; margin: 0 .24em 0 0; border-radius: 22%; vertical-align: -.12em; box-shadow: 0 1px 0 rgb(0 0 0 / .06), 0 10px 22px -10px rgb(0 0 0 / .35); }
@media (max-width: 639px) { .hero__chip { font-size: 13px; margin-bottom: 14px; } }

/* логотип */
.logo { gap: 10px; color: var(--p-ink); text-decoration: none; }
.nav__logo .logo-mark, .logo-mark { width: 34px; height: 34px; flex: none; border-radius: 10px; box-shadow: 0 6px 16px -8px rgb(60 40 200 / .55); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.05); }
.logo-word { font: 700 23px/1 var(--font-display); letter-spacing: -0.045em; }
.logo-word b { font-weight: 700; background: linear-gradient(90deg, #6a3df0, #2563eb 60%, #10b981); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer .logo, .ground-inverse .logo { color: var(--p-inv-ink); }
.footer .logo-word b { background: linear-gradient(90deg, #a88bff, #6aa1ff 60%, #3ddc9a); -webkit-background-clip: text; background-clip: text; }
@media (max-width: 639px) { .nav__logo .logo-mark { width: 30px; height: 30px; } .logo-word { font-size: 21px; } }

/* безопасность: иконки без подложек, строки с линейками */
.safe-list { gap: 0; }
.safe-list li { grid-template-columns: 32px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid rgb(31 27 24 / .1); }
.safe-list li:last-child { border-bottom: 1px solid rgb(31 27 24 / .1); }
.safe-list__ic, html:not([data-app]) .safe-list li .safe-list__ic, html[data-app] .safe-list__ic { width: 30px; height: 30px; padding: 0; border-radius: 0; background: none !important; margin-top: 1px; }
.safe-list__ic svg { stroke-width: 1.6; }
html[data-app="tbank"] .safe-list__ic { color: #141414; }

/* SEO-блок с проблемой */
.seo .seo__text h2 { margin-bottom: 24px; max-width: 20ch; }
.seo .seo__text p { max-width: 62ch; color: var(--p-muted); font-size: 17px; line-height: 1.6; }
.seo .seo__text p + p { margin-top: 16px; }
.seo__aside { align-self: start; padding: 28px; border-radius: 22px; background: color-mix(in srgb, var(--p-surface) 70%, var(--p-bg)); box-shadow: inset 0 0 0 1px rgb(31 27 24 / .06); }
.seo__label { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 600 15px/1.2 var(--font-text); color: var(--p-ink); }
.seo__label-ic { width: 18px; height: 18px; color: var(--p-accent-text, var(--p-accent)); }
.seo__pains { display: grid; gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.seo__pains li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; line-height: 1.4; color: var(--p-ink); }
.seo__ic { width: 20px; height: 20px; padding: 3px; box-sizing: border-box; border-radius: 50%; background: var(--p-accent); color: var(--p-accent-ink); }
.seo__ic svg { stroke-width: 3; }
html[data-app="tbank"] .seo__ic { background: #ffdd2d; color: #141414; }
.seo__aside .btn { width: 100%; justify-content: center; }
@media (max-width: 1023px) { .seo__text, .seo__aside { grid-column: 1 / -1; } .seo__aside { margin-top: 32px; } }
@media (max-width: 639px) { .seo__aside { padding: 22px; } .seo .seo__text p { font-size: 16px; } }

/* FAQ: заголовок сверху, вопросы в два столбца */
.faq-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 48px; align-items: end; margin-bottom: 40px; }
.faq-head h2 { margin: 0; }
.faq-head p { margin: 0; color: var(--p-muted); }
.faq--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.faq--cols > .faq__item:nth-child(2) { padding-top: 0; }
@media (max-width: 1023px) { .faq-head { grid-template-columns: 1fr; margin-bottom: 28px; } }
@media (max-width: 767px) { .faq--cols { grid-template-columns: minmax(0, 1fr); } .faq--cols > .faq__item:nth-child(2) { padding-top: var(--s-4); } }
.peers { margin-top: 48px; }

/* заметка у кнопки оплаты */
.shop__note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* документы */
main > section.legal { padding-top: calc(var(--nav, 64px) + 56px); }
.legal__grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal__side { position: sticky; top: calc(var(--nav, 64px) + 24px); display: grid; gap: 10px; font-size: 14px; }
.legal__side ul, .legal__toc { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.legal__side a { color: var(--p-muted); text-decoration: none; }
.legal__side a:hover, .legal__side a[aria-current] { color: var(--p-ink); }
.legal__side a[aria-current] { font-weight: 600; }
.legal__doc { max-width: 760px; }
.legal__doc h1 { font-size: clamp(32px, 2vw + 20px, 48px); margin: 0 0 16px; }
.legal__lead { font-size: 18px; color: var(--p-muted); margin: 0 0 32px; }
.legal__doc h2 { font-size: 22px; margin: 36px 0 12px; scroll-margin-top: calc(var(--nav, 64px) + 24px); }
.legal__doc p { margin: 0 0 10px; line-height: 1.6; }
.legal__doc a { color: var(--p-accent-text, var(--p-accent)); }
.legal__n { color: var(--p-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 1023px) { .legal__grid { grid-template-columns: 1fr; gap: 24px; } .legal__side { position: static; } .legal__toc { display: none; } }
main > section.legal > .wrap.legal__grid { display: grid; }

/* =========================================================
   v10: иконки FAQ без подложек, паттерн-сетка, крошки, окно вопроса
   ========================================================= */
.faq__item { grid-template-columns: 26px minmax(0, 1fr); gap: 14px; }
.faq__ic, html:not([data-app]) .faq__ic, html[data-app] .faq__ic { width: 24px; height: 24px; padding: 0; border-radius: 0; background: none !important; margin-top: 6px; }
.faq__ic svg { stroke-width: 1.7; }
html[data-app="tbank"] .faq__ic { color: #141414; }
@media (max-width: 639px) { .faq__item { grid-template-columns: 22px minmax(0, 1fr); gap: 12px; } .faq__ic { width: 22px; height: 22px; } }

/* паттерн: тонкая сетка линий вместо точек, тает к краям */
main#top::before {
  background:
    radial-gradient(48% 42% at 82% 18%, var(--mesh-1, transparent), transparent 70%),
    radial-gradient(36% 34% at 8% 4%, var(--mesh-2, transparent), transparent 70%),
    radial-gradient(30% 30% at 50% 70%, var(--mesh-3, transparent), transparent 70%),
    linear-gradient(rgb(28 26 36 / .055) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgb(28 26 36 / .055) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(120% 75% at 50% 0%, #000 45%, transparent 85%);
  mask-image: radial-gradient(120% 75% at 50% 0%, #000 45%, transparent 85%); }
#how::before {
  background:
    linear-gradient(rgb(28 26 36 / .05) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgb(28 26 36 / .05) 1px, transparent 1px) 0 0 / 56px 56px; }

/* крошки: текущая страница выделена */
.app-crumbs a { text-decoration: none; transition: color .2s; }
.app-crumbs a:hover { color: var(--p-ink); }
.app-crumbs li[aria-current] { font-weight: 600; color: var(--p-ink); }

/* кнопка-ссылка «Задать вопрос» */
.link--btn { padding: 0; border: 0; background: none; font: inherit; color: var(--p-ink); cursor: pointer; }
.footer__ask { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.footer__ask:hover { text-decoration: underline; }

/* окно вопроса */
.ask { width: min(480px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 32px; border: 0; border-radius: 24px; background: var(--p-bg); color: var(--p-ink); box-shadow: 0 30px 80px -20px rgb(20 16 40 / .45); }
.ask::backdrop { background: rgb(20 18 30 / .45); backdrop-filter: blur(4px); }
.ask[open] { animation: ask-in .25s cubic-bezier(.2,.8,.2,1); }
@keyframes ask-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.ask h2 { margin: 0 0 8px; font-size: 28px; }
.ask__lead { margin: 0 0 22px; color: var(--p-muted); font-size: 15px; line-height: 1.45; }
.ask__x { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 36px; height: 36px; padding: 8px; border: 0; border-radius: 50%; background: var(--p-surface); color: var(--p-ink); cursor: pointer; }
.ask__x svg { width: 100%; height: 100%; }
.ask__form { display: grid; gap: 14px; }
.ask__field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.ask__field input, .ask__field textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid rgb(31 27 24 / .16); border-radius: 12px; background: #fff; font: 400 16px/1.4 var(--font-text); color: var(--p-ink); resize: vertical; }
.ask__field input:focus, .ask__field textarea:focus { outline: 2px solid var(--p-accent); outline-offset: 1px; border-color: transparent; }
.ask__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ask__form .btn { justify-content: center; }
.ask__status { margin: 0; min-height: 1.2em; font-size: 14px; color: var(--p-muted); }
.ask__done p { margin: 0 0 18px; font-size: 16px; line-height: 1.5; }
@media (max-width: 639px) { .ask { padding: 24px 20px; } .ask h2 { font-size: 24px; } }
