/* Dnevnik Ra: dnevnik arheologa. Razporeditev F: levi stalni meni. */
:root {
  --paper: #EADBC0;
  --paper-2: #E0CDA9;
  --paper-3: #F4EAD6;
  --ink: #2B2118;
  --ink-2: #5A4636;
  --ink-3: #8a7560;
  --teal: #2F8F8B;
  --teal-ink: #1E6563;
  --wax: #8E3B2F;
  --gold: #D9B26A;
  --gold-2: #B98B3E;
  --stone: #1C1611;
  --glyph: #D8A95F;
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --side: 284px;
  --r: 12px;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .22 0 0 0 0 .12 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; font: 400 1rem/1.68 var(--sans); color: var(--ink);
  background: var(--paper) var(--noise);
  overflow-x: hidden; font-variant-numeric: lining-nums;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(30, 101, 99, .45); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
button, input, select { font: inherit; color: inherit; }
.ico { width: 1.4em; height: 1.4em; flex: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.005em; margin: 0; }
p { margin: 0 0 1em; }

/* ---------------------------------------------------------------- каркас */
.shell { display: block; }
.main { min-width: 0; }
.top {
  position: sticky; top: 0; z-index: 50; height: 56px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px 0 16px; background: var(--ink); color: var(--paper); border-bottom: 1px solid #000;
}
.top__brand { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; font: 600 1.45rem/1 var(--serif); }
.top__brand .ico { color: var(--gold); width: 30px; height: 30px; }
.top__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(217, 178, 106, .5); background: transparent; color: var(--paper); cursor: pointer; font-size: .92rem;
}
.top__btn .ico { width: 20px; height: 20px; }

.side {
  position: fixed; inset: 0 auto 0 0; z-index: 70; width: min(86vw, 330px); transform: translateX(-104%);
  transition: transform .32s ease; display: flex; flex-direction: column; gap: 22px; padding: 26px 22px 22px 22px;
  overflow-y: auto; overscroll-behavior: contain; color: var(--paper);
  background: linear-gradient(90deg, rgba(0, 0, 0, .25), transparent 18%), radial-gradient(140% 70% at 30% 0%, #3b2b1f, #2B2118 60%, #1f1710), var(--noise);
  background-color: #2B2118;
  box-shadow: inset -12px 0 0 -10px rgba(217, 178, 106, .0);
}
.side::after { content: ""; position: absolute; top: 10px; bottom: 10px; right: 9px; border-right: 2px dashed rgba(217, 178, 106, .28); pointer-events: none; }
.nav-open .side { transform: none; }
.side__x { position: absolute; top: 16px; right: 22px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(217, 178, 106, .45); background: transparent; color: var(--paper); cursor: pointer; z-index: 2; }
.side__x .ico { width: 18px; height: 18px; }
@media (min-width: 1024px) { .side__x { display: none; } }
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(15, 10, 6, .55); }
.scrim[hidden] { display: none; }
.brand { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; color: var(--paper); text-decoration: none; }
.brand__seal { grid-row: span 2; width: 50px; height: 50px; color: var(--gold); }
.brand__n { font: 600 1.9rem/1 var(--serif); }
.brand__s { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(234, 219, 192, .62); }
.toc__t, .side__foot p { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.toc__list, .toc__sub { list-style: none; margin: 0; padding: 0; }
.toc__i > a {
  display: flex; align-items: baseline; gap: 10px; padding: 9px 10px; border-radius: 8px; color: rgba(234, 219, 192, .86);
  text-decoration: none; font-size: .98rem;
}
.toc__i > a:hover { background: rgba(234, 219, 192, .07); color: #fff6e4; }
.toc__n { width: 2.1em; flex: none; font: italic 500 1.06rem/1 var(--serif); color: var(--gold); }
.toc__i.is-cur > a { background: rgba(217, 178, 106, .15); color: #fff6e4; font-weight: 500; }
.toc__sub { margin: 4px 0 10px 1.65em; padding-left: 12px; border-left: 1px solid rgba(217, 178, 106, .3); }
.toc__sub a { display: block; padding: 5px 8px; font-size: .84rem; line-height: 1.35; color: rgba(234, 219, 192, .7); text-decoration: none; border-radius: 6px; }
.toc__sub a:hover { color: #fff6e4; background: rgba(234, 219, 192, .06); }
.side__foot { margin-top: auto; display: flex; gap: 12px; align-items: center; padding-top: 16px; border-top: 1px solid rgba(217, 178, 106, .22); }
.side__foot p { text-transform: none; letter-spacing: 0; font-size: .82rem; color: rgba(234, 219, 192, .75); margin: 0; line-height: 1.4; }
.side__foot a { color: var(--gold); }
.age {
  display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid currentColor; font: 700 .78rem/1 var(--sans); color: #e9806d;
}

@media (min-width: 1024px) {
  .top { display: none; }
  .shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); }
  .side { position: sticky; top: 0; height: 100vh; width: auto; transform: none; transition: none; z-index: 10; }
  .scrim { display: none !important; }
  html { scroll-padding-top: 20px; }
}

/* ---------------------------------------------------------------- стена гробницы + факел */
.wall { position: relative; overflow: hidden; overflow: clip; isolation: isolate; color: var(--paper); background: var(--stone); }
.wall__stone {
  position: absolute; inset: 0; z-index: -3;
  background:
    linear-gradient(rgba(0, 0, 0, .32) 2px, transparent 2px) 0 0 / 100% 120px,
    var(--noise),
    radial-gradient(120% 90% at 55% 40%, #3d2e21 0%, #261c15 55%, #140f0b 100%);
}
.wall__art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; color: var(--glyph); }
.wall__art symbol *, .wall__art g > path { vector-effect: non-scaling-stroke; stroke-width: 1.7px; }
.wall__dark {
  position: absolute; left: 0; top: 0; width: 200%; height: 200%; z-index: -1; pointer-events: none;
  transform: translate3d(-15%, -27.5%, 0); will-change: transform;
  background: radial-gradient(circle at 50% 50%, rgba(14, 9, 6, 0) 0, rgba(14, 9, 6, .08) 95px, rgba(14, 9, 6, .62) 200px, rgba(14, 9, 6, .86) 320px, rgba(14, 9, 6, .9) 100%);
}
.wall__glow {
  position: absolute; left: 50%; top: 50%; width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 178, 92, .24) 0, rgba(255, 140, 60, .09) 38%, rgba(255, 140, 60, 0) 68%);
  animation: flick 2.6s ease-in-out infinite;
}
@keyframes flick { 0%, 100% { opacity: .85; } 30% { opacity: 1; } 55% { opacity: .7; } 70% { opacity: .95; } }
.wall__inner { position: relative; z-index: 2; }
.kicker { font: 600 .74rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--glyph); margin: 0 0 14px; }

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "note"; gap: 18px; padding: 22px 16px 44px; max-width: 1200px; margin: 0 auto;
}
.hero__head { grid-area: head; }
.hero h1 { font-size: clamp(2.2rem, 8.6vw, 4.1rem); line-height: 1.02; color: #f5e9d2; text-shadow: 0 2px 22px rgba(0, 0, 0, .6); margin-bottom: 4px; max-width: 16ch; }
.hero__book { grid-area: book; display: grid; justify-items: center; gap: 4px; }
.fieldnote { grid-area: note; }
.fieldnote p { break-inside: avoid; }
.fieldnote {
  position: relative; max-width: 620px; padding: 22px 20px 6px; color: var(--ink); border-radius: 3px;
  background: var(--paper) var(--noise); transform: rotate(-.5deg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 22px 44px rgba(0, 0, 0, .5);
}
.fieldnote::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 120px; height: 26px; margin-left: -60px; transform: rotate(-2deg);
  background: rgba(233, 220, 190, .55); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); backdrop-filter: blur(1px);
}
.fieldnote p { font-size: 1rem; }
.hero__jump { margin: 22px 0 0; }
.hero__jump { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  font: 500 .95rem/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; transition: transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn .ico { width: 20px; height: 20px; }
.btn--gold { background: var(--gold); color: var(--ink); border-color: #f0cf8d; box-shadow: 0 8px 26px rgba(217, 178, 106, .25); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--line { background: transparent; color: var(--ink); border-color: rgba(43, 33, 24, .45); }
.hero__flip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(217, 178, 106, .45); background: rgba(20, 14, 10, .4); color: var(--paper); font-size: .85rem;
}
.hero__flip .ico { width: 18px; height: 18px; color: var(--gold); }

@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-areas: "head ." "note ."; align-items: start; gap: 26px 44px; padding: 56px clamp(24px, 4vw, 64px) 80px; }
  .hero__book { position: sticky; top: 36px; align-self: start; padding-top: 10px; }
  .fieldnote { padding: 28px 30px 12px; max-width: none; margin-top: 10px; }
  .fieldnote p { font-size: 1.04rem; }
}


