/* Визуальный язык снят с contralabs.com: бумага #fbfaf6, тонкий антиквенный Source Serif 4 с плотным трекингом,
   гротеск для текста, мятные секции, радиус 8px, маленькие пилюли, картины старых мастеров с полутоновым растром
   и «пиксельным» растворением краёв. Вся графика — ChatGPT Image (design/gen*). */
:root {
  --paper: #fbfaf6; --paper2: #f3f2ec; --line: #e4e2d9; --ink: #2b2b29; --ink2: rgba(43,43,41,.7); --mute: rgba(43,43,41,.48);
  --mint: #c8e1dd; --mint2: #a5beba; --mint3: #e7f2f0; --teal: #387478; --teal-d: #296a6c;
  --wine: #a8412f; --gold: #b88a3a; --yellow: #f3d77a; --felt: #2c5f5c;
  --serif: "Source Serif 4", Georgia, serif; --sans: "Inter Tight", system-ui, sans-serif;
  --r: 8px;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--paper); color: var(--ink); font: 400 16px/1.35 var(--sans); min-height: 100vh; overflow-x: hidden; }
body::before { /* зерно бумаги */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .4; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .45 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -.04em; }
em { font-style: italic; }
.hidden { display: none !important; }
.center { text-align: center; }

/* полутоновый растр поверх картин */
.ht { position: relative; overflow: hidden; }
.ht::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; mix-blend-mode: soft-light;
  background: radial-gradient(circle, rgba(255,255,255,.6) .9px, transparent 1.3px) 0 0 / 5px 5px; }

/* ШАПКА */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(251,250,246,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(43,43,41,.06); }
.nav-in { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 76px; display: flex; align-items: center; gap: 36px; }
.ribbon { position: absolute; left: 32px; top: 0; width: 48px; height: 92px; background: var(--mint2); display: grid; place-items: start center; padding-top: 30px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 86%, 0 100%); transition: height .25s; }
.ribbon:hover { height: 102px; }
.ribbon img { width: 26px; height: 26px; object-fit: contain; }
.logo { margin-left: 68px; flex: none; display: block; line-height: 0; }
.logo img { height: 30px; width: auto; max-width: none; }
.links { display: flex; gap: 4px; font-size: 15px; }
.links a, .links button { padding: 8px 12px; border-radius: 99px; color: var(--ink2); transition: color .2s, background .2s; }
.links a:hover, .links button:hover { color: var(--ink); background: rgba(43,43,41,.05); }
.links a.cur { color: var(--ink); background: var(--mint3); text-decoration: none !important; }
.nav-r { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(43,43,41,.2); position: relative; }
.burger i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .3s, top .3s; }
.burger i:first-child { top: 18px; } .burger i:last-child { top: 25px; }
.nav.open .burger i:first-child { top: 21.5px; transform: rotate(45deg); } .nav.open .burger i:last-child { top: 21.5px; transform: rotate(-45deg); }
.mnav { display: none; }
@media (max-width: 1080px) {
  .burger { display: block; }
  .mnav { display: grid; max-height: 0; overflow: hidden; padding: 0 16px; transition: max-height .4s cubic-bezier(.2,.7,.2,1), padding .4s; background: var(--paper); }
  .nav.open .mnav { max-height: 80vh; padding: 10px 16px 22px; border-top: 1px solid var(--line); }
  .mnav a { display: flex; align-items: baseline; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); font: 400 28px/1.05 var(--serif); letter-spacing: -.04em; }
  .mnav a span { width: 30px; font: 400 italic 15px/1 var(--serif); color: var(--teal); }
  .mnav-b { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; } .mnav-b .pill { flex: 1; }
}
@media (max-width: 640px) {
  .nav-r > .pill, .nav-r #accountSlot { display: none !important; }
  .nav-in { height: 64px; }
  .logo img { height: 24px; }
}

/* пилюли */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 22px; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .2s, transform .15s, box-shadow .2s; }
.pill:hover { background: #000; }
.pill:active { transform: scale(.97); }
.pill.big { height: 52px; padding: 0 30px; font-size: 16px; }
.pill.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(43,43,41,.25); }
.pill.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.pill.light { background: var(--paper); color: var(--ink); }
.pill[disabled] { opacity: .35; pointer-events: none; }
.kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--ink2); }

.screen { display: none; }
.screen.on { display: block; animation: fadeIn .5s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* HERO */
.hero { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; column-gap: 40px; padding: 56px 0 80px; }
.bubble::before { content: ""; position: absolute; top: -8px; left: var(--tail, 30px); border: 8px solid transparent; border-bottom-color: var(--paper); border-top: 0; }
.bubble::after { display: none; }
.hero-txt { align-self: center; }
.hero-txt { position: relative; z-index: 2; padding-bottom: 20px; }
h1 { font-size: clamp(50px, 6.2vw, 88px); line-height: .96; letter-spacing: -.05em; margin-bottom: 28px; }
h1 .ln { display: block; overflow: hidden; padding-bottom: .2em; margin-bottom: -.14em; white-space: nowrap; }
h1 .ln > span { display: block; transform: translateY(105%); animation: lineUp 1s cubic-bezier(.2,.75,.15,1) forwards; }
h1 .ln:nth-child(2) > span { animation-delay: .12s; } h1 .ln:nth-child(3) > span { animation-delay: .24s; }
@keyframes lineUp { to { transform: none; } }
.rv { opacity: 0; animation: rise .9s .45s cubic-bezier(.2,.75,.15,1) forwards; }
.cta.rv { animation-delay: .55s; } .ledger.rv { animation-delay: .7s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.lead { font-size: 19px; line-height: 1.38; color: var(--ink2); max-width: 460px; }
.cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
/* «ведомость» как список категорий у Contra */
.ledger { list-style: none; padding: 0; margin-top: 0; display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; max-width: 380px; height: 128px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); }
.ledger b { font-weight: 500; color: var(--ink); }
.ledger span { color: var(--mute); }
.ledger .track { display: grid; grid-template-columns: 170px 1fr; column-gap: 18px; row-gap: 4px; animation: ledger 40s linear infinite; }
@keyframes ledger { to { transform: translateY(-50%); } }
.hero-art { position: relative; margin-right: calc(min(0px, (1200px - 100vw) / 2) - 32px); margin-left: -40px; align-self: stretch; min-height: 520px; }
.hero-art > canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0;
  -webkit-mask: url(img/dither-l.png) 0 0 / 100% 100%; mask: url(img/dither-l.png) 0 0 / 100% 100%; }
.hero-art.ready > canvas { opacity: 1; } .hero-art.ready > img, .js .hero-art > img { visibility: hidden; }
.hero-art > img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 25%;
  -webkit-mask: url(img/dither-l.png) 0 0 / 100% 100%; mask: url(img/dither-l.png) 0 0 / 100% 100%; }
.bubble { position: absolute; z-index: 3; left: 50%; top: 40%; display: block; background: var(--paper); border-radius: var(--r); padding: 11px 15px 13px; font: 400 17px/1.28 var(--serif); letter-spacing: -.015em; width: 280px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.4); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.bubble.on { opacity: 1; transform: none; }
.bubble .av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; }
.bubble .who { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 3px; font-weight: 500; }
.caret { display: inline-block; width: 1.5px; height: 1em; background: currentColor; vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* секции */
.sec-h { font-size: clamp(42px, 5vw, 68px); line-height: .98; letter-spacing: -.05em; }
.sec-lead { font-size: 17px; line-height: 1.42; color: var(--ink2); max-width: 460px; margin-top: 18px; }
.center-h { text-align: center; } .center-l { text-align: center; margin-left: auto; margin-right: auto; }
.split-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.mint { background: var(--mint); padding: 120px 0 130px; }
.cards { display: grid; gap: 6px; margin-top: 60px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.pcard { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); background: var(--teal); color: #fff; }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.pcard:hover img { transform: scale(1.04); }
.pcard::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15,35,35,.35), transparent 28%, transparent 55%, rgba(15,35,35,.6)); }
.pcard .k { position: absolute; z-index: 2; left: 22px; top: 22px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.pcard .n { position: absolute; z-index: 2; left: 22px; bottom: 22px; right: 22px; font: 400 40px/1 var(--serif); letter-spacing: -.045em; }

/* форматы: четыре вкладки и одна сцена */
.formats { padding: 110px 0 120px; }
.formats .split-h .sec-h { margin-top: 12px; }
.ftabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 44px 0 10px; }
.ftabs button { position: relative; overflow: hidden; display: grid; gap: 6px; align-content: start; text-align: left; padding: 20px 20px 22px; border-radius: var(--r); background: var(--paper2); color: var(--ink); transition: background .25s; }
.ftabs button:hover { background: var(--mint3); }
.ftabs button.on { background: var(--mint); }
.ftabs .fn { font: 400 30px/1 var(--serif); letter-spacing: -.04em; }
.ftabs .fw { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.ftabs .fd { font-size: 14px; line-height: 1.4; color: var(--ink2); margin-top: 4px; }
.ftabs .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--ink); }
.ftabs.run button.on .bar { animation: billBar 9s linear forwards; }
@keyframes billBar { to { width: 100%; } }
.fstage { position: relative; height: clamp(420px, 46vw, 600px); border-radius: var(--r); overflow: hidden; background: var(--teal); }
.fstage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fstage::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(circle, rgba(255,255,255,.28) .9px, transparent 1.3px) 0 0 / 5px 5px; }
.fstage .scene { left: 0; }
.fcta { position: absolute; z-index: 3; left: 24px; bottom: 22px; opacity: 0; transition: opacity .35s; }
.fcta.on { opacity: 1; }

