/* VinceShop v4. Тёмная тема, техничный шрифт Exo 2, один акцент (кобальт).
   Радиусы: крупные блоки 22px, кнопки 12px, чипы 8px. */

:root {
  --bg: #08090c;
  --panel: #0f1117;
  --panel-2: #161922;
  --panel-3: #1d212c;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eef0f6;
  --muted: #8b92a5;
  --accent: #4f66ff;
  --accent-text: #8d9bff;
  --accent-soft: rgba(79, 102, 255, .14);
  --accent-line: rgba(79, 102, 255, .45);
  --on-accent: #ffffff;
  --danger: #ff6464;
  --r-xl: 22px;
  --r-btn: 12px;
  --r-chip: 8px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Exo 2", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f1f2f6; --panel: #ffffff; --panel-2: #f4f5f9; --panel-3: #e9ebf2;
  --line: rgba(10, 14, 30, .08); --line-2: rgba(10, 14, 30, .16);
  --text: #0c0f1a; --muted: #5d6478; --accent: #3048ff; --accent-text: #2a3fe0;
  --accent-soft: rgba(48, 72, 255, .09); --accent-line: rgba(48, 72, 255, .35); --danger: #d93636;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--body); min-height: 100dvh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- кнопки, поля, чипы ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  height: 50px; padding: 0 22px; border-radius: var(--r-btn); font: 600 15px var(--body);
  background: var(--panel-2); border: 1px solid var(--line-2); transition: transform .3s var(--ease), background .2s, border-color .2s;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, #fff); border-color: transparent; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-sm { height: 40px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn i { font-size: 19px; }

.field { display: grid; gap: 8px; }
.label, .field > label { font: 500 13px/1.2 var(--body); color: var(--muted); }
.input { width: 100%; height: 52px; padding: 0 16px; border-radius: var(--r-btn); background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text); font: 400 16px var(--body); transition: border-color .2s, box-shadow .2s; }
.input::placeholder { color: var(--muted); opacity: .8; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hint { font-size: 14px; color: var(--muted); min-height: 20px; }
.hint.err { color: var(--danger); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 38px; padding: 0 13px; border-radius: var(--r-chip); border: 1px solid var(--line-2); background: var(--panel-2); font: 600 13.5px var(--body); transition: border-color .15s, background .15s, color .15s; }
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line-2); font: 600 12px var(--body); }
.tag.acc { color: var(--accent-text); border-color: var(--accent-line); background: var(--accent-soft); }
.tag.bad { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--line-2); background: var(--panel-2); font-size: 20px; }
.ico.acc { color: var(--accent-text); border-color: var(--accent-line); background: var(--accent-soft); }

input[type="range"] { width: 100%; height: 26px; appearance: none; -webkit-appearance: none; background: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: var(--panel-3); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--panel-3); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--accent); border: 4px solid var(--bg); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 4px solid var(--bg); }

/* ---------- шапка ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav-in { height: 66px; display: flex; align-items: center; gap: 36px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 20px/1 var(--display); letter-spacing: .01em; }
.logo-mark { position: relative; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--accent); color: var(--on-accent); font: 800 16px var(--display); transform: rotate(-8deg); }
.logo em { font-style: normal; color: var(--accent-text); }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font: 500 15px var(--body); color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-btn { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px; border-radius: var(--r-btn); border: 1px solid var(--line-2); background: var(--panel); font: 600 14px var(--body); transition: border-color .2s; }
.nav-btn:hover { border-color: var(--muted); }
.nav-btn i { font-size: 18px; color: var(--accent-text); }
.sqb { width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r-btn); border: 1px solid var(--line-2); background: var(--panel); font-size: 18px; }
.sqb:hover { border-color: var(--muted); }

/* ---------- hero + консоль заказа ---------- */
.hero { position: relative; padding: 72px 0 80px; overflow: hidden; }
.hero::before { content: ""; position: absolute; z-index: -1; right: -10%; top: -20%; width: 70%; height: 120%; pointer-events: none; background: radial-gradient(closest-side, var(--accent-soft), transparent); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font: 800 clamp(38px, 4.5vw, 62px)/1.02 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.hero h1 span { display: block; color: var(--accent-text); font-style: italic; padding-bottom: .06em; }
.hero p { margin-top: 26px; max-width: 42ch; font-size: 18px; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.console { border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--panel); box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .8); overflow: hidden; }
.c-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.c-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ava { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 700 18px var(--display); text-transform: uppercase; }
.c-user .n { font: 600 16px var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-user .s { font: 500 12.5px var(--body); color: var(--muted); }
.c-bal { display: flex; align-items: center; gap: 12px; }
.c-bal .v { text-align: right; }
.c-bal .v small { display: block; font: 500 12px var(--body); color: var(--muted); }
.c-bal .v b { font: 700 18px var(--mono); letter-spacing: -.02em; }
.c-tabs { display: flex; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.c-tabs::-webkit-scrollbar { display: none; }
.c-tab { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 10px; font: 600 14px var(--body); color: var(--muted); transition: color .2s, background .2s; }
.c-tab i { font-size: 17px; }
.c-tab:hover { color: var(--text); }
.c-tab[aria-selected="true"] { background: var(--panel-3); color: var(--text); }
.c-tab[aria-selected="true"] i { color: var(--accent-text); }
.c-body { position: relative; display: grid; grid-template-columns: 1fr 150px; gap: 20px; padding: 24px 22px; min-height: 250px; }
.c-body .price { font: 700 clamp(38px, 4.4vw, 52px)/1 var(--display); }
.c-body .price small { font: 500 15px var(--body); color: var(--muted); margin-left: 6px; }
.c-body h3 { font: 700 22px var(--display); margin-bottom: 14px; }
.c-facts { margin-top: 18px; padding: 0; display: grid; gap: 8px; }
.c-facts li { list-style: none; display: flex; gap: 10px; align-items: baseline; font-size: 15px; color: var(--muted); }
.c-facts li i { color: var(--accent-text); font-size: 16px; transform: translateY(2px); }
.c-facts li b { color: var(--text); font-weight: 600; }
.c-art { align-self: stretch; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: var(--panel-2); display: grid; place-items: center; }
.c-art img { width: 100%; height: 100%; object-fit: cover; }
.c-art i { font-size: 72px; color: var(--accent-text); }
.c-act { grid-column: 1 / -1; display: flex; gap: 10px; }
.c-act .btn { flex: 1; }
.c-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .c-body > * { animation: rise .45s var(--ease) both; }
  .c-body > *:nth-child(2) { animation-delay: .05s; }
  .c-body > *:nth-child(3) { animation-delay: .1s; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
  .c-progress.run { animation: prog 6s linear forwards; }
  @keyframes prog { to { width: 100%; } }
}
.c-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--panel-2); font-size: 14px; }
.c-foot span:first-child { color: var(--muted); }
.c-foot b { font-weight: 600; }