/* ---------------------------------------------------------------- 3D-книга */
.book3d { position: relative; width: min(560px, 100%); aspect-ratio: 1.5; perspective: 1700px; container-type: inline-size; margin: 8px auto 6px; }
.book3d__tilt { position: absolute; inset: 8% 4%; transform-style: preserve-3d; transform: rotateX(26deg) rotateZ(-3deg); }
.book3d__obj { position: absolute; inset: 0; transform-style: preserve-3d; }
.bk-board { position: absolute; top: -3.5%; height: 107%; width: 52%; transform: translateZ(-9px); border-radius: 5px;
  background: linear-gradient(160deg, #73452a, #4e2d1a 60%, #3c2213); box-shadow: 0 0 0 2px #2c190e, 0 26px 40px rgba(0, 0, 0, .55); }
.bk-board--l { left: -2%; border-radius: 10px 4px 4px 10px; }
.bk-board--r { left: 50%; border-radius: 4px 10px 10px 4px; }
.bk-stack { position: absolute; top: 0; height: 100%; width: 50%; transform: translateZ(-5.6px); background: #e6d6b6; }
.bk-stack--r { left: 50%; box-shadow: 1px 1px 0 #d6c39f, 2px 2px 0 #cdb791, 3px 3px 0 #c3ac84, 4px 4px 0 #b9a17a; border-radius: 0 4px 4px 0; }
.bk-stack--l { left: 0; box-shadow: -1px 1px 0 #d6c39f, -2px 2px 0 #cdb791, -3px 3px 0 #c3ac84, -4px 4px 0 #b9a17a; border-radius: 4px 0 0 4px; }
.bk-base { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; transform: translateZ(-1px); background: #efe3c8; border-radius: 0 4px 4px 0; overflow: hidden; }
.bk-leaf { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; transform-style: preserve-3d; transform-origin: 0 50%;
  transform: rotateY(0deg) translateZ(calc((7 - var(--i)) * .6px)); }
.bk-leaf--cover { transform: rotateY(-180deg) translateZ(4.2px); }
.bk-face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; color: var(--ink);
  background: linear-gradient(90deg, rgba(60, 40, 20, .2), rgba(60, 40, 20, 0) 14%), #f1e5cb; border-radius: 0 4px 4px 0; }
.bk-face--b { transform: rotateY(180deg); border-radius: 4px 0 0 4px; background: linear-gradient(270deg, rgba(60, 40, 20, .2), rgba(60, 40, 20, 0) 14%), #ede0c4; }
.bk-cover { display: grid; place-items: center; align-content: center; gap: 4cqw; color: var(--gold);
  background: radial-gradient(90% 70% at 50% 40%, #7d4a2b, #55301b 70%, #43250f); border-radius: 4px 10px 10px 4px;
  box-shadow: inset 0 0 0 1.4cqw #4a2914, inset 0 0 0 1.8cqw rgba(217, 178, 106, .55); }
.bk-cover__ico { width: 16cqw; height: 16cqw; }
.bk-cover__t { font: 700 5.4cqw/1 var(--serif); letter-spacing: .2em; text-align: center; }
.bk-inside { background: linear-gradient(270deg, rgba(60, 40, 20, .25), transparent 16%), repeating-linear-gradient(45deg, #2f6f6b 0 6px, #2a625f 6px 12px); }
.bk-inside .pg { background: #efe3c8; margin: 9%; height: 82%; border-radius: 3px; }
.pg { position: absolute; inset: 0; padding: 8% 9%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.bk-inside .pg { position: relative; inset: auto; }
.pg__ico { width: 15cqw; height: 15cqw; color: var(--ink); margin-bottom: 1.2cqw; }
.pg__name { font: 700 4.6cqw/1.05 var(--serif); margin: 0 0 1cqw; }
.pg__sub { font: italic 500 3cqw/1.2 var(--serif); margin: 0 0 1.4cqw; color: var(--ink-2); }
.pg__foot { font: 500 2.1cqw/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 1.4cqw 0 0; }
.pg__pays { list-style: none; margin: 0; padding: 0; width: 100%; font: 600 3cqw/1.5 var(--serif); }
.pg__pays li { display: flex; justify-content: space-between; border-bottom: 1px dotted rgba(43, 33, 24, .35); }
.pg__pays span { color: var(--ink-2); font-weight: 500; }
.pg__big { font: 700 13cqw/1 var(--serif); color: var(--teal-ink); margin: 0; }
.pg__row { display: flex; gap: 1cqw; }
.pg__card { width: 7.4cqw; height: 7.4cqw; color: var(--ink); }
.pg__lines { width: 80%; margin: 1cqw 0; }
.pg__lines rect { fill: rgba(43, 33, 24, .07); stroke: rgba(43, 33, 24, .35); stroke-width: .8; }
.pg__lines polyline { fill: none; stroke: var(--teal); stroke-width: 1.1; opacity: .7; }
.pg__dl { display: grid; grid-template-columns: auto auto; gap: .6cqw 2.4cqw; margin: 1cqw 0; font: 600 3.2cqw/1.25 var(--serif); }
.pg__dl dt { color: var(--ink-2); font-weight: 500; text-align: left; }
.pg__dl dd { margin: 0; text-align: right; }
.pg__seal { width: 15cqw; height: 15cqw; color: var(--gold-2); margin-bottom: 1.5cqw; }
.book3d__shadow { position: absolute; left: 10%; right: 10%; bottom: -2%; height: 16%; z-index: -1; background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent); }

/* ---------------------------------------------------------------- бумага, записи */
.paper { padding: 0 16px 48px; }
.paper > * { max-width: 1060px; margin-left: auto; margin-right: auto; }
.lead { padding-top: 34px; }
.lead > * { max-width: 760px; }
.lead p { font-size: 1.08rem; }
.lead > p:first-child::first-letter { float: left; font: 700 4.1em/.82 var(--serif); margin: .06em .1em 0 0; color: var(--teal-ink); }
.entries { counter-reset: e; }
.entry { padding: 44px 0 6px; border-top: 1px solid rgba(43, 33, 24, .16); }
.entry__text { max-width: 720px; }
.entry__k { font: italic 500 1.12rem/1 var(--serif); color: var(--teal-ink); margin: 0 0 8px; }
.entry h2 { font-size: clamp(1.75rem, 4.6vw, 2.4rem); margin-bottom: 18px; }
.entry ul, .lead ul, .fieldnote ul { list-style: none; padding: 0; margin: 0 0 1.2em; }
.entry ul li, .lead ul li { position: relative; padding-left: 26px; margin-bottom: .55em; }
.entry ul li::before, .lead ul li::before { content: ""; position: absolute; left: 4px; top: .66em; width: 9px; height: 9px; border: 1.5px solid var(--teal-ink); transform: rotate(45deg); }
.entry ol, .lead ol { counter-reset: o; list-style: none; padding: 0; margin: 0 0 1.2em; }
.entry ol li, .lead ol li { counter-increment: o; position: relative; padding: 2px 0 0 46px; margin-bottom: .8em; min-height: 32px; }
.entry ol li::before, .lead ol li::before {
  content: counter(o); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--ink); font: 700 1.05rem/1 var(--serif); background: var(--paper-3);
}
.note { margin: 6px 0 1.3em; padding: 14px 18px 4px 18px; border-left: 3px solid var(--teal); background: rgba(47, 143, 139, .09); border-radius: 0 10px 10px 0; }
.note p { margin-bottom: .7em; font-size: .97rem; }
.note p::before { content: "Zapisek · "; font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink); }
.entry__marg { margin: 6px 0 22px; max-width: 360px; }
.entry--ledger ul:first-of-type li::before { content: "+"; border: 0; transform: none; top: 0; left: 2px; width: auto; height: auto; font: 700 1.2rem/1.4 var(--serif); color: var(--teal-ink); }
.entry--ledger ul:nth-of-type(2) li::before { content: "−"; border: 0; transform: none; top: 0; left: 2px; width: auto; height: auto; font: 700 1.2rem/1.4 var(--serif); color: var(--wax); }
.entry--ledger ul { background: var(--paper-3); padding: 14px 16px 6px; border-radius: 10px; border: 1px solid rgba(43, 33, 24, .14); }
.entry--ledger ul li { padding-left: 24px; }

@media (min-width: 760px) {
  .paper { padding: 0 clamp(24px, 4vw, 56px) 56px; }
  .entry { padding-top: 56px; }
}
@media (min-width: 1240px) {
  .entry.has-marg { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 56px; }
  .entry__marg { position: sticky; top: 36px; align-self: start; margin: 46px 0 0; }
}

/* заметки на полях */
.mnote { position: relative; padding: 18px 18px 12px; background: var(--paper-3) var(--noise); border: 1px solid rgba(43, 33, 24, .16); border-radius: 4px; transform: rotate(.8deg); box-shadow: 0 10px 24px rgba(60, 40, 20, .14); }
.mnote::before { content: ""; position: absolute; top: -10px; left: 24px; width: 70px; height: 20px; background: rgba(47, 143, 139, .28); transform: rotate(-4deg); }
.mnote__k { font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-ink); margin: 0 0 10px; }
.mnote__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mnote__pair b { display: block; font: 700 2.4rem/1 var(--serif); }
.mnote__pair span { font-size: .8rem; color: var(--ink-2); line-height: 1.25; display: block; }
.mnote__s { font-size: .82rem; color: var(--ink-2); margin: 10px 0 0; }
.mnote--book .ico { width: 40px; height: 40px; float: right; color: var(--gold-2); }
.mnote__pays { list-style: none; margin: 0; padding: 0; }
.mnote__pays li { display: flex; justify-content: space-between; border-bottom: 1px dotted rgba(43, 33, 24, .3); font: 600 1.25rem/1.7 var(--serif); }
.mnote__pays li:last-child span::after { content: " knjig"; }
.mnote__pays span::after { content: " knjige"; font: 400 .8rem var(--sans); color: var(--ink-2); }
.mnote__big { display: block; font: 700 3rem/1 var(--serif); color: var(--wax); }

/* ---------------------------------------------------------------- общие блоки */
.blk { padding: 44px 0 10px; }
.blk__t { font-size: clamp(1.7rem, 4.4vw, 2.35rem); margin-bottom: 22px; max-width: 760px; }
.blk__t span { display: block; font: 600 .72rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 8px; }
.field { display: grid; gap: 6px; font-size: .86rem; font-weight: 500; color: var(--ink-2); }
.field input[type=number], .field select {
  min-height: 46px; padding: 0 12px; border: 1.5px solid rgba(43, 33, 24, .4); border-radius: 10px; background: var(--paper-3); color: var(--ink);
  font: 600 1.05rem var(--sans); width: 100%; max-width: 220px;
}
.field input[type=range] { width: 100%; accent-color: var(--teal-ink); min-height: 32px; }
.field b { color: var(--ink); }

/* ---------------------------------------------------------------- нет демо + симулятор */
.simsec { padding: 34px 0 18px; }
.simsec--inner { padding-top: 20px; }
.simsec__head { display: grid; gap: 18px; margin-bottom: 30px; }
.nodemo { border: 1.5px solid rgba(142, 59, 47, .45); border-left: 6px solid var(--wax); border-radius: 6px 12px 12px 6px; padding: 16px 18px 4px; background: rgba(142, 59, 47, .06); }
.nodemo__k { display: flex; align-items: center; gap: 8px; font: 600 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--wax); margin: 0 0 10px; }
.nodemo__k .ico { width: 18px; height: 18px; }
.nodemo__t { font-size: 1rem; }
.nodemo__t strong { font-weight: 600; }
@media (min-width: 900px) { .simsec__head:has(.photo) { grid-template-columns: minmax(0, 1fr) 340px; align-items: center; } }

.sim {
  display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); padding: 18px 14px; border-radius: 14px;
  border: 1px solid rgba(43, 33, 24, .26);
  background-color: #f1e6cf;
  background-image: linear-gradient(rgba(47, 143, 139, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 143, 139, .13) 1px, transparent 1px);
  background-size: 22px 22px; box-shadow: 0 18px 40px rgba(60, 40, 20, .12);
}
.sim__pick { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sim__pick legend, .sim__step { font: 600 .9rem/1.3 var(--sans); margin: 0 0 10px; padding: 0; color: var(--ink); }
.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 4px 12px 4px 6px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(43, 33, 24, .3); background: var(--paper-3); font-size: .88rem; font-weight: 500; transition: background .2s, color .2s; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip .ico { width: 30px; height: 30px; }
.chip:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
.chip--low span { font-size: .8rem; }
.sim__stage { min-width: 0; }
.sim__gridwrap { position: relative; aspect-ratio: 5 / 3.15; max-width: 600px; }
.sim__grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.reel {
  display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 5px; padding: 5px; border-radius: 10px; cursor: pointer; min-width: 0;
  border: 1.5px dashed rgba(43, 33, 24, .38); background: rgba(255, 252, 244, .55); transition: background .25s, border-color .25s;
}
.reel:hover { border-color: var(--ink); }
.reel.is-on { border-style: solid; border-color: var(--ink); }
.reel.is-exp { background: linear-gradient(180deg, #f6dfa8, #e9c47a); border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(217, 178, 106, .35), 0 8px 18px rgba(185, 139, 62, .35); }
.cell { display: grid; place-items: center; border-radius: 6px; background: rgba(43, 33, 24, .06); min-height: 0; overflow: hidden; }
.cell .ico { width: 74%; height: 74%; max-width: 64px; max-height: 64px; color: var(--ink); }
.cell.is-hit { background: #fffaf0; box-shadow: inset 0 0 0 1.5px var(--ink); }
.reel.is-exp .cell { background: rgba(255, 248, 230, .7); }
.cell.is-grow .ico { animation: grow .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.cell.is-grow:nth-child(1) .ico { animation-delay: .05s; } .cell.is-grow:nth-child(3) .ico { animation-delay: .12s; }
@keyframes grow { from { transform: scale(.2) translateY(30%); opacity: 0; } to { transform: none; opacity: 1; } }
.sim__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sim__lines polyline { fill: none; stroke: var(--teal-ink); stroke-width: 3; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .35s; stroke-linejoin: round; }
.sim__lines polyline.is-on { opacity: .3; }
.sim__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.sim__ctl { display: grid; gap: 16px; align-content: start; }
.sim__out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sim__kpi { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--paper-3); border: 1px solid rgba(43, 33, 24, .16); min-width: 0; }
.sim__kpi b { font: 700 clamp(1.5rem, 5vw, 2rem)/1.05 var(--serif); overflow-wrap: anywhere; }
.sim__kpi small { font-size: .78rem; color: var(--ink-2); line-height: 1.3; }
.sim__kpi--eur { background: var(--teal-ink); color: #f4ead6; border-color: var(--teal-ink); }
.sim__kpi--eur small { color: rgba(244, 234, 214, .82); }
.sim__msg { grid-column: 1 / -1; font-size: .95rem; padding: 4px 2px; }
.sim__fine { font-size: .8rem; color: var(--ink-2); margin: 0; }
@media (min-width: 900px) {
  .sim { grid-template-columns: minmax(0, 1fr) 250px; padding: 26px; gap: 22px 28px; }
  .sim__pick, .sim__out, .sim__fine { grid-column: 1 / -1; }
  .sim__out { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .reel { gap: 7px; padding: 7px; }
  .sim__grid { gap: 10px; }
}

/* ---------------------------------------------------------------- характеристики */
.specs { display: grid; gap: 26px; padding: 40px 0 16px; }
.specs__stamps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: start; }
.stamp {
  display: grid; gap: 4px; padding: 14px 12px; text-align: center; border-radius: 12px; border: 2.5px solid currentColor;
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4.5px currentColor; color: var(--teal-ink); background: rgba(255, 250, 238, .35);
}
.stamp span { font: 600 .68rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.stamp b { font: 700 1.55rem/1.05 var(--serif); color: var(--ink); }
.stamp--0 { transform: rotate(-2deg); } .stamp--1 { transform: rotate(1.5deg); color: var(--wax); } .stamp--2 { transform: rotate(1deg); color: var(--wax); } .stamp--3 { transform: rotate(-1.2deg); }
.catcard { background: var(--paper-3) var(--noise); border: 1px solid rgba(43, 33, 24, .2); border-radius: 6px; box-shadow: 0 16px 34px rgba(60, 40, 20, .12); overflow: hidden; }
.catcard__t { padding: 14px 18px; background: var(--teal-ink); color: #f4ead6; font-size: 1.7rem; }
.catcard__t span { display: block; font: 600 .66rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; opacity: .8; margin-bottom: 4px; }
.catcard__dl { margin: 0; padding: 6px 18px 4px; }
.catcard__dl div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(43, 33, 24, .25); align-items: baseline; }
.catcard__dl dt { font-size: .84rem; color: var(--ink-2); }
.catcard__dl dd { margin: 0; font: 600 1.15rem/1.25 var(--serif); }
.catcard__fine { font-size: .78rem; color: var(--ink-2); padding: 10px 18px 14px; margin: 0; }
@media (min-width: 900px) {
  .specs { grid-template-columns: 300px minmax(0, 1fr); gap: 34px; align-items: start; }
  .specs__stamps { grid-template-columns: 1fr 1fr; position: sticky; top: 30px; }
  .catcard__dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; }
}

/* ---------------------------------------------------------------- таблица выплат */
.ptab { display: grid; gap: 16px; }
.ptab__ctl { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; padding: 16px; border-radius: 12px; background: var(--paper-3); border: 1px solid rgba(43, 33, 24, .18); }
.ptab__ctl .field { flex: 1 1 140px; }
.ptab__total { margin: 0; display: grid; font-size: .82rem; color: var(--ink-2); font-weight: 500; flex: 1 1 140px; }
.ptab__total b { font: 700 1.7rem/1.1 var(--serif); color: var(--teal-ink); }
.tablewrap { overflow-x: auto; position: relative; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 1px solid rgba(43, 33, 24, .2); background: rgba(255, 250, 238, .5); }
.pt { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 340px; }
.pt caption { text-align: left; padding: 12px 14px 4px; font: italic 500 1rem/1.3 var(--serif); color: var(--ink-2); }
.pt th, .pt td { padding: 9px 6px; border-bottom: 1px dashed rgba(43, 33, 24, .22); text-align: center; vertical-align: middle; }
.pt thead th { font: 600 .74rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1.5px solid var(--ink); }
.pt tbody th { text-align: left; font-weight: 500; }
.pt-sym { display: flex; align-items: center; gap: 8px; }
.pt-sym .ico { width: 30px; height: 30px; }
.pt-sym small { display: block; font-size: .7rem; color: var(--teal-ink); font-weight: 600; letter-spacing: .04em; }
.pt-x { display: block; font: 700 1.15rem/1.1 var(--serif); }
.pt-eur i { font-style: normal; }
.pt-eur { display: block; font-size: .74rem; color: var(--ink-2); margin-top: 2px; white-space: nowrap; }
.pt-none { color: var(--ink-3); }
.pt-high .pt-sym .ico { color: var(--wax); }
.pt-wild { background: rgba(217, 178, 106, .2); }
.pt-wild .pt-sym .ico { color: var(--gold-2); }
.ptab__note { font-size: .84rem; color: var(--ink-2); margin: 0; }
@media (max-width: 560px) {
  .pt th, .pt td { padding: 8px 3px; }
  .pt-sym { gap: 5px; font-size: .84rem; }
  .pt-sym .ico { width: 22px; height: 22px; }
  .pt-x { font-size: 1rem; }
  .pt-eur { font-size: .66rem; }
  .pt-eur i { display: none; }
  .pt thead th { font-size: .62rem; letter-spacing: .02em; }
}

/* ---------------------------------------------------------------- малые вставки */
.scheme { margin: 8px 0 34px; display: grid; gap: 12px; max-width: 640px; }
.scheme__board { padding: 10px; border-radius: 12px; background: #f1e6cf; border: 1px solid rgba(43, 33, 24, .2); }
.scheme__svg rect { fill: rgba(43, 33, 24, .05); stroke: rgba(43, 33, 24, .3); stroke-width: 2; }
.scheme__svg polyline { fill: none; stroke: var(--teal); stroke-width: 4; opacity: .16; stroke-linejoin: round; stroke-linecap: round; transition: opacity .25s; }
.scheme__svg polyline.is-on { opacity: 1; stroke: var(--wax); stroke-width: 7; }
.scheme__keys { display: flex; flex-wrap: wrap; gap: 8px; }
.scheme__keys button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper-3); font: 700 1.1rem/1 var(--serif); cursor: pointer; }
.scheme__keys button[aria-pressed=true] { background: var(--wax); color: #fff3e6; border-color: var(--wax); }
.scheme figcaption, .rtpfig figcaption, .vol figcaption { font-size: .84rem; color: var(--ink-2); }

.rtpfig { margin: 6px 0 34px; max-width: 720px; padding: 18px; border-radius: 12px; background: var(--paper-3); border: 1px solid rgba(43, 33, 24, .18); }
.rtpfig__bars { display: grid; gap: 14px; }
.rbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.rbar__n { font-size: .88rem; font-weight: 500; }
.rbar__v { grid-column: 2; grid-row: 1; font: 700 1.2rem/1 var(--serif); }
.rbar__track { grid-column: 1 / -1; height: 16px; border-radius: 4px; background: rgba(43, 33, 24, .08); overflow: hidden; }
.rbar__fill { display: block; height: 100%; width: var(--w); background: repeating-linear-gradient(135deg, var(--ink-2) 0 2px, transparent 2px 6px); border-right: 2px solid var(--ink); }
.rbar.is-main .rbar__fill { background: var(--wax); border-color: var(--wax); }
.rbar.is-main .rbar__v { color: var(--wax); }
.rbar.is-ref .rbar__fill { background: repeating-linear-gradient(135deg, var(--teal) 0 2px, transparent 2px 6px); border-color: var(--teal-ink); }
.rtpfig__axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ink-3); margin: 6px 0 8px; }

.vol { margin: 6px 0 34px; max-width: 560px; }
.vol__scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-bottom: 8px; }
.vol__cell { height: 46px; display: grid; place-items: end center; padding-bottom: 4px; font-size: .7rem; color: var(--ink-2); border-bottom: 3px solid rgba(43, 33, 24, .25); background: rgba(43, 33, 24, .05); }
.vol__cell:nth-child(1) { height: 22px; } .vol__cell:nth-child(2) { height: 28px; } .vol__cell:nth-child(3) { height: 34px; } .vol__cell:nth-child(4) { height: 40px; }
.vol__scale { align-items: end; }
.vol__cell.is-on { background: var(--wax); color: #fff2e4; border-color: #5d2219; font-weight: 600; }

.maxwin { margin: 6px 0 34px; display: grid; gap: 18px; align-items: center; max-width: 720px; }
.maxwin__seal { width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 2px; text-align: center; color: var(--wax);
  border: 3px solid currentColor; box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 7px currentColor; transform: rotate(-6deg); }
.maxwin__seal .ico { width: 34px; height: 34px; }
.maxwin__seal b { font: 700 2.2rem/1 var(--serif); color: var(--ink); }
.maxwin__seal span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.maxwin__calc p { margin: 10px 0 0; font-size: .95rem; }
.maxwin__calc b { font: 700 1.3rem/1.2 var(--serif); color: var(--teal-ink); white-space: nowrap; }
@media (min-width: 640px) { .maxwin { grid-template-columns: 190px minmax(0, 1fr); } }

.flow { list-style: none; margin: 4px 0 36px; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); counter-reset: none; }
.flow__step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--paper-3); border: 1px solid rgba(43, 33, 24, .18); }
.flow__step .ico { grid-row: span 2; width: 44px; height: 44px; color: var(--ink); }
.flow__step b { font: 700 1.2rem/1.15 var(--serif); }
.flow__step small { font-size: .82rem; color: var(--ink-2); }
.flow__n { position: absolute; right: 12px; top: 8px; font: italic 500 .95rem/1 var(--serif); color: var(--teal-ink); }
@media (min-width: 640px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) {
  .flow { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
  .flow__step { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 16px 10px; border-radius: 0; border-right: 0; }
  .flow__step:first-child { border-radius: 10px 0 0 10px; } .flow__step:last-child { border-radius: 0 10px 10px 0; border-right: 1px solid rgba(43, 33, 24, .18); }
  .flow__step .ico { grid-row: auto; margin-bottom: 6px; }
  .flow__step + .flow__step::before { content: ""; position: absolute; left: -7px; top: 38px; width: 12px; height: 12px; border-top: 2px solid var(--teal-ink); border-right: 2px solid var(--teal-ink); transform: rotate(45deg); background: var(--paper-3); }
}

.strata { list-style: none; margin: 10px 0 30px; padding: 0; display: flex; flex-direction: column-reverse; max-width: 720px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(43, 33, 24, .25); }
.strata__l { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 14px; padding: 12px 16px; align-items: baseline; }
.strata__l:nth-child(1) { background: #b99a6e; } .strata__l:nth-child(2) { background: #cdb48b; } .strata__l:nth-child(3) { background: #dcc7a2; } .strata__l:nth-child(4) { background: #e8d9bb; }
.strata__l b { font: 700 1.2rem/1.2 var(--serif); }
.strata__l small { grid-column: 2; font-size: .82rem; color: var(--ink); opacity: .82; }
.strata__y { grid-row: span 2; font: 700 1.7rem/1 var(--serif); color: var(--ink); }
.strata__l.is-main { box-shadow: inset 6px 0 0 var(--wax); }
.strata__l.is-main b::after { content: "  klasika"; font: 600 .66rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff2e4; background: var(--wax); padding: 3px 7px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }

.gcard { text-align: center; }
.gcard__btn { width: 132px; height: 184px; margin: 0 auto 10px; padding: 0; border: 0; background: none; cursor: pointer; perspective: 800px; display: block; }
.gcard__in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, 1.3, .5, 1); }
.gcard.is-flipped .gcard__in { transform: rotateY(180deg); }
.gcard__back, .gcard__face { position: absolute; inset: 0; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; box-shadow: 0 12px 26px rgba(60, 40, 20, .25); }
.gcard__back { background: repeating-linear-gradient(45deg, #2f6f6b 0 7px, #285f5c 7px 14px); color: var(--gold); border: 5px solid #f4ead6; }
.gcard__back .ico { width: 54px; height: 54px; }
.gcard__face { transform: rotateY(180deg); background: #fbf4e4; border: 1px solid rgba(43, 33, 24, .25); font: 700 4.2rem/1 var(--serif); color: #b3261e; }
.gcard__face.is-black { color: var(--ink); }
.gcard__t { font: 700 1.25rem/1.1 var(--serif); margin: 0; }
.gcard__s { font-size: .8rem; color: var(--ink-2); margin: 4px 0 0; }

/* ---------------------------------------------------------------- галерея, FAQ, индекс */
.gal { padding: 44px 0 10px; }
.gal__grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .gal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.photo { margin: 0; padding: 10px 10px 8px; background: #fbf5e8; box-shadow: 0 14px 30px rgba(60, 40, 20, .2); border-radius: 2px; position: relative; }
.photo img { width: 100%; height: auto; filter: sepia(.12); }
.photo figcaption { font: italic 500 1rem/1.3 var(--serif); padding: 8px 2px 0; color: var(--ink-2); }
.photo--0 { transform: rotate(-.8deg); } .photo--1 { transform: rotate(.7deg); } .photo--2 { transform: rotate(-.3deg); }
.photo::before { content: ""; position: absolute; top: -9px; left: 50%; width: 84px; height: 20px; margin-left: -42px; background: rgba(47, 143, 139, .25); transform: rotate(2deg); }

.faq { padding: 50px 0 10px; }
.faq__list { max-width: 820px; border-top: 1.5px solid var(--ink); }
.qa { border-bottom: 1px dashed rgba(43, 33, 24, .3); }
.qa summary { list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: baseline; justify-content: space-between; padding: 16px 2px; font: 600 1.28rem/1.25 var(--serif); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 500 1.2rem/1 var(--sans); transition: transform .25s; }
.qa[open] summary::after { transform: rotate(45deg); background: var(--ink); color: var(--paper); }
.qa__a { padding: 0 2px 10px; max-width: 740px; }

.more { padding: 50px 0 20px; }
.more__list { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.more__list a { display: grid; grid-template-columns: 44px minmax(0, 1fr) 26px; gap: 12px; align-items: center; padding: 14px 4px; border-bottom: 1px dashed rgba(43, 33, 24, .3); text-decoration: none; color: var(--ink); }
.more__list a:hover { background: rgba(255, 250, 238, .5); }
.more__n { font: italic 600 1.35rem/1 var(--serif); color: var(--teal-ink); }
.more__txt b { display: block; font: 700 1.3rem/1.15 var(--serif); }
.more__txt small { display: block; font-size: .84rem; color: var(--ink-2); line-height: 1.35; }
.more__dots { display: none; }
.more__ico { width: 22px; height: 22px; color: var(--teal-ink); transition: transform .2s; }
.more__list a:hover .more__ico { transform: translateX(4px); }

.sealrow { display: flex; align-items: center; gap: 14px; padding: 30px 0 0; color: var(--ink-2); font: italic 500 1.1rem/1.3 var(--serif); }
.sealrow .ico { width: 54px; height: 54px; color: var(--wax); transform: rotate(-8deg); }
.sealrow p { margin: 0; }

/* ---------------------------------------------------------------- внутренние страницы: шапка-стена */
.phead { max-width: 1200px; margin: 0 auto; padding: 30px 16px 40px; min-height: 250px; display: flex; flex-direction: column; justify-content: flex-end; }
.phead h1 { font-size: clamp(2.1rem, 7.6vw, 3.9rem); line-height: 1.02; color: #f5e9d2; text-shadow: 0 2px 22px rgba(0, 0, 0, .65); max-width: 18ch; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 auto; font-size: .84rem; color: rgba(234, 219, 192, .75); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--glyph); }
.crumbs a { color: var(--paper); }
.crumbs { margin-bottom: 48px; }
@media (min-width: 900px) { .phead { padding: 34px clamp(24px, 4vw, 64px) 52px; min-height: 340px; } }

/* ---------------------------------------------------------------- футер */
.foot { background: var(--ink) var(--noise); color: rgba(234, 219, 192, .86); padding: 40px 16px 34px; }
.foot__in { max-width: 1060px; margin: 0 auto; display: grid; gap: 26px; }
.foot__brand { display: flex; gap: 14px; align-items: flex-start; }
.foot__brand .ico { width: 46px; height: 46px; color: var(--gold); }
.foot__brand b { font: 600 1.5rem/1 var(--serif); color: #f5e9d2; }
.foot__brand p { margin: 0; font-size: .9rem; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot__nav a { color: var(--paper); font-size: .92rem; min-height: 32px; display: inline-flex; align-items: center; }
.foot__rg { font-size: .84rem; border-top: 1px solid rgba(217, 178, 106, .22); padding-top: 20px; }
.foot__rg a { color: var(--gold); }
.foot__age { display: flex; gap: 12px; align-items: center; color: #f5e9d2; }
.foot__upd { color: rgba(234, 219, 192, .6); margin: 0; }
@media (min-width: 900px) { .foot { padding: 48px clamp(24px, 4vw, 56px) 40px; } .foot__in { grid-template-columns: 1fr 1.3fr; } .foot__rg { grid-column: 1 / -1; } }

@media (max-width: 699px) { .wall--page .wall__art { opacity: .5; } .phead h1 { text-shadow: 0 2px 16px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .8); } }

/* ---------------------------------------------------------------- без анимаций */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- арт игры (tools/brand.mjs) */
.brand__seal, .top__ico { border-radius: 22%; box-shadow: 0 6px 16px rgba(0, 0, 0, .45); }
.top__ico { width: 30px; height: 30px; }
.wall__photo { position: absolute; top: 0; right: 0; z-index: -2; width: 100%; aspect-ratio: 16 / 9; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent); mask-image: linear-gradient(180deg, #000 62%, transparent); }
.wall__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; }
.wall--hero .wall__dark { opacity: .5; }
.wall--hero .hero { padding-top: 46vw; }
.hero__logo { display: block; width: min(100%, 520px); height: auto; margin: 0 0 14px -8px; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .6)); }
.btn--glass { background: rgba(20, 14, 10, .45); color: var(--paper); border-color: rgba(217, 178, 106, .55); }
@media (min-width: 900px) {
  .wall__photo { width: 78%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%), linear-gradient(180deg, #000 60%, transparent);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 38%), linear-gradient(180deg, #000 60%, transparent); mask-composite: intersect; }
  .wall--hero .hero { padding-top: 56px; }
}

/* ---------------------------------------------------------------- демо Deluxe */
.demo { margin: 0 0 48px; }
.demo__note { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 18px; padding: 14px 16px; border-left: 5px solid var(--wax); border-radius: 4px 10px 10px 4px; background: rgba(142, 59, 47, .07); font-size: .98rem; }
.demo__note .ico { flex: none; width: 22px; height: 22px; margin-top: 3px; color: var(--wax); }
.demo__note strong { font-weight: 600; }
.demo__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: var(--stone);
  box-shadow: 0 0 0 1px rgba(217, 178, 106, .6), 0 0 0 6px #2b2118, 0 26px 50px rgba(0, 0, 0, .35); }
.demo__poster { width: 100%; height: 100%; object-fit: cover; filter: brightness(.5) saturate(1.1); }
.demo__play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 16px; border: 0; background: transparent; color: var(--paper-3); font: inherit; text-align: center; cursor: pointer; }
.demo__orb { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; color: var(--ink); transition: transform .2s ease;
  background: radial-gradient(circle at 35% 30%, #f6dc9c, var(--gold) 55%, var(--gold-2)); box-shadow: 0 0 0 6px rgba(217, 178, 106, .25), 0 12px 30px rgba(0, 0, 0, .55); }
.demo__orb .ico { width: 38px; height: 38px; }
.demo__play:hover .demo__orb, .demo__play:focus-visible .demo__orb { transform: scale(1.07); }
.demo__label { font: 600 clamp(1.25rem, 1rem + 1.2vw, 1.8rem)/1.15 var(--serif); text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }
.demo__sub { font-size: .85rem; opacity: .85; }
.demo__frame .demo-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; font-size: .86rem; color: var(--ink-2); }
@media (max-width: 560px) { .demo__orb { width: 60px; height: 60px; } .demo__orb .ico { width: 28px; height: 28px; } .demo__sub { display: none; } }
.demo__fs[hidden] { display: none; }

/* ---------- рейтинг prirediteljev, инструменты и автор: карточки картотеки археолога ---------- */
.rt, .tw, .au { --tw-bg: transparent; --tw-card: var(--paper-3); --tw-ink: var(--ink); --tw-mute: var(--ink-2); --tw-line: rgba(43, 33, 24, .22); --tw-accent: var(--teal-ink); --tw-radius: 6px; --tw-btn-ink: var(--paper); --tw-series: var(--wax); }
.rt, .tw, .au { max-width: 1060px; margin-inline: auto; }
.rt { margin-block: 44px 10px; padding-top: 44px; border-top: 1px solid rgba(43, 33, 24, .16); }
.rt__head h2 { font-size: clamp(1.75rem, 4.6vw, 2.4rem); }
.rt__head h2::before { content: "Kartoteka prirediteljev"; display: block; margin-bottom: 8px; font: 600 .72rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--teal-ink); }
.rt__meta { color: var(--ink-2); font-family: var(--serif); font-size: 1.05rem; font-style: italic; }
.rt__list { gap: 14px; }
.rt__item { position: relative; padding: 18px 18px 16px 22px; border: 1px solid rgba(43, 33, 24, .22); border-radius: 4px; box-shadow: 0 12px 26px rgba(60, 40, 20, .12);
  background: repeating-linear-gradient(180deg, transparent 0 29px, rgba(47, 143, 139, .13) 29px 30px), var(--paper-3) var(--noise); }
.rt__item::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: repeating-linear-gradient(180deg, var(--ink-3) 0 6px, transparent 6px 14px); opacity: .35; }
.rt__item:first-child { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(217, 178, 106, .35), 0 16px 34px rgba(60, 40, 20, .18); }
.rt__rank { width: 2.7em; height: 2.7em; border: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #B5503F, var(--wax) 60%, #6A2820); color: #F6E3C4; font: 700 1.35rem/1 var(--serif);
  box-shadow: inset 0 0 0 3px rgba(246, 227, 196, .3), 0 3px 8px rgba(60, 20, 10, .45); }
.rt__item:first-child .rt__rank { box-shadow: inset 0 0 0 3px rgba(246, 227, 196, .45), 0 0 0 3px var(--gold), 0 4px 10px rgba(60, 20, 10, .45); }
.rt__name { font: 700 1.4rem/1.15 var(--serif); }
.rt__dom, .rt__game { color: var(--ink-2); }
.rt__score { align-self: start; padding: 8px 12px 6px; border: 2.5px solid var(--teal-ink); border-radius: 12px; color: var(--teal-ink); transform: rotate(-3deg); box-shadow: inset 0 0 0 3px var(--paper-3), inset 0 0 0 4.5px var(--teal-ink); }
.rt__score b { font: 700 1.55rem/1 var(--serif); color: var(--teal-ink); }
.rt__score span { color: var(--teal-ink); font-weight: 600; }
.rt__logo { border-radius: 6px; box-shadow: 0 0 0 1px rgba(43, 33, 24, .3); }
.rt__logo--light { box-shadow: 0 0 0 1px rgba(43, 33, 24, .3); }
.rt__bonus { border: 1px solid rgba(43, 33, 24, .25); border-radius: 4px; background: rgba(255, 250, 238, .55); }
.rt__bonus--nd { border-color: var(--teal-ink); background: rgba(47, 143, 139, .1); }
.rt__bonus--none { border-style: dashed; background: transparent; }
.rt__lbl { font-weight: 600; letter-spacing: .14em; color: var(--teal-ink); }
.rt__btn { border-radius: 999px; background: var(--ink); color: var(--paper); border: 1.5px solid var(--gold); font: 500 .95rem/1.2 var(--sans); transition: transform .2s ease; }
.rt__btn:hover { transform: translateY(-1px); }
.rt__btn:focus-visible { outline-color: var(--teal-ink); }
.rt__steps li::marker { color: var(--wax); font-family: var(--serif); font-weight: 700; }
.rt__why summary { color: var(--teal-ink); font-weight: 600; }
.rt__why li { border-bottom-color: rgba(43, 33, 24, .3); }
.rt__terms { color: var(--ink-2); }
.rt__text { max-width: 68ch; padding-top: 4px; }
.rt__text a { color: var(--teal-ink); }
.rt__warn { border: 0; border-left: 4px solid var(--wax); border-radius: 0 6px 6px 0; background: rgba(142, 59, 47, .08); color: var(--ink-2); }
.rt__warn b { display: inline-block; margin-right: 6px; padding: 0 7px; border: 1.5px solid var(--wax); border-radius: 6px; color: var(--wax); }
.tw { margin-block: 44px 10px; padding: 26px clamp(14px, 3vw, 30px); border: 1px solid rgba(43, 33, 24, .2); border-radius: 6px; background: var(--paper-3) var(--noise); box-shadow: 0 16px 34px rgba(60, 40, 20, .12); }
.tw__h { font-size: clamp(1.7rem, 4.4vw, 2.35rem); }
.tw__h::before { content: "Instrument"; display: block; margin-bottom: 8px; font: 600 .72rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--teal-ink); }
.tw__f { font-weight: 500; }
.tw__f input, .tw__f select { border: 1.5px solid rgba(43, 33, 24, .45); border-radius: 4px; background: #FBF4E3; color: var(--ink); }
.tw__btn { border-radius: 999px; background: var(--ink); color: var(--paper); border: 1.5px solid var(--gold); font-weight: 500; }
.tw__o { border: 2.5px solid var(--teal-ink); border-radius: 12px; box-shadow: inset 0 0 0 3px var(--paper-3), inset 0 0 0 4.5px var(--teal-ink); background: rgba(255, 250, 238, .35); text-align: center; }
.tw__o dt { color: var(--ink-2); }
.tw__o dd { font: 700 1.55rem/1.1 var(--serif); color: var(--wax); }
.tw__t th { font-family: var(--serif); font-size: 1.05rem; }
.tw__verdict { background: rgba(255, 250, 238, .5); }
.tw__dna { background: rgba(255, 250, 238, .5); }
.au { margin-block: 44px 6px; padding: 18px 22px; border: 1px solid rgba(43, 33, 24, .22); border-radius: 4px; background: var(--paper-3) var(--noise); position: relative; box-shadow: 0 10px 24px rgba(60, 40, 20, .1); }
.au::after { content: "Zabeležil"; position: absolute; top: -9px; right: 20px; padding: 1px 10px; background: var(--paper); border: 1px solid rgba(43, 33, 24, .3); font: 600 .65rem/1.6 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--teal-ink); transform: rotate(1.5deg); }
.au img { border-radius: 4px; filter: sepia(.35) contrast(1.02); box-shadow: 0 0 0 3px #FBF4E3, 0 0 0 4px rgba(43, 33, 24, .35); }
.au a { color: var(--teal-ink); }
.lead--rest { margin-top: 0; }
.rt-method { margin-block: 22px; padding: 8px 16px; border: 1px solid rgba(43, 33, 24, .2); border-radius: 4px; background: var(--paper-3); }
.rt-method__t th { font-family: var(--serif); font-size: 1.05rem; }
@media (max-width: 560px) { .rt__item { padding: 16px 12px 14px 16px; } .rt__rank { font-size: 1.15rem; } .tw { padding: 20px 14px; } }
@media (prefers-reduced-motion: reduce) { .rt__btn { transition: none; } .rt__btn:hover { transform: none; } }
