/* Jam Craft — сайт. Палитра и шрифт как раньше, разметка новая. */
@font-face {
    font-family: 'Minecraft Rus';
    src: url("../fonst/Minecraft.woff2") format("woff2"), url("../fonst/Minecraft.woff") format("woff"), url("../fonst/Minecraft.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #F6EFFF;
    --bg-tint: #EEE1FF;
    --card: #FFFFFF;
    --line: #E3CCFF;
    --text: #2A0A33;
    --muted: #6E4F78;
    --accent: #9E009E;
    --accent-ink: #F6EFFF;
    --deep: #490046;
    --grad: linear-gradient(90deg, #EE08FB, #FFEE00);
    --shadow: 0 8px 24px rgba(73, 0, 70, .10);
    --radius: 14px;
    --nav-h: 68px;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg: #1C0427;
    --bg-tint: #24072F;
    --card: #2A1033;
    --line: #47205A;
    --text: #F6EFFF;
    --muted: #C9A9D6;
    --accent: #FF7AF6;
    --accent-ink: #1C0427;
    --deep: #FFB8FA;
    --shadow: 0 8px 28px rgba(0, 0, 0, .35);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Minecraft Rus', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    transition: background-color .3s ease, color .3s ease;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--accent); }
b { font-weight: normal; color: var(--deep); }
code {
    font-family: inherit;
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    border-radius: 5px;
    padding: 0 5px;
    white-space: nowrap;
}

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 820px; }

.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
.linklike { color: inherit; padding: 0; }

/* ───────── кнопки ───────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 16px;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
    border: 2px solid transparent;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 0 color-mix(in srgb, var(--accent) 55%, #000); }
.btn--primary:hover { box-shadow: 0 6px 0 color-mix(in srgb, var(--accent) 55%, #000); transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.btn--block { width: 100%; }
.btn__ip { opacity: .8; font-size: 14px; }

.chip {
    margin-top: 10px;
    padding: 8px 14px;
    min-height: 40px;
    border-radius: 10px;
    background: var(--accent);
    color: var(--accent-ink);
}

:focus-visible { outline: 3px solid #FFEE00; outline-offset: 2px; }

/* ───────── шапка ───────── */
.nav {
    /* плавающая стеклянная панель (как на лендинге MoneyPOD) */
    position: fixed;
    top: 10px;
    left: 12px;
    right: 12px;
    z-index: 50;
    max-width: 1180px;
    margin: 0 auto;
    height: var(--nav-h);
    border-radius: 20px;
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(255, 255, 255, .65);
    box-shadow: 0 10px 30px rgba(42, 6, 56, .18), inset 0 1px 0 rgba(255, 255, 255, .7);
    backdrop-filter: blur(16px) saturate(1.6);
    -webkit-backdrop-filter: blur(16px) saturate(1.6);
}
.nav.is-liquid { background: rgba(255, 255, 255, .28); }
:root[data-theme="dark"] .nav {
    background: rgba(42, 16, 51, .55);
    border-color: rgba(255, 255, 255, .14);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .12);
}
:root[data-theme="dark"] .nav.is-liquid { background: rgba(42, 16, 51, .3); }
@media (prefers-reduced-transparency: reduce) {
    .nav, .nav.is-liquid { background: var(--card); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.nav__row { height: 100%; display: flex; align-items: center; gap: 20px; padding: 0 14px; }
.nav__brand img { width: 56px; height: auto; }
.nav__links { display: flex; gap: 22px; margin-left: 12px; }
.nav__links a, .nav__links .linklike { color: var(--text); text-decoration: none; font-size: 15px; opacity: .85; }
.nav__links a:hover, .nav__links .linklike:hover { opacity: 1; color: var(--accent); }
.nav__tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.ip-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #1C0427;
    color: #F6EFFF;
    white-space: nowrap;
    font-size: 14px;
}
.ip-pill__online { color: #FF9CF5; }
:root[data-theme="dark"] .ip-pill { background: #3A1748; }

.status-dot { width: 10px; height: 10px; border-radius: 2px; background: #9B8AA3; flex: none; }
.status-dot.is-on { background: #3BE07A; box-shadow: 0 0 0 0 rgba(59, 224, 122, .6); animation: pulse 2s infinite; }
.status-dot.is-off { background: #FF5A6A; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(59, 224, 122, .55); } 70% { box-shadow: 0 0 0 8px rgba(59, 224, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 224, 122, 0); } }

.icon-btn {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--text);
}
.icon-btn svg path { fill: currentColor; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: inline; }
:root[data-theme="dark"] .icon-moon { display: none; }

.nav__burger { display: none; flex-direction: column; gap: 4px; }
.nav__burger span { width: 18px; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ───────── hero ───────── */
.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(120% 80% at 50% 0%, #5A0F6E 0%, #2A0638 55%, #1C0427 100%);
    color: #F6EFFF;
    padding: calc(var(--nav-h) + 64px) 0 64px;
    text-align: center;
}
.hero__sky { position: absolute; inset: 0; pointer-events: none; }
.hero__inner { position: relative; }
.hero__logo { width: min(560px, 88%); height: auto; margin: 0 auto; filter: drop-shadow(0 10px 0 rgba(0, 0, 0, .25)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero__tagline { margin: 22px auto 0; max-width: 560px; font-size: 18px; color: #F0DDF7; }
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__actions .btn--primary { background: #FFEE00; color: #2A0638; box-shadow: 0 4px 0 #B39A00; }
.hero__actions .btn--primary:hover { box-shadow: 0 6px 0 #B39A00; }
.hero__status { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #E2C8EC; flex-wrap: wrap; justify-content: center; }
.hero__sep { opacity: .5; }

.sky__px {
    position: absolute;
    width: 6px; height: 6px;
    opacity: 0;
    animation: twinkle var(--dur, 8s) ease-in-out var(--d, 0s) infinite;
}
.sky__px--star { background: #FFFFFF; box-shadow: 6px 0 0 -0px transparent; width: 4px; height: 4px; }
.sky__px--nugget { background: #FCDC4C; box-shadow: 4px 0 0 #E0A814, 0 4px 0 #E0A814; width: 4px; height: 4px; }
.sky__px--crystal { background: #EE08FB; box-shadow: 4px 4px 0 #FF9CF5; width: 4px; height: 4px; }
@keyframes twinkle {
    0% { opacity: 0; transform: translateY(10px); }
    30% { opacity: .9; }
    70% { opacity: .9; }
    100% { opacity: 0; transform: translateY(-30px); }
}

/* ───────── секции ───────── */
.section { padding: 80px 0; }
.section--tint { background: var(--bg-tint); }
.section__title { font-size: 30px; font-weight: normal; text-align: center; line-height: 1.2; }
.section__lead { max-width: 640px; margin: 14px auto 0; text-align: center; color: var(--muted); }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* фишки */
.features { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 24px; transition: transform .25s ease, box-shadow .25s ease; }
.feature:hover { transform: translateY(-4px); }
.feature__icon { width: 64px; height: 64px; margin-bottom: 14px; }
.feature h3 { font-size: 19px; font-weight: normal; margin-bottom: 8px; color: var(--deep); }
.feature p { color: var(--muted); font-size: 15px; }
.feature:hover .feature__icon { animation: hop .5s ease; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-6px); } }

/* шаги */
.steps { list-style: none; margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--grad); color: #2A0638; font-size: 20px; margin-bottom: 12px;
}
.step h3 { font-weight: normal; font-size: 18px; color: var(--deep); margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* вкладки */
.tabs { margin: 32px auto 0; display: flex; justify-content: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px; width: max-content; max-width: 100%; }
.tab { min-height: 42px; padding: 8px 18px; border-radius: 10px; color: var(--muted); }
.tab.is-active { background: var(--accent); color: var(--accent-ink); }
.tabpanel { margin-top: 28px; }

/* ранги */
.ranks { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.ranks > .rank { flex: 0 1 340px; }
.rank { position: relative; padding: 20px 18px 18px; display: flex; flex-direction: column; overflow: hidden; transition: transform .25s ease; }
.rank::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--from), var(--to)); }
.rank:hover { transform: translateY(-4px); }
.rank__head { display: flex; align-items: center; gap: 12px; }
.rank__badge { width: 48px; height: 48px; flex: none; }
.rank:hover .rank__badge { animation: hop .5s ease; }
.rank__name {
    font-weight: normal; font-size: 20px; line-height: 1.1;
    background: linear-gradient(90deg, var(--from), var(--to));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .25));
}
.rank__price { margin-top: 4px; font-size: 20px; color: var(--text); }
.rank__price span { display: block; font-size: 13px; color: var(--muted); }
.rank__inherit { margin-top: 14px; font-size: 13px; color: var(--muted); }
.rank__perks { list-style: none; margin: 10px 0 18px; display: grid; gap: 7px; font-size: 15px; flex: 1; }
.rank__perks li { padding-left: 16px; position: relative; }
.rank__perks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; background: linear-gradient(135deg, var(--from), var(--to)); }

/* наборы */
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; gap: 18px; }
.pack { position: relative; padding: 24px 20px 20px; text-align: center; }
.pack__img { width: 72px; height: 72px; margin: 0 auto 12px; }
.pack h3 { font-weight: normal; font-size: 20px; color: var(--deep); }
.pack__price { font-size: 24px; margin-top: 4px; }
.pack__text { color: var(--muted); font-size: 14px; margin: 4px 0 16px; }
.pack__badge { position: absolute; top: 12px; right: 12px; background: var(--grad); color: #2A0638; border-radius: 8px; padding: 2px 8px; font-size: 14px; }

.note { margin-top: 20px; text-align: center; color: var(--muted); }
.note--small { font-size: 14px; margin-top: 28px; }

/* новости */
.timeline { margin-top: 36px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.post { padding: 24px; }
.post time { font-size: 13px; color: var(--accent); }
.post h3 { font-weight: normal; font-size: 20px; margin: 4px 0 10px; color: var(--deep); }
.post ul { padding-left: 18px; display: grid; gap: 6px; color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { margin-top: 32px; display: grid; gap: 10px; }
.faq__item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.faq__item summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; position: relative; min-height: 44px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
    font-size: 22px; color: var(--accent); transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding: 0 18px 18px; color: var(--muted); font-size: 15px; }

/* подвал — по центру */
.footer { padding: 44px 0 32px; border-top: 1px solid var(--line); text-align: center; }
.footer__row { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer__row img { width: 64px; height: auto; }
.footer__links { display: flex; gap: 10px 22px; flex-wrap: wrap; justify-content: center; }
.footer__links a, .footer__links .linklike { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer__links a:hover, .footer__links .linklike:hover { color: var(--accent); }
.footer__copy { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* окна */
.modal {
    margin: auto;
    width: min(460px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
    color: var(--text);
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.modal--wide { width: min(680px, calc(100% - 32px)); }
.modal::backdrop { background: rgba(20, 2, 28, .6); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .2s ease; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.modal__close-form { position: absolute; top: 10px; right: 10px; }
.modal__close { width: 40px; height: 40px; border-radius: 10px; color: var(--muted); font-size: 18px; }
.modal__close:hover { background: var(--bg-tint); color: var(--text); }
.modal h3 { font-weight: normal; font-size: 22px; color: var(--deep); padding-right: 40px; }
.modal__product { display: flex; align-items: center; gap: 14px; }
.modal__product img { width: 48px; height: 48px; }
.modal__price { font-size: 20px; margin-top: 2px; }
.modal__form { margin-top: 20px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.field input, .field select {
    font: inherit; font-size: 16px; color: var(--text);
    min-height: 46px; padding: 10px 12px;
    border-radius: 10px; border: 1px solid var(--line); background: var(--bg);
}
.modal__hint { font-size: 13px; color: var(--muted); }
.rules { margin-top: 16px; display: grid; gap: 10px; font-size: 15px; }
.rules h4 { font-weight: normal; color: var(--accent); margin-top: 6px; }
.rules ol, .rules ul { padding-left: 22px; display: grid; gap: 6px; }

/* уведомление */
.toast {
    position: fixed; left: 50%; bottom: 20px; z-index: 100;
    transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    background: #1C0427; color: #F6EFFF; border: 1px solid #47205A;
    padding: 12px 18px; border-radius: 12px; max-width: calc(100% - 32px);
    transition: opacity .25s ease, transform .25s ease; font-size: 15px; text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* появление */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease var(--delay, 0ms), transform .5s ease var(--delay, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ───────── адаптив ───────── */
@media (max-width: 900px) {
    .features { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .nav__links {
        position: absolute; top: calc(var(--nav-h) + 8px); left: 0; right: 0;
        flex-direction: column; gap: 0; margin: 0;
        background: var(--card); border: 1px solid var(--line); border-radius: 16px;
        box-shadow: var(--shadow);
        padding: 8px 16px 12px;
        display: none;
    }
    .nav__links.is-open { display: flex; }
    .nav__links a, .nav__links .linklike { padding: 12px 0; font-size: 17px; text-align: left; border-bottom: 1px solid var(--line); }
    .nav__burger { display: inline-flex; }
}
@media (max-width: 640px) {
    .section { padding: 60px 0; }
    .section__title { font-size: 24px; }
    .features, .steps, .timeline { grid-template-columns: 1fr; }
    .ranks > .rank { flex-basis: 100%; }
    .packs { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
    .hero { padding: calc(var(--nav-h) + 40px) 0 44px; }
    .hero__tagline { font-size: 16px; }
    .ip-pill__ip { display: none; }
    .tabs { width: 100%; }
    .tab { flex: 1; padding: 8px 6px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
    .sky__px { opacity: .6; }
}

/* иконка золота вместо ◎ (8×8, ровно ×2) */
.coin { display: inline-block; width: 16px; height: 16px; vertical-align: -2px; }