/* ---------- секции ---------- */
.section { padding: 96px 0; }
.h2 { font: 700 clamp(32px, 4vw, 52px)/1.02 var(--display); letter-spacing: -.005em; text-wrap: balance; }
.lead { margin-top: 14px; max-width: 48ch; color: var(--muted); font-size: 17px; }

/* каталог: лента постеров */
.rail-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; }
.rail-nav { display: flex; gap: 8px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 12px 2px 14px; margin: -12px -2px -14px; cursor: grab; }
.rail.drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.rail.drag .pc { pointer-events: none; }
.rail img { -webkit-user-drag: none; user-select: none; }
.rail::-webkit-scrollbar { display: none; }
.pc {
  scroll-snap-align: start; position: relative; isolation: isolate; overflow: hidden; text-align: left;
  aspect-ratio: 3 / 4.1; border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--panel);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; transition: border-color .3s, transform .6s var(--ease);
}
.pc:hover { border-color: var(--accent-line); transform: translateY(-6px); }
.pc .art { position: absolute; inset: 0; z-index: -1; }
.pc .art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pc:hover .art img { transform: scale(1.05); }
.pc .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 12, .1) 20%, rgba(8, 9, 12, .92) 78%); }
.pc .art.icon { display: grid; place-items: center; background:
    radial-gradient(circle at 50% 32%, rgba(79, 102, 255, .28), transparent 42%),
    repeating-radial-gradient(circle at 50% 32%, transparent 0 34px, rgba(255, 255, 255, .045) 34px 35px),
    linear-gradient(180deg, var(--panel-2), var(--panel)); }
