@font-face { font-family: Oranienbaum; src: url(../fonts/oranienbaum-cyr.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; font-display: swap; }
@font-face { font-family: Oranienbaum; src: url(../fonts/oranienbaum-lat.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; font-display: swap; }
@font-face { font-family: Geologica; src: url(../fonts/geologica-cyr.woff2) format('woff2'); font-weight: 100 900; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; font-display: swap; }
@font-face { font-family: Geologica; src: url(../fonts/geologica-lat.woff2) format('woff2'); font-weight: 100 900; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; font-display: swap; }

:root {
  --ivory: #F7F2E7; --paper: #FFFCF5; --sand: #EFE6D3;
  --ink: #17120B; --ink-2: #5E513C; --ink-3: #8A7C64;
  --gold: #B8882C; --gold-hi: #EBCB80; --gold-deep: #7A5A12;
  --crimson: #A3172B; --crimson-deep: #5E0C19;
  --night: #15110B; --night-text: #F3EAD6; --night-muted: #A99D86;
  --line: rgba(23, 18, 11, .13); --line-gold: rgba(184, 136, 44, .4);
  --pad: clamp(16px, 4.4vw, 72px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --serif: Oranienbaum, 'Times New Roman', serif;
  --sans: Geologica, system-ui, -apple-system, sans-serif;
  --hdr: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ivory); color: var(--ink); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scrollbar-color: var(--gold) var(--ivory); }
body { margin: 0; font: 300 17px/1.55 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
::selection { background: rgba(184, 136, 44, .3); }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--ivory); padding: 10px 16px; border-radius: 999px; transition: transform .3s var(--ease); }
.skip:focus { transform: translateY(72px); }

.gold-t { background: linear-gradient(176deg, #E2B95C 6%, #B8882C 38%, #8A6416 60%, #D1A247 82%, #7A5A12 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.h2 { font: 400 clamp(44px, 6.4vw, 104px)/.95 var(--serif); letter-spacing: -.01em; }
.h3 { font: 400 clamp(34px, 3.6vw, 54px)/1 var(--serif); }
.sub { color: var(--ink-2); max-width: 30em; margin-top: 18px; }

/* кнопки */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 450; font-size: 16px; letter-spacing: .01em; overflow: hidden; isolation: isolate; transition: transform .5s var(--ease); white-space: nowrap; }
.btn > * { position: relative; z-index: 1; }
.btn::after { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-110%); transition: transform .9s var(--ease); }
.btn:hover::after { transform: translateX(110%); }
.btn:active { transform: scale(.97); }
.btn--gold { color: var(--ink); background: linear-gradient(180deg, #F3D58C, #D9AC52 55%, #BF8E38); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 12px 26px -14px rgba(122, 90, 18, .8); }
.btn--line { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(23, 18, 11, .3); }
.btn--line::after { background: linear-gradient(100deg, transparent 30%, rgba(184, 136, 44, .25) 50%, transparent 70%); }
.btn--ink { color: var(--ivory); background: var(--ink); }
.btn--ink::after { background: linear-gradient(100deg, transparent 30%, rgba(235, 203, 128, .35) 50%, transparent 70%); }
.btn--inkline { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(27, 21, 12, .35); }
.btn--inkline::after { background: linear-gradient(100deg, transparent 30%, rgba(154, 115, 48, .25) 50%, transparent 70%); }
.btn .ic { width: 20px; height: 20px; }

/* иконки: тонкая линия, прорисовка при появлении, у каждой своё движение */
.ic { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; flex: none; }
.ic--lg { width: 44px; height: 44px; color: var(--gold); stroke-width: 1.3; margin-bottom: 18px; }
.js .ic path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease) calc(var(--i, 0) * 70ms); }
.js .ic.on path { stroke-dashoffset: 0; }
.ic g { transform-box: view-box; }
.ic .fl { transform-origin: 16px 14px; }
.ic.on .fl { animation: flick 2.4s ease-in-out infinite; }
@keyframes flick { 0%, 100% { transform: scale(1, 1) rotate(0); } 30% { transform: scale(.94, 1.08) rotate(-3deg); } 60% { transform: scale(1.04, .95) rotate(2deg); } }
.ic .cn { transform-origin: 16px 4px; }
.ic.on .cn { animation: drop 3.2s var(--ease) infinite; }
@keyframes drop { 0% { transform: translateY(-6px); opacity: 0; } 15% { opacity: 1; } 45% { transform: translateY(9px); opacity: 1; } 55%, 100% { transform: translateY(9px); opacity: 0; } }
.ic .sw { transform-origin: 16px 29px; }
.ic.play .sw { animation: swing .9s var(--ease); }
@keyframes swing { 0% { transform: rotate(0); } 35% { transform: rotate(-24deg); } 70% { transform: rotate(6deg); } 100% { transform: rotate(0); } }
.ic .spk { opacity: 0; }
.ic.play .spk { animation: spk .9s ease-out .25s; }
@keyframes spk { 0%, 100% { opacity: 0; transform: translate(0, 0); } 30% { opacity: 1; } 100% { transform: translate(2px, -2px); } }
.ic .bm { transform-origin: 16px 8px; }
.ic.on .bm { animation: tilt 4s ease-in-out infinite; }
@keyframes tilt { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.ic .gl { transform-origin: 25px 5px; opacity: 0; }
.ic.on .gl { animation: glint 3.4s ease-in-out infinite; }
@keyframes glint { 0%, 70%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 80% { opacity: 1; transform: scale(1) rotate(45deg); } }
.ic .bl { transform-origin: 16px 3px; }
.ic.play .bl { animation: ring 1.2s var(--ease); }
@keyframes ring { 0% { transform: rotate(0); } 20% { transform: rotate(16deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(7deg); } 80% { transform: rotate(-3deg); } 100% { transform: rotate(0); } }
.ic .ld { transform-origin: 5px 15px; }
.ic.play .ld { animation: lid 1.1s var(--ease); }
@keyframes lid { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(-16deg); } }
.ic .pl { transform-origin: 16px 16px; }
.ic.play .pl { animation: fly 1s var(--ease); }
@keyframes fly { 0% { transform: translate(0, 0); opacity: 1; } 45% { transform: translate(10px, -10px); opacity: 0; } 46% { transform: translate(-10px, 10px); opacity: 0; } 100% { transform: translate(0, 0); opacity: 1; } }
.ic .pp { transform-origin: 17px 16px; }
.ic.play .pp { animation: pop .7s var(--ease); }
@keyframes pop { 40% { transform: scale(1.3); } }
.ic .hb { transform-origin: 16px 18px; }
.ic.on .hb { animation: beat 2.2s ease-in-out infinite; }
@keyframes beat { 0%, 40%, 100% { transform: scale(1); } 10% { transform: scale(1.12); } 22% { transform: scale(1.03); } 30% { transform: scale(1.1); } }
.ic .ok { opacity: 0; }
.addr.done .ic .ok { opacity: 1; }
.addr.done .ic .cp { opacity: 0; }
.ic .cp, .ic .ok { transition: opacity .3s; }

/* шапка */
.hdr { position: fixed; z-index: 60; left: 0; right: 0; top: 0; height: var(--hdr); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); }
.hdr::before { content: ''; position: absolute; inset: 0; background: rgba(247, 242, 231, .94); box-shadow: 0 1px 0 var(--line); opacity: 0; transition: opacity .6s var(--ease); }
.hdr.is-solid::before { opacity: 1; }
.menu-open .hdr::before { opacity: 0; }
.brand { position: relative; display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 30px; height: 28px; transition: transform .8s var(--ease); }
.brand:hover .brand__mark { transform: translateY(-2px) rotate(-6deg); }
.brand__name { font: 400 26px/1 var(--serif); letter-spacing: .06em; padding-top: 3px; transition: color .5s; }
.menu-open .brand__name { color: var(--gold-hi); }
.mbtn { position: relative; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 7px 0 18px; border-radius: 999px; background: var(--ink); color: var(--ivory); font-size: 14px; letter-spacing: .04em; transition: background .5s, color .5s; }
.menu-open .mbtn { background: var(--ivory); color: var(--ink); }
.mbtn__t { position: relative; height: 20px; overflow: hidden; display: grid; }
.mbtn__t span { grid-area: 1/1; line-height: 20px; transition: transform .6s var(--ease), opacity .6s; text-align: right; }
.mbtn__t span + span { transform: translateY(100%); opacity: 0; }
.menu-open .mbtn__t span:first-child { transform: translateY(-100%); opacity: 0; }
.menu-open .mbtn__t span + span { transform: none; opacity: 1; }
.mbtn__i { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(180deg, #F3D58C, #C99A3E); position: relative; display: block; }
.mbtn__i i { position: absolute; left: 8px; right: 8px; height: 1.6px; background: var(--ink); border-radius: 2px; top: 11px; transition: transform .6s var(--ease); }
.mbtn__i i + i { top: 16px; }
.menu-open .mbtn__i i { transform: translateY(2.5px) rotate(45deg); }
.menu-open .mbtn__i i + i { transform: translateY(-2.5px) rotate(-45deg); }

/* меню на весь экран */
.menu { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--hdr) + 20px) var(--pad) 40px; opacity: 0; transition: opacity .6s var(--ease); background: radial-gradient(ellipse 70% 60% at 78% 48%, #3a2a12, transparent 70%), var(--night); overflow: hidden; color: var(--night-text); }
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu__crown { position: absolute; right: 2vw; top: 50%; width: min(38vw, 560px); opacity: 0; transform: translateY(-42%) rotate(8deg) scale(.92); transition: transform 1.5s var(--ease), opacity 1.2s var(--ease); }
.menu.is-open .menu__crown { opacity: 1; transform: translateY(-50%) rotate(4deg); }
.menu__nav, .menu__soc { position: relative; z-index: 2; }
.menu__nav { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.menu__nav a { font: 400 clamp(46px, 8.4vw, 118px)/1.04 var(--serif); color: var(--gold-hi); opacity: 0; transform: translateY(44px); transition: transform .9s var(--ease), opacity .9s var(--ease), color .4s; }
.menu.is-open .menu__nav a, .menu.is-open .menu__soc { opacity: 1; transform: none; transition-delay: calc(.08s + var(--i) * 60ms); }
.menu__nav a:hover { color: #fff; }
.menu__soc { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 44px; opacity: 0; transform: translateY(24px); transition: transform .9s var(--ease), opacity .9s var(--ease); color: var(--night-muted); }
.menu__soc a { display: flex; align-items: center; gap: 10px; transition: color .3s; }
.menu__soc a:hover { color: var(--gold-hi); }
.menu__soc .ic { width: 22px; height: 22px; }

/* первый экран: корона опускается на слово, за ней расходится сияние */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; background: radial-gradient(ellipse 60% 50% at 50% 36%, #FFFDF6, rgba(255, 253, 246, 0) 70%), linear-gradient(180deg, #F1E8D5, var(--ivory) 60%); }
.hero__rays { position: absolute; left: 50%; top: 36%; width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax; opacity: 0; transform: scale(.7) rotate(-20deg); transition: opacity 2.6s var(--ease) .5s, transform 3.2s var(--ease) .3s; pointer-events: none; }
.ready .hero__rays { opacity: 1; transform: none; }
.hero__rays g { transform-origin: 0 0; animation: spin 240s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__rays line { stroke: var(--gold); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero__crowned { position: absolute; z-index: 2; left: 0; right: 0; top: calc(var(--hdr) - 6px); bottom: 150px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; will-change: transform; }
.hero__stage { position: relative; z-index: 2; width: min(46vw, 50vh, 560px); margin-bottom: calc(min(46vw, 50vh, 560px) * -.075); will-change: transform; }
.hero__crown { display: block; opacity: 0; transform: translateY(-70vh) rotate(-9deg); }
.hero__crown img { width: 100%; animation: float 7s ease-in-out 3.4s infinite; }
.ready .hero__crown { animation: crown-in 2.2s cubic-bezier(.2, .9, .25, 1) .25s both; }
@keyframes crown-in { 0% { opacity: 0; transform: translateY(-70vh) rotate(-9deg); } 12% { opacity: 1; } 78% { transform: translateY(1.2%) rotate(.6deg); } 100% { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-1.6%) rotate(.5deg); } }
.hero__shadow { position: absolute; left: 6%; right: 6%; bottom: -3%; height: 16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(40, 26, 6, .55), rgba(40, 26, 6, 0)); opacity: 0; transform: scale(.5); }
.ready .hero__shadow { animation: shadow-in 2.2s cubic-bezier(.2, .9, .25, 1) .25s both; }
@keyframes shadow-in { 0%, 30% { opacity: 0; transform: scale(.5); } 100% { opacity: 1; transform: none; } }
.hero__glint { position: absolute; width: 9%; aspect-ratio: 1; opacity: 0; background: radial-gradient(closest-side, #fff, rgba(255, 255, 255, 0) 70%), conic-gradient(from 0deg, transparent 0 20deg, #fff 22.5deg, transparent 25deg 110deg, #fff 112.5deg, transparent 115deg 200deg, #fff 202.5deg, transparent 205deg 290deg, #fff 292.5deg, transparent 295deg); -webkit-mask: radial-gradient(closest-side, #000 20%, transparent); mask: radial-gradient(closest-side, #000 20%, transparent); }
.hero__glint--1 { left: 45.5%; top: 14%; }
.hero__glint--2 { left: 19%; top: 53%; width: 7%; }
.hero__glint--3 { left: 71%; top: 76%; width: 7%; }
.crowned .hero__glint { animation: twinkle 5s ease-in-out infinite; }
.crowned .hero__glint--2 { animation-delay: 1.7s; }
.crowned .hero__glint--3 { animation-delay: 3.1s; }
@keyframes twinkle { 0%, 18%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 8% { opacity: 1; transform: scale(1.2) rotate(40deg); } }
.hero__word { position: relative; z-index: 1; font: 400 clamp(130px, 25vw, 400px)/.78 var(--serif); letter-spacing: .02em; padding-top: .06em; opacity: 0; transform: translateY(40px); transition: opacity 1.6s var(--ease) .1s, transform 1.8s var(--ease) .1s; }
.ready .hero__word { opacity: 1; transform: none; }
.hero__ink { display: block; color: var(--ink); }
/* золотой блик проходит по слову: окно едет вправо, копия внутри влево */
.hero__beam { position: absolute; inset: 0; overflow: hidden; width: 34%; transform: translateX(-110%); pointer-events: none; }
.hero__beam > span { display: block; width: calc(100% / .34); padding-top: .06em; transform: translateX(110%); -webkit-mask: linear-gradient(90deg, transparent, #000 35%, #000 65%, transparent); mask: linear-gradient(90deg, transparent, #000 35%, #000 65%, transparent); background-image: linear-gradient(176deg, #F6DA8E, #D9AC52 50%, #B8882C); }
.crowned .hero__beam { animation: beam 2.8s var(--ease-io) .1s both; }
.crowned .hero__beam > span { animation: beam-in 2.8s var(--ease-io) .1s both; }
@keyframes beam { from { transform: translateX(-110%); } to { transform: translateX(300%); } }
@keyframes beam-in { from { transform: translateX(110%); } to { transform: translateX(-300%); } }
.hero__coin { position: absolute; z-index: 1; display: block; will-change: transform; opacity: 0; transition: opacity 1.8s var(--ease) 1.6s; }
.ready .hero__coin { opacity: 1; }
.hero__coin img { width: 100%; animation: bob 8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(calc(var(--r, 0deg) + 5deg)); } }
.hero__coin--1 { left: 9%; top: 27%; width: clamp(70px, 9vw, 140px); --r: -14deg; }
.hero__coin--2 { right: 11%; top: 19%; width: clamp(44px, 5.2vw, 84px); --r: 12deg; }
.hero__coin--2 img { animation-delay: -3s; }
.hero__coin--3 { right: 6%; top: 52%; width: clamp(56px, 7vw, 112px); --r: 18deg; }
.hero__coin--3 img { animation-delay: -5s; }
.hero__coin--4 { left: 17%; top: 60%; width: clamp(36px, 4vw, 64px); --r: -24deg; }
.hero__coin--4 img { animation-delay: -1.5s; }
.hero__foot { position: relative; z-index: 3; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 0 var(--pad) 44px; }
.hero__lead { max-width: 21em; font-size: 18px; color: var(--ink-2); }
.hero__acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* появление */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 1.2s var(--ease) var(--d, 0s), transform 1.4s var(--ease) var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.js [data-split] .wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .w { display: inline-block; transform: translateY(105%); transition: transform 1.3s var(--ease) calc(var(--i) * 70ms); }
.js [data-split].in .w { transform: none; }
.reveal { overflow: hidden; }
.js .reveal .reveal__i { transform: translateY(101%); transition: transform 1.5s var(--ease); overflow: hidden; height: 100%; }
.js .reveal .reveal__i > * { transform: translateY(-101%) scale(1.18); transition: transform 1.5s var(--ease); }
.js .reveal.in .reveal__i, .js .reveal.in .reveal__i > * { transform: none; }
.reveal img { width: 100%; height: 100%; object-fit: cover; }
.reveal picture { display: block; height: 100%; }

/* казна: ночь и золото */
.treasury { position: relative; background: radial-gradient(ellipse 60% 40% at 85% 0, #3a2a12, transparent 70%), var(--night); color: var(--night-text); overflow: hidden; }
.treasury__in { padding: clamp(90px, 11vw, 170px) var(--pad) clamp(80px, 10vw, 150px); }
.treasury__head { position: relative; }
.treasury .h2 { color: var(--gold-hi); max-width: 8em; }
.treasury .sub { color: var(--night-muted); }
.treasury__coin { position: absolute; right: 4%; top: -10px; width: clamp(110px, 15vw, 220px); will-change: transform; }
.treasury__coin img { transform: rotate(14deg); filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .5)); }
.nets2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 110px); margin-top: clamp(50px, 7vw, 100px); }
.net__h { display: flex; align-items: baseline; gap: 14px; padding-bottom: 18px; }
.net__h h3 { font: 400 clamp(44px, 5vw, 76px)/1 var(--serif); background: linear-gradient(176deg, #FBEDC0, #E4C071 50%, #B98D38); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tok { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 20px; padding: 18px 0 20px; border-top: 1px solid rgba(235, 203, 128, .22); }
.tok:last-child { border-bottom: 1px solid rgba(235, 203, 128, .22); }
.tok__name { font: 400 clamp(28px, 2.6vw, 38px)/1 var(--serif); color: var(--night-text); display: flex; align-items: center; gap: 10px; }
.tok__name small { font: 400 12px/1 var(--sans); letter-spacing: .08em; color: var(--night-muted); margin-left: 4px; padding-top: 6px; }
.tok__cr { width: 30px; height: 28px; flex: none; margin-top: -4px; }
.addr { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 12px; border-radius: 8px; font: 400 14px/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--night-muted); background: rgba(235, 203, 128, .08); transition: color .3s, background .3s; }
.addr:hover { color: var(--gold-hi); background: rgba(235, 203, 128, .16); }
.addr .ic { width: 20px; height: 20px; }
.tok__l { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.tok__l a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 9px; border-radius: 999px; font-size: 13.5px; color: var(--night-text); box-shadow: inset 0 0 0 1px rgba(235, 203, 128, .3); transition: box-shadow .4s, color .4s, transform .4s var(--ease); }
.tok__l a:hover { color: var(--gold-hi); box-shadow: inset 0 0 0 1px rgba(235, 203, 128, .8); transform: translateY(-1px); }
.tok__l .ic { width: 17px; height: 17px; color: var(--gold-hi); }

/* двор */
.court { position: relative; padding: clamp(90px, 12vw, 180px) var(--pad) clamp(80px, 10vw, 150px); }
.court__h { max-width: 9em; margin-bottom: clamp(50px, 7vw, 100px); }
.game { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
.game__pic { grid-column: 1 / 10; grid-row: 1; aspect-ratio: 16 / 9; border-radius: 6px; }
.game__card { grid-column: 8 / 13; grid-row: 1; position: relative; z-index: 2; margin-bottom: -60px; padding: clamp(28px, 3vw, 44px); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-gold), 0 40px 70px -30px rgba(60, 40, 10, .45); border-radius: 6px; }
.game__card p, .wallet__txt p { color: var(--ink-2); margin: 14px 0 26px; max-width: 22em; }
.wallet { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; margin-top: clamp(130px, 14vw, 220px); }
.wallet__txt { grid-column: 1 / 6; }
.wallet__ph { grid-column: 8 / 12; display: flex; justify-content: center; will-change: transform; }
.phone { position: relative; width: min(100%, 330px); aspect-ratio: 585 / 1150; border-radius: 36px; box-shadow: 0 0 0 9px var(--ink), 0 0 0 10px var(--gold), 0 60px 80px -30px rgba(60, 40, 10, .55); transform: rotate(-3deg); }
.phone .reveal__i { border-radius: 36px; }
.phone img { object-position: top; }
.more { margin-top: clamp(110px, 12vw, 190px); border-top: 1px solid var(--line); }
.more__r { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1.1fr) minmax(0, 1fr) 30px; align-items: center; gap: 18px; padding: 22px 6px; border-bottom: 1px solid var(--line); isolation: isolate; }
.more__r::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(184, 136, 44, .2), rgba(184, 136, 44, 0)); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.more__r:hover::before { transform: none; }
.more__r > .ic:first-child { width: 34px; height: 34px; color: var(--gold); }
.more__r b { font: 400 clamp(26px, 2.4vw, 36px)/1.05 var(--serif); }
.more__r span { color: var(--ink-2); font-size: 15px; }
.more__a { width: 24px; height: 24px; color: var(--gold); transition: transform .6s var(--ease); }
.more__r:hover .more__a { transform: translate(4px, -4px); }

/* грамота на красном бархате */
.charter-s { position: relative; padding: clamp(90px, 12vw, 170px) var(--pad); overflow: hidden; background: radial-gradient(ellipse 110% 90% at 50% 35%, #C42B45, #A51C35 55%, #84142A); }
.charter-s::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 40% at 50% 0, rgba(255, 170, 150, .22), transparent 70%), linear-gradient(180deg, rgba(60, 0, 10, .25), transparent 18%, transparent 80%, rgba(60, 0, 10, .35)); pointer-events: none; }
.charter { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; }
.charter__rod { position: relative; z-index: 3; height: 30px; margin: 0 -22px; border-radius: 15px; background: linear-gradient(180deg, #8a6a33, #E9CD8C 30%, #FFF2CF 45%, #C99B4C 70%, #6F5020); box-shadow: 0 14px 24px -10px rgba(40, 0, 8, .7); }
.charter__rod::before, .charter__rod::after { content: ''; position: absolute; top: -5px; width: 22px; height: 40px; border-radius: 9px; background: linear-gradient(180deg, #5d4319, #E3BE6E 35%, #FBE7B0 48%, #9A7330 75%, #4a3412); }
.charter__rod::before { left: -14px; }
.charter__rod::after { right: -14px; }
.charter__clip { position: relative; overflow: hidden; margin: -14px -40px 0; }
/* свиток раскрывается сверху вниз один раз: окно едет вниз, содержимое внутри стоит на месте, нижний валик едет с краем окна */
.charter__roll { position: relative; overflow: hidden; }
.charter__in { padding: 0 40px 30px; }
.js .charter__roll { transform: translateY(-100%); }
.js .charter__in { transform: translateY(100%); }
.js .charter.open .charter__roll, .js .charter.open .charter__in { transform: none; transition: transform 2.6s cubic-bezier(.45, 0, .15, 1); }
.charter__paper { position: relative; padding: clamp(46px, 6vw, 80px) clamp(22px, 6vw, 80px) clamp(60px, 7vw, 90px); color: var(--ink); background-color: #F4EAD4;
  background-image: radial-gradient(ellipse at 50% 0, rgba(255, 255, 255, .55), transparent 55%), radial-gradient(ellipse at 50% 120%, rgba(154, 115, 48, .28), transparent 60%), linear-gradient(90deg, rgba(120, 90, 40, .18), transparent 8%, transparent 92%, rgba(120, 90, 40, .18)),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6 .9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .3 0 0 0 0 .12 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
 }
.charter__rod--b { position: absolute; left: 18px; right: 18px; bottom: 0; margin: 0; z-index: 3; }
.charter__h { font: 400 clamp(48px, 7vw, 96px)/.95 var(--serif); color: #2a1f0c; text-align: center; }
.charter__lead { text-align: center; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); margin: 18px auto 0; max-width: 24em; }
.steps { margin: clamp(36px, 5vw, 56px) auto 0; max-width: 620px; display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 26px 1fr; gap: 16px; align-items: start; font-size: 18px; line-height: 1.5; }
.steps__dot { width: 14px; height: 14px; margin: 6px 0 0 6px; transform: rotate(45deg); background: linear-gradient(135deg, #E9C77C, #9A7330); box-shadow: 0 0 0 4px rgba(154, 115, 48, .16); }
.steps a { color: var(--crimson); text-decoration: underline; text-decoration-color: rgba(163, 23, 43, .35); text-underline-offset: 3px; transition: text-decoration-color .3s; }
.steps a:hover { text-decoration-color: currentColor; }
.charter__note { max-width: 620px; margin: 30px auto 0; padding-top: 22px; border-top: 1px solid rgba(90, 74, 46, .2); color: var(--ink-2); font-size: 15px; }
.charter__acts { max-width: 620px; margin: 28px auto 0; display: flex; gap: 10px; flex-wrap: wrap; }
.seal { position: absolute; right: clamp(14px, 5vw, 64px); bottom: clamp(30px, 4vw, 48px); width: clamp(96px, 11vw, 132px); aspect-ratio: 1; }
.seal__wax, .seal__cr { position: absolute; }
.seal__wax { inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 6px 8px rgba(40, 25, 5, .35)); }
.seal__cr { left: 31%; top: 30%; width: 38%; height: 38%; opacity: .95; }
.seal__ring { position: absolute; inset: -10%; border-radius: 50%; box-shadow: 0 0 0 2px rgba(163, 23, 43, .45); opacity: 0; }
.js .seal { opacity: 0; transform: scale(1.5) rotate(-14deg); }
.js .seal.in { opacity: 1; transform: rotate(-8deg); transition: transform .55s cubic-bezier(.3, 0, .2, 1.25), opacity .25s; }
.seal.in .seal__ring { animation: ripple 1.2s var(--ease) .45s both; }
@keyframes ripple { from { opacity: .9; transform: scale(.7); } to { opacity: 0; transform: scale(1.5); } }
.charter-s__small { position: relative; z-index: 2; text-align: center; color: #FBEFE0; font-size: 15px; margin-top: 34px; }

/* доли */
.share { position: relative; padding: clamp(90px, 12vw, 170px) var(--pad) clamp(80px, 10vw, 140px); overflow: hidden; }
.share__row { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 110px); margin-top: clamp(40px, 6vw, 80px); }
.num { border-top: 1px solid var(--line); padding-top: 24px; }
.num__v { display: flex; align-items: flex-start; font: 400 clamp(120px, 17vw, 260px)/.85 var(--serif); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.num__s { font-size: .38em; line-height: 1; margin: .12em 0 0 .06em; }
.num p { color: var(--ink-2); max-width: 18em; margin-top: 22px; font-size: 18px; }
.docs { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(50px, 6vw, 80px); }
.docs a { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(23, 18, 11, .25); transition: box-shadow .4s, background .4s; }
.docs a:hover { box-shadow: inset 0 0 0 1px var(--gold); background: var(--paper); }
.docs .ic { width: 22px; height: 22px; color: var(--gold); }

/* подвал */
.foot { position: relative; padding: clamp(80px, 10vw, 150px) var(--pad) 40px; background: radial-gradient(ellipse 60% 50% at 10% 0, #3a2a12, transparent 70%), var(--night); color: var(--night-text); }
.foot .h2 { color: var(--gold-hi); }
.links { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(235, 203, 128, .22); }
.links li { border-bottom: 1px solid rgba(235, 203, 128, .22); }
.links li:not(:nth-child(3n)) { border-right: 1px solid rgba(235, 203, 128, .22); }
.links a { display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; align-items: center; padding: 26px 22px 26px 4px; transition: background .5s; }
.links li:nth-child(3n+2) a, .links li:nth-child(3n) a { padding-left: 22px; }
.links a:hover { background: rgba(235, 203, 128, .07); }
.links .ic { grid-row: span 2; color: var(--gold-hi); width: 28px; height: 28px; }
.links b { font: 400 30px/1.05 var(--serif); color: var(--night-text); }
.links span { color: var(--night-muted); font-size: 14px; }
.foot__base { display: grid; grid-template-columns: 54px 1fr 1fr; gap: 24px; align-items: start; margin-top: 60px; color: var(--night-muted); font-size: 13.5px; }
.foot__mark { width: 44px; height: 42px; }
.foot__base a { color: var(--gold-hi); }
.foot__base a:hover { text-decoration: underline; }

.toast { position: fixed; z-index: 80; left: 50%; bottom: 28px; padding: 12px 20px; border-radius: 999px; background: var(--gold-hi); color: var(--ink); font-size: 15px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); transform: translate(-50%, 140%); opacity: 0; transition: transform .7s var(--ease), opacity .5s; pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* телефон и планшет */
@media (max-width: 900px) {
  :root { --hdr: 58px; }
  body { font-size: 16px; }
  .hero__crowned { bottom: 200px; justify-content: center; }
  .hero__stage { width: min(78vw, 44vh); margin-bottom: calc(min(78vw, 44vh) * -.05); }
  .hero__word { font-size: clamp(110px, 31vw, 240px); }
  .hero__foot { flex-direction: column; align-items: center; text-align: center; padding-bottom: 36px; gap: 18px; }
  .hero__lead { font-size: 16px; max-width: 19em; }
  .hero__acts { justify-content: center; }
  .hero__coin--1 { left: 3%; top: 15%; }
  .hero__coin--2 { right: 5%; top: 12%; }
  .hero__coin--3 { right: 2%; top: 64%; }
  .hero__coin--4 { left: 6%; top: 67%; }
  .menu { justify-content: flex-start; padding-top: calc(var(--hdr) + 44px); }
  .menu__crown { right: -10vw; top: auto; bottom: 2vh; width: 70vw; transform: rotate(10deg) scale(.92); }
  .menu.is-open .menu__crown { opacity: .5; transform: rotate(6deg); }

  .treasury__coin { right: -6px; top: auto; bottom: -34px; width: 96px; }
  .treasury .sub { padding-right: 90px; }
  .nets2 { grid-template-columns: 1fr; gap: 60px; }
  .tok { grid-template-columns: 1fr; padding: 18px 0 20px; }
  .tok__l { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .tok__l a { height: 42px; padding: 0 12px; font-size: 14.5px; }
  .addr { height: 42px; font-size: 15px; }
  .tok__name { font-size: 32px; }
  .addr { justify-self: start; }

  .game { display: block; }
  .game__pic { margin: 0 calc(var(--pad) * -1); border-radius: 0; }
  .game__card { margin: -40px 0 0; }
  .wallet { display: flex; flex-direction: column; align-items: stretch; margin-top: 90px; gap: 50px; }
  .phone { width: min(70vw, 290px); }
  .more { margin-top: 90px; }
  .more__r { grid-template-columns: 36px minmax(0, 1fr) 22px; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; padding: 18px 2px; }
  .more__r > .ic:first-child { grid-row: span 2; width: 30px; height: 30px; }
  .more__r b { font-size: 26px; }
  .more__r span { grid-column: 2; grid-row: 2; font-size: 14px; }
  .more__a { grid-column: 3; grid-row: 1 / span 2; width: 20px; height: 20px; }

  .charter__rod { margin: 0 -5px; height: 24px; }
  .charter__rod--b { margin: 0; left: 9px; right: 9px; bottom: 0; }
  .charter__rod::before, .charter__rod::after { width: 12px; height: 32px; top: -4px; }
  .charter__rod::before { left: -6px; } .charter__rod::after { right: -6px; }
  .charter__clip { margin: -12px -14px 0; }
  .charter__in { padding: 0 14px 24px; }
  .steps li { font-size: 16.5px; gap: 12px; grid-template-columns: 22px 1fr; }
  .charter__paper { padding-bottom: 150px; }
  .seal { right: 22px; bottom: 34px; width: 92px; }

  .share__row { grid-template-columns: 1fr; }
  .num__v { font-size: clamp(120px, 38vw, 200px); }
  .links { grid-template-columns: 1fr; }
  .links li:not(:nth-child(3n)) { border-right: 0; }
  .links a, .links li:nth-child(3n+2) a, .links li:nth-child(3n) a { padding: 20px 4px; }
  .links b { font-size: 26px; }
  .foot__base { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 380px) {
  .btn { height: 48px; padding: 0 20px; font-size: 15px; }
  .tok__l a { padding: 0 10px; font-size: 14px; }
}
@media (hover: none) { .btn::after { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; transition-delay: 0s !important; }
  .js .charter__roll, .js .charter__in { transform: none !important; }
  .hero__crown, .hero__shadow { opacity: 1 !important; transform: none !important; }
}
