/* Inner pages: same paper system as the home, narrow reading column. */
.page{padding-block:clamp(48px,8vw,96px) clamp(64px,9vw,120px)}
.narrow{max-width:780px}
.page h1{font-size:clamp(46px,7.4vw,92px);letter-spacing:-.01em;color:var(--green);margin-bottom:28px}
.page h2{font-size:clamp(30px,3.6vw,44px);margin:52px 0 14px}
.page p,.page li{font-size:17px;line-height:1.7;color:var(--muted)}
.page p+p{margin-top:14px}
.page ul,.page ol{padding-left:1.2em;display:grid;gap:10px;margin:14px 0}
.page li::marker{color:var(--gold)}
.page a:not(.btn){text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:3px;color:var(--ink)}
.page .note{margin-top:28px;padding:18px 22px;border-radius:16px;background:var(--card);color:var(--ink);font-size:15px}
.page .btn{margin-top:44px}
.page .eyebrow{margin-bottom:18px}
.page h2 a{text-decoration:none}.page h2 a:hover{text-decoration:underline}
footer .wrap{display:block}

.narrow.wide{max-width:980px}
.uni-search{display:grid;gap:8px;margin:28px 0 8px;font-size:14px;font-weight:700;color:var(--muted)}
.uni-search input{min-height:56px;font:500 17px var(--sans);padding:0 18px;border:1.5px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink)}
.uni-search input:focus{border-color:var(--gold)}
.uni-none{margin-top:14px;padding:16px 20px;border-radius:14px;background:var(--card);color:var(--ink)}
.page .unis{list-style:none;padding:0;margin:20px 0 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));gap:14px}
.page .uni{border:1px solid var(--line);border-radius:20px;padding:22px;background:var(--surface);display:grid;gap:8px;align-content:start;min-width:0}
.uni[hidden]{display:none}
.uni-abbr{font:600 34px/1 var(--serif);color:var(--green);letter-spacing:.01em}
.page .uni h3{font:700 16px/1.35 var(--sans);color:var(--ink);overflow-wrap:anywhere}
.uni-city{font-size:14px;font-weight:700;color:var(--gold-ink)}
.page .uni p{font-size:14px;line-height:1.55;margin:0}
.uni-link{font-size:14px;overflow-wrap:anywhere}
.uni.gone{background:transparent;border-style:dashed}
.uni.gone h3{font-weight:600;color:var(--muted)}

/* Long words wrap between letters only when they cannot fit at all; headings balance their lines. */
.page{overflow-wrap:break-word}
.page h1,.page h2{text-wrap:balance;hyphens:manual}
.page p,.page li{text-wrap:pretty}
.uni-link{display:inline-flex;align-items:center;min-height:44px}
.uni-abbr:empty{display:none}

/* Legal pages: the date of the edition and a contents list of anchor chips. */
.page .updated{margin:-12px 0 28px;font-size:15px;color:var(--muted)}
.legal-contents{display:flex;flex-wrap:wrap;gap:8px;padding-block:20px;margin:0 0 12px;border-block:1px solid var(--line)}
.page .legal-contents a{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:999px;font-size:15px;color:var(--ink);text-decoration:none;transition:border-color .15s,background-color .15s}
.page .legal-contents a:hover,.page .legal-contents a:focus-visible{border-color:var(--gold);background:var(--card)}
.page h2[id]{scroll-margin-top:96px}
.uni:not(:has(.uni-abbr))::before{content:"";display:block;height:34px}