:root[data-theme="light"] .pc .art.icon { background: radial-gradient(circle at 50% 32%, rgba(48, 72, 255, .16), transparent 42%), repeating-radial-gradient(circle at 50% 32%, transparent 0 34px, rgba(10, 14, 30, .05) 34px 35px), linear-gradient(180deg, var(--panel-2), var(--panel)); }
.pc .art.icon i { font-size: 150px; color: var(--accent-text); opacity: .85; transform: translateY(-40px); transition: transform .8s var(--ease); }
.pc:hover .art.icon i { transform: translateY(-48px) rotate(-6deg); }
.pc .art.icon::after { background: linear-gradient(180deg, transparent 45%, var(--panel) 85%); }
.pc .pr { position: absolute; top: 18px; left: 18px; height: 32px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 10px; background: rgba(8, 9, 12, .72); border: 1px solid var(--line-2); backdrop-filter: blur(8px); font: 700 14px var(--mono); color: #fff; }
.pc h3 { font: 700 26px/1.05 var(--display); color: #fff; }
.pc p { margin-top: 8px; font-size: 14.5px; color: rgba(238, 240, 246, .72); }
.pc .more { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; font: 600 14px var(--body); color: var(--accent-text); }
.pc .more i { transition: transform .4s var(--ease); }
.pc:hover .more i { transform: translateX(4px); }
.pc.off { opacity: .5; }
:root[data-theme="light"] .pc .art.icon::after { background: linear-gradient(180deg, transparent 45%, var(--panel) 85%); }
:root[data-theme="light"] .pc .art.icon ~ h3, :root[data-theme="light"] .pc .art.icon ~ p { color: var(--text); }

/* лента последних заказов */
.feed { display: flex; align-items: center; border-block: 1px solid var(--line); background: var(--panel); margin-bottom: 72px; }
.feed-label { flex: none; display: flex; align-items: center; gap: 10px; padding: 0 22px; height: 54px; border-right: 1px solid var(--line); font: 600 14px var(--body); white-space: nowrap; }
.live { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .5); }
@media (prefers-reduced-motion: no-preference) { .live { animation: pulse 1.8s ease-out infinite; } @keyframes pulse { to { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } } }
.feed-mask { flex: 1; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.feed-track { display: flex; width: max-content; }
.feed-item { display: inline-flex; align-items: center; gap: 10px; padding: 0 26px; height: 54px; font: 500 14.5px var(--body); white-space: nowrap; border-right: 1px solid var(--line); }
.feed-item i { color: var(--accent-text); font-size: 17px; }
.feed-item small { color: var(--muted); font-size: 13px; }
@media (prefers-reduced-motion: no-preference) { .feed-track.run { animation: feedrun var(--dur, 60s) linear infinite; } .feed:hover .feed-track { animation-play-state: paused; } }
@keyframes feedrun { to { transform: translateX(-50%); } }

/* цифры */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--r-xl); border: 1px solid var(--line-2); background: radial-gradient(120% 140% at 0 0, var(--accent-soft), transparent 55%), var(--panel); overflow: hidden; }
.num { padding: 30px 28px; }
.num + .num { border-left: 1px solid var(--line); }
.num b { display: block; font: 800 clamp(30px, 3.4vw, 46px)/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.num span { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; }

/* бот + сайт */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.duo-list { display: grid; gap: 0; border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--panel); overflow: hidden; }
.duo-row { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 22px 24px; }
.duo-row + .duo-row { border-top: 1px solid var(--line); }
.duo-row b { display: block; font: 700 18px var(--display); }
.duo-row span { color: var(--muted); font-size: 15px; }
.duo .hero-cta { margin-top: 30px; }

/* FAQ в две колонки */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; align-items: start; }
.faq details { border-radius: 16px; border: 1px solid var(--line-2); background: var(--panel); padding: 0 20px; transition: border-color .2s; }
.faq details[open] { border-color: var(--accent-line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font: 600 16px var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { font-size: 20px; color: var(--muted); transition: transform .4s var(--ease), color .2s; }
.faq details[open] summary i { transform: rotate(45deg); color: var(--accent-text); }
.faq details p { padding-bottom: 18px; color: var(--muted); }
.faq details a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* подвал */
.foot { border-top: 1px solid var(--line); padding: 56px 0 0; overflow: hidden; }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.foot-in p { margin-top: 14px; color: var(--muted); font-size: 14.5px; max-width: 34ch; }
.foot-col { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.foot-col span { font: 600 13px var(--body); color: var(--muted); margin-bottom: 4px; }
.foot-col a { color: var(--text); opacity: .82; }
.foot-col a:hover { opacity: 1; color: var(--accent-text); }
.foot-word { margin-top: 56px; font: 800 clamp(64px, 17vw, 236px)/.74 var(--display); text-align: center; color: var(--panel-2); user-select: none; white-space: nowrap; letter-spacing: -.02em; }

/* ---------- шторка ---------- */
dialog.sheet { margin: 0 0 0 auto; padding: 0; height: 100dvh; max-height: 100dvh; width: min(520px, 100%); max-width: 100%; border: 0; border-left: 1px solid var(--line-2); background: var(--panel); color: var(--text); overflow: auto; }
dialog.sheet::backdrop { background: rgba(3, 4, 8, .6); backdrop-filter: blur(4px); }
@media (prefers-reduced-motion: no-preference) {
  dialog.sheet[open] { animation: slide .5s var(--ease); }
  dialog.sheet[open]::backdrop { animation: fade .4s ease; }
}
@keyframes slide { from { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }
.sh { min-height: 100%; display: grid; grid-template-rows: auto 1fr; }
.sh-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 24px; background: var(--panel); border-bottom: 1px solid var(--line); }
.sh-top h2 { font: 700 22px/1.1 var(--display); }
.sh-body { padding: 24px 24px 40px; display: grid; gap: 22px; align-content: start; }
.sh-body > .sub { color: var(--muted); }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel-2); font: 500 14px var(--body); color: var(--muted); }
.total b { font: 700 28px var(--mono); letter-spacing: -.03em; color: var(--text); }
.total .mono { color: var(--text); font-size: 14px; }
.opts { display: grid; gap: 8px; }
.opt { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel-2); text-align: left; transition: border-color .2s, background .2s; }
.opt:hover { border-color: var(--muted); }
.opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.opt[disabled] { opacity: .4; pointer-events: none; }
.opt .t { display: flex; align-items: center; gap: 14px; font: 600 15px var(--body); }
.opt img { width: 86px; height: 40px; object-fit: cover; border-radius: 8px; }
.opt small { display: block; color: var(--muted); font: 500 12.5px var(--body); margin-top: 2px; }
.opt .p { font: 700 16px var(--mono); white-space: nowrap; }
.kv { display: grid; gap: 8px; }
.kv-row { display: grid; grid-template-columns: 104px 1fr 36px; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); font: 500 14px var(--mono); word-break: break-all; }
.kv-row span:first-child { font: 500 13px var(--body); color: var(--muted); word-break: normal; }
.kv-row button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line-2); font-size: 16px; }
.kv-row button:hover { border-color: var(--accent); color: var(--accent-text); }
.bar { height: 8px; border-radius: 8px; background: var(--panel-3); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .6s var(--ease); }
.awq { display: grid; grid-template-columns: 1fr 120px; gap: 14px; align-items: center; }
.awq .input { text-align: right; font: 700 18px var(--mono); }

