@import url("tokens.bec660d6886a.css");

/* Сайт — одна колонка телефона, как в макете `design/html/nikper-*.html`.
   Числа сняты с макета как есть. Базовые правила — мобильный вариант (во весь
   экран), шире 520px — десктопный: та же колонка в тонкой скруглённой рамке,
   подвал под ней.

   В макете сайт — одна страница с внутренним скроллером. Здесь у каждого
   раздела свой адрес и прокручивается само окно: липкие вкладки держатся на
   `overflow: clip` у колонки, который, в отличие от `hidden`, не делает её
   контейнером прокрутки. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 15px/1.37 var(--font);
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
img { max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* --- шапка, переключатель продуктов, вкладки ------------------------------------ */

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: calc(var(--top) + env(safe-area-inset-top, 0px)) 20px 0 var(--g);
}
.top .logo { display: block; flex: 1 1 0; min-width: 0; max-width: 139px; line-height: 0; }
.top .logo svg { display: block; width: 100%; height: auto; }
.switch { display: flex; flex: none; gap: 6px; }
.pill {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 17px;
    border: 1px solid var(--ink);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.pill.on { background: var(--ink); color: var(--paper); }
.tabs {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    gap: 28px;
    margin-top: 6px;
    padding: 0 var(--g);
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 13px 0 12px; font-size: 14px; line-height: 19px; text-decoration: none; white-space: nowrap; }
.tab[aria-current] { font-weight: 700; }

/* --- общая типографика раздела ----------------------------------------------------- */

.view { padding: 38px var(--g) 0; }
.eyebrow { font-size: 20px; line-height: 24px; font-weight: 500; color: var(--muted); }
h1 { margin-top: 32px; font-size: 38px; line-height: 40px; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.lead { margin-top: 24px; font-size: 16px; line-height: 21px; }
h2 { margin-top: 38px; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; }
h2.flush { margin-top: 0; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 48px calc(var(--g) * -1) 34px; }

/* --- тарифы и списки со значками ----------------------------------------------------- */

.plan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 16px -4px 0;
    padding: 22px 21px;
    background: var(--card);
    border-radius: 16px;
}
hr + .plan { margin-top: 0; }
.plan > div { min-width: 0; max-width: 200px; }
.plan h3 { font-size: 15px; line-height: 20px; font-weight: 600; }
.plan p { margin-top: 5px; font-size: 13px; line-height: 18px; }
.plan strong { flex: none; font-size: 18px; line-height: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sub { margin-top: 32px; font-size: 15px; line-height: 20px; font-weight: 600; }
.feat { display: grid; gap: 26px; margin-top: 32px; }
.feat li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 9px; align-items: center; font-size: 15px; line-height: 20.5px; }
.feat b { font-weight: 600; }
.feat.sm { gap: 23px; margin-top: 28px; }
.feat.sm li { font-size: 13px; line-height: 18px; }
.feat.sm li > div { max-width: 265px; }
.ic { display: block; }
.body { margin-top: 16px; font-size: 15px; line-height: 20px; }
.cta {
    display: inline-grid;
    place-items: center;
    margin-top: 24px;
    width: 163px;
    height: 40px;
    border-radius: 20px;
    background: var(--ink);
    color: var(--paper);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .15s;
}
.cta:active { transform: scale(.97); }

/* --- вопросы и ответы ------------------------------------------------------------------ */

.faq { display: grid; gap: 19px; margin-top: 30px; font-size: 15px; line-height: 19.5px; }
.qa h3 { font-size: 15px; line-height: 19.5px; font-weight: 700; }
.qa { scroll-margin-top: 60px; }
.qa.flash h3 { background: var(--yellow); box-shadow: 0 0 0 3px var(--yellow); }
.x { text-decoration: underline; text-underline-offset: 2px; }
.mail { display: inline; text-decoration: underline; text-underline-offset: 2px; text-align: left; font-weight: inherit; user-select: text; -webkit-user-select: text; }
.chips { display: flex; gap: 8px; margin: 26px calc(var(--g) * -1) 0; padding: 2px var(--g); overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: none;
    height: 38px;
    padding: 0 22px;
    border-radius: 19px;
    border: 1px solid var(--rule);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* --- врезки, абзацы, документы ------------------------------------------------------------ */

.notice { margin-top: 26px; padding: 17px 20px; border: 1px solid var(--yellow); border-radius: 14px; font-size: 16px; line-height: 21px; }
.notice b, .prose b, .body b { font-weight: 700; }
#v-fb-legal .body { margin-top: 24px; font-size: 16px; line-height: 21px; }
.dots { margin-top: 0; padding-left: 22px; list-style: disc; }
.prose { display: grid; gap: 21px; font-size: 16px; line-height: 21px; }
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 0; margin-top: 24px; font-size: 16px; line-height: 21px; }
.docs a { padding: 2px 0; text-underline-offset: 2px; }

/* --- обзор Penbot ---------------------------------------------------------------------------- */

#v-overview hr { margin: 38px calc(var(--g) * -1) 40px; }
#v-overview h2 { margin-top: 0; }
.ov-brand { margin-top: 60px; display: grid; justify-items: start; gap: 7px; color: var(--logo); }
.ov-brand svg { display: block; max-width: 100%; height: auto; }
.ov-brand p { color: var(--ink); font-size: 14px; line-height: 19px; font-weight: 600; }
.ov-text { display: grid; gap: 20px; margin-top: 62px; font-size: 15px; line-height: 20.5px; }
.ov-p { margin-top: 27px; font-size: 15px; line-height: 20.5px; }
.ov-p.first { margin-top: 22px; }
.ov-p.team-p { margin-top: 32px; }
.feat.how { gap: 18px; margin-top: 28px; }
.feat.how li { font-weight: 600; }
.feat.safe { margin-top: 30px; }
.core { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 22px -6px 0 -9px; background: var(--card); border-radius: 20px; }
.core div { display: grid; justify-items: center; gap: 20px; padding: 40px 8px 16px; }
.core p { font-size: 14px; line-height: 19px; font-weight: 600; text-align: center; }
.sk-wrap { display: grid; gap: 9px; margin: 36px calc(var(--g) * -1) 0; }
.sk-wrap.lib { gap: 5px; margin-top: 21px; }
.sk-row { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; user-select: none; -webkit-user-select: none; }
.sk-wrap.lib .sk-row { gap: 5px; }
.sk-row::-webkit-scrollbar { display: none; }
.sk { flex: none; white-space: nowrap; display: flex; align-items: center; height: 46px; padding: 0 27px; border-radius: 23px; background: var(--card); font-size: 15px; }
#v-overview .notice { margin-top: 25px; font-size: 15px; line-height: 20px; }
.tag { flex: none; white-space: nowrap; display: flex; align-items: center; gap: 5px; height: 45px; padding: 0 23px 0 19px; border-radius: 23px; background: var(--card); font-size: 15px; }
.tag i { flex: none; width: 15px; font-style: normal; font-size: 13px; line-height: 1; text-align: center; }
#v-overview .big { margin-top: 54px; font-size: 38px; line-height: 40px; font-weight: 600; letter-spacing: -.02em; }
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px 12px; margin-top: 31px; }
.person { min-width: 0; font-size: 14px; line-height: 20px; }
.person b { font-weight: 600; }
.person p { margin-top: 9px; }
.ava { width: 81px; height: 81px; margin-left: -4px; padding: 3px; border: 1px solid var(--rule); border-radius: 24px; }
.ava img { display: block; width: 73px; height: 73px; border-radius: 20px; object-fit: cover; }
.ava span { display: grid; place-items: center; width: 73px; height: 73px; border-radius: 20px; background: var(--card); color: var(--initial); font-size: 28px; font-weight: 700; letter-spacing: .01em; }

