/* ===== Simple Survival — небесный остров: небо, воксельные иллюстрации, кнопки-блоки, Montserrat ===== */
@font-face { font-family: "Montserrat"; src: url("/static/fonts/montserrat-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; src: url("/static/fonts/montserrat-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f6f5fc;
  --bg2: #edebf8;
  --card: #ffffff;
  --card2: #f6f5fd;
  --line: #e6e3f4;
  --line2: #d5d1ec;
  --text: #191b38;
  --muted: #63678a;
  --primary: #5b5ff0;
  --primary2: #8b8fff;
  --primary-d: #4447d6;
  --primary-l: #ecebff;
  --edge: #3d3fc0;
  --pink: #f17fb5;
  --pink-l: #fde8f3;
  --ok: #1fa45b;
  --ok-l: #e1f6ea;
  --gold: #f5b93e;
  --gold-l: #fff3d9;
  --bad: #e5484d;
  --bad-l: #fdeaea;
  --shadow: 0 1px 2px rgba(40, 40, 100, .05), 0 10px 30px -14px rgba(60, 55, 150, .26);
  --shadow-lg: 0 28px 60px -26px rgba(60, 55, 150, .45);
  --grad: linear-gradient(#5b5ff0, #5b5ff0);
  --ok-d: #12804a;
  --gold-d: #946500;
  --veil: 246, 245, 252;
  --glow1: #ece4ff;
  --glow2: #fde9f4;
  --pimg1: #e6e7ff;
  --pimg2: #f8e6f2;
  --prose: #33365a;
  --radius: 22px;
  --sky: linear-gradient(180deg, #bfc7ff 0, #d8cfff 300px, #f3d8ea 620px, #f6f5fc 940px);
  --stars: radial-gradient(1.3px 1.3px at 22px 34px, #fff 98%, transparent), radial-gradient(1px 1px at 92px 128px, #fff 98%, transparent),
    radial-gradient(1.7px 1.7px at 160px 60px, #fff 98%, transparent), radial-gradient(1px 1px at 214px 170px, #fff 98%, transparent),
    radial-gradient(1.3px 1.3px at 60px 204px, #fff 98%, transparent), radial-gradient(1px 1px at 252px 22px, #fff 98%, transparent),
    radial-gradient(1.1px 1.1px at 128px 236px, #fff 98%, transparent);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--text); font: 500 15.5px/1.65 var(--font); -webkit-font-smoothing: antialiased;
  background: var(--bg); }
main { flex: 1; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-d); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
h3 { font-size: 1.1rem; font-weight: 750; }
p { margin: 0 0 1em; }
b, strong { font-weight: 750; }
code { font: .86em var(--mono); background: var(--bg2); padding: .12em .45em; border-radius: 6px; word-break: break-all; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.txt { color: var(--text); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.sec { padding-top: 56px; }
.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sec-h h1, .sec-h h2 { margin: 0 0 .15em; }
.sec-h p { margin: 0; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 60ch; }
.fine { margin-top: 32px; }
.i { width: 18px; height: 18px; flex: none; }

/* ----- кнопки ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 20px; border-radius: 14px; border: 0; background: var(--grad); color: #fff !important;
  font: 700 .95rem/1.2 var(--font); cursor: pointer; text-decoration: none !important; box-shadow: 0 10px 22px -10px rgba(91, 108, 242, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 14px 26px -10px rgba(91, 108, 242, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; filter: grayscale(.3); }
.btn-ghost { background: var(--card); color: var(--text) !important; border: 1px solid var(--line); box-shadow: var(--shadow); }
.btn-ghost:hover { border-color: var(--primary2); filter: none; box-shadow: var(--shadow); }
.btn-danger { background: var(--bad-l); color: var(--bad) !important; box-shadow: none; }
.btn-danger:hover { box-shadow: none; }
.btn-sm { padding: 8px 14px; font-size: .86rem; border-radius: 12px; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; border-radius: 18px; }
.btn-block { width: 100%; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta.center { justify-content: center; }

/* ----- шапка ----- */
.top { position: sticky; top: 0; z-index: 50; padding: 12px 0; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); }
.top-in { display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text) !important; text-decoration: none !important; }
.brand-ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.brand-ic img { width: 34px; height: 34px; }
.brand-t { display: flex; flex-direction: column; line-height: 1; }
.brand-t b { font-size: 1.12rem; font-weight: 850; letter-spacing: -.02em; }
.brand-t small { font-size: .72rem; color: var(--muted); font-weight: 600; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); padding: 10px 15px; border-radius: 14px; font-size: .93rem; font-weight: 650; text-decoration: none; transition: background .15s, color .15s; }
.nav a svg { width: 19px; height: 19px; }
.nav a:hover { color: var(--text); background: var(--card); }
.nav a.on { color: var(--primary); background: var(--primary-l); }
.nav a.btn { color: #fff; margin-left: 6px; padding: 10px 18px; }
.nav a.btn:hover { background: var(--grad); }
.nav-sp { flex: 1; }
.menu-t, .burger { display: none; }


/* ----- миры ----- */
.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.mode { background: var(--card); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.mode header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mode h3 { margin: 0; font-size: 1.2rem; }
.mode p { margin: 0; }
.tag { font-size: .74rem; font-weight: 700; padding: 5px 11px; border-radius: 99px; background: var(--gold-l); color: var(--gold-d); white-space: nowrap; }
.tag-ok { background: var(--ok-l); color: var(--ok); }
.tag-off { background: var(--bg2); color: var(--muted); }
.meter { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border: 0; border-radius: 99px; background: var(--bg2); overflow: hidden; margin-top: 8px; }
.meter::-webkit-progress-bar { background: var(--bg2); border-radius: 99px; }
.meter::-webkit-progress-value { background: var(--grad); border-radius: 99px; }
.meter::-moz-progress-bar { background: var(--grad); border-radius: 99px; }

/* ----- шаги на главной ----- */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--card); color: var(--text) !important; text-decoration: none !important; box-shadow: var(--shadow); transition: transform .2s; }
.step-card:hover { transform: translateY(-3px); }
.step-card .n { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 850; font-size: 1.1rem; box-shadow: 0 8px 18px -8px rgba(91, 108, 242, .8); }
.step-card h3 { margin: 2px 0 4px; }
.step-card p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ----- новости ----- */
.more { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { display: block; padding: 22px; border-radius: var(--radius); background: var(--card); color: var(--text) !important; text-decoration: none !important; box-shadow: var(--shadow); transition: transform .2s; }
.news-card:hover { transform: translateY(-3px); }
.news-card time, .news-row time { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--primary); background: var(--primary-l); padding: 3px 10px; border-radius: 99px; }
.news-card h3 { margin: 12px 0 8px; }
.news-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-row { display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: start; padding: 20px 22px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); color: var(--text) !important; text-decoration: none !important; }
.news-row:hover h3 { color: var(--primary); }
.news-row p { margin: 0; }
.news-row time { justify-self: start; }

/* ----- призыв ----- */
.band { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 40px; border-radius: 28px; margin-bottom: 24px;
  background: linear-gradient(110deg, rgba(91, 108, 242, .92), rgba(130, 147, 255, .85) 50%, rgba(238, 136, 189, .8)); color: #fff; box-shadow: var(--shadow-lg); }
.band h2, .band h3 { margin-bottom: .2em; color: #fff; }
.band p, .band .muted { margin: 0; color: rgba(255, 255, 255, .85); }
.band .btn { background: #fff; color: var(--primary) !important; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .4); }
.band .btn-ghost { background: rgba(255, 255, 255, .16); color: #fff !important; border: 1px solid rgba(255, 255, 255, .4); }
.band-sm { padding: 24px 28px; margin-top: 36px; }

/* ----- шаги (страница «Как начать») ----- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 32px 0; display: flex; flex-direction: column; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding: 26px 26px 26px 92px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.steps li::before { content: counter(s); position: absolute; left: 24px; top: 24px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; font-weight: 850; font-size: 1.2rem; color: #fff; background: var(--grad); }
.steps p:last-child { margin-bottom: 0; }
.ok-line { color: var(--ok); font-weight: 650; }

/* ----- скачать ----- */
.dl { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: stretch; }
.dl-main { position: relative; overflow: hidden; padding: 44px; border-radius: 28px; box-shadow: var(--shadow-lg); isolation: isolate; }
.dl-main::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--veil), .96) 0%, rgba(var(--veil), .85) 45%, rgba(var(--veil), .35) 80%); }
.dl h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 900; }
.dl-soon { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin: 26px 0 16px; }
.dl-soon p { margin: 0; }
.dl .cta { margin: 26px 0 16px; }
.dl-side { margin: 0; }
.checks { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .25em; width: 20px; height: 20px; border-radius: 7px; background: var(--primary-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%235b6cf2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.dl-side h3 { font-size: 1rem; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: var(--card); color: var(--primary); font-size: .82rem; font-weight: 700; box-shadow: var(--shadow); margin-bottom: 18px; }

/* ----- магазин ----- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.chips a { padding: 8px 16px; border-radius: 99px; background: var(--card); box-shadow: var(--shadow); color: var(--text); font-size: .9rem; font-weight: 650; }
.chips a:hover { color: var(--primary); }
.cat-h { margin-top: 36px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin-top: 14px; }
.product { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--card); overflow: hidden; color: var(--text) !important; text-decoration: none !important; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.p-img { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: linear-gradient(160deg, var(--pimg1), var(--pimg2)); }
.p-img img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.p-ph { font-size: 3.4rem; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-img-lg { border-radius: var(--radius); max-width: 380px; margin-bottom: 24px; box-shadow: var(--shadow); }
.sale { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 99px; background: var(--pink); color: #fff; font-size: .78rem; font-weight: 800; }
.p-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.p-body h3 { margin-bottom: 4px; }
.p-body .price { margin-top: auto; }
.price { display: flex; align-items: baseline; gap: 10px; }
.price b { font-size: 1.3rem; font-weight: 850; color: var(--primary); }
.price s { color: var(--muted); font-size: .9rem; }
.price-lg b { font-size: 2.3rem; }
.empty { padding: 48px; text-align: center; color: var(--muted); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.back { display: inline-flex; margin-bottom: 18px; color: var(--muted); font-size: .92rem; font-weight: 650; }
.pp { display: grid; grid-template-columns: 1fr 390px; gap: 40px; align-items: start; }
.pp-buy { position: sticky; top: 96px; }

/* ----- карточки и формы ----- */
.card { background: var(--card); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; box-shadow: var(--shadow); }
.card h2 { font-size: 1.3rem; }
label { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; font-size: .88rem; font-weight: 650; color: var(--text); }
input, select, textarea { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card2); color: var(--text); font: 500 .98rem var(--font); transition: border-color .15s, box-shadow .15s, background .15s; }
textarea { resize: vertical; line-height: 1.5; }
.mono { font-family: var(--mono); font-size: .9rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary2); background: var(--card); box-shadow: 0 0 0 4px var(--primary-l); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--primary2); outline-offset: 2px; }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 500; }
label.check input { width: 19px; height: 19px; margin-top: 2px; flex: none; accent-color: var(--primary); }
.alert { padding: 13px 16px; border-radius: 14px; margin-bottom: 16px; background: var(--bad-l); color: var(--bad); font-weight: 600; }
.alert-ok { background: var(--ok-l); color: var(--ok-d); }
.auth { max-width: 480px; }
.auth h1 { font-size: 2rem; }
.auth .card { padding: 32px; }

/* ----- кабинет ----- */
.acc-head { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; padding: 22px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.acc-head h1 { margin: 0; font-size: 1.8rem; }
.acc-head p { margin: 0; }
.acc-out { margin-left: auto; }
.avatar { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 1.8rem; font-weight: 900; text-transform: uppercase; color: #fff; background: var(--grad); }
.acc-grid { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }

/* ----- таблицы и статусы ----- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-weight: 700; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.st { display: inline-block; padding: 4px 11px; border-radius: 99px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.st-pending { background: var(--gold-l); color: var(--gold-d); }
.st-paid { background: var(--primary-l); color: var(--primary); }
.st-delivered { background: var(--ok-l); color: var(--ok-d); }
.st-failed { background: var(--bad-l); color: var(--bad); }
.st-cancelled { background: var(--bg2); color: var(--muted); }
.err { color: var(--bad); }
.acts { white-space: nowrap; }
.acts form { display: inline; }

/* ----- заказ ----- */
.order { text-align: center; padding: 44px 32px; }
.order-ico { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 24px; display: grid; place-items: center; font-size: 2rem; background: var(--primary-l); color: var(--primary); }
.order.st-delivered .order-ico { background: var(--ok-l); color: var(--ok); }
.order.st-failed .order-ico { background: var(--bad-l); color: var(--bad); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; text-align: left; max-width: 470px; margin: 28px auto; padding: 20px 22px; border-radius: 18px; background: var(--card2); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; font-weight: 650; }

/* ----- документы ----- */
.doc { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; }
.doc:not(:has(.toc)) { grid-template-columns: 1fr; max-width: 860px; }
.toc { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: var(--radius); background: var(--card); font-size: .86rem; max-height: calc(100vh - 120px); overflow: auto; box-shadow: var(--shadow); }
.toc-h { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.toc a { color: var(--text); padding: 7px 10px; border-radius: 10px; font-weight: 600; }
.toc a:hover { background: var(--primary-l); color: var(--primary); }
.doc-body { min-width: 0; padding: 36px 40px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.prose { color: var(--prose); font-weight: 500; }
.prose h2 { margin-top: 1.8em; padding-top: .4em; scroll-margin-top: 96px; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1em 0; padding: 14px 18px; background: var(--primary-l); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .9rem; }
.prose th, .prose td { padding: 9px 11px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--card2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* ----- 404 ----- */
.nf { padding-top: 88px; padding-bottom: 32px; }
.nf-code { font-size: 7.5rem; font-weight: 900; line-height: 1; margin-bottom: 12px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ----- админка ----- */
.adm-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 24px; padding: 6px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.adm-nav a { padding: 9px 15px; border-radius: 13px; color: var(--muted); font-size: .9rem; font-weight: 650; }
.adm-nav a.on { background: var(--primary-l); color: var(--primary); }
.adm-nav a:hover { color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 20px; }
.stat { padding: 18px 20px; border-radius: var(--radius); background: var(--card); display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.stat span { color: var(--muted); font-size: .8rem; font-weight: 650; }
.stat b { font-size: 1.5rem; font-weight: 850; }
.stat small { color: var(--muted); }
.stat-bad { box-shadow: inset 0 0 0 2px var(--bad), var(--shadow); }
.stat-bad b { color: var(--bad); }
.filters { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.filters input { flex: 1; min-width: 200px; }
.filters select { width: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.span2 { grid-column: 1 / -1; }
.inline-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 11px 0; border-bottom: 1px solid var(--line); }
.inline-row:last-of-type { border-bottom: 0; }
.inline-row > a { flex: 1; }
.inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; flex: 1; }
.inline input { width: auto; flex: 1; min-width: 160px; }
.inline .w-num { flex: 0 0 90px; min-width: 0; }
details.card summary { cursor: pointer; }
details.card[open] summary { margin-bottom: 16px; }
ul.plain { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.danger-zone summary { color: var(--bad); }

/* ----- подвал ----- */
.foot { margin-top: 72px; padding: 0 24px 24px; }
.foot-body { max-width: 1200px; margin: 0 auto; border-radius: 28px; background: var(--card); box-shadow: var(--shadow); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 32px; padding-bottom: 24px; }
.foot h4 { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.foot-grid > div > a:not(.brand) { display: block; color: var(--text); padding: 4px 0; font-size: .92rem; font-weight: 600; }
.foot-grid > div > a:not(.brand):hover { color: var(--primary); }
.foot .brand { margin-bottom: 14px; }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; font-weight: 600; }
.age { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 8px; background: var(--primary-l); color: var(--primary); font-size: .74rem; font-weight: 800; }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 580px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 20px; border-radius: 20px; background: var(--card); box-shadow: 0 20px 50px -16px rgba(50, 50, 120, .45); font-size: .88rem; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1; }


/* ===== тёмная тема: ночное небо ===== */
[data-theme="dark"] {
  --bg: #0c0d1b; --bg2: #151730; --card: #161930; --card2: #1d2140; --line: #252a49; --line2: #353a63;
  --text: #eceefe; --muted: #9ea3cc; --primary: #8d91ff; --primary2: #a9adff; --primary-d: #6b6ff5; --primary-l: #252858;
  --edge: #2f31a8;
  --pink: #f472b6; --pink-l: #3a2236; --ok: #34d399; --ok-l: #133428; --ok-d: #6ee7b7;
  --gold: #fbbf24; --gold-l: #392f17; --gold-d: #fcd34d; --bad: #fb7185; --bad-l: #3b1d28;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px -16px rgba(0, 0, 0, .8);
  --shadow-lg: 0 30px 60px -28px rgba(0, 0, 0, .9);
  --veil: 12, 13, 27; --glow1: #241c55; --glow2: #34193a; --pimg1: #222656; --pimg2: #35234a; --prose: #cfd2ee;
  --sky: linear-gradient(180deg, #191c4b 0, #251d52 320px, #17142f 640px, #0c0d1b 940px);
  color-scheme: dark;
}
[data-theme="dark"] .switch .sw::after { background: #e9ebff; }

/* ===== иконки ===== */
.ic { width: 20px; height: 20px; flex: none; vertical-align: -4px; }
.nav a .ic { width: 21px; height: 21px; }
.btn .ic { width: 19px; height: 19px; }
.more .ic { width: 16px; height: 16px; }
.gi { display: inline-grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 16px; color: #fff; background: var(--g);
  box-shadow: 0 12px 22px -12px var(--gs), inset 0 1px 0 rgba(255, 255, 255, .35); }
.gi .ic { width: 27px; height: 27px; vertical-align: 0; }
.gi-sm { width: 34px; height: 34px; border-radius: 11px; }
.gi-sm .ic { width: 19px; height: 19px; }
.gi-lg { width: 66px; height: 66px; border-radius: 21px; }
.gi-lg .ic { width: 36px; height: 36px; }
.gi-indigo { --g: linear-gradient(140deg, #a5b4fc, #6366f1 55%, #4f46e5); --gs: rgba(99, 102, 241, .85); }
.gi-pink { --g: linear-gradient(140deg, #fbcfe8, #ec4899 60%, #db2777); --gs: rgba(236, 72, 153, .75); }
.gi-green { --g: linear-gradient(140deg, #a7f3d0, #10b981 60%, #059669); --gs: rgba(16, 185, 129, .75); }
.gi-amber { --g: linear-gradient(140deg, #fde68a, #f59e0b 60%, #ea580c); --gs: rgba(245, 158, 11, .75); }
.gi-gray { --g: linear-gradient(140deg, #e2e8f0, #94a3b8); --gs: rgba(100, 116, 139, .5); }
.brand-ic { background: none; width: 46px; height: 46px; border-radius: 14px; box-shadow: 0 10px 22px -10px rgba(168, 85, 247, .75); }
.brand-ic img { width: 46px; height: 46px; }
.tile-ic { position: absolute; left: 16px; bottom: -24px; }
.tile-body { padding-top: 34px; }
.tile-meta .ic { width: 16px; height: 16px; color: var(--primary); }
.tile-meta span:last-child .ic { color: var(--gold); }
.sb-item { gap: 12px; }
.step-card small { display: block; color: var(--primary); font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 2px; }
.theme-btn { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 4px; border: 0; border-radius: 14px; background: var(--card); color: var(--text); box-shadow: var(--shadow); cursor: pointer; transition: transform .15s; }
.theme-btn:hover { transform: rotate(-12deg); }
.theme-btn .ic:nth-child(2) { display: none; }
[data-theme="dark"] .theme-btn .ic:first-child { display: none; }
[data-theme="dark"] .theme-btn .ic:nth-child(2) { display: block; color: var(--gold); }
.announce { background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899); color: #fff; font-weight: 650; font-size: .88rem; }
.announce .wrap { display: flex; gap: 10px; align-items: center; justify-content: center; padding-top: 9px; padding-bottom: 9px; text-align: center; }
.announce a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--card2); color: var(--muted); transition: .15s; }
.socials a:hover { color: #fff; background: var(--grad); }
.socials .vk { font-weight: 800; font-size: .78rem; }

/* ----- магазин: шапка, акция, метки ----- */
.shop-head { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.shop-head h1 { margin: 0; }
.shop-head p { margin: 4px 0 0; }
.sale-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 18px; border-radius: 18px; margin-bottom: 18px; color: #fff; background: linear-gradient(90deg, #ec4899, #a855f7, #6366f1); box-shadow: var(--shadow); }
.sale-bar span { opacity: .85; font-size: .88rem; }
.badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 99px; background: var(--grad); color: #fff; font-size: .74rem; font-weight: 800; box-shadow: 0 6px 14px -6px rgba(91, 108, 242, .8); }
.p-go { margin-left: auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--primary-l); color: var(--primary); transition: .2s; }
.p-go .ic { width: 17px; height: 17px; vertical-align: 0; }
.product:hover .p-go { background: var(--grad); color: #fff; }
.empty .ic { width: 44px; height: 44px; color: var(--primary); opacity: .7; }
.empty p { margin: 10px 0 0; }
.cat-h h2 { margin: 0; }
.cat-h p { margin: 4px 0 0; }

/* ----- админка: настройки, медиа, журнал ----- */
.adm-nav a { display: inline-flex; align-items: center; gap: 7px; }
.adm-nav .ic { width: 18px; height: 18px; }
.set-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.set-tabs { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.set-tabs a { padding: 11px 14px; border-radius: 13px; color: var(--muted); font-weight: 650; }
.set-tabs a.on { background: var(--primary-l); color: var(--primary); }
.set-form label small { font-weight: 500; }
.set-save { position: sticky; bottom: 12px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px; margin: 8px -12px -12px; border-radius: 16px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(8px); }
.switch { flex-direction: row; align-items: center; gap: 14px; cursor: pointer; padding: 12px 14px; border-radius: 14px; background: var(--card2); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .sw { flex: none; width: 46px; height: 26px; border-radius: 99px; background: var(--line2); position: relative; transition: .2s; }
.switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: .2s; }
.switch input:checked + .sw { background: var(--grad); }
.switch input:checked + .sw::after { left: 23px; }
.switch input:focus-visible + .sw { outline: 3px solid var(--primary2); outline-offset: 2px; }
.switch > span:last-child { display: flex; flex-direction: column; }
.upload { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.upload > div { flex: 1; min-width: 200px; }
.upload p { margin: 2px 0 0; }
.upload input[type=file] { width: auto; flex: 1; min-width: 200px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.media { margin: 0; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.media img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--card2); padding: 10px; }
.media figcaption { display: flex; gap: 8px; padding: 10px; justify-content: space-between; }
.pick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pick-img { width: 64px; height: 64px; border-radius: 12px; border: 2px solid transparent; background: var(--card2); padding: 4px; cursor: pointer; }
.pick-img img { width: 100%; height: 100%; object-fit: contain; }
.pick-img.on { border-color: var(--primary); }
ul.log li { padding: 7px 0; border-bottom: 1px solid var(--line); }
ul.log li:last-child { border-bottom: 0; }
.nowrap { white-space: nowrap; }
@media (max-width: 960px) {
  .set-layout { grid-template-columns: 1fr; }
  .set-tabs { position: static; flex-direction: row; overflow-x: auto; }
  .set-tabs a { white-space: nowrap; }
}

/* шапка: компактнее на средних экранах, бургер раньше остального адаптива */
.nav a, .brand-t b { white-space: nowrap; }
@media (max-width: 1320px) {
  .nav { gap: 2px; }
  .nav a { padding: 9px 11px; gap: 7px; font-size: .9rem; }
  .top-in { gap: 16px; }
}
@media (max-width: 1400px) {
  .nav a.ico-only .lbl { display: none; }
  .nav a.ico-only .ic { display: inline-block !important; }
}
@media (max-width: 1220px) {
  .nav a:not(.btn):not(.ico-only) .ic { display: none; }
}
@media (max-width: 1100px) {
  .burger { display: flex; flex-direction: column; gap: 5px; margin-left: auto; padding: 12px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); cursor: pointer; }
  .burger i { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav { display: none; position: absolute; top: 78px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; padding: 10px; gap: 2px; background: var(--card); border-radius: 22px; box-shadow: var(--shadow-lg); }
  .nav a { padding: 13px 14px; }
  .nav a.btn { margin: 8px 0 0; }
  .nav-sp { display: none; }
  .menu-t:checked ~ .nav { display: flex; }
  .menu-t:checked + .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-t:checked + .burger i:nth-child(2) { opacity: 0; }
  .menu-t:checked + .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav a:not(.btn) .ic { display: inline-block; }
  .nav a.ico-only .lbl { display: inline; }
  .theme-btn { margin: 6px 0; width: 100%; }
}

/* ===== адаптив ===== */
@media (max-width: 1080px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .pp, .acc-grid, .dl { grid-template-columns: 1fr; }
  .pp-buy { position: static; }
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
}
@media (max-width: 960px) {
  .news-grid, .steps-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .dl-main::before { background: linear-gradient(180deg, transparent 0, transparent 120px, rgb(var(--veil)) 220px); }
  .sb-deco { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .sec { padding-top: 40px; }
  .tiles, .stats, .form-grid { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr 1fr; gap: 12px; }
  .p-body { padding: 12px; }
  .price b { font-size: 1.1rem; }
  .band { padding: 26px; }
  .news-row { grid-template-columns: 1fr; gap: 8px; }
  .steps li { padding: 80px 20px 20px; }
  .steps li::before { left: 20px; top: 20px; }
  .foot { padding: 0 12px 12px; }
  .foot-grid { grid-template-columns: 1fr; }
  .card, .doc-body { padding: 20px; }
  .dl-main { padding: 28px; }
  .acc-head { flex-wrap: wrap; }
  .statusbar { padding: 10px 14px; }
  .sb-item { padding: 6px 0; width: 100%; }
  .sb-item + .sb-item { border-left: 0; border-top: 1px solid var(--line); }
  .brand-t small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .petals { display: none; }
}


/* ===== v4: «Небесный остров» — небо, воксельные иллюстрации (static/art, tools/art.py), кнопки-блоки ===== */

/* фон: небо в верхней части каждой страницы; ночью — звёзды */
body { background: var(--sky) 0 0 / 100% 940px no-repeat, var(--bg); }
body::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 900px; z-index: -1; pointer-events: none;
  background: radial-gradient(46% 56% at 84% 0, rgba(255, 236, 200, .7), transparent 70%), radial-gradient(36% 46% at 6% 10%, rgba(255, 255, 255, .5), transparent 70%); }
[data-theme="dark"] body::before { background: var(--stars); background-size: 280px 250px; opacity: .55;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 88%); mask-image: linear-gradient(180deg, #000, transparent 88%); }

/* шапка-«пилюля» над небом */
.top { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 14px 0 0; }
.top-in { padding: 8px 10px 8px 12px; border-radius: 22px; background: color-mix(in srgb, var(--card) 70%, transparent);
  border: 1px solid color-mix(in srgb, #fff 60%, transparent); box-shadow: 0 12px 34px -20px rgba(45, 35, 130, .55);
  backdrop-filter: saturate(1.7) blur(18px); -webkit-backdrop-filter: saturate(1.7) blur(18px); }
[data-theme="dark"] .top-in { border-color: rgba(255, 255, 255, .07); }
.wrap.top-in { width: calc(100% - 32px); }
.nav a:hover { background: color-mix(in srgb, var(--card2) 85%, transparent); }
.theme-btn { background: var(--card2); box-shadow: none; border: 1px solid var(--line); }
.brand-ic { width: 44px; height: 44px; border-radius: 13px; background: none; box-shadow: 0 8px 18px -8px rgba(91, 85, 234, .85); }
.brand-ic img { width: 44px; height: 44px; }
[data-theme="dark"] .brand-ic { box-shadow: 0 8px 22px -8px rgba(124, 123, 255, .8); }

/* кнопки-блоки: нижняя грань, нажимаются вниз */
.btn { font-weight: 750; border-radius: 14px; background: var(--grad);
  box-shadow: 0 4px 0 var(--edge), 0 14px 24px -14px rgba(70, 60, 220, .9), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .12s ease, box-shadow .12s ease, filter .15s ease; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 6px 0 var(--edge), 0 18px 28px -14px rgba(70, 60, 220, .9), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge), 0 6px 12px -8px rgba(70, 60, 220, .6), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn:disabled { transform: none; filter: grayscale(.3); box-shadow: 0 4px 0 var(--edge); }
.btn-ghost { background: var(--card); color: var(--text) !important; border: 1px solid var(--line2); box-shadow: 0 4px 0 var(--line2), 0 12px 22px -16px rgba(60, 55, 150, .4); }
.btn-ghost:hover { filter: none; border-color: var(--line2); box-shadow: 0 6px 0 var(--line2), 0 16px 26px -16px rgba(60, 55, 150, .45); }
.btn-ghost:active { box-shadow: 0 1px 0 var(--line2); }
.btn-danger { background: var(--bad-l); color: var(--bad) !important; border: 1px solid color-mix(in srgb, var(--bad) 22%, transparent); box-shadow: 0 3px 0 color-mix(in srgb, var(--bad) 30%, transparent); }
.btn-danger:hover { filter: none; box-shadow: 0 4px 0 color-mix(in srgb, var(--bad) 30%, transparent); }
.btn-sm { box-shadow: 0 3px 0 var(--edge), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-sm.btn-ghost { box-shadow: 0 3px 0 var(--line2); }
.btn-lg { padding: 15px 28px; border-radius: 16px; }
.nav a.btn { padding: 9px 16px; box-shadow: 0 3px 0 var(--edge), 0 10px 18px -10px rgba(70, 60, 220, .8), inset 0 1px 0 rgba(255, 255, 255, .3); }
.band .btn-light, .btn-light { background: #fff; color: #3a35b8 !important; border: 0; box-shadow: 0 4px 0 #c6c3f0, 0 16px 28px -14px rgba(0, 0, 0, .55); }
.band .btn-light:hover, .btn-light:hover { box-shadow: 0 6px 0 #c6c3f0, 0 20px 30px -14px rgba(0, 0, 0, .55); }
.band .btn-light:active, .btn-light:active { box-shadow: 0 1px 0 #c6c3f0; }
.band .btn-glass, .btn-glass { background: rgba(255, 255, 255, .12); color: #fff !important; border: 1px solid rgba(255, 255, 255, .28); box-shadow: 0 4px 0 rgba(10, 5, 40, .35); }
.band .btn-glass:hover, .btn-glass:hover { background: rgba(255, 255, 255, .2); box-shadow: 0 6px 0 rgba(10, 5, 40, .35); }

.pill { color: var(--text); background: color-mix(in srgb, var(--card) 74%, transparent); border: 1px solid color-mix(in srgb, #fff 70%, transparent);
  box-shadow: 0 6px 16px -10px rgba(50, 40, 140, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
[data-theme="dark"] .pill { border-color: rgba(255, 255, 255, .08); }

/* общий вид карточек: тонкая рамка поверх тени */
.card, .doc-body, .toc, .acc-head, .empty, .product, .mode, .stat, .adm-nav, .set-tabs, .media, .news-row, .news-card, .chips a, .cookie { border: 1px solid var(--line); }

/* ----- главный экран ----- */
.hx { position: relative; padding-top: 6px; overflow-x: clip; }
.hx-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: 8px; min-height: 600px; }
.hx-txt { position: relative; z-index: 2; padding: 32px 0 40px; }
.hx h1 { display: flex; flex-direction: column; margin: 0 0 20px; font-size: clamp(3rem, 6.6vw, 5.5rem); line-height: .94; letter-spacing: -.05em; font-weight: 900; }
.hx h1 .ln:last-child:not(:only-child) { background: linear-gradient(92deg, #5458ee 10%, #8f55ec 55%, #e0609f); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; margin-bottom: -.08em; }
[data-theme="dark"] .hx h1 .ln:last-child:not(:only-child) { background-image: linear-gradient(92deg, #a9acff, #cfa6ff 55%, #f7a6cf); }
.hx-sub { margin: 0 0 10px; font-size: 1.32rem; font-weight: 750; letter-spacing: -.01em; }
.hx .lead { margin: 0 0 32px; max-width: 44ch; font-size: 1.07rem; color: var(--muted); }
.hx-art { position: relative; display: grid; place-items: center; margin-right: -36px; }
.hx-art::before { content: ""; position: absolute; width: 76%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .9), rgba(255, 255, 255, .35) 55%, transparent); }
[data-theme="dark"] .hx-art::before { background: radial-gradient(closest-side, rgba(125, 118, 255, .34), rgba(125, 118, 255, .1) 55%, transparent); }
.hx-art img { position: relative; width: 100%; max-width: 650px; height: auto; animation: hover 8s ease-in-out infinite; filter: drop-shadow(0 34px 34px rgba(64, 44, 150, .2)); }
[data-theme="dark"] .hx-art img { filter: brightness(.88) saturate(.95) drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); }
@keyframes hover { 50% { transform: translateY(-14px); } }

.hx-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 24px;
  background: color-mix(in srgb, var(--card) 84%, transparent); border: 1px solid color-mix(in srgb, #fff 70%, transparent); box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
[data-theme="dark"] .hx-stats { border-color: var(--line); }
.hx-stat { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 18px 22px; }
.hx-stat + .hx-stat { border-left: 1px solid var(--line); }
.hx-stat b { display: block; font-size: 1.32rem; font-weight: 850; line-height: 1.15; letter-spacing: -.02em; }
.hx-stat small { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; }

/* ----- заголовки секций ----- */
.sec { padding-top: 92px; }
main > .sec:first-child { padding-top: 44px; }
.sec-h { margin-bottom: 28px; }
.sec-h h2, .faq-side h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 850; letter-spacing: -.035em; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 12px; color: var(--primary); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow::before { content: ""; flex: none; width: 15px; height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1l5.6 3.2L7 7.4 1.4 4.2z' fill='%238b8fff'/%3E%3Cpath d='M1.4 4.2 7 7.4V14l-5.6-3.2z' fill='%235b5ff0'/%3E%3Cpath d='M12.6 4.2 7 7.4V14l5.6-3.2z' fill='%233d3fc0'/%3E%3C/svg%3E") center / contain no-repeat; }
.more { padding: 9px 14px; border-radius: 13px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); font-size: .9rem; }
.more:hover { color: var(--primary); }

/* ----- карточки с иллюстрациями ----- */
.feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feat { display: flex; flex-direction: column; overflow: hidden; border-radius: 26px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.feat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line2); }
.feat-art { position: relative; aspect-ratio: 1 / .86; overflow: hidden; background: radial-gradient(90% 80% at 50% 95%, var(--fa1), var(--fa2) 72%); border-bottom: 1px solid var(--line); }
.feat-art img { position: absolute; inset: 16px 14px 10px; width: calc(100% - 28px); height: calc(100% - 26px); object-fit: contain; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.feat:hover .feat-art img { transform: translateY(-6px) scale(1.04); }
.feat-indigo { --fa1: #d8dbff; --fa2: #f3f2ff; }
.feat-pink { --fa1: #ffd5ea; --fa2: #fff2f8; }
.feat-amber { --fa1: #ffe4b3; --fa2: #fff8ea; }
.feat-green { --fa1: #ccf2da; --fa2: #f0fcf4; }
[data-theme="dark"] .feat-indigo { --fa1: #2c3072; --fa2: #181b3a; }
[data-theme="dark"] .feat-pink { --fa1: #4a2450; --fa2: #1d1834; }
[data-theme="dark"] .feat-amber { --fa1: #4a3622; --fa2: #1d1a30; }
[data-theme="dark"] .feat-green { --fa1: #1d4637; --fa2: #161c33; }
.feat-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; flex: 1; padding: 20px 22px 22px; }
.feat-body h3 { margin: 0; font-size: 1.16rem; }
.feat-body p { margin: 0 0 10px; color: var(--muted); font-size: .93rem; }
.chip { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding: 5px 11px 5px 9px; border-radius: 99px; background: var(--card2); border: 1px solid var(--line); color: var(--muted); font-size: .76rem; font-weight: 700; }
.chip .ic { width: 15px; height: 15px; color: var(--primary); }

/* ----- три шага ----- */
.steps-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 26px 26px 22px; border-radius: 26px; border: 1px solid var(--line); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line2); }
.step-card h3 { margin: 12px 0 0; font-size: 1.18rem; }
.step-card p { margin: 0 0 6px; color: var(--muted); font-size: .93rem; }
.step-n { position: absolute; right: 22px; top: 16px; font-size: 3.6rem; font-weight: 900; line-height: 1; letter-spacing: -.06em; color: var(--primary-l); transition: color .25s, transform .25s; }
.step-card:hover .step-n { color: color-mix(in srgb, var(--primary) 30%, var(--primary-l)); transform: translateY(-3px); }
.step-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: var(--primary); font-weight: 750; font-size: .9rem; }
.step-go .ic { width: 16px; height: 16px; transition: transform .2s; }
.step-card:hover .step-go .ic { transform: translateX(3px); }

/* ----- новости, миры ----- */
.news-card, .product, .mode { border-radius: 24px; }
.news-card:hover, .product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line2); }

/* ----- вопросы ----- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.faq-side { position: sticky; top: 110px; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { padding: 0 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 0; cursor: pointer; font-weight: 750; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--primary-l); color: var(--primary); font-size: 1.2rem; font-weight: 700; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 0 20px; color: var(--muted); }

/* ----- призыв: ночное небо и костёр ----- */
.band { color: #fff; border-radius: 30px; isolation: isolate;
  background: radial-gradient(70% 90% at 88% 6%, rgba(140, 110, 255, .55), transparent 70%), linear-gradient(140deg, #23246b 0%, #33267a 52%, #4a2a86 100%);
  box-shadow: 0 34px 70px -34px rgba(40, 30, 120, .8); }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .75; background: var(--stars); background-size: 280px 250px; }
.band-x { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 24px; padding: 52px 56px; border-radius: 34px; margin-bottom: 0; }
.band-x h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 850; letter-spacing: -.03em; }
.band-x .muted { margin: 0 0 26px; max-width: 46ch; color: rgba(255, 255, 255, .78); }
.band-art { position: relative; display: grid; place-items: center; }
.band-art::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1.4; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 190, 110, .4), transparent); }
.band-art img { position: relative; width: 100%; max-width: 360px; margin: -30px 0 -44px; filter: drop-shadow(0 24px 30px rgba(10, 5, 40, .45)); }

/* ----- скачать ----- */
.dl-main { background: radial-gradient(70% 80% at 85% 20%, rgba(255, 255, 255, .7), transparent 70%), linear-gradient(160deg, #e5e6ff, #f9e5f1); border: 1px solid var(--line); min-height: 440px; padding: 44px 48px; }
.dl-main::before { display: none; }
[data-theme="dark"] .dl-main { background: radial-gradient(70% 80% at 85% 20%, rgba(125, 118, 255, .25), transparent 70%), linear-gradient(160deg, #1d2050, #2a1f47); }
.dl-main > :not(.dl-art) { position: relative; max-width: 28rem; }
.dl-art { position: absolute; right: -30px; bottom: -70px; width: 56%; max-width: 430px; height: auto; animation: hover 8s ease-in-out infinite; filter: drop-shadow(0 26px 30px rgba(64, 44, 150, .2)); }

/* ----- вход и регистрация ----- */
.auth { padding-top: 56px; }
.auth .card { position: relative; overflow: hidden; border-radius: 30px; padding: 40px 36px 32px; }
.auth h1 { text-align: center; padding-top: 80px; background: url("/static/icon.svg?v=4") top center / 64px no-repeat; }

/* ----- подвал: полоска травы сверху ----- */
.foot { margin-top: 96px; }
.foot-body { position: relative; overflow: hidden; border-radius: 30px; border: 1px solid var(--line); }
.foot-body::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: repeating-linear-gradient(90deg, #7ccf5f 0 14px, #6bbf52 14px 28px, #86d968 28px 42px, #74c75a 42px 56px); }
.foot-grid { padding-top: 38px; }
.cookie { border-radius: 20px; }

/* плавное появление (только если работает JS) */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .rv.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .3s ease, box-shadow .25s ease, border-color .25s; }
.js .feat.rv.in:hover { transform: translateY(-6px); }
.js .step-card.rv.in:hover { transform: translateY(-5px); }
.js .news-card.rv.in:hover { transform: translateY(-4px); }

@media (max-width: 1100px) {
  .wrap.top-in { width: calc(100% - 24px); }
  .nav { top: 84px; }
}
@media (max-width: 1080px) {
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-wrap { grid-template-columns: 1fr; gap: 20px; }
  .faq-side { position: static; }
  .hx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-stat:nth-child(3) { border-left: 0; }
  .hx-stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .hx-in { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hx-art { order: -1; width: min(100%, 520px); margin: 0 auto -16px; }
  .hx-txt { padding: 0 0 28px; }
  .band-x { grid-template-columns: 1fr; padding: 36px 28px 0; }
  .band-art img { max-width: 300px; margin: 0 auto -8px; }
  .dl-main > :not(.dl-art) { max-width: none; }
  .dl-art { position: relative; right: auto; bottom: auto; display: block; width: min(80%, 360px); margin: -16px auto 8px; }
  .steps-row, .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sec { padding-top: 64px; }
  main > .sec:first-child { padding-top: 28px; }
  .feats { grid-template-columns: 1fr; }
  .hx h1 { font-size: clamp(2.7rem, 13vw, 3.4rem); }
  .hx-sub { font-size: 1.15rem; }
  .hx-stat { padding: 14px 16px; gap: 10px; }
  .hx-stat b { font-size: 1.1rem; }
  .band-x { border-radius: 26px; padding: 30px 22px 0; }
  .dl-main { padding: 28px 22px; }
  .auth .card { padding: 32px 22px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; }
}

/* ===== v4.1: проще и «человечнее» — без градиентного текста, ореолов, стекла и неоновых теней ===== */
body::before { background: none; }
[data-theme="dark"] body::before { background: var(--stars); background-size: 280px 250px; }
.top-in { background: color-mix(in srgb, var(--card) 92%, transparent); }
.pill { background: var(--card); border-color: var(--line); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.brand-ic, [data-theme="dark"] .brand-ic { box-shadow: 0 4px 10px -4px rgba(30, 25, 80, .45); }
.btn { box-shadow: 0 4px 0 var(--edge), 0 10px 18px -12px rgba(30, 25, 80, .55); }
.btn:hover { filter: none; background: var(--primary-d); box-shadow: 0 6px 0 var(--edge), 0 14px 22px -12px rgba(30, 25, 80, .55); }
.btn:active { box-shadow: 0 1px 0 var(--edge); }
.nav a.btn { box-shadow: 0 3px 0 var(--edge); }
.nav a.btn:hover { background: var(--primary-d); }
.btn-ghost:hover { background: var(--card); }
.btn-light:hover, .band .btn-light:hover { background: #fff; }

.hx h1 .ln:last-child:not(:only-child), [data-theme="dark"] .hx h1 .ln:last-child:not(:only-child) { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--primary); padding-bottom: 0; margin-bottom: 0; }
.hx-art::before { display: none; }
.hx-art img { image-rendering: auto; filter: none; animation: hover 9s ease-in-out infinite; }
[data-theme="dark"] .hx-art img { filter: brightness(.9); }
@keyframes hover { 50% { transform: translateY(-8px); } }
.hx-stats, [data-theme="dark"] .hx-stats { background: var(--card); border: 1px solid var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* значки: плоские светлые плашки вместо градиентов со свечением */
.gi { background: var(--gl); color: var(--gc); box-shadow: none; }
.gi-indigo { --gl: #ecebff; --gc: #5357e6; }
.gi-pink { --gl: #fde6f1; --gc: #cf3f87; }
.gi-green { --gl: #e0f5e8; --gc: #17904f; }
.gi-amber { --gl: #fff0d2; --gc: #b87400; }
.gi-gray { --gl: #eef0f6; --gc: #7a8099; }
[data-theme="dark"] .gi-indigo { --gl: #262a5c; --gc: #aab0ff; }
[data-theme="dark"] .gi-pink { --gl: #3d2338; --gc: #f59ac6; }
[data-theme="dark"] .gi-green { --gl: #15372a; --gc: #6ee7a8; }
[data-theme="dark"] .gi-amber { --gl: #3b2f17; --gc: #fcd34d; }
[data-theme="dark"] .gi-gray { --gl: #23263f; --gc: #a0a4ca; }

/* фон под рендерами: ровный светлый, как небо в игре днём */
.feat-art { background: var(--fa); }
.feat-indigo { --fa: #e9ecff; }
.feat-pink { --fa: #fdeef5; }
.feat-amber { --fa: #fff5e3; }
.feat-green { --fa: #e8f7ee; }
[data-theme="dark"] .feat-indigo { --fa: #1d2147; }
[data-theme="dark"] .feat-pink { --fa: #2a1d36; }
[data-theme="dark"] .feat-amber { --fa: #2b2430; }
[data-theme="dark"] .feat-green { --fa: #172a31; }
.feat-art img { image-rendering: auto; }

.band { background: #25226a; box-shadow: 0 24px 50px -30px rgba(30, 25, 90, .8); }
.band-art::before { display: none; }
.band-art img { filter: none; }
.dl-main, [data-theme="dark"] .dl-main { background: var(--primary-l); }
.dl-art { filter: none; }
.announce { background: var(--primary); }
.sale-bar { background: #d94b8c; }
.badge { box-shadow: none; }

/* иконка — рендер блока с прозрачным фоном: без плашки и тени-прямоугольника */
.brand-ic, [data-theme="dark"] .brand-ic { box-shadow: none; border-radius: 0; background: none; }
.brand-ic img { filter: drop-shadow(0 3px 3px rgba(30, 25, 80, .22)); }
.auth h1 { background-image: url("/static/icon.svg?v=5"); }

/* ----- админка: почта ----- */
.nav-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 99px; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 800; }
.mail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.mail-head .chips { margin: 0; }
.mail-tabs a.on { background: var(--primary-l); color: var(--primary); border-color: transparent; }
.mail-tbl tr.unread td, .mail-tbl tr.unread a { font-weight: 750; color: var(--text); }
.mail-tbl .mail-who { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-snip { display: block; max-width: 640px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.mail-view h1 { font-size: 1.5rem; margin-bottom: 14px; overflow-wrap: anywhere; }
.mail-meta { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; background: var(--card2); font-size: .9rem; }
.mail-meta dt { color: var(--muted); }
.mail-meta dd { margin: 0; overflow-wrap: anywhere; }
.mail-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; padding: 4px 2px 18px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.mail-atts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.mail-atts .chip { margin: 0; color: var(--text); }
.mail-actions form { display: inline; }
.mail-compose textarea { font: 500 .95rem/1.55 var(--font); }

/* подсказка: где искать письмо */
.spam-tips { margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; background: var(--gold-l); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); font-size: .9rem; }
.spam-tips ul { margin: 6px 0 0; padding-left: 1.2em; }
.spam-tips li { margin: 3px 0; }