/* ---------- профиль ---------- */
.prof { padding: 48px 0 80px; }
.prof-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 28px; }
.prof-head h1 { font: 700 clamp(34px, 4.4vw, 56px)/1 var(--display); }
.kicker { font: 600 14px var(--body); color: var(--accent-text); }
.prof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.col { display: grid; gap: 14px; }
.pan { border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--panel); padding: 24px; display: grid; gap: 18px; }
.pan h2 { font: 700 19px var(--display); }
.pan-bal { background: radial-gradient(circle at 100% 0, var(--accent-soft), transparent 60%), var(--panel); border-color: var(--accent-line); }
.balance { font: 700 clamp(44px, 5.4vw, 70px)/1 var(--mono); letter-spacing: -.05em; }
.stats { display: flex; gap: 32px; }
.stats div { font: 500 13px var(--body); color: var(--muted); }
.stats b { display: block; font: 700 18px var(--mono); letter-spacing: -.02em; color: var(--text); }
.pay2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row-2 { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.h-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; }
.h-row + .h-row { border-top: 1px solid var(--line); }
.h-row .t { font: 600 15px var(--body); line-height: 1.3; overflow-wrap: anywhere; }
.h-row .d { margin-top: 4px; display: flex; align-items: center; gap: 8px; font: 500 12px var(--mono); color: var(--muted); }
.h-row .a { text-align: right; font: 700 15px var(--mono); }
.h-row .a button { display: block; margin: 5px 0 0 auto; font: 600 13px var(--body); color: var(--accent-text); }
.empty { padding: 18px 0; color: var(--muted); font-size: 15px; }
.vkey { display: grid; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); }
.vkey-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 600 15px var(--body); }

/* тосты */
#toasts { position: fixed; z-index: 120; right: 16px; bottom: 16px; display: grid; gap: 10px; width: min(380px, 100% - 32px); }
.toast { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel-3); font: 500 14.5px var(--body); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6); animation: tin .4s var(--ease); }
.toast.ok { border-color: var(--accent-line); }
.toast.err { border-color: color-mix(in srgb, var(--danger) 55%, transparent); }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }
.sk { display: inline-block; height: .9em; width: 56px; border-radius: 5px; background: var(--panel-3); animation: blink 1.1s ease-in-out infinite alternate; vertical-align: middle; }
@keyframes blink { to { opacity: .4; } }

/* появление */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .rv.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* мобильная */
@media (max-width: 980px) {
  .nums { grid-template-columns: 1fr 1fr; }
  .num:nth-child(3) { border-left: 0; }
  .num:nth-child(n+3) { border-top: 1px solid var(--line); }
  .feed { margin-bottom: 48px; }
  .feed-label { padding: 0 14px; }
  .nav-links { display: none; }
  .hero { padding: 36px 0 64px; }
  .hero-grid, .duo, .prof-grid, .faq-grid, .foot-in { grid-template-columns: 1fr; }
  .hero-grid { gap: 36px; }
  .section { padding: 64px 0; }
  .rail { grid-auto-columns: 78%; }
  .duo { gap: 28px; }
  .sh-top, .sh-body { padding-inline: 18px; }
  .kv-row { grid-template-columns: 1fr 36px; }
  .kv-row span:first-child { grid-column: 1 / -1; }
  .nav-btn .nm { display: none; }
}
@media (max-width: 560px) {
  .hero-cta .btn { flex: 1 1 100%; }
  .c-bal { margin-left: auto; }
  .c-body { grid-template-columns: 1fr; }
  .c-art { display: none; }
  .c-head { flex-wrap: wrap; }
  .pay2 { grid-template-columns: 1fr; }
  .rail-nav { display: none; }
}