/* Long Russian words in big headings break by syllable, never mid-letter, and the size fits a phone. */
.page h1{font-size:clamp(34px,9.2vw,78px);hyphens:auto;-webkit-hyphens:auto}
/* A title with a very long word (the privacy policy) is set smaller instead of being broken with a hyphen. */
.page h1.is-long{font-size:clamp(26px,8.2vw,62px);hyphens:manual;-webkit-hyphens:manual}
.page h2{hyphens:auto;-webkit-hyphens:auto}
.page h2 a{display:inline-block;padding-block:4px}
/* Discount list in the terms: name on the left, size on the right, one line each. */
.terms-list{list-style:none;padding:0;margin:8px 0 20px;max-width:640px;border-top:1px solid var(--line)}
.terms-list li{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}
.terms-list b{white-space:nowrap;overflow-wrap:anywhere;font-family:var(--serif);font-weight:600;font-variant-numeric:lining-nums;color:var(--green)}
/* Inner pages: the title opens the page; a trust document is never tilted. */
.page h1{font-size:clamp(38px,10.6vw,78px)}
.page .report{transform:none}
.page .report:hover{transform:none}
/* Inner pages: the title opens the page; a trust document is never tilted. */
.page h1{font-size:clamp(38px,10.6vw,78px)}
.page .report{transform:none}
.page .report:hover{transform:none}
/* Display headings never break mid-word; blog titles are full-height links. */
.page h2,.page h3{hyphens:manual;-webkit-hyphens:manual}
.page .narrow>h2>a{display:inline-block;padding-block:.2em;min-height:44px}
/* The anatomy of a price: rows as the Mini App shows them. */
.calc-rows{list-style:none;margin:20px 0 28px;padding:0;border:1px solid var(--line);border-radius:18px;background:var(--surface);overflow:hidden}
.calc-rows li{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:14px 18px;border-top:1px solid var(--line)}
.calc-rows li:first-child{border-top:0}
.calc-rows b{font-weight:600}
.calc-rows span{color:var(--muted);font-size:15px;text-align:right}
.calc-rows .total{background:var(--deep);color:var(--on-deep)}
.calc-rows .total span{color:inherit;opacity:.8}
@media(max-width:480px){.calc-rows li{flex-direction:column;gap:2px;align-items:flex-start}.calc-rows span{text-align:left}}
.page .calc-rows{padding:0;margin-left:0}
.page .calc-rows li{margin:0;padding:14px 18px}
.page .narrow>h2>a{text-decoration-thickness:1px;text-underline-offset:6px;text-decoration-skip-ink:none}
.calc-rows{max-width:560px}
.sample-link{display:inline-flex;align-items:center;min-height:44px}
.calc-live{display:grid;gap:14px;margin:18px 0 6px}
.calc-live label{display:grid;gap:6px;font-weight:600;font-size:15px}
.calc-live select,.calc-live input{min-height:56px;font:500 17px var(--sans);padding:0 18px;border:1.5px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);width:100%}
.calc-live select:focus-visible,.calc-live input:focus-visible{border-color:var(--gold);outline:3px solid var(--gold);outline-offset:3px}
@media(min-width:720px){.calc-live{grid-template-columns:2fr 1fr 1.4fr;align-items:end}}
.calc-rows .total span{opacity:1;font-size:20px;font-weight:600}
.post-meta{margin:-8px 0 22px;color:var(--muted);font-size:15px}
.calc-status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.calc-live[hidden]{display:none}

/* Focus ring: the dark ink reads on the light theme (the gold one was about 2:1) and on the dark theme alike. */
:focus-visible{outline-color:var(--ink)!important}
/* Long lists sit behind one line; names like ERC-20 never break across lines; sub-headings split the long legal sections. */
.page details{margin:14px 0;padding:0 18px;border:1px solid var(--line);border-radius:16px}
.page summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:10px 0;cursor:pointer;font:600 16px/1.35 var(--sans);color:var(--ink);list-style:none}
.page summary::-webkit-details-marker{display:none}
.page summary::after{content:"+";font-size:24px;font-weight:400;color:var(--muted)}
.page details[open] summary::after{content:"\2212"}
.page details[open] summary{border-bottom:1px solid var(--line)}
.page details ul{margin:14px 0}
.page .nb{white-space:nowrap}
.page h3{margin:26px 0 6px;font-family:var(--sans);font-size:19px;font-weight:600;line-height:1.3;color:var(--ink)}
.page .note li,.page .note p{font-size:15px;line-height:1.6}
.page .note ul{margin:8px 0 0}