/* голос комиссии */
.voice { position: fixed; left: 20px; bottom: 20px; z-index: 98; display: flex; gap: 12px; align-items: flex-start; width: min(360px, calc(100vw - 40px)); padding: 12px 16px 14px 12px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); transform: translateY(140%); opacity: 0; transition: transform .45s cubic-bezier(.3,1.3,.5,1), opacity .3s; }
.voice.on { transform: none; opacity: 1; }
.voice img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; flex: none; }
.voice b { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); font-weight: 500; margin-bottom: 3px; }
.voice .vt { font: 400 17px/1.3 var(--serif); letter-spacing: -.015em; color: var(--ink); }

/* сценки */
.scene { position: absolute; inset: 0; z-index: 2; overflow: hidden; font-family: var(--sans); }
.scene > * { position: absolute; animation: pop .5s var(--d, 0s) cubic-bezier(.3,1.4,.5,1) both; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
.sb { max-width: 46%; background: var(--paper); color: var(--ink); border-radius: 14px; padding: 12px 16px; font: 400 19px/1.3 var(--serif); letter-spacing: -.015em; }
.sb::after { content: ""; position: absolute; bottom: -8px; left: 26px; border: 9px solid transparent; border-top-color: var(--paper); border-bottom: 0; }
.sb.dark { background: var(--ink); color: var(--paper); } .sb.dark::after { border-top-color: var(--ink); }
.sb .x { position: relative; color: var(--wine); font-style: italic; transition: font-size .35s calc(var(--xd) + .8s), opacity .35s calc(var(--xd) + .8s); }
.sb .x svg { position: absolute; left: -2%; top: 15%; width: 104%; height: 70%; overflow: visible; }
.sb .x path { fill: none; stroke: #e0402e; stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 120; stroke-dashoffset: 120; animation: penDraw .35s var(--xd) cubic-bezier(.7,0,.3,1) forwards; }
.stamp-drop { right: 8%; bottom: 10%; width: 150px; mix-blend-mode: normal; filter: drop-shadow(0 0 0 transparent); opacity: 0; animation: drop .45s var(--d) cubic-bezier(.3,1.6,.5,1) both !important; }
@keyframes drop { from { opacity: 0; transform: rotate(-14deg) scale(2.6); } to { opacity: .95; transform: rotate(-14deg) scale(1); } }
/* персонажи сценок: выходят с краёв и встают */
.scene .fig { bottom: 3%; height: 80%; }
.scene .fig.fl { left: 4%; animation: walkL 2s .2s cubic-bezier(.35,.1,.3,1) both, step .3s .2s ease-in-out 6 alternate !important; }
.scene .fig.fr { right: 3%; animation: walkR 2s .2s cubic-bezier(.35,.1,.3,1) both, step .3s .2s ease-in-out 6 alternate !important; }
.scene .fig.sit { height: 58%; animation: rise .8s .2s cubic-bezier(.2,.7,.2,1) both !important; }
.offer-tag { right: 6%; top: 40%; padding: 10px 20px; border: 4px double var(--teal); color: var(--teal); font: 700 28px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; background: rgba(251,250,246,.85); animation: drop .45s var(--d) cubic-bezier(.3,1.6,.5,1) both !important; }
/* дуэль */
.s-duel .fig { bottom: 3%; height: 80%; animation: walkL 2.4s .2s cubic-bezier(.35,.1,.3,1) both, step .3s .2s ease-in-out 8 alternate !important; }
.s-duel .fa { left: 4%; } .s-duel .fb { right: 2%; animation-name: walkR, step !important; }
@keyframes walkL { from { opacity: 0; transform: translateX(-70%); } 15% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes walkR { from { opacity: 0; transform: translateX(70%); } 15% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes step { from { translate: 0 0; rotate: 0deg; } to { translate: 0 -5px; rotate: .8deg; } }
.s-duel .sb.l { left: 14%; top: 6%; } .s-duel .sb.r { right: 10%; top: 12%; } .s-duel .sb.r::after { left: auto; right: 26px; }
.s-duel .sc { top: 50%; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font: 400 36px/1 var(--serif); background: var(--paper); color: var(--ink); }
.s-duel .sc { top: 44%; } .s-duel .sc.l { left: 34%; } .s-duel .sc.r { right: 30%; }
.s-duel .sc.win { background: var(--gold); color: #fff; }
.s-duel .crown { right: 31.6%; top: 33%; font-size: 40px; color: var(--gold); }
.s-duel .dverdict { left: 0; right: 0; bottom: 7%; text-align: center; background: none !important; padding: 0 !important; }
.s-duel .dverdict span { display: inline-block; background: var(--ink); color: var(--paper); border-radius: 99px; padding: 10px 20px; font-size: 15px; }
/* экзамен */
.s-exam .fan { left: 50%; top: 54%; width: 0; height: 0; animation: none; }
.s-exam .fan i { position: absolute; width: 96px; height: 134px; left: -48px; top: -67px; border-radius: 5px; background: #efe7d4 url(img/ticket-back.webp) center / cover; transform: translateX(calc(var(--i) * 46px)) rotate(calc(var(--i) * 7deg)); box-shadow: 0 1px 0 rgba(0,0,0,.1); }
.s-exam .tk-mini { left: 50%; top: 10%; width: 360px; margin-left: -180px; padding: 22px 24px; border-radius: 4px; background: #f6f0e1 url(img/ticket-paper.webp) center / 100% 100%; color: #23251f; text-align: center; animation: flipIn .7s var(--d) cubic-bezier(.2,.8,.25,1.1) both; }
@keyframes flipIn { from { opacity: 0; transform: translateY(160px) rotateY(90deg) scale(.5); } to { opacity: 1; transform: rotate(-2deg); } }
.s-exam .tk-mini small { display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 8px; }
.s-exam .tk-mini b { font: 400 24px/1.1 var(--serif); letter-spacing: -.03em; }
.s-exam .clock { left: 8%; top: 12%; width: 84px; height: 84px; }
.s-exam .clock svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.s-exam .clock circle { fill: rgba(251,250,246,.9); stroke: rgba(43,43,41,.15); stroke-width: 3; }
.s-exam .clock .run { fill: none; stroke: var(--wine); stroke-dasharray: 107; stroke-dashoffset: 107; animation: tick 3s calc(var(--d) + .3s) linear forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.s-exam .clock span { position: absolute; inset: 0; display: grid; place-items: center; font: 400 28px/1 var(--serif); color: var(--ink); }
/* билет дня */
.s-daily .leaf { left: 7%; top: 12%; width: 190px; padding: 18px; border-radius: 6px; background: var(--paper); color: var(--ink); display: grid; gap: 4px; }
.s-daily .leaf small { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--wine); }
.s-daily .leaf b { font: 400 34px/1 var(--serif); letter-spacing: -.04em; }
.s-daily .leaf span { font-size: 13px; color: var(--ink2); }
.s-daily .board { right: 6%; top: 12%; width: 290px; display: grid; gap: 6px; animation: none; }
.s-daily .row { display: grid; grid-template-columns: 22px 36px 1fr auto; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 10px; background: var(--paper); color: var(--ink); font-size: 15px; animation: slideIn .45s var(--d) cubic-bezier(.2,.8,.2,1) both; }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.s-daily .row img, .s-daily .row em { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.s-daily .row em { display: grid; place-items: center; background: var(--teal); color: #fff; font-style: normal; font-size: 13px; }
.s-daily .row i { font: 400 24px/1 var(--serif); font-style: normal; }
.s-daily .row.me { background: var(--mint); }
/* собеседование */
.s-job .sb.q { left: 20%; top: 8%; } .s-job .sb.a { right: 18%; top: 26%; } .s-job .sb.a::after { left: auto; right: 26px; }
/* продажа */
.s-sell .tag { left: 40%; top: 18%; padding: 14px 18px 14px 26px; background: #ead9b5; color: var(--ink); border-radius: 4px 12px 12px 4px; display: grid; transform-origin: 0 50%; animation: pop .5s var(--d) both, swing 2.4s calc(var(--d) + .5s) ease-in-out infinite alternate; }
@keyframes swing { from { rotate: -4deg; } to { rotate: 4deg; } }
.s-sell .tag b { font: 400 28px/1 var(--serif); } .s-sell .tag span { font-size: 14px; }
.s-sell .sb.a { left: 20%; top: 4%; max-width: 46%; }
.s-sell .sold { left: 30%; bottom: 12%; padding: 12px 22px; border: 4px double #c8372d; color: #c8372d; font: 700 30px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; animation: drop .45s var(--d) cubic-bezier(.3,1.6,.5,1) both; }
/* без слова */
.s-nofiller .ban { left: 7%; top: 12%; padding: 14px 20px; border-radius: 6px; background: #c8372d; color: #fff; display: grid; gap: 2px; }
.s-nofiller .ban small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; } .s-nofiller .ban b { font: 400 30px/1 var(--serif); }
.s-nofiller .sb.a { left: 7%; top: 34%; }
.s-nofiller .sb .bad { color: #c8372d; font-weight: 600; animation: flash .3s 3.8s 3 alternate both; }
@keyframes flash { to { background: #c8372d; color: #fff; } }
.s-nofiller .buzz { left: 22%; top: 50%; padding: 12px 22px; border: 4px double #c8372d; border-radius: 6px; color: #c8372d; background: rgba(251,250,246,.88); font: 700 26px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; animation: drop .45s var(--d) cubic-bezier(.3,1.6,.5,1) both !important; transform: rotate(-8deg); }
/* объясни просто */
.s-explain .cloud { inset: 0; animation: none; }
.s-explain .cloud span { position: absolute; left: var(--x); top: var(--y); padding: 6px 12px; border-radius: 99px; background: rgba(251,250,246,.85); color: var(--ink); font-size: 14px; animation: pop .4s var(--d) both, fade .5s 2.8s forwards; }
@keyframes fade { to { opacity: .15; filter: blur(2px); } }
.s-explain .sb.a { left: 22%; top: 36%; max-width: 44%; }
.s-explain .ok { right: 8%; top: 22%; padding: 10px 18px; border-radius: 99px; background: var(--mint); color: var(--ink); font-size: 16px; }
/* переводчик */
.s-translator .sb.big { left: 4%; top: 12%; max-width: 54%; font-size: 21px; }
.s-translator .clean-line { left: 4%; bottom: 18%; max-width: 54%; padding: 14px 18px; border-radius: 14px; background: var(--mint); color: var(--ink); font: 400 24px/1.25 var(--serif); letter-spacing: -.02em; }

/* как проходит экзамен: четыре шага */
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 56px; }
.st .pcard { aspect-ratio: 4 / 4.8; }
.st .pcard .n { font-size: 32px; }
.swipe-hint { display: none; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--ink2); }
.swipe-hint i { display: inline-block; width: 26px; height: 1.5px; background: var(--ink2); position: relative; animation: nudge 1.4s ease-in-out infinite; }
.swipe-hint i::after { content: ""; position: absolute; right: -1px; top: -3px; border: 4px solid transparent; border-left: 6px solid var(--ink2); border-right: 0; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.st p { font-size: 15px; line-height: 1.45; color: var(--ink2); margin-top: 14px; padding-right: 8px; }

/* комиссия: портреты вразброс, как плитки у Contra */
.commission { padding: 130px 0 210px; }
.scatter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 84px 30px; margin-top: 90px; padding: 0 20px; }
.mem { position: relative; cursor: pointer; }
.mem:nth-child(5n+2) { transform: translateY(60px); } .mem:nth-child(5n+3) { transform: translateY(18px); } .mem:nth-child(5n+4) { transform: translateY(84px); } .mem:nth-child(5n+5) { transform: translateY(34px); }
.mem .ph { position: relative; aspect-ratio: 4/5; border-radius: var(--r); overflow: hidden; background: var(--teal); transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s; }
.mem:hover .ph { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(20,40,40,.55); }
.mem .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mem .ph img.b { opacity: 0; }
.mem .cap { display: grid; gap: 5px; margin-top: 14px; }
.mem .cap b { font: 400 22px/1 var(--serif); letter-spacing: -.04em; }
.mem .cap span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); line-height: 1.35; }
.mem .line { position: absolute; z-index: 5; left: -6px; right: -6px; margin-top: -16px; background: #fff; color: var(--ink); border-radius: 12px; padding: 11px 13px 12px; font: 400 15px/1.3 var(--serif); letter-spacing: -.01em; box-shadow: 0 14px 34px -12px rgba(20,40,40,.35), 0 0 0 1px rgba(43,43,41,.06); opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.2,.7,.2,1); }
.mem .line::after { content: ""; position: absolute; left: 34px; top: -7px; border: 8px solid transparent; border-bottom-color: #fff; border-top: 0; }
.mem.talking .line { opacity: 1; transform: none; }
.mem.talking { z-index: 6; }
.mem.talking .cap { visibility: hidden; }

/* паразиты + банка */
.paras { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 120px 0 110px; }
.jar-art { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; margin: 0 auto; background: var(--mint3); border-radius: var(--r); overflow: hidden; }
.jar-img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; z-index: 2; pointer-events: none; }
.jar-fill { position: absolute; inset: 0; z-index: 1; }
.jar-fill .cr { position: absolute; width: 70px; height: 70px; transition: transform 1.1s cubic-bezier(.5,-.3,.5,1.2), opacity .3s; }
.jar-fill .cr img { width: 100%; height: 100%; object-fit: contain; animation: jiggle 2.4s ease-in-out infinite; }
.words { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 30px; }
.words span { height: 32px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(43,43,41,.18); font-size: 14px; transition: background .3s, color .3s; }
.words span.lit { background: var(--ink); color: var(--paper); box-shadow: none; }

/* периодическая таблица паразитов */
.ptable-sec { padding: 130px 0 110px; }
.pt-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.pt-head .sec-h { margin-top: 12px; }
.pt-who { display: flex; gap: 16px; align-items: flex-start; max-width: 430px; }
.pt-who img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; }
.pt-who p { font-size: 15px; line-height: 1.42; color: var(--ink2); }
.pt-grid { display: grid; grid-template-columns: 1fr 340px; gap: 14px; margin-top: 50px; align-items: stretch; }
.ptable { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.el { position: relative; aspect-ratio: 1 / 1.08; border-radius: 6px; background: var(--c); padding: 8px 9px; text-align: left; display: flex; flex-direction: column; justify-content: flex-end; transition: transform .25s, box-shadow .25s; overflow: hidden; }
.el::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, rgba(43,43,41,.07) .8px, transparent 1.2px) 0 0 / 5px 5px; }
.el:hover, .el.on { transform: translateY(-3px); box-shadow: 0 0 0 1.5px var(--ink); }
.el .no { position: absolute; left: 9px; top: 7px; font-size: 11px; color: var(--ink2); }
.el .cnt { position: absolute; right: 8px; top: 6px; font-size: 12px; font-weight: 600; }
.el b { font: 400 clamp(26px, 2.6vw, 40px)/1 var(--serif); letter-spacing: -.04em; font-weight: 400; }
.el .w { font-size: 11px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.pinfo { contain: size; background: var(--c, var(--mint)); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; transition: background .3s; }
.pinfo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, rgba(43,43,41,.07) .8px, transparent 1.2px) 0 0 / 5px 5px; }
.pinfo .big { position: relative; width: 132px; height: 142px; border: 1.5px solid var(--ink); border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; justify-content: flex-end; }
.pinfo .big .no { position: absolute; left: 12px; top: 9px; font-size: 13px; }
.pinfo .big b { font: 400 64px/1 var(--serif); letter-spacing: -.05em; font-weight: 400; }
.pinfo .big span:last-child { font-size: 13px; }
.pinfo .prop { font: 400 24px/1.12 var(--serif); letter-spacing: -.03em; margin-top: 8px; }
.pinfo .tip { font-size: 15px; line-height: 1.4; color: var(--ink2); }
.plegend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 13px; color: var(--ink2); }
.plegend span { display: inline-flex; align-items: center; gap: 7px; }
.plegend i { width: 12px; height: 12px; border-radius: 3px; }

.price { padding: 0 0 130px; }
.strike { position: absolute; left: -8%; top: 0; width: 116%; height: 100%; overflow: visible; }
.strike path { fill: none; stroke: #e0402e; stroke-width: 2.6; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 130; stroke-dashoffset: 130; animation: penDraw .5s .6s cubic-bezier(.7,0,.3,1) forwards; }
@keyframes penDraw { to { stroke-dashoffset: 0; } }
/* приглашение в первый набор */
.invite { max-width: 820px; margin: 40px auto 90px; }
.inv-reason { background: var(--mint); border-radius: var(--r); padding: 14px 18px; margin-bottom: 14px; font-size: 15px; }
.inv-card { position: relative; background: #f6f0e1 url(img/ticket-paper.webp) center / 100% 100%; border-radius: 6px; padding: 64px 70px 48px; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.inv-seal { position: absolute; right: 54px; top: 46px; width: 120px; transform: rotate(8deg); }
.inv-card h2 { font-size: clamp(44px, 6vw, 72px); line-height: .96; letter-spacing: -.05em; margin: 14px 0 18px; }
.inv-lead { font: 400 20px/1.42 var(--serif); letter-spacing: -.01em; color: #3c3d36; max-width: 560px; }
.inv-price { display: flex; align-items: center; gap: 22px; margin: 34px 0 30px; padding: 22px 0; border-top: 1px solid rgba(43,43,41,.18); border-bottom: 1px solid rgba(43,43,41,.18); }
.inv-price b { font: 400 92px/.9 var(--serif); letter-spacing: -.055em; color: var(--teal-d); font-weight: 400; }
.inv-price span { font-size: 15px; line-height: 1.5; color: var(--ink2); }
.inv-price .old { position: relative; font: 400 22px/1 var(--serif); font-style: normal; color: var(--ink); white-space: nowrap; }
.inv-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; font-size: 15px; }
.inv-list li { padding-left: 22px; position: relative; }
.inv-list li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: 12px; top: 2px; }
.inv-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.inv-gift { font-size: 15px; text-decoration: underline; text-underline-offset: 4px; color: var(--ink2); }
.inv-sign { display: flex; align-items: center; gap: 14px; margin-top: 40px; font-size: 12px; line-height: 1.4; color: var(--ink2); text-transform: uppercase; letter-spacing: .05em; }
.inv-sign img { width: 170px; mix-blend-mode: multiply; }
.inv-seats { width: 100%; margin-top: 4px; font-size: 14px; color: var(--wine); }
.inv-note { font-size: 12px; color: var(--mute); margin-top: 14px; }
.guild { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; margin-top: 60px; background: var(--paper2); border-radius: var(--r); overflow: hidden; }
.guild-art { min-height: 320px; } .guild-art img { width: 100%; height: 100%; object-fit: cover; }
.guild-txt { padding: 44px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.guild-txt h3 { font-size: 40px; line-height: 1; letter-spacing: -.045em; }
.guild-txt p { font-size: 16px; line-height: 1.45; color: var(--ink2); max-width: 440px; }
/* страница для команд */
.teams { padding: 50px 0 90px; }
.teams-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.teams-hero h2.t { text-align: left; margin: 14px 0 0; }
.teams-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); }
.teams-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 60px 0; }
.teams-steps > div { background: var(--mint3); border-radius: var(--r); padding: 26px; }
.teams-steps b { font: 400 italic 30px/1 var(--serif); color: var(--teal); }
.teams-steps h4 { font-size: 28px; line-height: 1.05; margin: 18px 0 10px; }
.teams-steps p { font-size: 15px; line-height: 1.45; color: var(--ink2); }
.petition { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; background: var(--paper2); border-radius: var(--r); padding: 44px; }
.pet-price { font: 400 64px/1 var(--serif); letter-spacing: -.05em; margin: 14px 0 12px; }
.petition p { color: var(--ink2); line-height: 1.45; }
.pet-form { display: grid; gap: 14px; }
.pet-form h3 { font-size: 36px; letter-spacing: -.045em; }
.pet-form label { display: grid; gap: 6px; font-size: 13px; color: var(--ink2); }
.pet-form input:not([type=checkbox]), .pet-form textarea { font: 400 16px/1.3 var(--sans); color: var(--ink); background: var(--paper); border: 0; border-bottom: 1px solid rgba(43,43,41,.3); border-radius: 0; padding: 10px 2px; outline: none; resize: vertical; }
.pet-form input:focus, .pet-form textarea:focus { border-bottom-color: var(--ink); }
.pet-form .pet-ok { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.4; }
.pet-form .pill { justify-self: start; }
.pet-msg { font-size: 14px; color: var(--teal); min-height: 1.2em; }
/* шапка: всё лишнее убрано */
#accountSlot .acc-slink { display: none !important; }
#accountSlot .pill:not(.acc-me) { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(43,43,41,.25); }

/* если бы великие говорили как мы */
.greats { padding: 30px 0 110px; }
.gq { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 46px; }
.gcard { position: relative; display: flex; flex-direction: column; gap: 14px; text-align: left; background: #f6f0e1 url(img/ticket-paper.webp) center / 100% 100%; border-radius: 6px; padding: 22px 22px 18px; min-height: 300px; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.gcard:hover { transform: translateY(-4px) rotate(-.4deg); }
.gcard img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.gq-q { font: 400 23px/1.25 var(--serif); letter-spacing: -.02em; color: #2f302a; flex: 1; }
.gq-q .x { position: relative; color: var(--wine); font-style: italic; transition: color .3s, font-size .4s, opacity .4s; }
.gq-q .x svg { position: absolute; left: -2%; top: 15%; width: 104%; height: 70%; overflow: visible; pointer-events: none; }
.gq-q .x path { fill: none; stroke: #e0402e; stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset .3s cubic-bezier(.7,0,.3,1); }
.gq-q .x.on path { stroke-dashoffset: 0; }
.gcard.cleaned .gq-q .x { font-size: 0; opacity: 0; }
.gq-who { font-size: 12px; color: var(--ink2); }
.gq-who b { font-weight: 500; color: var(--ink); }
.gq-hint { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); border-top: 1px solid rgba(43,43,41,.15); padding-top: 12px; }
.gcard.done .gq-hint { visibility: hidden; }

/* переводчик с паразитского */
.tr { padding: 40px 0 120px; }
.tr-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.tr-h .sec-h { margin-top: 12px; }
.tr-box { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 46px; }
.tr-in, .tr-out { border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.tr-in { background: var(--mint3); }
.tr-out { background: #f6f0e1 url(img/ticket-paper.webp) center / 100% 100%; min-height: 320px; }
.tr-in textarea { flex: 1; min-height: 130px; font: 400 22px/1.35 var(--serif); letter-spacing: -.015em; color: var(--ink); background: transparent; border: 0; outline: none; resize: none; }
.tr-ex { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-ex button { height: 30px; padding: 0 12px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(43,43,41,.2); font-size: 13px; }
.tr-ex button:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.tr-in .pill { align-self: flex-start; }
.tr-marked { font: 400 22px/1.5 var(--serif); letter-spacing: -.015em; color: #3c3d36; min-height: 3em; }
.tr-marked .x { position: relative; color: rgba(43,43,41,.55); white-space: nowrap; }
.tr-marked .x svg { position: absolute; left: -4%; top: 10%; width: 108%; height: 80%; overflow: visible; pointer-events: none; }
.tr-marked .x path { fill: none; stroke: #e0402e; stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset .35s cubic-bezier(.7,0,.3,1); }
.tr-marked .x.on path { stroke-dashoffset: 0; }
.tr-clean { font: 400 30px/1.2 var(--serif); letter-spacing: -.035em; color: var(--teal-d); padding-top: 16px; border-top: 1px solid rgba(43,43,41,.15); min-height: 1.3em; }
.tr-stat { font-size: 13px; color: var(--ink2); margin-top: auto; }
/* лента «что ловит комиссия» */
.ledger-box { margin-top: 44px; max-width: 380px; }
.ledger-h { display: grid; grid-template-columns: 170px 1fr; column-gap: 18px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); font-weight: 500; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.ledger-h span:last-child { color: var(--mute); }
.ledger b { position: relative; justify-self: start; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 14px; font-family: var(--serif); font-style: italic; }
.ledger b::after { content: ""; position: absolute; left: -3px; right: -3px; top: 55%; height: 1.5px; background: #e0402e; transform: rotate(-3deg); }

/* цифры */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; padding: 40px 0 120px; }
.nums .sec-h { grid-column: 1 / 3; grid-row: 1; }
.sq { background: var(--mint); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; }
.sq b { font: 400 68px/1 var(--serif); letter-spacing: -.05em; }
.sq span { font-size: 14px; color: var(--ink2); max-width: 210px; }
.sq.s1 { grid-column: 4; grid-row: 1; } .sq.s2 { grid-column: 3; grid-row: 2; } .sq.s3 { grid-column: 1; grid-row: 2; } .sq.s4 { grid-column: 2; grid-row: 3; } .sq.s5 { grid-column: 3 / 5; grid-row: 3; }
.sq { position: relative; overflow: hidden; }
.sq > * { position: relative; z-index: 1; }
.sq.pat::before { content: ""; position: absolute; inset: 0; background: url(img/ticket-back.webp) center / 180% auto; opacity: .28; mix-blend-mode: multiply; }
.sq.ochre { background: #ead9b5; }
.sq.rose { background: #e6c3b4; }
.sq.art { background: var(--teal); color: var(--paper); }
.sq.art span { color: rgba(251,250,246,.8); }
.sq.art img { position: absolute; z-index: 0; right: -16%; bottom: -12%; height: 105%; opacity: .95; }
.sq.dark { background: var(--mint2); }
.sq.dark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(43,43,41,.12) 1px, transparent 1.4px) 0 0 / 6px 6px; }
.sq.dark span { font: 400 28px/1.12 var(--serif); letter-spacing: -.035em; color: var(--ink); max-width: 420px; }
.sq.dark .pill { align-self: flex-start; }

.promo { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 20px 0 130px; }
.promo-art { border-radius: var(--r); aspect-ratio: 1; }
.promo-art img { width: 100%; height: 100%; object-fit: cover; }

.final { position: relative; height: 660px; overflow: hidden; color: var(--paper); }
.final > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.final::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20,40,40,.85), rgba(20,40,40,.2) 75%); }
.final::after { content: ""; position: absolute; inset: 0; z-index: 1; mix-blend-mode: soft-light; background: radial-gradient(circle, rgba(255,255,255,.55) .9px, transparent 1.3px) 0 0 / 5px 5px; }
.final-in { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 34px; }
.final h2 { font-size: clamp(44px, 5.4vw, 76px); line-height: .98; letter-spacing: -.05em; }
.frieze img { width: 100%; height: clamp(120px, 18vw, 280px); object-fit: cover; object-position: 50% 70%; }

/* БИЛЕТ: стол, колода, вытягивание */
#ticket .center { padding: 34px 0 0; }
h2.t { font-size: clamp(42px, 5vw, 66px); line-height: 1; margin-top: 12px; }
.modes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 22px 0 24px; }
.mode { height: 38px; padding: 0 16px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(43,43,41,.2); background: transparent; font-size: 14px; color: var(--ink); appearance: none; -webkit-appearance: none; font-family: var(--sans); }
.mode.on { background: var(--ink); color: var(--paper); box-shadow: none; }
select.mode { padding-right: 34px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%232b2b29'/%3E%3C/svg%3E") no-repeat right 14px center; max-width: 280px; cursor: pointer; }
.table { position: relative; height: min(560px, calc(100vh - 290px)); min-height: 440px; border-radius: var(--r); overflow: hidden; background: var(--felt) url(img/table-felt.webp) center / cover; perspective: 1600px; }
.table::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; background: radial-gradient(circle, rgba(255,255,255,.35) .9px, transparent 1.3px) 0 0 / 5px 5px; }
.deck { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.tcard { position: absolute; width: 150px; height: 210px; left: -75px; top: -105px; border-radius: 6px; cursor: pointer;
  background: #efe7d4 url(img/ticket-back.webp) center / cover; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 16px 26px -14px rgba(0,0,0,.6);
  transition: transform .55s cubic-bezier(.25,.8,.25,1), box-shadow .3s, opacity .4s; will-change: transform; }

.deck.fanned .tcard:hover { box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 30px 40px -16px rgba(0,0,0,.7); }
.deck.busy .tcard { pointer-events: none; }
.table-hint { position: absolute; left: 0; right: 0; bottom: 28px; text-align: center; color: rgba(251,250,246,.85); font: 400 italic 22px/1 var(--serif); letter-spacing: -.02em; transition: opacity .3s; }
.drawn { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.drawn.on { pointer-events: auto; }
.table.open { height: auto; min-height: 0; }
.table.open .deck { display: none; }
.table.open .drawn { position: relative; inset: auto; display: flex; flex-direction: column; align-items: center; padding: 44px 20px 40px; gap: 30px; }
/* призыв «поехали» — главный элемент экрана после билета */
.go { display: flex; flex-direction: column; align-items: center; gap: 14px; opacity: 0; transform: translateY(16px); transition: opacity .5s .55s, transform .6s .55s cubic-bezier(.2,.8,.2,1); }
.drawn.on .go { opacity: 1; transform: none; }
.go-k { font: 400 italic 26px/1.1 var(--serif); letter-spacing: -.02em; color: var(--paper); text-align: center; }
.go-btn { position: relative; display: inline-flex; align-items: center; gap: 14px; height: 74px; padding: 0 40px 0 14px; border-radius: 99px; background: var(--paper); color: var(--ink); font: 500 22px/1 var(--sans); box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); transition: transform .2s, background .2s; }
.go-btn:hover { transform: scale(1.04); background: #fff; }
.go-btn:active { transform: scale(.98); }
.go-btn::before, .go-btn::after { content: ""; position: absolute; inset: -6px; border-radius: 99px; border: 2px solid rgba(251,250,246,.55); animation: ring 2.2s ease-out infinite; pointer-events: none; }
.go-btn::after { animation-delay: 1.1s; }
@keyframes ring { from { transform: scale(.96); opacity: 1; } to { transform: scale(1.18, 1.45); opacity: 0; } }
.go-btn .mic { width: 48px; height: 48px; border-radius: 50%; background: var(--wine); color: #fff; display: grid; place-items: center; }
.go-alt { color: rgba(251,250,246,.8); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.go-alt:hover { color: #fff; }
.drawn .tk { transform-origin: 50% 50%; }

/* Лицевая сторона — как настоящий экзаменационный билет */
.tk { position: relative; width: min(760px, calc(100% - 40px)); aspect-ratio: 900 / 640; color: #23251f; padding: 5.2% 7%; border-radius: 4px;
  background: #f5efdf url(img/ticket-paper.webp) center / 100% 100%; box-shadow: 0 2px 0 rgba(0,0,0,.08), 0 40px 70px -30px rgba(0,0,0,.75);
  transform: rotateY(-90deg) scale(.7); opacity: 0; transition: transform .6s cubic-bezier(.2,.8,.25,1.1), opacity .2s; display: flex; flex-direction: column; font-family: var(--serif); }
.drawn.on .tk { transform: rotate(-1.2deg); opacity: 1; }
.table.open .tk { width: min(720px, 100%); }
.tk .top { display: flex; justify-content: space-between; gap: 20px; font-size: 11px; line-height: 1.35; letter-spacing: .06em; text-transform: uppercase; font-family: var(--sans); }
.tk .top .r { text-align: right; position: relative; }
.tk .sig { position: absolute; right: 0; top: 18px; width: 120px; opacity: .9; mix-blend-mode: multiply; transform: rotate(-4deg); }
.tk .title { text-align: center; margin-top: 4.5%; font-size: 15px; letter-spacing: .32em; text-transform: uppercase; font-family: var(--sans); font-weight: 500; }
.tk .title b { font-weight: 600; }
.tk .disc { text-align: center; font: italic 400 17px/1.2 var(--serif); margin-top: 6px; color: #4a4c44; }
.tk ol { margin: 5% 0 0; padding-left: 1.3em; display: grid; gap: 12px; }
.tk ol li { padding-left: 4px; }
.tk ol li:first-child { font-size: clamp(22px, 3vw, 32px); line-height: 1.08; letter-spacing: -.035em; }
.tk ol li:last-child { font-size: 15px; color: #4a4c44; font-style: italic; }
.tk .bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; font-family: var(--sans); font-size: 11px; letter-spacing: .04em; color: #4a4c44; }
.tk .stamp-svg { position: absolute; right: 9%; bottom: 8%; width: 132px; height: 132px; color: #2f6c79; opacity: 0; transform: rotate(-16deg) scale(1.8); }
.drawn.on .tk .stamp-svg { animation: stampIn .35s .75s cubic-bezier(.3,1.5,.5,1) forwards; }
@keyframes stampIn { to { opacity: .85; transform: rotate(-16deg) scale(1); } }

.row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.row.left { justify-content: flex-start; }
.note { color: var(--mute); font-size: 14px; margin: 16px 0 60px; }

/* ОТВЕТ */
.rec { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: center; max-width: 1000px; margin: 50px auto 30px; }
.rec .judge { position: relative; border-radius: var(--r); overflow: hidden; animation: nod 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes nod { 0%,100% { transform: rotate(0); } 40% { transform: rotate(-1deg) translateY(2px); } 60% { transform: rotate(.6deg); } }
.rec .judge img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.rec .topic { font: 400 40px/1.03 var(--serif); letter-spacing: -.04em; margin: 12px 0 30px; }
.timer { display: flex; align-items: center; gap: 22px; }
.ring { position: relative; width: 132px; height: 132px; flex: none; }
.hg { width: 84px; height: 132px; object-fit: contain; flex: none; transition: transform .9s cubic-bezier(.5,0,.3,1.3); }
.hg.flip { transform: rotate(180deg); }
.ring svg { transform: rotate(-90deg); }
.ring .num { position: absolute; inset: 0; display: grid; place-items: center; font: 400 50px/1 var(--serif); letter-spacing: -.05em; }
.wave { flex: 1; height: 100px; background: var(--mint3); border-radius: var(--r); }
.live { display: flex; align-items: center; gap: 8px; color: var(--wine); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wine); animation: blink 1s infinite; }

.confer { text-align: center; padding: 60px 0 90px; }
.heads { display: flex; justify-content: center; margin: 26px auto; max-width: 860px; }
.hero-table { width: 100%; border-radius: var(--r); animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.01); } }
.confer p { font: 400 italic 28px/1.25 var(--serif); letter-spacing: -.02em; color: var(--ink2); min-height: 1.4em; }

/* ЭКЗАМЕНАЦИОННЫЙ ЛИСТ */
.sheet { position: relative; max-width: 1040px; margin: 40px auto 30px; background: #fff; border-radius: var(--r); padding: 46px 52px; box-shadow: 0 1px 0 var(--line), 0 30px 70px -40px rgba(30,40,40,.35); }
.sheet .head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; border-bottom: 1px solid var(--ink); padding-bottom: 16px; }
.sheet .head h3 { font-size: 44px; line-height: 1; letter-spacing: -.05em; }
.sheet .head .meta { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); text-align: right; line-height: 1.5; }
.sheet .q { font: 400 italic 24px/1.25 var(--serif); letter-spacing: -.02em; margin: 18px 0 6px; color: var(--ink2); }
.verdict { display: grid; grid-template-columns: 190px 1fr 200px; gap: 34px; align-items: center; margin: 30px 0; }
.talk { position: relative; border-radius: var(--r); overflow: hidden; }
.talk img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.talk img.b { position: absolute; inset: 0; opacity: 0; }
.say .who { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); font-weight: 500; }
.say .txt { font: 400 32px/1.1 var(--serif); letter-spacing: -.035em; margin-top: 8px; min-height: 2.2em; }
.stamp { width: 184px; height: 184px; border-radius: 50%; display: grid; place-items: center; text-align: center; color: var(--teal); border: 4px double currentColor; transform: rotate(-12deg) scale(2.6); opacity: 0; mix-blend-mode: multiply; }
.stamp.down { animation: stamp .45s cubic-bezier(.3,1.6,.5,1) forwards; }
@keyframes stamp { to { transform: rotate(-12deg) scale(1); opacity: .9; } }
.stamp .m { font: 400 96px/.8 var(--serif); letter-spacing: -.05em; }
.stamp .l { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-top: 10px; max-width: 120px; }
.stamp { position: relative; }
.stamp-img { position: absolute; inset: -14%; width: 128%; height: 128%; object-fit: contain; }
.stamp.has-img { border-color: transparent; }
.stamp.has-img .stamp-txt { visibility: hidden; }
.stamp.g2 { color: var(--wine); } .stamp.g3 { color: #a8641f; } .stamp.g6 { color: var(--gold); }
.sense-bad { background: #f3dcd5; border-radius: var(--r); padding: 16px 20px; margin: 0 0 18px; font-size: 16px; line-height: 1.45; }
.sense-bad b { font: 400 22px/1 var(--serif); letter-spacing: -.02em; margin-right: 6px; }
.sense-bad.warn { background: #ead9b5; }
.tiles.one { grid-template-columns: 1fr; }
.tiles.one .tile { min-height: 0; flex-direction: row; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.tiles.one .tile b { padding: 0; margin: 0; }
.mblock { margin: 0 0 34px; }
.mblock h4 { font-size: 28px; line-height: 1.05; margin-bottom: 14px; }
.mgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mcard { background: var(--paper); border-radius: var(--r); padding: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.mcard summary { list-style: none; cursor: pointer; display: grid; gap: 4px; }
.mcard summary::-webkit-details-marker { display: none; }
.mcard .ml { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.mcard b { font: 400 38px/1 var(--serif); letter-spacing: -.045em; font-weight: 400; }
.mcard b i { font: 400 14px/1 var(--sans); font-style: normal; letter-spacing: 0; color: var(--ink2); }
.mcard .ms { font-size: 12px; font-weight: 500; }
.mcard.st-ok .ms { color: var(--teal); } .mcard.st-low .ms, .mcard.st-high .ms { color: var(--wine); }
.mcard p { font-size: 13px; line-height: 1.45; color: var(--ink2); margin-top: 10px; }
.mspark { width: 100%; height: 38px; margin-top: 4px; }
.meter { display: block; height: 4px; border-radius: 2px; background: var(--line); margin-top: 8px; overflow: hidden; } .meter em { display: block; height: 100%; background: var(--teal); }
.mx { font-size: 12px; color: var(--ink2); }
.mcard.tl { grid-column: span 1; }
.thirds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; align-items: end; height: 70px; margin-top: 8px; }
.thirds div { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 4px; }
.thirds i { display: block; background: var(--wine); opacity: .7; border-radius: 3px 3px 0 0; min-height: 3px; }
.thirds span { font-size: 10px; color: var(--ink2); }
.mnote { font-size: 12px; color: var(--mute); margin-top: 8px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 34px; }
.tile { background: var(--mint3); border-radius: var(--r); padding: 18px; min-height: 140px; display: flex; flex-direction: column; }
.tile b { display: block; font: 400 52px/1 var(--serif); letter-spacing: -.05em; margin-bottom: auto; padding-bottom: 14px; }
.tile span { font-size: 14px; }
.tile small { display: block; font-size: 12px; color: var(--ink2); margin-top: 2px; }
.grid2 { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: start; }
.grid2.res { grid-template-columns: 1.3fr 1fr; gap: 40px; }
.ptable.mine { grid-template-columns: repeat(4, 1fr); }
.ptable.mine .el { opacity: 0; transform: scale(.6) rotate(-6deg); transition: opacity .3s, transform .45s cubic-bezier(.3,1.6,.5,1); }
.ptable.mine .el.in { opacity: 1; transform: none; }
.content-box { display: grid; grid-template-columns: 260px 1fr; gap: 30px; background: var(--paper2); border-radius: var(--r); padding: 26px; margin: 0 0 34px; }
.cmark { font: 400 110px/.9 var(--serif); letter-spacing: -.05em; margin: 10px 0; }
.cverdict { font: 400 21px/1.2 var(--serif); letter-spacing: -.02em; }
.cbars { display: grid; gap: 12px; align-content: start; font-size: 15px; }
.cb { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.cb b { font-weight: 500; }
.cb i { grid-column: 1 / -1; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.cb i em { display: block; height: 100%; background: var(--teal); }
.cbars p { font-size: 15px; line-height: 1.4; color: var(--ink2); }
.cbars p b { color: var(--ink); font-weight: 500; }
.jar-box { text-align: center; }
.jar { position: relative; width: 250px; height: 300px; margin: 0 auto; }
.jar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 2; pointer-events: none; }
.jar svg { position: absolute; inset: 0; }
.jar .bugs { position: absolute; left: 40px; right: 40px; bottom: 34px; height: 180px; display: flex; flex-wrap: wrap-reverse; align-content: flex-start; justify-content: center; gap: 0; overflow: hidden; z-index: 1; }
.jar-box h4, .side h4, .sheet h4 { font-size: 28px; line-height: 1.05; margin-bottom: 12px; }
.jar-box p { font-size: 14px; color: var(--ink2); }
.bug { display: inline-block; width: 46px; height: 46px; animation: jiggle 2.4s ease-in-out infinite; }
.bug:nth-child(2n) { animation-delay: -1.1s; } .bug:nth-child(3n) { animation-duration: 3s; }
.bug img { width: 100%; height: 100%; object-fit: contain; }
@keyframes jiggle { 50% { transform: translateY(-3px) rotate(4deg); } }
.bug.fly { position: fixed; z-index: 50; width: 90px; height: 90px; pointer-events: none; animation: none; }
.bug.fly b { position: absolute; transform: translate(-50%, -50%); font-size: 11px; font-weight: 600; color: var(--ink); white-space: nowrap; background: #f1e3c4; border-radius: 4px; padding: 0 3px; }
.side .top-list { list-style: none; padding: 0; display: grid; margin-bottom: 22px; }
.side .top-list li { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; border-bottom: 1px solid var(--line); padding: 12px 0; }
.side .top-list b { font-weight: 500; font-size: 17px; }
.side .top-list .n { font: 400 32px/1 var(--serif); letter-spacing: -.04em; }
.side .top-list .bar { grid-column: 1 / -1; height: 3px; background: var(--mint3); overflow: hidden; }
.side .top-list .bar i { display: block; height: 100%; background: var(--teal); width: 0; transition: width .8s .2s; }
.side .top-list small { grid-column: 1 / -1; color: var(--ink2); font-size: 14px; }
.clean { padding: 18px; border-radius: var(--r); background: var(--mint); font-size: 16px; }
.speech { line-height: 2; font-size: 17px; background: var(--paper); border-radius: var(--r); padding: 20px 22px; }
.speech .f { background: var(--yellow); border-radius: 3px; padding: 1px 4px; cursor: help; }
.speech .m { border-bottom: 2px dashed var(--gold); cursor: help; }
.legend { display: flex; gap: 22px; align-items: center; font-size: 13px; color: var(--ink2); margin: 8px 0 14px; flex-wrap: wrap; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; line-height: 1.4; }
.legend .lf { background: var(--yellow); border-radius: 3px; padding: 0 5px; color: var(--ink); }
.legend .lm { border-bottom: 2px dashed var(--gold); color: var(--ink); line-height: 1.2; }
.homework { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 30px; }
.hw { border-radius: var(--r); padding: 28px; background: var(--teal); color: var(--paper); }
.hw.light { background: var(--mint3); color: var(--ink); }
.hw h4 { font-size: 32px !important; margin-bottom: 10px; }
.hw .lbl { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; margin-bottom: 10px; }
.hw p { font-size: 16px; line-height: 1.42; }
.hw ol { padding-left: 20px; margin-top: 8px; font-size: 15px; line-height: 1.42; }
.hw li { margin: 5px 0; }
.hw .why { font-size: 13px; opacity: .75; margin-top: 12px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0 80px; }
.err { max-width: 560px; margin: 60px auto; text-align: center; }
.err p { font: 400 32px/1.12 var(--serif); letter-spacing: -.035em; margin: 22px 0 28px; }

/* ЗАЧЁТКА */
.book { max-width: 1040px; margin: 40px auto 80px; }
.book .cover { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; background: var(--teal); color: var(--paper); border-radius: var(--r); padding: 30px 34px; }
.book .cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, rgba(255,255,255,.12) 1px, transparent 1.4px) 0 0 / 6px 6px; }
.book .cover .rk { font: 400 48px/1 var(--serif); letter-spacing: -.05em; margin: 6px 0; }
.book .cover small { opacity: .75; font-size: 13px; }
.seal { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--teal-d); font: 400 46px/1 var(--serif); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0 34px; }
.chart { background: var(--mint3); border-radius: var(--r); padding: 20px; margin-bottom: 30px; }
.chart svg { width: 100%; height: 160px; margin-top: 10px; }
.ach { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-bottom: 34px; }
.ach > div { background: var(--mint3); border-radius: var(--r); padding: 14px; font-size: 15px; display: flex; gap: 12px; align-items: flex-start; }
.ach > div.off { opacity: .4; }
.ach .medal { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; color: var(--paper); font-size: 14px; }
.course { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 14px 0 8px; max-width: 560px; }
.course button { aspect-ratio: 1; border-radius: var(--r); background: var(--mint3); font: 400 24px/1 var(--serif); letter-spacing: -.03em; }
.course button.done { background: var(--teal); color: var(--paper); }
.course button.today { box-shadow: inset 0 0 0 2px var(--ink); }
.course button.lock { opacity: .4; }
.day-card { background: #fff; border-radius: var(--r); padding: 26px; margin-top: 14px; box-shadow: 0 1px 0 var(--line); }
.day-card h4 { font-size: 36px; line-height: 1; margin-top: 8px; }
.day-card .ch { margin-top: 16px; padding: 16px; border-radius: var(--r); background: var(--mint3); font-size: 15px; line-height: 1.42; }
.day-card details { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.day-card summary { cursor: pointer; font-weight: 500; }
.day-card ol { padding-left: 20px; font-size: 15px; margin-top: 8px; line-height: 1.42; }
h3.sec { font-size: 44px; line-height: 1; margin: 44px 0 14px; }
.history > div { display: grid; grid-template-columns: 54px 1fr auto; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 15px; }
.history .g { font: 400 36px/1 var(--serif); text-align: center; color: var(--teal); }
.history .g.g2 { color: var(--wine); }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, calc(100% + 60px)); visibility: hidden; background: var(--ink); color: var(--paper); padding: 10px 18px 10px 10px; border-radius: 99px; z-index: 99; display: flex; gap: 12px; align-items: center; font-size: 15px; transition: transform .4s cubic-bezier(.3,1.4,.5,1); max-width: calc(100% - 32px); }
.toast.on { transform: translate(-50%, 0); visibility: visible; }
.toast .medal { width: 30px; height: 30px; border-radius: 50%; background: var(--mint); color: var(--ink); display: grid; place-items: center; flex: none; }
.foot { background: var(--paper2); margin-top: 0; }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 80px 32px 50px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand .f-logo { height: 46px; width: auto; }
.foot-brand p { font: 400 26px/1.12 var(--serif); letter-spacing: -.035em; margin: 22px 0 26px; max-width: 360px; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 15px; }
.foot-col .kicker { margin-bottom: 6px; }
.foot-col button, .foot-col a { padding: 0; text-align: left; }
.foot-col a:hover, .foot-col button:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-seal { font-size: 13px; color: var(--ink2); line-height: 1.4; }
.foot-seal .f-sig { width: 170px; margin: 10px 0 4px; mix-blend-mode: multiply; }
.foot-note { max-width: 1200px; margin: 0 auto; padding: 22px 32px 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.author { display: inline-flex; align-items: center; gap: 12px; padding: 6px 18px 6px 6px; border-radius: 99px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px -18px rgba(30,40,40,.35); text-align: left; transition: box-shadow .25s, transform .25s; }
.author:hover { box-shadow: inset 0 0 0 1px var(--ink), 0 14px 34px -18px rgba(30,40,40,.45); transform: translateY(-2px); }
.author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.author span { display: grid; gap: 4px; }
.author em { font: italic 400 19px/1.05 var(--serif); letter-spacing: -.03em; color: var(--ink); }
.author small { font: 500 10px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.author i { font-style: normal; font-size: 18px; color: var(--teal); margin-left: 6px; transition: transform .25s; }
.author:hover i { transform: translateX(4px); }
/* посвящение */
.dedic { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgba(30,40,40,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .3s ease; }
.dedic[hidden] { display: none; }
.dedic-card { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--paper); border-radius: var(--r); padding: 40px 42px 32px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); animation: rise .5s cubic-bezier(.2,.75,.15,1); }
.dedic-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--line); border-radius: 4px; pointer-events: none; }
.dedic-card h3 { font-size: 40px; line-height: 1.02; letter-spacing: -.045em; margin: 12px 0 22px; }
.dedic-card h3 em { color: var(--teal); }
.dedic-card p { font: 400 19px/1.45 var(--serif); letter-spacing: -.01em; margin-bottom: 14px; color: #34352f; }
.dedic-sign { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font: italic 400 17px/1.25 var(--serif); }
.dedic-sign img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.dedic-sign a { margin-left: auto; font: 400 13px/1 var(--sans); color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
.dedic-x { position: absolute; right: 18px; top: 14px; width: 36px; height: 36px; font-size: 26px; line-height: 1; color: var(--mute); z-index: 1; }
.dedic-x:hover { color: var(--ink); }
.foot-note a { text-decoration: underline; }

@media (max-width: 1080px) {
  .guild, .teams-hero, .petition, .tr-box { grid-template-columns: 1fr; }
  .gq { grid-template-columns: repeat(2, 1fr); }
  .ftabs { grid-template-columns: repeat(2, 1fr); } .bill-full { height: auto; } .bill-full canvas, .bill-full::after { position: relative; display: block; left: auto; width: 100%; height: 420px; -webkit-mask: url(img/dither-b.png) 0 0 / 100% 100%; mask: url(img/dither-b.png) 0 0 / 100% 100%; } .bill-full::after { position: absolute; top: 0; left: 0; height: 420px; } .bill-full .scene { left: 0; height: 420px; } .bill-ui { height: auto; padding-top: 10px; } .bill-side { width: 100%; } .bill-list { flex-direction: row; overflow-x: auto; border: 0; gap: 6px; padding-bottom: 4px; } .bill-list li { border: 0; flex: none; } .bill-list button { padding: 8px 14px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); } .bill-list button.on { background: var(--ink); color: var(--paper); } .bill-list .r, .bill-list .bar { display: none; } .bill-list .t { font: 400 15px/1 var(--sans); letter-spacing: 0; } .teams-steps { grid-template-columns: 1fr; }
  .pt-grid, .tb-grid { grid-template-columns: 1fr; } .ptable, .ptable.full { grid-template-columns: repeat(6, 1fr); }
  .pinfo { contain: none; height: 230px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 0; }
  .hero-art { order: -1; margin: 0 -32px; aspect-ratio: 4 / 3; min-height: 0; align-self: auto; }
  .hero { padding: 0 0 50px; row-gap: 10px; }

  .hero-art > canvas { -webkit-mask: url(img/dither-b.png) 0 0 / 100% 100%; mask: url(img/dither-b.png) 0 0 / 100% 100%; }
  .hero-art > img { aspect-ratio: 4 / 3;
    -webkit-mask: url(img/dither-b.png) 0 0 / 100% 100%; mask: url(img/dither-b.png) 0 0 / 100% 100%; }
  .bubble { left: 32px; top: 20px; }
  .ledger-box { display: none; }
  .scatter { grid-template-columns: repeat(3, 1fr); gap: 30px 20px; padding: 0; margin-top: 70px; }
  .mem:nth-child(n) { transform: none; } .mem:nth-child(3n+2) { transform: translateY(40px); }
  .paras, .promo { grid-template-columns: 1fr; gap: 40px; }
  .nums { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .nums .sec-h { grid-column: 1 / -1; }
  .sq.s1 { grid-column: 2; grid-row: 2; } .sq.s2 { grid-column: 1; grid-row: 2; } .sq.s3 { grid-column: 1; grid-row: 3; } .sq.s4 { grid-column: 2; grid-row: 3; } .sq.s5 { grid-column: 1 / -1; grid-row: 4; }
  .rec { grid-template-columns: 1fr; gap: 20px; margin-top: 30px; }
  .rec .judge { width: 200px; margin: 0 auto; }
  .rec .topic { font-size: 30px; text-align: center; }
  .verdict { grid-template-columns: 130px 1fr; }
  .verdict .stamp { grid-column: 1 / -1; justify-self: center; }
  .tiles, .stats, .mgrid { grid-template-columns: repeat(2, 1fr); }
  .grid2, .grid2.res, .homework, .content-box { grid-template-columns: 1fr; }
  .book .cover { grid-template-columns: auto 1fr; } .book .cover .pill { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 640px) {
  .wrap, .nav-in, .final-in { padding: 0 16px; }
  .nav-in { gap: 10px; }
  .ribbon { left: 16px; width: 38px; height: 78px; padding-top: 26px; } .ribbon img { width: 22px; height: 22px; }
  .logo { margin-left: 50px; }
  #bookChip { display: none; }
  .hero-art { margin: 0 -16px; }
  .bubble { left: 16px; right: 16px; width: auto; top: 14px; font-size: 13px; min-height: 0; padding: 10px 12px 10px 10px; }
  .bubble .av { width: 34px; height: 34px; }
  h1 { font-size: 46px; margin-bottom: 16px; }
  .lead { font-size: 17px; }
  .cta { margin-top: 22px; } .cta .pill { flex: 1 1 100%; }
  .mint, .commission { padding: 76px 0 80px; }
  .cards.three { grid-template-columns: 1fr; margin-top: 34px; } .cards.three .pcard { aspect-ratio: 4 / 3.4; }
  .pcard .n { font-size: 32px; }
  .scatter { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .mem:nth-child(n) { transform: none; } .mem:nth-child(2n) { transform: translateY(40px); }
  .mem .cap b { font-size: 22px; }
  .paras { padding: 80px 0 60px; }
  .nums { grid-auto-rows: 160px; gap: 8px; padding-bottom: 80px; }
  .sq b { font-size: 40px; white-space: nowrap; } .sq.dark span { font-size: 21px; }
  .promo { padding-bottom: 80px; }
  .gq { grid-template-columns: 1fr; } .gcard { min-height: 0; }

  .sb { font-size: 15px; max-width: 70%; } .stamp-drop { width: 100px; } .s-daily .board { width: 220px; } .s-daily .leaf { width: 140px; } .s-exam .tk-mini { width: 230px; margin-left: -115px; } .s-duel .dverdict { white-space: normal; width: 86%; text-align: center; }
  .price { padding-bottom: 80px; } .guild-txt, .petition { padding: 26px 20px; } .inv-card { padding: 40px 22px 30px; } .inv-seal { width: 72px; right: 18px; top: 18px; } .inv-list { grid-template-columns: 1fr; } .inv-price { flex-direction: column; align-items: flex-start; gap: 8px; } .inv-price b { font-size: 72px; } .inv-lead { font-size: 17px; } .guild-txt h3 { font-size: 32px; } .guild-art { min-height: 200px; } .pet-price { font-size: 48px; }
  .ptable-sec { padding: 80px 0 60px; } .ptable, .ptable.full { grid-template-columns: repeat(4, 1fr); gap: 5px; } .el b { font-size: 26px; }
  .pinfo { flex-direction: row; align-items: flex-start; contain: none; height: 210px; } .pinfo .big { width: 96px; height: 104px; flex: none; } .pinfo .big b { font-size: 44px; } .pinfo .prop { font-size: 19px; }
  .foot-in { grid-template-columns: 1fr; padding: 56px 16px 30px; gap: 30px; } .foot-note { padding: 18px 16px 30px; }
  .author em { font-size: 17px; } .dedic-card { padding: 34px 24px 26px; } .dedic-card h3 { font-size: 32px; } .dedic-card p { font-size: 17px; }
  .final { height: 520px; } .final h2 { font-size: 34px; }
  .table { height: 470px; margin: 0 -16px; border-radius: 0; }
  .tcard { width: 104px; height: 146px; left: -52px; top: -73px; }
  .tk { padding: 5% 6%; aspect-ratio: auto; min-height: 330px; }
  .table.open .drawn { padding: 26px 12px 30px; gap: 22px; }
  .go-k { font-size: 21px; } .go-btn { height: 66px; font-size: 19px; padding-right: 30px; width: 100%; justify-content: center; }
  .tk .top { font-size: 8.5px; } .tk .sig { width: 80px; top: 22px; }
  .tk .title { font-size: 11px; letter-spacing: .2em; margin-top: 18px; }
  .tk .disc { font-size: 14px; }
  .tk ol li:last-child { font-size: 13px; }
  .tk .stamp-svg { width: 78px; height: 78px; right: 10px; bottom: 26px; }
  .tk ol { margin-bottom: 70px; }
  .row .pill { flex: 1 1 100%; }
  .sheet { padding: 26px 18px; margin-top: 20px; }
  .sheet .head { flex-direction: column; align-items: flex-start; } .sheet .head .meta { text-align: left; }
  .say .txt { font-size: 24px; }
  .stamp { width: 150px; height: 150px; } .stamp .m { font-size: 72px; }
  .tile b { font-size: 40px; }
  .timer { flex-wrap: wrap; justify-content: center; } .wave { width: 100%; flex: none; }
  .course { gap: 4px; } .course button { font-size: 18px; }
  .book .cover .rk { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01s !important; transition: none !important; } }

.s-exam .stamp-drop { right: auto; bottom: auto; left: calc(50% + 70px); top: 4%; width: 130px; }
.s-exam .tk-mini b { font-size: 28px; }

.s-exam .tk-mini { top: 8%; }
.s-exam .clock { left: auto; right: 6%; top: 8%; }
.s-exam .stamp-drop { top: 24%; left: calc(50% + 120px); width: 120px; }

@media (max-width: 1080px) { .steps4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .steps4 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; gap: 10px; margin: 30px -16px 0; padding: 0 16px 6px; scrollbar-width: none; }
  .steps4::-webkit-scrollbar { display: none; }
  .steps4::after { content: ""; flex: 0 0 6px; }
  .swipe-hint { display: flex !important; }
  .st { flex: 0 0 74%; scroll-snap-align: start; }
  .st .pcard { aspect-ratio: 4 / 3.6; } .st .pcard .n { font-size: 26px; left: 16px; bottom: 16px; } .st .pcard .k { left: 16px; top: 14px; font-size: 11px; }
  .st p { font-size: 14px; }
  .mint { padding: 60px 0 64px; } .mint .sec-h { font-size: 38px; }
  .bubble { font-size: 14px; }
  .scatter { grid-template-columns: repeat(3, 1fr) !important; gap: 18px 10px !important; } .mem:nth-child(n) { transform: none !important; } .mem:nth-child(3n+2) { transform: translateY(26px) !important; }
  .mem .cap b { font-size: 16px; } .mem .cap span { font-size: 9px; letter-spacing: .04em; }
  .mem .line { font-size: 13px; padding: 9px 10px; left: -4px; right: -4px; }
  .fstage .sb { font-size: 13px; padding: 8px 11px; max-width: 64%; }
  .fstage .fig { height: 66% !important; }
  .s-duel .sb.l { left: 3%; top: auto; bottom: 30%; } .s-duel .sb.r { right: 3%; top: auto; bottom: 46%; }
  .s-job .sb.q { left: 3%; top: auto; bottom: 46%; } .s-job .sb.a { right: 3%; top: auto; bottom: 30%; }
  .s-exam .tk-mini { width: 210px; margin-left: -105px; padding: 12px; } .s-exam .tk-mini b { font-size: 18px; } .s-exam .clock { width: 54px; height: 54px; } .s-exam .stamp-drop { width: 84px; left: calc(50% + 40px); top: 22%; }
  .s-duel .sc { width: 52px; height: 52px; font-size: 24px; top: 40%; } .s-duel .crown { display: none; }
  .s-daily .board { width: 200px; right: 3%; } .s-daily .leaf { left: 3%; width: 120px; padding: 12px; } .s-daily .leaf b { font-size: 24px; }
}
@media (max-width: 640px) { .ftabs { display: flex; overflow-x: auto; } .ftabs button { flex: 0 0 72%; } .ftabs .fn { font-size: 24px; } .fstage { height: 420px; } }
