/* NIPOS PARTNERS: публичная страница, правила и кабинет. Оформление как у остальных страниц сайта (токены дизайн-системы --np-*, на всю ширину контейнера). */
.ptn { --r-md: var(--np-radius-md, 8px); --r-lg: var(--np-radius-lg, 12px); --f-d: var(--np-font-display, "Days One", sans-serif); --f-s: var(--np-font-sans, -apple-system, "Segoe UI", Roboto, sans-serif);
    display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: none; margin: 0; padding-bottom: 40px; color: var(--np-ink, #f2f2f2); font-family: var(--f-s); }
.ptn * { box-sizing: border-box; }
.ptn, .ptn > *, .ptn-pane > *, .ptn .ptn-card, .ptn .ptn-tablewrap { min-width: 0; max-width: 100%; }
html body .ptn h1, html body .ptn h2, html body .ptn h3 { margin: 0 !important; padding: 0 !important; border: 0 !important; color: var(--np-ink, #f2f2f2) !important; text-transform: none !important; letter-spacing: normal !important; }
html body .ptn p { margin: 0 !important; }
html body .ptn ul { margin: 0 !important; padding: 0 0 0 20px !important; list-style: disc !important; }
html body .ptn li { margin: 0 0 8px !important; padding: 0 !important; font-size: 14px; line-height: 21px; color: var(--np-ink-2, #a6a6a6); }
html body .ptn li::marker { color: var(--np-red, #ff233b); }
html body .ptn a { color: var(--np-ink, #f2f2f2); }
.ptn-eyebrow { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--np-red, #ff233b); }
.ptn-muted { font-size: 14px; line-height: 21px; color: var(--np-ink-2, #a6a6a6); }
.ptn-mute { color: var(--np-ink-3, #7a7a7a); }
.ptn-sub { display: block; margin-top: 2px; font-size: 12px; color: var(--np-ink-3, #7a7a7a); }

/* Заголовок страницы */
.ptn-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 4px 2px 0; }
html body .ptn-head h1, html body .ptn-hero h1 { font-family: var(--f-d) !important; font-size: 28px !important; font-weight: 400 !important; line-height: 34px !important; }
.ptn-head p { margin-top: 4px !important; font-size: 14px; color: var(--np-ink-2, #a6a6a6); }
.ptn-hero { padding: 4px 2px 0; }
html body .ptn-hero h1 { max-width: 820px; font-size: 36px !important; line-height: 44px !important; }
.ptn-hero > p { max-width: 640px; margin-top: 10px !important; font-size: 15px; line-height: 23px; color: var(--np-ink-2, #a6a6a6); }
.ptn-hero__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.ptn-hero--small h1 { font-size: 28px !important; line-height: 34px !important; }
.ptn-hero--small .ptn-btn { margin-top: 14px; }

/* Кнопки */
html body .ptn .ptn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; min-height: 0; padding: 0 22px; border: 0 !important; border-radius: var(--r-md); background: var(--np-red-fill, #e5162e) !important; color: #fff !important; font: 700 14px/1 var(--f-s); text-decoration: none !important; cursor: pointer; white-space: nowrap; transition: background-color .15s ease, transform .1s ease; }
html body .ptn .ptn-btn:hover { background: var(--np-red-fill-hover, #cc1027) !important; }
html body .ptn .ptn-btn:active { transform: scale(.98); }
html body .ptn .ptn-btn:focus { outline: 0; }
html body .ptn .ptn-btn:focus-visible { outline: 2px solid var(--np-ink, #f2f2f2); outline-offset: 2px; }
html body .ptn .ptn-btn[disabled] { opacity: .45; cursor: not-allowed; }
html body .ptn .ptn-btn--sec { background: var(--np-surface-2, #1a1a1a) !important; color: var(--np-ink, #f2f2f2) !important; }
html body .ptn .ptn-btn--sec:hover { background: var(--np-surface-3, #242424) !important; }
html body .ptn .ptn-btn--sm { height: 34px; padding: 0 14px; font-size: 13px; }

/* Карточки */
.ptn-card { padding: 20px; border-radius: var(--r-lg); background: var(--np-surface, #121212); }
html body .ptn-card h2 { margin-bottom: 14px !important; font-family: var(--f-s) !important; font-size: 18px !important; font-weight: 700 !important; line-height: 24px !important; }
html body .ptn-card h3 { margin-bottom: 6px !important; font-size: 15px !important; font-weight: 700 !important; }

/* Плитки: красная цифра, подпись, пояснение — как в статистике рефералов */
.ptn-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ptn-tile { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 16px; border-radius: var(--r-lg); background: var(--np-surface, #121212); }
.ptn-tile b { overflow: hidden; font-family: var(--f-d); font-size: 28px; font-weight: 400; line-height: 34px; text-overflow: ellipsis; white-space: nowrap; color: var(--np-red, #ff233b); }
.ptn-tile b.is-green { color: var(--np-green, #5fc97e); }
.ptn-tile > span:not(.ptn-ic) { font-size: 13px; font-weight: 600; line-height: 18px; color: var(--np-ink, #f2f2f2); }
.ptn-hero__tiles .ptn-tile b { font-size: 24px; line-height: 30px; }
.ptn-ic { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 10px; border-radius: 10px; background: var(--np-red-soft, #2a1215); color: var(--np-red, #ff233b); }
html body .ptn .ptn-ic svg { width: 20px !important; height: 20px !important; fill: currentColor !important; }

/* Шаги / способы заработка */
.ptn-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ptn-step { display: flex; gap: 12px; padding: 14px; border-radius: var(--r-lg); background: var(--np-surface-2, #1a1a1a); }
.ptn-step > b { flex: none; display: grid; width: 28px; height: 28px; place-items: center; border-radius: var(--r-md); background: var(--np-red-soft, #2a1215); color: var(--np-red, #ff233b); font-size: 14px; }
.ptn-step strong { display: block; margin-bottom: 4px; font-size: 14px; }
.ptn-step p { font-size: 13px; line-height: 19px; color: var(--np-ink-2, #a6a6a6); }
.ptn-ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ptn-way { padding: 16px; border-radius: var(--r-lg); background: var(--np-surface-2, #1a1a1a); }
.ptn-way p { font-size: 14px; line-height: 21px; color: var(--np-ink-2, #a6a6a6); }

/* Таблицы */
.ptn-tablewrap { overflow-x: auto; margin: 0 -4px; }
html body .ptn .ptn-table { width: 100%; min-width: 560px; border-collapse: collapse; }
html body .ptn .ptn-table th { padding: 10px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--np-ink-3, #7a7a7a); white-space: nowrap; border: 0 !important; background: transparent !important; }
html body .ptn .ptn-table td { padding: 12px 10px; font-size: 14px; color: var(--np-ink, #f2f2f2); border: 0 !important; border-top: 1px solid var(--np-line, #262626) !important; background: transparent !important; vertical-align: middle; }
html body .ptn .ptn-table tr:hover td { background: var(--np-surface-2, #1a1a1a) !important; }
.ptn-mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.ptn-table .is-red { color: var(--np-red, #ff233b); }

/* Чипы и оповещения */
.ptn-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font: 600 12px var(--f-s); background: var(--np-surface-3, #242424); color: var(--np-ink-2, #a6a6a6); white-space: nowrap; }
.ptn-chip.is-ok { background: var(--np-green-soft, #13261a); color: var(--np-green, #5fc97e); }
.ptn-chip.is-amber { background: var(--np-amber-soft, #2b2011); color: var(--np-amber, #f0a53a); }
.ptn-alert { padding: 12px 16px; border-radius: var(--r-lg); font-size: 14px; line-height: 20px; font-weight: 600; background: var(--np-surface-2, #1a1a1a); }
.ptn-alert.is-ok { background: var(--np-green-soft, #13261a); color: var(--np-green, #5fc97e); }
.ptn-alert.is-err { background: var(--np-red-soft, #2a1215); color: var(--np-red, #ff233b); }
.ptn-alert.is-warn { background: var(--np-amber-soft, #2b2011); color: var(--np-amber, #f0a53a); }

/* Формы */
.ptn-form { display: grid; gap: 14px; max-width: 640px; }
html body .ptn .ptn-form label { display: block; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--np-ink-2, #a6a6a6); }
html body .ptn .ptn-form input[type=text], html body .ptn .ptn-form select, html body .ptn .ptn-form textarea, html body .ptn .ptn-copyrow input { display: block; width: 100%; margin-top: 6px; padding: 0 14px; border: 1px solid var(--np-line, #262626); border-radius: var(--r-md); background: var(--np-surface-2, #1a1a1a); color: var(--np-ink, #f2f2f2); font: 400 14px/1.4 var(--f-s); outline: 0; box-shadow: none; height: 44px; }
html body .ptn .ptn-form textarea { height: auto; min-height: 84px; padding: 11px 14px; resize: vertical; }
html body .ptn .ptn-form input:focus, html body .ptn .ptn-form select:focus, html body .ptn .ptn-form textarea:focus { border-color: var(--np-ink-3, #7a7a7a); }
.ptn-form .ptn-btn { justify-self: start; }
html body .ptn .ptn-form label.ptn-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 19px; }
html body .ptn .ptn-form label.ptn-check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--np-red, #ff233b); }

/* Кабинет: код, вкладки, панели */
.ptn-code { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px 10px 16px; border-radius: var(--r-lg); background: var(--np-surface, #121212); }
.ptn-code small { display: block; width: 100%; font-size: 11px; color: var(--np-ink-3, #7a7a7a); }
.ptn-code b { font-family: var(--f-d); font-size: 22px; font-weight: 400; letter-spacing: .06em; color: var(--np-red, #ff233b); }
.ptn-tabs { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-lg); background: var(--np-surface, #121212); overflow-x: auto; scrollbar-width: none; position: sticky; top: 8px; z-index: 5; }
.ptn-tabs::-webkit-scrollbar { display: none; }
html body .ptn .ptn-tab { display: inline-flex; align-items: center; flex: none; height: 38px; padding: 0 16px; border: 0 !important; border-radius: var(--r-md); background: transparent !important; color: var(--np-ink-2, #a6a6a6) !important; font: 600 14px var(--f-s); cursor: pointer; transition: background-color .15s, color .15s; }
html body .ptn .ptn-tab:hover { background: var(--np-surface-2, #1a1a1a) !important; color: var(--np-ink, #f2f2f2) !important; }
html body .ptn .ptn-tab.is-active { background: var(--np-red-soft, #2a1215) !important; color: var(--np-red, #ff233b) !important; }
html body .ptn .ptn-tab:focus { outline: 0; }
html body .ptn .ptn-tab:focus-visible { outline: 2px solid var(--np-ink, #f2f2f2); outline-offset: -2px; }
.ptn-pane { display: none; flex-direction: column; gap: 16px; }
.ptn-pane.is-active { display: flex; animation: ptnIn .25s ease both; }
@keyframes ptnIn { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .ptn-pane.is-active { animation: none; } }
.ptn-copyrow { display: flex; gap: 8px; align-items: center; }
.ptn-copyrow input { margin-top: 0 !important; font-family: ui-monospace, Menlo, Consolas, monospace !important; font-size: 13px !important; }
.ptn-chart { display: block; width: 100%; height: 150px; }
.ptn-chart rect.is-on { fill: var(--np-red, #ff233b); }
.ptn-chart rect.is-off { fill: var(--np-surface-3, #242424); }
.ptn-chart text { fill: var(--np-ink-3, #7a7a7a); font-size: 11px; }
.ptn-levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 14px; }
.ptn-level { position: relative; overflow: hidden; padding: 14px; border-radius: var(--r-lg); background: var(--np-surface-2, #1a1a1a); }
.ptn-level b { font-family: var(--f-d); font-size: 22px; font-weight: 400; }
.ptn-level span { margin-left: 6px; font-size: 12px; color: var(--np-ink-3, #7a7a7a); }
.ptn-level em { display: block; margin: 6px 0 10px; font-style: normal; font-size: 13px; color: var(--np-ink-2, #a6a6a6); }
.ptn-level i { display: block; height: 4px; border-radius: 999px; background: var(--np-red, #ff233b); }
.ptn-level.is-done i, .ptn-level.is-done b { color: var(--np-green, #5fc97e); background-color: transparent; }
.ptn-level.is-done i { background: var(--np-green, #5fc97e); }
.ptn-level-badge { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .03em; color: var(--lv, #ff233b); background: color-mix(in srgb, var(--lv, #ff233b) 16%, transparent); }

/* FAQ */
.ptn-faq details { margin-bottom: 8px; border-radius: var(--r-lg); background: var(--np-surface-2, #1a1a1a); }
html body .ptn .ptn-faq summary { padding: 14px 16px; font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
.ptn-faq summary::-webkit-details-marker { display: none; }
.ptn-faq summary::after { content: '+'; float: right; color: var(--np-red, #ff233b); font-size: 18px; line-height: 18px; }
.ptn-faq details[open] summary::after { content: '–'; }
.ptn-faq details p { padding: 0 16px 14px !important; font-size: 14px; line-height: 21px; color: var(--np-ink-2, #a6a6a6); }
.ptn-rules h2 { margin-top: 18px !important; }
.ptn-rules h2:first-child { margin-top: 0 !important; }

@media (max-width: 1100px) { .ptn-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ptn-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .ptn-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ptn-hero__tiles { grid-template-columns: minmax(0, 1fr); } .ptn-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
    html body .ptn-hero h1 { font-size: 26px !important; line-height: 32px !important; }
    html body .ptn-head h1 { font-size: 22px !important; line-height: 28px !important; }
    .ptn-card { padding: 16px; }
    .ptn-head { flex-direction: column; align-items: stretch; }
    .ptn-steps, .ptn-ways { grid-template-columns: minmax(0, 1fr); }
    .ptn-tiles { gap: 8px; }
    .ptn-tile { padding: 12px; }
    .ptn-tile b { font-size: 22px; line-height: 28px; }
    .ptn-copyrow { flex-direction: column; align-items: stretch; }
    html body .ptn .ptn-btn { width: 100%; }
    html body .ptn .ptn-btn--sm { width: auto; }
}

/* Хлебные крошки и крупный заголовок страницы — как у «Инвентаря», FAQ и остальных страниц */
.ptn-crumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 13px; line-height: 18px; color: var(--np-ink-3, #7a7a7a); }
.ptn-crumbs i { font-style: normal; opacity: .7; }
html body .ptn .ptn-crumbs a { color: var(--np-ink-2, #a6a6a6); text-decoration: none; }
html body .ptn .ptn-crumbs a:hover { color: var(--np-ink, #f2f2f2); }
html body .ptn-head h1, html body .ptn-hero h1, html body .ptn-hero--small h1 { font-size: 44px !important; line-height: 52px !important; }
.ptn-head p, .ptn-hero > p { margin-top: 6px !important; font-size: 16px; line-height: 24px; color: var(--np-ink-2, #a6a6a6); }
@media (max-width: 560px) { html body .ptn-head h1, html body .ptn-hero h1, html body .ptn-hero--small h1 { font-size: 28px !important; line-height: 34px !important; } .ptn-head p, .ptn-hero > p { font-size: 14px; line-height: 21px; } }

/* Баннер для стрима */
.ptn-banner { display: flex; justify-content: center; margin-top: 14px; padding: 14px; border-radius: var(--r-lg); background: repeating-conic-gradient(#171717 0 25%, #121212 0 50%) 0 0 / 24px 24px; }
.ptn-banner__video { display: block; width: 100%; max-width: 800px; height: auto; border-radius: 14px; }
.ptn-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Три баннера для стрима */
.ptn-bn { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--np-line, #262626); }
.ptn-bn__head { display: flex; gap: 14px; align-items: flex-start; }
.ptn-bn__head > b { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 35, 59, .14); color: #ff233b; font-weight: 700; }
.ptn-bn__head h3 { margin: 4px 0 4px !important; }
.ptn-bn .ptn-banner { padding: 10px; }
.ptn-bn__frame { display: block; width: 100%; aspect-ratio: 4 / 1; border: 0; background: transparent; pointer-events: none; }
.ptn-bn .ptn-copyrow { margin-top: 10px; }