/* --- FineButton ---------------------------------------------------------------------------------- */

.store {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    height: 46px;
    padding: 0 24px 0 18px;
    border-radius: 23px;
    background: var(--ink);
    color: var(--paper);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -.01em;
    text-decoration: none;
}
.store svg { margin-top: -3px; }
#v-fb-download .lead b { font-weight: 700; }
/* Номера шагов — счётчик: порядок задаёт редактор, а цифра следует за ним. */
.steps { display: grid; margin: 14px calc(var(--g) * -1) 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { padding: 30px var(--g) 32px; counter-increment: step; }
.steps .sh { display: flex; align-items: center; gap: 14px; }
.steps li + li { border-top: 1px solid var(--rule); }
.steps .n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--card); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.steps .n::before { content: counter(step); }
.steps h3 { font-size: 24px; line-height: 44px; font-weight: 600; letter-spacing: -.01em; }
.steps p { margin-top: 16px; font-size: 16px; line-height: 23px; }
.fbs .mh { display: flex; align-items: center; gap: 20px; margin-top: 44px; }
hr + .fbs .mh { margin-top: 0; }
.fbs .mh img { display: block; height: 30px; width: auto; }
#v-fb-sounds .fbs h2 { margin: 0; font-size: 28px; line-height: 34px; }
.panel { display: block; width: 100%; height: auto; margin-top: 26px; border-radius: 18px; background: var(--card); }
.fb-txt { margin-top: 26px; font-size: 16px; line-height: 23px; }
.appicon { display: inline-grid; justify-items: center; gap: 6px; margin: 36px 0 0; }
.appicon img { display: block; width: 113px; height: 113px; }
.appicon figcaption { font-size: 15px; line-height: 20px; font-weight: 600; }
.fb-prose { margin-top: 34px; font-size: 16px; line-height: 23px; }
.fb-prose.fb-more { margin-top: 20px; }