/* ---------- партнёрский кабинет ---------- */
.pt-wrap { max-width: 620px; margin-inline: auto; display: grid; gap: 14px; }
.pt-top { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--panel); }
.pt-top b { flex: 1; font: 700 19px var(--display); }
.pt-logo { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-text); font-size: 22px; }
.pt-hero { background: radial-gradient(circle at 100% 0, var(--accent-soft), transparent 60%), var(--panel); border-color: var(--accent-line); padding: 28px 24px 22px; }
.pt-hero .label { font: 700 13px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pt-big { font-size: clamp(44px, 12vw, 68px); font-weight: 700; line-height: 1; letter-spacing: -.05em; }
.pt-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); font: 500 14px var(--body); color: var(--muted); }
.pt-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4ade9a; margin-right: 10px; box-shadow: 0 0 10px #4ade9a; }
.pt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pt-stat { border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--panel); padding: 20px; display: grid; gap: 14px; align-content: space-between; min-width: 0; }
.pt-stat-h { display: flex; justify-content: space-between; align-items: start; gap: 10px; font: 700 12px/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pt-stat-h i { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--panel-2); font-size: 17px; letter-spacing: 0; color: var(--muted); }
.pt-stat b { font: 700 clamp(22px, 6vw, 30px)/1.1 var(--mono); letter-spacing: -.04em; overflow-wrap: anywhere; }
.pt-stat b.acc { color: #4ade9a; }
.pt-stat small { font: 500 14px var(--body); color: var(--muted); }
.pan h2 i { margin-right: 10px; color: var(--accent-text); }
.pt-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; }
.pt-row + .pt-row { border-top: 1px solid var(--line); }
.pt-row .t { font: 600 15px var(--mono); }
.pt-row .d { margin-top: 4px; font: 500 13px var(--body); color: var(--muted); }
.pt-row .a { display: grid; justify-items: end; gap: 6px; }
.pt-row .a b { font: 700 16px var(--mono); color: #4ade9a; }
.pt-link { grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; padding: 18px 24px; }
.pt-link b { display: block; font: 700 16px var(--display); }
.pt-link span:not(.ico) { font: 500 13px var(--body); color: var(--muted); }
.pt-link > i { color: var(--muted); }
.pt-link:hover { border-color: var(--accent-line); }
body.tgapp .nav, body.tgapp .foot { display: none; }
body.tgapp .prof { padding: 14px 0 40px; }
.pt-link-row { grid-template-columns: 1fr 36px !important; }
.pt-link-row span:first-child { grid-column: auto !important; color: var(--text) !important; font: 500 13px var(--mono) !important; word-break: break-all !important; }

/* кабинет RDX: на ПК на всю ширину, как обычная панель */
.pt-top b small { display: block; margin-top: 2px; font: 500 13px var(--body); color: var(--muted); letter-spacing: 0; }
.pt-out span { display: none; }
.pt-duo { display: grid; gap: 14px; }
.pt-recent-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pt-recent-h > span { font: 500 13px var(--body); color: var(--muted); }
.pt-tr { display: grid; grid-template-columns: auto auto 1fr auto; grid-template-areas: "date date date bonus" "cat qty base base"; gap: 6px 10px; padding: 14px 0; align-items: center; }
.pt-tr + .pt-tr { border-top: 1px solid var(--line); }
.pt-th { display: none; }
.pt-tr .c-date { grid-area: date; font: 600 15px var(--mono); }
.pt-tr .c-bonus { grid-area: bonus; font: 700 16px var(--mono); color: #4ade9a; text-align: right; }
.pt-tr .c-cat, .pt-tr .c-qty, .pt-tr .c-base { font: 500 13px var(--body); color: var(--muted); }
.pt-tr .c-cat { grid-area: cat; }
.pt-tr .c-qty { grid-area: qty; }
.pt-tr .c-base { grid-area: base; display: flex; align-items: center; gap: 8px; }
.pt-tr .c-base .tag { display: none; }
@media (min-width: 900px) {
  #rdx .wrap { width: min(1400px, 100% - 48px); }
  body.panel .prof, #rdx .prof { padding-top: 14px; }
  .pt-wrap.pt-wide { max-width: none; }
  .pt-wide .pt-out { width: auto; padding: 0 16px; gap: 8px; display: inline-flex; align-items: center; font: 600 14px var(--body); }
  .pt-wide .pt-out span { display: inline; }
  .pt-wide .pt-hero { padding: 30px 30px 22px; }
  .pt-grid4 { grid-template-columns: repeat(4, 1fr); }
  .pt-duo { grid-template-columns: 1fr 1fr; align-items: start; }
  .pt-wide .pt-recent { padding: 24px 30px; gap: 6px; }
  .pt-tr { grid-template-columns: 200px 1fr 120px 200px 140px; grid-template-areas: none; gap: 14px; padding: 18px 0; }
  .pt-tr > * { grid-area: auto !important; }
  .pt-th { display: grid; padding: 18px 0 14px; border-bottom: 1px solid var(--line); }
  .pt-th + .pt-tr { border-top: 0; }
  .pt-th span { font: 700 12px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .pt-th span:last-child, .pt-tr .c-bonus { text-align: left; }
  .pt-tr .c-date { font: 500 14px var(--mono); color: var(--muted); }
  .pt-tr .c-cat { font: 500 15px var(--body); color: var(--text); }
  .pt-tr .c-qty { display: block; font: 500 14px var(--mono); color: var(--muted); }
  .pt-tr .c-base { gap: 10px; font: 700 15px var(--mono); color: var(--text); }
  .pt-tr .c-base .tag { display: inline-flex; }
}

.pw { position: relative; }
.pw .input { padding-right: 52px; width: 100%; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); font-size: 20px; }
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--accent-text); }
/* ---------- часы в играх ---------- */
.qrbox { width: min(240px, 70vw); aspect-ratio: 1; margin: 4px auto; padding: 12px; border-radius: 16px; background: #fff; display: grid; place-items: center; }
.qrbox img { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.vrow { display: flex; flex-wrap: wrap; gap: 8px; }
.opt .t > span > i { color: var(--accent-text); margin-right: 6px; }

/* ---------- страница «Часы Steam» (#/hours) ---------- */
.nav-links a.on { color: var(--text); }
.hrs { padding: 44px 0 80px; display: grid; gap: 28px; }
.hx-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 18px 0 20px; }
.hx-hero > * { min-width: 0; }
.hx-kick { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-text); font: 600 13px var(--body); }
.hx-copy h1 { margin-top: 18px; font: 800 clamp(38px, 5.4vw, 70px)/.98 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.hx-copy h1 span { color: var(--accent-text); font-style: italic; }
.hx-copy > p { margin-top: 18px; max-width: 46ch; color: var(--muted); font-size: 17px; }
.hx-copy .hero-cta { margin-top: 28px; }
.hx-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; font: 500 13.5px var(--body); color: var(--muted); }
.hx-checks i { color: #4ade9a; margin-right: 6px; }

/* живая карточка */
.hx-live { border-radius: var(--r-xl); border: 1px solid var(--line-2); background: radial-gradient(120% 80% at 100% 0, var(--accent-soft), transparent 60%), var(--panel); padding: 20px; display: grid; gap: 16px; box-shadow: 0 30px 80px -40px rgba(79, 102, 255, .45); }
.hx-live-top, .hx-acc-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hx-ava { position: relative; flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--panel-2); font-size: 22px; color: var(--accent-text); }
.hx-ava.big { width: 64px; height: 64px; border-radius: 18px; font-size: 32px; }
.hx-ava em { position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; border-radius: 7px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font: 700 15px var(--body); font-style: normal; }
.hx-who { min-width: 0; flex: 1; display: grid; }
.hx-who b { font: 700 16px var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-who small { color: var(--muted); font-size: 13px; }
.hx-pill { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font: 600 12.5px var(--body); color: var(--muted); }
.hx-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hx-pill.on { color: #4ade9a; border-color: rgba(74, 222, 154, .35); background: rgba(74, 222, 154, .08); }
.hx-pill.wait { color: #f5b544; border-color: rgba(245, 181, 68, .35); background: rgba(245, 181, 68, .07); }
.hx-pill.bad { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: color-mix(in srgb, var(--danger) 8%, transparent); }
@media (prefers-reduced-motion: no-preference) { .hx-pill.on .dot { animation: hxp 1.8s ease-out infinite; } @keyframes hxp { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 154, .6); } 100% { box-shadow: 0 0 0 8px rgba(74, 222, 154, 0); } } }
.hx-now { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); min-width: 0; }
.hx-now img { width: 112px; height: 42px; object-fit: cover; border-radius: 8px; flex: none; }
.hx-now div { display: grid; min-width: 0; }
.hx-now small { color: var(--muted); font-size: 12px; }
.hx-now b { font: 700 15px var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-live-num { display: grid; }
.hx-live-num small { color: var(--muted); font: 700 11.5px var(--body); letter-spacing: .12em; text-transform: uppercase; }
.hx-live-num b { font: 700 clamp(30px, 4vw, 40px)/1.1 var(--mono); letter-spacing: -.04em; }
.hx-live-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.hx-live-foot b { color: var(--text); margin-left: 6px; }

/* график по дням: полный столбик = 24 ч */
.hx-chart { position: relative; height: 150px; padding-left: 38px; }
.hx-grid { position: absolute; inset: 0 0 20px 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.hx-grid span { display: flex; align-items: center; gap: 8px; font: 500 10.5px var(--mono); color: var(--muted); height: 0; }
.hx-grid span::after { content: ""; flex: 1; border-top: 1px dashed var(--line-2); }
.hx-bars { position: relative; height: 100%; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 6px; align-items: end; }
.hx-bar { position: relative; height: 100%; display: grid; grid-template-rows: 1fr 20px; min-width: 0; }
.hx-bar i { align-self: end; height: max(var(--h), 2px); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent-text), var(--accent)); opacity: .55; transition: opacity .2s; transform-origin: bottom; }
.hx-bar.now i, .hx-bar:hover i { opacity: 1; }
.hx-bar small { align-self: end; text-align: center; font: 500 10px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; }
.hx-bar::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% - 14px); transform: translate(-50%, 4px); padding: 5px 8px; border-radius: 8px; background: var(--text); color: var(--bg); font: 600 11.5px var(--mono); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 2; }
.hx-bar:hover::after { opacity: 1; transform: translate(-50%, 0); }
.hx-chart[style*="--n:14"] .hx-bar:nth-child(odd):not(.now) small { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) { .hx-bar i { animation: hxgrow .9s var(--ease) both; } @keyframes hxgrow { from { transform: scaleY(0); } } }

