/* Чтение документов: оглавление и раздел без закреплённой шапки. */
.platform-rules-overlay{background:#f6f8ff;background-image:radial-gradient(ellipse at 15% 15%,#eef3ff 0,transparent 50%);color:#1d2540}
.platform-rules-screen{display:block;width:min(100%,1440px);padding:28px clamp(18px,3.2vw,46px) 64px}
.platform-rules-header{position:static;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:16px;padding:0;border:0;background:transparent}.platform-rules-header .platform-document-nav{grid-column:1;grid-row:1;min-width:0}
.platform-rules-header .platform-rules-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:1fr;align-items:stretch;gap:10px;min-width:0}
.platform-rules-header .platform-rules-tab{display:flex;align-items:center;align-self:stretch;width:100%;height:100%;max-width:none;margin:0;min-height:68px;padding:12px 14px;border:1px solid #dce4f5;border-radius:18px;background:#ffffffb8;color:#536580;font-size:12.5px;line-height:1.4;font-weight:800;text-align:left;overflow-wrap:normal}
.platform-rules-header .platform-rules-tab.is-active{border-color:#187bff;background:linear-gradient(140deg,#298cff,#0870ff);color:#fff;box-shadow:0 5px 16px #247bff16}
.platform-rules-header [data-platform-rules-close]{grid-column:2;grid-row:1;float:none;width:auto;min-width:96px;margin:0;border-radius:16px;background:#fff9}
.document-hero{position:relative;isolation:isolate;display:grid;gap:16px;padding:42px 0 24px;margin-bottom:26px;overflow:hidden}
.document-hero-main{position:relative;z-index:1;display:flex;align-items:flex-start;gap:22px;min-width:0}
.document-title-icon{display:grid;place-items:center;flex:none;width:78px;height:78px;border:1px solid #d8e7ff;border-radius:23px;background:linear-gradient(145deg,#dbeaff,#eff5ff);color:#167bff}
.document-title-icon svg{width:42px;height:42px}
.document-hero h1{max-width:900px;margin:0;color:#1c2340;font-size:clamp(28px,3.5vw,46px);font-weight:800;line-height:1.12;letter-spacing:-1.4px;overflow-wrap:break-word}
.document-edition{margin:16px 0 0;color:#6b7d98;font-size:16px;line-height:1.5}
.document-hero-waves{position:absolute;right:-50px;bottom:0;z-index:-1;width:min(46%,480px);height:230px;opacity:.85;mask-image:linear-gradient(#000 45%,transparent);pointer-events:none}
.document-actions{position:relative;z-index:1;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px}
.document-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:46px;padding:11px 18px;border:1px solid #bdd2ff;border-radius:18px;background:#ffffffd9;color:#1474f5;font-size:14px;text-decoration:none}
.document-layout{display:grid;grid-template-columns:270px minmax(0,1fr);align-items:start;gap:24px;scroll-margin-top:24px}
.document-toc,.document-card{min-width:0;border:1px solid #edf1fa;border-radius:26px;background:#ffffffeb;box-shadow:0 5px 18px #47669f05}
.document-toc{position:sticky;top:20px;max-height:calc(100dvh - 40px);overflow:auto;align-self:start;padding:22px 18px}
.document-toc summary{list-style:none;cursor:pointer;font-size:23px;font-weight:800;color:#1c2340;line-height:1.3;padding:0 4px;min-height:36px}
.document-toc summary::-webkit-details-marker{display:none}
.document-toc nav{display:grid;gap:7px;margin-top:18px}
.document-toc button{width:100%;min-height:44px;padding:12px;border:0;border-radius:12px;background:transparent;color:#485a75;text-align:left;font:inherit;font-size:15px;line-height:1.5;cursor:pointer;overflow-wrap:anywhere}
.document-toc button[aria-current]{background:#e8f0ff;color:#0874ff;font-weight:800}
.document-toc button:hover{background:#f0f5ff}
.document-card{padding:32px 34px 24px}
.document-card .platform-rules-body{display:block;max-width:none;min-height:0;outline-offset:8px}
.document-card .platform-rules-body h2{margin:0 0 24px;font-size:clamp(25px,2.4vw,34px);font-weight:800;line-height:1.2;color:#1c2340;letter-spacing:-.7px}
.document-card .platform-rules-body h2:focus{outline:none}
.document-card .platform-rules-body p,.document-card .platform-rules-body li{color:#485875;font-size:17px;line-height:1.8}
.document-card .platform-rules-body p{margin:0 0 18px}
.document-card .platform-rules-body ul{margin:16px 0;padding-left:24px}
.document-card .platform-rules-body code{font-size:.93em;overflow-wrap:anywhere;white-space:normal}
.document-pagination{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:32px;padding-top:28px;border-top:1px solid #e2e8f5}
.document-pagination .btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:46px;padding:12px 18px;border-radius:16px;font-size:14px}
.document-pagination .btn:disabled{opacity:.45;cursor:default;box-shadow:none;transform:none}
.document-section-count{margin:16px 0 0;text-align:right;color:#71809a;font-size:12px}
.document-print-content{display:none}
@media(max-width:1024px){.document-layout{grid-template-columns:230px minmax(0,1fr);gap:18px}.document-card{padding:26px}.document-toc{padding:20px 14px}.document-hero h1{font-size:36px}.document-title-icon{width:66px;height:66px}.platform-rules-header .platform-rules-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.platform-rules-screen{padding:18px 16px 40px}.platform-rules-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}.platform-rules-header .platform-rules-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;grid-row:auto;grid-auto-rows:1fr;align-items:stretch;font-size:inherit}.platform-rules-header .platform-rules-tab{width:100%;max-width:none;margin:0;padding:10px 11px;border-radius:14px;font-size:11px;line-height:1.45;overflow-wrap:break-word;min-height:72px}.platform-rules-header [data-platform-rules-close]{float:none;justify-self:end;grid-row:1;grid-column:2;margin:0;min-width:90px;min-height:44px}.platform-rules-header .platform-document-nav{grid-column:1/-1;grid-row:2}.document-hero{padding:30px 0 12px;gap:22px;margin-bottom:20px}.document-hero-main{gap:14px}.document-title-icon{width:46px;height:50px;border-radius:14px}.document-title-icon svg{width:27px;height:27px}.document-hero h1{font-size:clamp(24px,5.8vw,32px);letter-spacing:-.6px;line-height:1.17}.document-edition{margin-top:12px;font-size:13px}.document-actions{justify-content:flex-start;gap:8px}.document-actions .btn{flex:1;padding:10px 11px;font-size:12px;border-radius:14px;gap:7px;white-space:normal}.document-actions svg{flex:none;width:19px;height:19px}.document-hero-waves{width:66%;height:150px;opacity:.5}.document-layout{grid-template-columns:minmax(0,1fr);gap:14px}.document-toc{padding:16px 18px;border-radius:20px}.document-toc summary{display:flex;align-items:center;justify-content:space-between;min-height:30px;font-size:19px}.document-toc summary::after{content:'⌄';color:#1c7dff}.document-toc[open] summary::after{content:'⌃'}.document-toc nav{margin-top:12px;gap:4px}.document-toc button{width:100%;font-size:14px;padding:10px}.document-card{padding:24px 20px 20px;border-radius:22px}.document-card .platform-rules-body{min-height:0}.document-card .platform-rules-body h2{font-size:25px;margin-bottom:20px}.document-card .platform-rules-body p,.document-card .platform-rules-body li{font-size:14px;line-height:1.8}.document-pagination{margin-top:24px;padding-top:20px;gap:10px}.document-pagination .btn{flex:1;padding:10px;gap:6px;font-size:12px;white-space:normal}.document-pagination svg{flex:none;width:17px;height:17px}.document-section-count{margin-top:12px}}
@media print{
 @page{size:A4;margin:18mm}
 body.is-rules-open{overflow:visible!important;background:#fff!important}
 body.is-rules-open>*{display:none!important}
 body.is-rules-open>.platform-rules-overlay{display:block!important;position:static!important;overflow:visible!important;background:#fff!important;color:#111}
 .platform-rules-screen{width:auto!important;min-height:0!important;margin:0!important;padding:0!important}
 .platform-rules-header,.document-hero,.document-layout{display:none!important}
 .document-print-content{display:block!important;color:#111;font-size:11pt;line-height:1.55}
 .document-print-content h1{font-size:22pt;line-height:1.2;margin:0 0 18pt}
 .document-print-content h2,.document-print-content h3{break-after:avoid;font-size:14pt;margin:18pt 0 10pt}
 .document-print-content p,.document-print-content li{orphans:3;widows:3}
 .document-print-content code{white-space:normal;overflow-wrap:anywhere;font-size:.95em}
}
.document-audience{margin:0 0 10px;color:#6c7d97;font-size:12px;line-height:1.5;font-weight:700}
.platform-rules-header>.platform-document-nav{display:block;min-width:0}
@media(max-width:760px){.platform-rules-header>.platform-document-nav{grid-row:2;grid-column:1/-1}.platform-rules-header .platform-rules-tabs{grid-row:auto}.document-audience{margin-bottom:10px}}
.document-role-note{margin:0 0 24px;padding:16px 20px;border:1px solid #dbe7fb;border-radius:16px;background:#edf4ff;color:#4a5f7c;font-size:14px;line-height:1.6}
@media print{.document-role-note{display:none!important}}

.document-section{scroll-margin-top:24px;outline:none}.document-section+.document-section{margin-top:36px;padding-top:32px;border-top:1px solid #e2e8f5}.document-toc-single button{margin:0}.document-toc-single{padding:18px}.document-section>p:first-child{margin-top:0}
@media(max-width:760px){.platform-rules-header{position:relative;display:block}.platform-rules-header [data-platform-rules-close]{position:absolute;top:0;right:0}.platform-rules-header .document-audience{display:flex;align-items:center;min-height:44px;padding-right:108px}.document-toc{position:static;max-height:none;overflow:visible}.document-section+.document-section{margin-top:28px;padding-top:24px}.document-toc-single{padding:14px}}