/* --- «Next»: карточка следующего раздела, её тянут дальше вниз --------------------------- */

.next {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    margin: 72px var(--g) 0;
    padding: 20px 22px;
    border: 1px solid var(--rule);
    border-radius: 18px;
    text-decoration: none;
    overflow: hidden;
    --pull: 0;
}
.next-k { grid-column: 1; font-size: 13px; line-height: 18px; color: var(--muted); font-weight: 500; }
.next-t { grid-column: 1; font-size: 20px; line-height: 26px; font-weight: 600; }
.next-a { grid-column: 2; grid-row: 1 / span 2; font-size: 22px; transform: translateX(calc(var(--pull) * 6px)); }
.next-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--pull) * 100%); background: var(--yellow); }
.next.ready { border-color: var(--yellow); }
@media (hover: hover) { .next:hover { background: var(--card); } }

/* --- документ ------------------------------------------------------------------------------- */

.pnote { margin-top: 28px; padding: 12px 14px; border: 1px dashed var(--muted); border-radius: 10px; font-size: 13px; line-height: 18px; color: var(--note); }
.doc { margin-top: 32px; font-size: 16px; line-height: 23px; overflow-wrap: anywhere; }
.doc > * + * { margin-top: 18px; }
.doc > .pnote { margin-top: 0; }
.doc .doc-meta { margin: 0 0 30px; padding: 30px 24px; font-size: 17px; line-height: 23px; }
.doc a { text-underline-offset: 2px; }
.doc h2 { margin-top: 40px; font-size: 20px; line-height: 26px; }
.doc h3 { margin-top: 24px; font-size: 16px; line-height: 22px; font-weight: 700; }
.doc ul { padding-left: 20px; list-style: disc; display: grid; gap: 6px; }
.doc li b { font-weight: 600; }
.doc hr { margin: 40px calc(var(--g) * -1) 0; }
.doc hr + h2 { margin-top: 40px; font-size: 24px; line-height: 30px; letter-spacing: -.01em; }
.doc .doc-meta + hr { margin-top: 0; }
.doc .mail { font-weight: 600; }
.back { display: inline-block; margin-top: 24px; padding: 4px 0; font-size: 15px; font-weight: 600; text-decoration: none; }

/* --- лэндинг компании ---------------------------------------------------------------------------- */

#v-company .manifest { margin: 0; font-size: 40px; line-height: 41.5px; text-wrap: wrap; }
.picks { display: grid; gap: 10px; margin-top: 40px; }
.pick {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 26px;
    border: 1px solid var(--ink);
    border-radius: 32px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .15s, background .15s;
}
@media (hover: hover) { .pick:hover { background: var(--card); } }
.pick:active { transform: scale(.98); }
.pick svg { display: block; flex: none; }
.contacts { display: grid; gap: 33px; margin: 56px 0 0; font-size: 16px; line-height: 19px; scroll-margin-top: 24px; }
.contacts b { font-weight: 700; }
.contacts .mail { font-size: 16px; }

/* --- подвал и всплывающая подсказка --------------------------------------------------------------- */

.foot {
    margin-top: 96px;
    padding: 22px 16px calc(38px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--rule);
    text-align: center;
    font-size: 13.5px;
    line-height: 19px;
}
.foot nav { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; padding: 2px 0; }
.foot i { font-style: normal; }
.foot p { margin-top: 24px; }
.toast {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 30;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--ink);
    color: var(--paper);
    font-size: 13px;
    line-height: 18px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .18s, transform .18s;
    pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }

/* --- десктопный вариант: колонка в тонкой скруглённой рамке, подвал под ней ------------------------ */

@media (min-width: 520px) {
    :root { --top: 40px; }
    .site {
        width: min(430px, calc(100% - 24px));
        margin: 24px auto 0;
        border: 1.5px solid var(--outline);
        border-radius: 40px;
        overflow: clip;
    }
    main { padding-bottom: 48px; }
    .foot { margin-top: 0; padding: 20px 16px 40px; border-top: 0; }
    .toast { left: max(16px, calc(50% - 199px)); right: max(16px, calc(50% - 199px)); }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