/* вкладки */
.hx-tabs { display: inline-flex; justify-self: start; gap: 4px; padding: 5px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--panel); scroll-margin-top: 90px; }
.hx-tabs button, .hx-seg button { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 11px; font: 600 14px var(--body); color: var(--muted); transition: background .2s, color .2s; }
.hx-tabs button[aria-selected="true"], .hx-seg button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.hx-tabs em { font: 700 11.5px var(--mono); font-style: normal; padding: 2px 7px; border-radius: 6px; background: var(--panel-3); color: var(--text); }
.hx-tabs button[aria-selected="true"] em { background: rgba(0, 0, 0, .25); color: var(--on-accent); }

/* кабинет */
.hx-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hx-list { display: grid; gap: 14px; margin-top: 14px; }
.hx-acc { border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--panel); padding: 20px; display: grid; gap: 18px; }
.hx-acc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 16px; }
.hx-acc-chart { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel-2); display: grid; gap: 12px; min-width: 0; }
.hx-h { display: flex; justify-content: space-between; align-items: baseline; font: 600 14px var(--body); }
.hx-h small { color: var(--muted); font-size: 12px; }
.hx-acc-side { display: grid; gap: 10px; align-content: start; }
.hx-m { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); display: grid; gap: 4px; }
.hx-m small { color: var(--muted); font-size: 12.5px; }
.hx-m b { font: 700 24px var(--mono); letter-spacing: -.03em; }
.hx-prog { height: 8px; border-radius: 99px; background: var(--panel-3); overflow: hidden; margin: 4px 0; }
.hx-prog i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-text)); }
.hx-games { display: flex; flex-wrap: wrap; gap: 8px; }
.hx-game { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px 0 4px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--panel-2); font: 600 13px var(--body); max-width: 100%; }
.hx-game img { width: 76px; height: 30px; object-fit: cover; border-radius: 7px; }
.hx-game span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-game.ttl { padding-left: 12px; color: var(--accent-text); }
.hx-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.hx-alert { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); background: color-mix(in srgb, var(--danger) 7%, transparent); font-size: 14px; }
.hx-alert > i { font-size: 20px; color: var(--danger); }
.hx-alert span { flex: 1; }
.hx-alert.wait { border-color: rgba(245, 181, 68, .35); background: rgba(245, 181, 68, .06); }
.hx-alert.wait > i { color: #f5b544; }
.hx-empty { display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--panel); }
.hx-empty > div { flex: 1; }
.hx-empty b { font: 700 19px var(--display); }
.hx-empty p { margin-top: 4px; color: var(--muted); font-size: 14.5px; max-width: 60ch; }
.hx-empty .hx-checks { margin-top: 10px; }