/* Blog: the index is a grid of cards; a guide is a calm reading column with a takeaway, two related guides and one call to action. */
.blog-head{max-width:760px;margin-bottom:36px}
.blog-head .lead{margin:16px 0 0;color:var(--muted);font-size:19px;line-height:1.55;max-width:56ch;text-wrap:pretty}
.post-cards{display:grid;gap:16px}
@media(min-width:720px){.post-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}}
@media(min-width:1100px){.post-cards-index{grid-template-columns:repeat(3,minmax(0,1fr))}}
.post-card{position:relative;display:flex;flex-direction:column;gap:10px;padding:22px 22px 18px;border:1px solid var(--line);border-radius:22px;background:var(--surface);transition:transform .3s var(--ease),border-color .3s,box-shadow .3s}
.post-card:hover{transform:translateY(-3px);border-color:var(--gold);box-shadow:0 18px 36px -22px rgb(8 20 14/.45)}
.post-card:focus-within{outline:3px solid var(--ink);outline-offset:3px}
.post-card h2,.post-card h3{margin:0;font-size:clamp(21px,2.4vw,26px);line-height:1.2;text-wrap:balance}
.post-card h2 a,.post-card h3 a{color:var(--ink);text-decoration:none}
.post-card h2 a::after,.post-card h3 a::after{content:"";position:absolute;inset:0;border-radius:inherit}
.post-card h2 a:focus-visible,.post-card h3 a:focus-visible{outline:none}
.post-card p{margin:0;color:var(--muted);font-size:16px;line-height:1.55;text-wrap:pretty}
.post-card .post-cat{color:var(--green-2);font:700 14px/1 var(--sans);letter-spacing:.12em;text-transform:uppercase}
.post-card .post-card-meta{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:12px;font-size:14px}
.post-arrow{color:var(--gold);font-size:20px;line-height:1;transition:transform .3s var(--ease)}
.post-card:hover .post-arrow{transform:translateX(4px)}
@media(prefers-reduced-motion:reduce){.post-card,.post-arrow{transition:none}.post-card:hover{transform:none}.post-card:hover .post-arrow{transform:none}}
.post-back{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:0 0 8px -2px;color:var(--muted);font-size:15px;font-weight:600;text-decoration:none}
.post-back:hover{color:var(--ink)}
.page a.post-back,.page .post-card h2 a,.page .post-card h3 a{text-decoration:none}
.page .post-back:hover span{transform:translateX(-3px)}
.post-back span{display:inline-block;transition:transform .25s var(--ease)}
.post h1{font-size:clamp(36px,9vw,56px);text-wrap:balance}
.post .post-meta{margin:-4px 0 30px}
.post-body p,.post-body li{color:color-mix(in srgb,var(--ink) 86%,var(--bg));font-size:18px;line-height:1.7}
.post-body>p{max-width:62ch;text-wrap:pretty}
.post-body ul,.post-body ol{display:grid;gap:14px;max-width:62ch;margin:22px 0;padding:0;list-style:none}
.post-body li{margin:0}
.post-body ul>li{position:relative;padding-left:26px}
.post-body ul>li::before{content:"";position:absolute;left:4px;top:.72em;width:8px;height:8px;border-radius:50%;background:var(--gold)}
.post-body ol{counter-reset:step}
.post-body ol>li{position:relative;min-height:32px;padding-left:46px;counter-increment:step}
.post-body ol>li::before{content:counter(step);position:absolute;left:0;top:-.08em;display:grid;place-items:center;width:32px;height:32px;border:1.5px solid var(--gold);border-radius:50%;color:var(--ink);font:700 15px var(--sans)}
.post-body li b{font-weight:700}
.post-body>p:last-child{max-width:62ch;margin-top:30px;padding:18px 20px;border-left:3px solid var(--gold);border-radius:6px 16px 16px 6px;background:var(--card);font-size:17px}
@media(max-width:480px){.post-body p,.post-body li{font-size:17px}}
.post-more{margin-top:56px}
.post-more h2{margin:0 0 18px;font-size:clamp(24px,3vw,30px)}
.post-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px 28px;margin-top:48px;padding:28px;border:1px solid var(--line);border-radius:24px;background:var(--surface)}
.post-cta>div{flex:1 1 300px;min-width:0}
.post-cta h2{margin:0 0 6px;font-size:clamp(22px,2.6vw,28px);text-wrap:balance}
.post-cta p{max-width:46ch;margin:0;color:var(--muted);text-wrap:pretty}
.page .post-cta .btn{margin-top:0}
@media(max-width:600px){.post-cta{padding:24px 20px}.page .post-cta .btn{width:100%;justify-content:center}}

/* Guides: section headings, sample records, sources */
.post-body h2{margin:40px 0 0;font-size:clamp(23px,2.8vw,30px);line-height:1.2;text-wrap:balance}
.post-body h2+ul,.post-body h2+ol,.post-body h2+.sample,.post-body h2+p{margin-top:16px}
.post-body .sample{display:grid;gap:14px;max-width:62ch;margin:22px 0;padding:18px 20px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}
.post-body .sample p{margin:0;font-size:16px;line-height:1.55;overflow-wrap:anywhere;text-wrap:balance}
.post-body .sample .kind{display:block;margin-bottom:4px;color:var(--green-2);font:700 12px/1.2 var(--sans);letter-spacing:.1em;text-transform:uppercase}
.post-sources{max-width:62ch;margin-top:40px;padding-top:22px;border-top:1px solid var(--line)}
.post-sources h2{margin:0 0 12px;font-size:20px;line-height:1.3}
.post-sources ul{display:grid;gap:10px;margin:0 0 14px;padding:0;list-style:none}
.post-sources li,.post-sources p{margin:0;color:var(--muted);font-size:15px;line-height:1.55;text-wrap:pretty}
.post-sources a{overflow-wrap:anywhere}
/* Telegram copies of the documents (public/app/docs): no site menu, a row of document links. */
.telegram-doc .top .wrap{flex-wrap:wrap;row-gap:4px;padding-block:8px}
.top .telegram-doc-nav{display:flex;flex-wrap:wrap;gap:0 14px}
.telegram-doc-nav a{display:inline-flex;align-items:center;min-height:44px;color:var(--muted);font-size:15px;text-decoration:none}
.telegram-doc-nav a[aria-current="page"]{color:var(--ink);text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:4px}

@media(max-width:359px){.terms-list b{white-space:normal}}

/* Header account button: «Войти», or the name with a round initial once signed in. */
.btn.account-chip.is-signed{display:inline-flex;align-items:center;gap:10px;padding:4px 16px 4px 4px;max-width:220px}
.account-chip .acct-avatar{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:var(--deep,#12281f);color:var(--lime,#c8f25a);font-weight:700;font-size:16px;line-height:1}
.account-chip .acct-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
@media(max-width:560px){.btn.account-chip.is-signed{max-width:150px}}