/* тарифы */
.hx-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--panel); }
.hx-seg em { font: 700 11px var(--mono); font-style: normal; padding: 2px 6px; border-radius: 6px; color: #4ade9a; background: rgba(74, 222, 154, .1); }
.hx-seg button[aria-selected="true"] em { color: var(--on-accent); background: rgba(0, 0, 0, .22); }
#hx-plans { display: grid; gap: 16px; justify-items: start; }
.hx-cards { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hx-card { position: relative; border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--panel); padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, transform .4s var(--ease); }
.hx-card:hover { border-color: var(--muted); transform: translateY(-3px); }
.hx-card.best { border-color: var(--accent-line); background: radial-gradient(120% 70% at 50% 0, var(--accent-soft), transparent 70%), var(--panel); }
.hx-best { position: absolute; top: -1px; right: 18px; padding: 5px 10px; border-radius: 0 0 9px 9px; background: var(--accent); color: var(--on-accent); font: 700 11px var(--body); letter-spacing: .06em; text-transform: uppercase; }
.hx-card h3 { font: 700 22px var(--display); }
.hx-card-sub { color: var(--muted); font-size: 13.5px; margin-top: -6px; }
.hx-price { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.hx-price b { font: 700 36px/1 var(--mono); letter-spacing: -.04em; }
.hx-price span { color: var(--muted); font-size: 14px; }
.hx-total { display: flex; gap: 8px; align-items: baseline; min-height: 20px; font-size: 13px; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.hx-total s { opacity: .7; }
.hx-feat { list-style: none; padding: 4px 0 8px; display: grid; gap: 10px; flex: 1; align-content: start; }
.hx-feat li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.hx-feat li i { color: #4ade9a; font-size: 16px; }
.hx-feat li.no { color: var(--muted); opacity: .6; }
.hx-feat li.no i { color: var(--muted); }
.hx-note { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13.5px; }

/* шаги и вопросы */
.hx-steps, .hx-faq { padding-top: 36px; }
.hx-steps-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--panel); overflow: hidden; }
.hx-step { position: relative; padding: 22px; display: grid; gap: 10px; align-content: start; }
.hx-step + .hx-step { border-left: 1px solid var(--line); }
.hx-step .n { position: absolute; top: 18px; right: 20px; color: var(--muted); font-size: 12px; }
.hx-step > i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--panel-2); font-size: 20px; color: var(--accent-text); }
.hx-step b { font: 700 16px var(--body); margin-top: 6px; }
.hx-step p { color: var(--muted); font-size: 14px; }

@media (max-width: 1100px) { .hx-cards { grid-template-columns: 1fr 1fr; } .hx-kpis { grid-template-columns: 1fr 1fr; } }
@media (max-width: 980px) {
  .hrs { padding-top: 20px; }
  .hx-hero { grid-template-columns: 1fr; gap: 28px; }
  .hx-acc-grid { grid-template-columns: 1fr; }
  .hx-acc-side { grid-template-columns: 1fr 1fr; }
  .hx-term { grid-column: 1 / -1; }
  .hx-steps-grid { grid-template-columns: 1fr 1fr; }
  .hx-step:nth-child(3) { border-left: 0; }
  .hx-step:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .hx-cards, .hx-steps-grid { grid-template-columns: 1fr; }
  .hx-step + .hx-step { border-left: 0; border-top: 1px solid var(--line); }
  .hx-tabs, .hx-seg { justify-self: stretch; width: 100%; }
  .hx-tabs button { flex: 1; justify-content: center; padding: 0 10px; }
  .hx-seg { display: grid; grid-template-columns: 1fr 1fr; }
  .hx-seg button { justify-content: center; }
  .hx-empty { flex-direction: column; align-items: flex-start; }
  .hx-empty .btn { width: 100%; }
  .hx-acc-top { flex-wrap: wrap; }
  .hx-alert { flex-wrap: wrap; }
  .hx-chart { padding-left: 30px; }
  .hx-bars { gap: 3px; }
  .hx-bar small span { display: none; }
  .hx-chart[style*="--n:14"] .hx-bar:not(:nth-child(4n+2)):not(.now) small { visibility: hidden; }
  .hx-chart[style*="--n:14"] .hx-bar:nth-child(odd):not(.now):nth-child(4n+2) small { visibility: visible; }
}
body.tgapp .hrs { padding-top: 12px; }
body.tgapp .hx-hero { display: none; }

/* вкладки консоли: все помещаются без прокрутки */
.console { container-type: inline-size; }
.c-tab { flex: 1 1 auto; justify-content: center; }
@container (max-width: 680px) {
  .c-tabs { gap: 2px; padding: 10px 8px; }
  .c-tab { padding: 0 10px; font-size: 13.5px; }
  .c-tab[aria-selected="false"] i { display: none; }
}
@container (max-width: 420px) {
  .c-tab { flex: none; }
  .c-tabs { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
}

/* отзывы */
.rv-grid { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 14px; align-items: start; }
.rv-sum { display: grid; gap: 18px; }
.rv-avg { display: grid; gap: 6px; }
.rv-avg b { font: 700 54px/1 var(--display); }
.rv-avg small { color: var(--muted); font-size: 14px; }
.rv-stars { display: inline-flex; gap: 2px; color: var(--muted); font-size: 17px; }
.rv-stars .on { color: #ffb84d; }
.rv-dist { display: grid; gap: 7px; }
.rv-dist > div { display: grid; grid-template-columns: 14px 1fr 34px; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.rv-dist i { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--w), var(--panel-3) var(--w)); }
.rv-dist em { font-style: normal; text-align: right; }
.rv-form { display: grid; gap: 12px; }
.rv-pick { display: flex; gap: 4px; }
.rv-pick button { font-size: 30px; color: var(--muted); line-height: 1; padding: 2px; transition: transform .15s; }
.rv-pick button.on { color: #ffb84d; }
.rv-pick button:hover { transform: scale(1.12); }
.rv-text { height: 120px; padding: 12px 16px; resize: vertical; line-height: 1.5; }
.rv-list { display: grid; gap: 12px; }
.rv-card { padding: 18px 20px; border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--panel); display: grid; gap: 12px; }
.rv-card.mine { border-color: var(--accent-line); }
.rv-card p { color: var(--text); font-size: 15.5px; line-height: 1.55; overflow-wrap: anywhere; }
.rv-top { display: flex; align-items: center; gap: 12px; }
.rv-top > div { flex: 1; min-width: 0; display: grid; }
.rv-top small { color: var(--muted); font-size: 13px; }
.rv-top em { font-style: normal; font-size: 12px; color: var(--accent-text); margin-left: 6px; }
.rv-ava { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; font: 700 17px var(--display); }
.rv-del { justify-self: start; color: var(--danger); }
@media (max-width: 860px) { .rv-grid { grid-template-columns: 1fr; } }

/* отзывы: категория и фото */
.rv-cat { justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; background: var(--panel-3); color: var(--muted); font-size: 13px; font-weight: 600; }
.rv-cat i { color: var(--accent-text); font-size: 15px; }
.rv-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-ph { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: var(--panel-2); padding: 0; transition: transform .15s; }
.rv-ph:hover { transform: scale(1.04); }
.rv-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-thumbs:empty { display: none; }
.rv-th { position: relative; width: 78px; height: 78px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); }
.rv-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-th button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, .7); color: #fff; display: grid; place-items: center; font-size: 14px; }
.rv-addph { cursor: pointer; justify-self: start; }
.rv-addph[hidden] { display: none; }
.rv-lb { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .88); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.rv-lb img { max-width: min(96vw, 1100px); max-height: 92vh; border-radius: 14px; object-fit: contain; }
