/* ===== Психея: дизайн-система (мягкая лиловая палитра, по референсу панели Payd) ===== */
:root {
  color-scheme: light;
  --bg: #ffffff; --bg2: #ffffff; --surface: #ffffff; --soft: #f6f5fb; --line: #e7e5ef;
  --ink: #17143b; --muted: #5f5b78; --faint: #8f8ca6;
  --brand: #5b3fe6; --brand-d: #4429c4; --brand-l: #e4defc; --accent: #5b3fe6; --accent-d: #4429c4; --warm: #f59a23;
  --ok: #3f9d5d; --ok-l: #e1f3e7; --warn: #d89118; --warn-l: #fff3d9; --bad: #d63d43; --bad-l: #fde6e7; --info: #2f8fb3; --info-l: #e0f2f8;
  --lilac: #efecfd; --rose: #ffdce6; --peach: #ffe9d6; --mint: #e1f3e7; --sky: #e0f2f8; --gold: #fff3d9;
  --lvl0: #4fb36b; --lvl1: #9ccb52; --lvl2: #f5c04a; --lvl3: #f58f3b; --lvl4: #e5484d;
  --radius: 14px; --radius-s: 10px; --shadow: 0 1px 2px rgba(23, 20, 59, .06), 0 8px 24px rgba(23, 20, 59, .07); --shadow-s: none;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--brand-d); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: .875rem; } .center { text-align: center; } .pre { white-space: pre-line; }
.accent { color: var(--accent-d); } .brand { color: var(--brand-d); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .between { justify-content: space-between; } .grow { flex: 1; }
.stack > * + * { margin-top: 14px; }
.spinner { width: 36px; height: 36px; border: 4px solid var(--brand-l); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 80px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fade { animation: pop .35s ease both; }
.boot { min-height: 60vh; display: grid; place-items: center; }

/* ----- каркас ----- */
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.site-header { position: sticky; top: 12px; z-index: 40; margin: 12px auto 0; width: min(1180px, 100% - 24px); background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-radius: 999px; box-shadow: var(--shadow-s); padding: 10px 14px 10px 22px; display: flex; align-items: center; gap: 18px; }
.logo { font-weight: 800; font-size: 1.45rem; color: var(--ink); display: flex; align-items: center; gap: 8px; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo i { display: grid; place-items: center; width: 34px; height: 34px; background: var(--brand); color: #fff; border-radius: 11px; font-style: normal; font-size: 1.1rem; }
.nav { display: flex; gap: 4px; margin-left: 8px; flex: 1; }
.nav a { color: var(--muted); padding: 8px 14px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.nav a:hover, .nav a.on { background: var(--lilac); color: var(--brand-d); text-decoration: none; }
.burger { display: none; background: var(--lilac); border: 0; border-radius: 12px; width: 40px; height: 40px; font-size: 1.2rem; cursor: pointer; }
main { padding: 28px 0 60px; min-height: 70vh; }
.panel { background: var(--surface); border-radius: 34px; box-shadow: var(--shadow); padding: clamp(18px, 3vw, 40px); }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-s); padding: 22px; }
.card.soft { background: var(--soft); box-shadow: none; border: 1px solid var(--line); }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.footer { padding: 36px 0 50px; color: var(--muted); font-size: .9rem; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer h4 { color: var(--ink); font-size: .95rem; margin-bottom: .6em; }
.footer a { color: var(--muted); display: block; padding: 3px 0; }
.disclaimer { background: var(--warn-l); border-radius: var(--radius-s); padding: 12px 16px; font-size: .85rem; color: #6b4b06; }

/* ----- кнопки / формы ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; padding: 12px 22px; border-radius: 999px; font-weight: 700; background: var(--lilac); color: var(--brand-d); transition: transform .12s, box-shadow .12s, background .12s; text-decoration: none !important; white-space: nowrap; }
.btn:hover { background: #e3d0fb; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(143, 91, 214, .35); }
.btn.primary:hover { background: var(--brand-d); }
.btn.accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(245, 154, 35, .35); }
.btn.accent:hover { background: var(--accent-d); }
.btn.ghost { background: transparent; border: 2px solid var(--line); color: var(--ink); }
.btn.danger { background: var(--bad-l); color: var(--bad); }
.btn.sm { padding: 7px 14px; font-size: .875rem; } .btn.lg { padding: 16px 32px; font-size: 1.1rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .9rem; }
.field .hint { font-size: .8rem; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], select, textarea { width: 100%; border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 11px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-l); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { margin-top: 4px; accent-color: var(--brand); width: 18px; height: 18px; }
.alert { padding: 12px 16px; border-radius: var(--radius-s); font-size: .92rem; background: var(--info-l); color: #145a73; }
.alert.err { background: var(--bad-l); color: #8a1f23; } .alert.ok { background: var(--ok-l); color: #1d5e2e; } .alert.warn { background: var(--warn-l); color: #6b4b06; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--lilac); color: var(--brand-d); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.chip.gold { background: var(--gold); color: #8a5a00; } .chip.ok { background: var(--ok-l); color: #1d6a35; } .chip.bad { background: var(--bad-l); color: var(--bad); } .chip.gray { background: #f0edf5; color: var(--muted); } .chip.info { background: var(--info-l); color: #145a73; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tab { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-weight: 700; color: var(--muted); cursor: pointer; }
.tab.on { background: var(--lilac); color: var(--brand-d); }

/* ----- главная ----- */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--accent-d); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hello { display: inline-flex; gap: 8px; align-items: center; color: var(--accent-d); font-weight: 800; margin-bottom: 10px; }
.mood { background: linear-gradient(145deg, #f6eefe, #fff); border: 1px solid var(--line); border-radius: 28px; padding: 26px; box-shadow: var(--shadow); }
.mood-row { display: flex; gap: 10px; justify-content: space-between; margin: 16px 0; }
.mood-btn { flex: 1; border: 2px solid var(--line); background: #fff; border-radius: 18px; padding: 12px 0; font-size: 1.8rem; cursor: pointer; transition: transform .15s, border-color .15s; }
.mood-btn:hover { transform: translateY(-3px); border-color: var(--brand); }
.mood-btn.on { border-color: var(--brand); background: var(--lilac); transform: translateY(-3px) scale(1.06); }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 34px 0 6px; }
.trust > div { background: var(--soft); border-radius: 18px; padding: 16px; text-align: center; border: 1px solid var(--line); }
.trust b { display: block; font-size: 1.6rem; color: var(--brand-d); }
.sec-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 54px 0 20px; flex-wrap: wrap; }
.sec-title h2 { margin: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.g3 { grid-template-columns: repeat(3, 1fr); } .grid.g2 { grid-template-columns: repeat(2, 1fr); }
.sec-card { border-radius: 26px; padding: 22px; display: flex; flex-direction: column; gap: 8px; min-height: 190px; transition: transform .18s, box-shadow .18s; color: var(--ink); }
.sec-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.sec-card .ico { font-size: 2rem; } .sec-card h3 { margin: 0; } .sec-card p { margin: 0; font-size: .9rem; color: #4a4360; flex: 1; }
.bg-lilac { background: var(--lilac); } .bg-rose { background: var(--rose); } .bg-peach { background: var(--peach); } .bg-mint { background: var(--mint); } .bg-sky { background: var(--sky); } .bg-gold { background: var(--gold); }
.test-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink); transition: transform .15s, box-shadow .15s; position: relative; }
.test-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.test-card h3 { margin: 0; font-size: 1.05rem; } .test-card p { margin: 0; font-size: .88rem; color: var(--muted); flex: 1; }
.test-card .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { background: var(--soft); border-radius: 22px; padding: 24px; border: 1px solid var(--line); counter-increment: s; }
.step::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 12px; }
.premium-band { background: linear-gradient(135deg, #2b1a4d, #5a2d9c 60%, #8f5bd6); color: #fff; border-radius: 34px; padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.premium-band h2 { color: #fff; } .premium-band p { color: #e4d6fb; }
.premium-band ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; } .premium-band li::before { content: "✓"; color: #ffd78a; font-weight: 800; margin-right: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; } .faq details[open] summary { margin-bottom: 8px; color: var(--brand-d); }

/* ----- каталог ----- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.toolbar input[type=search] { max-width: 340px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { border: 2px solid var(--line); background: #fff; padding: 7px 16px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--muted); }
.pill.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; } .crumbs a { color: var(--muted); }

/* ----- тест ----- */
.test-head { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; }
.kv { display: grid; gap: 10px; } .kv div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; } .kv span:first-child { color: var(--muted); }
.runner { max-width: 780px; margin: 0 auto; }
.progress { height: 10px; background: var(--lilac); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #b98af0); border-radius: 999px; transition: width .35s ease; }
.q-card { background: #fff; border-radius: 30px; box-shadow: var(--shadow); padding: clamp(22px, 4vw, 44px); margin-top: 22px; min-height: 340px; animation: pop .3s ease both; }
.q-num { color: var(--brand); font-weight: 800; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.q-text { font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 700; margin: 10px 0 26px; line-height: 1.35; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 18px; padding: 14px 18px; cursor: pointer; font-weight: 600; transition: border-color .12s, background .12s, transform .12s; }
.opt:hover { border-color: var(--brand); background: var(--soft); transform: translateX(3px); }
.opt.on { border-color: var(--brand); background: var(--lilac); }
.opt kbd { display: grid; place-items: center; min-width: 28px; height: 28px; border-radius: 9px; background: var(--lilac); color: var(--brand-d); font-size: .8rem; font-family: inherit; font-weight: 800; }
.scale-row { display: grid; gap: 8px; } .scale-row.dense { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.scale-row.dense .opt { flex-direction: column; text-align: center; padding: 14px 8px; gap: 6px; font-size: .86rem; }
.scale-row.dense .opt:hover { transform: translateY(-2px); }

/* ----- результат ----- */
.res-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: start; }
.band-track { position: relative; height: 16px; border-radius: 999px; display: flex; overflow: visible; margin: 46px 0 14px; }
.band-seg { height: 100%; } .band-seg:first-child { border-radius: 999px 0 0 999px; } .band-seg:last-child { border-radius: 0 999px 999px 0; }
.marker { position: absolute; top: calc(-7px - var(--lift, 0) * 30px); bottom: -7px; width: 4px; margin-left: -2px; background: var(--ink); border-radius: 3px; box-shadow: 0 0 0 2px #fff; z-index: 2; }
.marker b { position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, -3px); background: var(--ink); color: #fff; border-radius: 10px; padding: 3px 10px; font-size: .78rem; line-height: 1.3; white-space: nowrap; box-shadow: 0 2px 8px rgba(31, 26, 46, .18); }
.marker.at-l b { left: 0; transform: translate(-6px, -3px); } .marker.at-r b { left: auto; right: 0; transform: translate(6px, -3px); }
.marker.ref { background: #8b84a0; z-index: 1; } .marker.ref b { background: #8b84a0; }
.marker.prev { background: var(--warm); } .marker.prev b { background: var(--warm); }
.band-labels { display: flex; margin-bottom: 14px; font-size: .74rem; line-height: 1.2; color: var(--muted); font-weight: 700; }
.band-labels div { text-align: center; padding: 0 2px; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 720px) { .band-labels { font-size: .66rem; } }
.lvl0 { background: var(--lvl0); } .lvl1 { background: var(--lvl1); } .lvl2 { background: var(--lvl2); } .lvl3 { background: var(--lvl3); } .lvl4 { background: var(--lvl4); }
.tone-trait .band-seg { background: #c9b2f0; } .tone-trait .band-seg:nth-child(2n) { background: #aa8be6; } .tone-trait .band-seg:nth-child(3n) { background: #8f5bd6; }
.big-label { font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 800; margin: 4px 0 8px; }
.score-pill { display: inline-flex; align-items: baseline; gap: 6px; background: var(--lilac); border-radius: 18px; padding: 8px 18px; } .score-pill b { font-size: 2.4rem; color: var(--brand-d); line-height: 1; } .score-pill span { color: var(--muted); }
.bars { display: grid; gap: 16px; }
.bar-item .top { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; margin-bottom: 6px; } .bar-item .top span:last-child { color: var(--muted); font-weight: 600; font-size: .86rem; }
.bar { position: relative; height: 14px; background: #f0eaf8; border-radius: 999px; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #b58cf0, var(--brand)); transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.bar i.cmp { background: rgba(245, 154, 35, .55); height: 6px; top: 4px; z-index: 1; }
.bar .tick { position: absolute; top: -4px; bottom: -4px; width: 3px; background: var(--ink); border-radius: 2px; opacity: .55; z-index: 2; }
.bar-item p { margin: 6px 0 0; font-size: .86rem; color: var(--muted); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-top: 10px; } .legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.pole { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 12px; align-items: center; margin: 14px 0; }
.pole .track { height: 14px; background: #f0eaf8; border-radius: 999px; position: relative; overflow: hidden; } .pole .track i { position: absolute; top: 0; bottom: 0; background: var(--brand); border-radius: 999px; transition: width .9s; }
.pole .l { text-align: right; } .pole b { font-size: 1.05rem; }
.type-code { font-size: clamp(2.6rem, 7vw, 4.4rem); font-weight: 900; letter-spacing: .08em; color: var(--brand-d); line-height: 1; }
.quad-svg text { font-family: var(--font); }
.chart-box { background: var(--soft); border-radius: 22px; padding: 14px; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; } .table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; } .table th { color: var(--muted); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.delta.up { color: var(--ok); font-weight: 800; } .delta.down { color: var(--bad); font-weight: 800; } .delta.zero { color: var(--muted); }
.crisis { background: #fff4f4; border: 2px solid #f3b6b8; border-radius: 22px; padding: 20px; color: #7a1f23; }
.ai-box { background: linear-gradient(145deg, #f6eefe, #fff); border: 1px solid var(--line); border-radius: 26px; padding: 22px; }
.ai-answer { background: #fff; border-radius: 18px; padding: 16px 18px; margin: 12px 0; border: 1px solid var(--line); white-space: pre-line; }
.locked { position: relative; } .locked > .blur { filter: blur(6px); pointer-events: none; user-select: none; }
.locked .cover { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 18px; }

/* ----- тарифы ----- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.plan { background: #fff; border-radius: 28px; padding: 30px 28px 28px; border: 1px solid var(--line); box-shadow: var(--shadow-s); display: flex; flex-direction: column; gap: 14px; position: relative; transition: transform .15s, box-shadow .15s; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; } .plan-tag { min-height: 26px; display: flex; align-items: center; }
.plan h3 { margin: 0; font-size: 1.1rem; color: var(--ink); }
.plan .badge { background: var(--lilac); color: var(--brand-d); padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: .74rem; white-space: nowrap; letter-spacing: .02em; }
.plan .price { font-size: 2.7rem; font-weight: 900; color: var(--ink); line-height: 1; letter-spacing: -.02em; white-space: nowrap; } .plan .price small { font-size: .95rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.plan .per { font-size: .85rem; color: var(--muted); margin-top: -6px; }
.plan .desc { color: var(--muted); margin: 0; font-size: .95rem; }
.plan ul.feat { list-style: none; margin: 4px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; font-size: .92rem; }
.plan ul.feat li { display: flex; gap: 10px; align-items: flex-start; } .plan ul.feat li::before { content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--lilac); color: var(--brand-d); font-size: .72rem; font-weight: 900; display: grid; place-items: center; margin-top: 1px; }
.plan .btn { width: 100%; padding: 14px 22px; }
.plan.best { background: linear-gradient(160deg, #9a66e0 0%, #6f3fb8 100%); border-color: transparent; color: #fff; box-shadow: 0 18px 50px rgba(111, 63, 184, .35); }
.plan.best h3, .plan.best .price { color: #fff; } .plan.best .price small, .plan.best .per, .plan.best .desc { color: rgba(255, 255, 255, .78); }
.plan.best .badge { background: #fff; color: var(--brand-d); }
.plan.best ul.feat { border-top-color: rgba(255, 255, 255, .22); } .plan.best ul.feat li::before { background: rgba(255, 255, 255, .22); color: #fff; }
.plan.best .btn { background: #fff; color: var(--brand-d); box-shadow: 0 8px 22px rgba(31, 26, 46, .18); } .plan.best .btn:hover { background: #f6eeff; }
.demo-note { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 16px auto 0; padding: 8px 16px; width: fit-content; max-width: 100%; border-radius: 999px; background: var(--warn-l); color: #7a5410; font-size: .84rem; font-weight: 600; text-align: center; }
.cmp-table td:not(:first-child), .cmp-table th:not(:first-child) { text-align: center; }

/* ----- модалка / тосты ----- */
.modal-bg { position: fixed; inset: 0; background: rgba(30, 20, 50, .5); z-index: 100; display: grid; place-items: center; padding: 16px; animation: pop .2s ease both; }
.modal { background: #fff; border-radius: 28px; padding: 28px; width: min(520px, 100%); max-height: 90vh; overflow: auto; box-shadow: var(--shadow); }
.modal.wide { width: min(900px, 100%); }
#toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(420px, 92vw); }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 16px; box-shadow: var(--shadow); animation: pop .25s ease both; font-weight: 600; } .toast.err { background: var(--bad); } .toast.ok { background: #2f8f4e; }

/* ----- inline-редактор ----- */
.edit-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 14px 10px 20px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); font-weight: 600; font-size: .92rem; max-width: 96vw; flex-wrap: wrap; }
.edit-bar .btn { padding: 8px 16px; font-size: .86rem; }
body.editing [data-ek] { outline: 2px dashed rgba(245, 154, 35, .9); outline-offset: 3px; border-radius: 6px; cursor: text; min-width: 20px; transition: background .15s; }
body.editing [data-ek]:hover { background: rgba(245, 154, 35, .12); }
body.editing [data-ek]:focus { outline: 2px solid var(--accent); background: rgba(245, 154, 35, .16); }
body.editing [data-ek].dirty { outline-color: var(--ok); }

/* ----- админка (по референсу Payd: белая панель, боковое меню, пастельные карточки) ----- */
.adm { width: min(1320px, 100% - 24px); margin: 18px auto; background: #fff; border-radius: 38px; box-shadow: var(--shadow); display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 36px); overflow: hidden; }
.adm-side { padding: 28px 18px; border-right: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 4px; }
.adm-side .logo { margin: 0 8px 22px; } .adm-side h6 { margin: 16px 10px 6px; color: var(--faint); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.adm-side a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; color: var(--muted); font-weight: 600; cursor: pointer; }
.adm-side a:hover { background: var(--soft); text-decoration: none; } .adm-side a.on { background: var(--lilac); color: var(--brand-d); }
.adm-side .sp { flex: 1; }
.adm-main { padding: 26px clamp(16px, 3vw, 40px) 50px; background: #fdfbff; min-width: 0; }
.adm-top { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.adm-top .live { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); }
.adm-greet { color: var(--accent-d); font-weight: 800; } .adm-h1 { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 800; margin: 2px 0 20px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { border-radius: 22px; padding: 18px 20px; } .kpi b { display: block; font-size: 2rem; line-height: 1.1; } .kpi span { color: #5a5272; font-size: .88rem; font-weight: 600; }
.adm-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.adm-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 20px; margin-bottom: 18px; }
.adm-card h3 { margin-bottom: 14px; }
.donut-wrap { display: grid; place-items: center; }
.msg { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); } .msg:last-child { border: 0; }
.avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; flex-shrink: 0; }
.tbl-wrap { overflow-x: auto; }
.adm .table tr:hover td { background: var(--soft); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; }
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; } .switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; background: #d9d2e5; border-radius: 999px; transition: background-color .2s; } .switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.switch input:checked + i { background: var(--ok); } .switch input:checked + i::after { transform: translateX(20px); }
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .82rem; background: #f4effa; padding: 2px 8px; border-radius: 8px; word-break: break-all; }
textarea.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .8rem; min-height: 260px; }
.item-row { display: grid; grid-template-columns: 34px 1fr 120px 60px 34px; gap: 8px; align-items: center; margin-bottom: 8px; }
.login-box { width: min(440px, 100% - 32px); margin: 8vh auto; }

/* ----- мобильные ----- */
@media (max-width: 960px) {
  .hero, .test-head, .res-grid, .premium-band, .adm-cols { grid-template-columns: 1fr; }
  .grid.g3 { grid-template-columns: 1fr 1fr; } .steps { grid-template-columns: 1fr; } .trust { grid-template-columns: repeat(2, 1fr); }
  .adm { grid-template-columns: 1fr; border-radius: 24px; } .adm-side { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); padding: 14px; gap: 4px; } .adm-side h6, .adm-side .logo { display: none; }
  .adm-side a { padding: 8px 12px; font-size: .88rem; }
}
@media (max-width: 1040px) {
  .site-header { border-radius: 26px; flex-wrap: wrap; } .nav { display: none; width: 100%; order: 5; flex-direction: column; margin: 0; } .nav.open { display: flex; } .burger { display: block; margin-left: auto; }
}
@media (max-width: 720px) {
  .grid.g3, .grid.g2 { grid-template-columns: 1fr; } .footer .cols { grid-template-columns: 1fr; } .pole { grid-template-columns: 1fr; } .pole .l { text-align: left; }
  .item-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .edit-bar { left: 8px; right: 8px; transform: none; border-radius: 22px; padding: 8px 12px; font-size: .8rem; justify-content: center; bottom: 8px; }
  .site-header .row { gap: 6px; } .site-header .btn.sm { padding: 6px 12px; font-size: .8rem; }
  .q-card { padding: 20px 16px; border-radius: 24px; } .panel { border-radius: 26px; }
  .score-pill b { font-size: 2rem; } .plan .price { font-size: 2.2rem; }
}
@media print {
  body { background: #fff; } .site-header, .footer, .edit-bar, .no-print, #toasts { display: none !important; } .card, .panel { box-shadow: none; border: 1px solid #ddd; } main { padding: 0; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }


/* ===================== v2: редакционный минимализм ===================== */
html { -webkit-tap-highlight-color: transparent; }
body { text-rendering: optimizeLegibility; }
a, button, input, select, textarea, summary { touch-action: manipulation; }
h1, h2, h3 { text-wrap: balance; font-weight: 700; letter-spacing: -.025em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.05; letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
p, li { text-wrap: pretty; }
.score-pill b, .kpi b, .price, .trust b, .table td, .num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 300; } .skip:focus { top: 12px; }

/* шапка: простая полоса с тонкой линией */
.site-header { position: sticky; top: 0; z-index: 40; margin: 0 auto; width: 100%; max-width: none; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .96); padding: 14px max(16px, calc((100% - 1180px) / 2)); gap: 28px; }
.logo { font-size: 1.3rem; font-weight: 800; }
.logo i { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); font-size: 1rem; }
.nav { margin-left: 0; gap: 2px; }
.nav a { color: var(--ink); padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.nav a:hover { background: var(--soft); } .nav a.on { background: var(--soft); color: var(--ink); font-weight: 700; }
.burger { background: var(--soft); border-radius: 8px; width: auto; padding: 0 14px; font-size: .9rem; font-weight: 600; }
main { padding: 44px 0 72px; }

/* поверхности: без теней и скруглённых «таблеток» */
.panel { background: transparent; box-shadow: none; border-radius: 0; padding: 0; }
.panel.narrow, .login-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 36px); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; padding: 22px; }
.card.soft { background: var(--soft); border-color: transparent; }
.footer { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 40px; }
.disclaimer { background: var(--soft); color: var(--muted); border-radius: var(--radius-s); }

/* кнопки и поля */
.btn { border-radius: 10px; padding: 12px 20px; font-weight: 600; background: var(--soft); color: var(--ink); transition: background-color .15s, color .15s; }
.btn:hover { background: #ebe8f7; transform: none; }
.btn.primary, .btn.accent { background: var(--brand); color: #fff; box-shadow: none; } .btn.primary:hover, .btn.accent:hover { background: var(--brand-d); }
.btn.ghost { border: 1px solid var(--line); }
.btn.lg { padding: 15px 26px; font-size: 1.02rem; } .btn.sm { padding: 8px 14px; border-radius: 8px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], select, textarea { border: 1px solid #d4d0e2; border-radius: 10px; padding: 0 14px; min-height: 46px; background-color: #fff; color: var(--ink); }
textarea { padding: 12px 14px; }
select { padding-right: 38px; appearance: none; -webkit-appearance: none; text-overflow: ellipsis; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2317143b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-l); }
.field label { font-weight: 600; }

/* метки: без цветного зоопарка */
.chip { background: var(--soft); color: var(--muted); border-radius: 999px; font-weight: 600; padding: 3px 11px; }
.chip.gold, .chip.solid { background: var(--brand-l); color: var(--brand-d); } .chip.ok { background: var(--ok-l); color: #20673a; } .chip.gray { background: var(--soft); color: var(--muted); } .chip.info { background: var(--info-l); color: #145a73; }
.alert { background: var(--soft); color: var(--ink); } .alert.warn { background: var(--warn-l); color: #5d4208; } .alert.err { background: var(--bad-l); color: #8a1f23; } .alert.ok { background: var(--ok-l); color: #1d5e2e; }
.pill { border: 1px solid #d4d0e2; background: #fff; color: var(--ink); font-weight: 500; padding: 8px 16px; transition: background-color .15s, border-color .15s; }
.pill:hover { background: var(--soft); } .pill.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pills { gap: 8px; }
.tab { border-radius: 8px; } .tab.on { background: var(--soft); color: var(--ink); }

/* главная */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: end; padding-bottom: 40px; border-bottom: 2px solid var(--ink); }
.hero h1 { margin: 0; }
.hero-side { display: grid; gap: 22px; } .hero-side .lead { margin: 0; font-size: 1.12rem; color: var(--muted); max-width: 32em; }
.hero-facts { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.mood { padding: 34px 0 6px; display: grid; gap: 16px; } .mood h2 { margin: 0; font-size: 1.35rem; }
.mood-out { max-width: 46em; } .mood-out p { margin: 0 0 12px; }
.trust { margin: 36px 0 0; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust > div { background: transparent; border: 0; border-radius: 0; text-align: left; padding: 22px 20px 22px 0; color: var(--muted); font-size: .9rem; }
.trust b { color: var(--ink); font-size: 2rem; font-weight: 700; margin-bottom: 4px; }
.sec-title { margin: 72px 0 24px; } .sec-title a { font-weight: 600; }
.grid { gap: 36px 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid.g3 { gap: 24px; }
.cols-plain .card { border: 0; border-top: 2px solid var(--ink); border-radius: 0; padding: 18px 0 0; }

/* карточки с обложками */
.sec-card, .test-card { display: flex; flex-direction: column; gap: 10px; padding: 0; border: 0; border-radius: 0; background: transparent; min-height: 0; color: var(--ink); transition: none; }
.sec-card:hover, .test-card:hover { transform: none; box-shadow: none; text-decoration: none; }
.sec-card:hover h3, .test-card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.thumb { position: relative; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: var(--soft); margin-bottom: 4px; }
.thumb .cover { display: block; width: 100%; height: 100%; }
.thumb-tag { position: absolute; left: 10px; top: 10px; background: #fff; color: var(--ink); font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.sec-card h3, .test-card h3 { margin: 0; font-size: 1.2rem; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; }
.sec-card p, .test-card p { margin: 0; font-size: .92rem; color: var(--muted); flex: 0; }
.test-card .meta { display: block; font-size: .82rem; }
.steps { gap: 24px; } .step { background: transparent; border: 0; border-top: 2px solid var(--ink); border-radius: 0; padding: 18px 0 0; }
.step::before { width: auto; height: auto; background: transparent; color: var(--muted); border-radius: 0; font-weight: 600; margin-bottom: 8px; display: block; font-size: .9rem; place-items: unset; }
.premium-band { background: var(--ink); border-radius: 18px; }
.premium-band .btn { background: rgba(255, 255, 255, .14); color: #fff; } .premium-band .btn.primary { background: #fff; color: var(--ink); }
.premium-band li::before { color: #d9f26b; }
.faq details { border-radius: 12px; }

/* каталог / страница теста */
.toolbar input[type=search] { max-width: 420px; }
.crumbs { margin-bottom: 18px; }
.test-head { gap: 48px; }
.kv div { border-bottom: 1px solid var(--line); }

/* прохождение */
.q-card { border-radius: 18px; box-shadow: none; border: 1px solid var(--line); animation: none; }
.q-num { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 600; }
.opt { border: 1px solid #d4d0e2; border-radius: 12px; font-weight: 500; transition: border-color .12s, background-color .12s; }
.opt:hover { transform: none; border-color: var(--ink); background: var(--soft); } .opt.on { border-color: var(--brand); background: var(--lilac); }
.opt kbd { background: var(--soft); color: var(--muted); border-radius: 6px; }
.progress { height: 6px; background: var(--soft); } .progress i { background: var(--brand); }

/* результат */
.score-pill { background: var(--soft); border-radius: 12px; }
.score-pill b { color: var(--ink); }
.big-label { font-weight: 700; }
.ai-box { background: var(--soft); border: 0; border-radius: 16px; }
.chart-box { border-radius: 14px; }
.table th { text-transform: none; letter-spacing: 0; font-size: .85rem; }

/* тарифы */
.plan { border-radius: 16px; box-shadow: none; } .plan:hover { transform: none; box-shadow: none; }
.plan.best { background: var(--ink); box-shadow: none; }
.plan .badge { background: var(--soft); } .plan.best .badge { background: #fff; color: var(--ink); }
.plan .btn { border-radius: 10px; } .plan.best .btn { background: #fff; color: var(--ink); box-shadow: none; }
.demo-note { border-radius: 10px; background: var(--soft); color: var(--muted); font-weight: 500; }

/* уведомления: стопкой, без перекрытия, с типом */
#toasts { bottom: 16px; width: min(440px, 92vw); gap: 8px; }
.toast { border-radius: 12px; box-shadow: var(--shadow); animation: none; padding: 12px 16px; font-weight: 500; line-height: 1.4; }
.edit-bar { border-radius: 14px; box-shadow: var(--shadow); }

/* админка: тот же язык, плотнее */
.adm { border-radius: 18px; box-shadow: none; border: 1px solid var(--line); margin: 18px auto; }
.adm-side { background: #fff; } .adm-side h6 { text-transform: none; letter-spacing: 0; font-size: .8rem; font-weight: 600; }
.adm-side a { border-radius: 8px; font-weight: 500; color: var(--muted); } .adm-side a:hover { background: var(--soft); color: var(--ink); } .adm-side a.on { background: var(--ink); color: #fff; font-weight: 600; }
.adm-main { background: #fafafd; }
.adm-greet { color: var(--muted); font-weight: 600; }
.adm-card { border-radius: 14px; }
.kpi { border-radius: 14px; background: #fff !important; border: 1px solid var(--line); } .kpi span { color: var(--muted); }
.msg { align-items: flex-start; } .msg .grow { min-width: 0; } .msg b { display: block; } .msg .small { overflow-wrap: anywhere; }
.avatar { border-radius: 10px; }
.form-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); align-items: end; }
.form-grid .field { margin-bottom: 14px; }
.field label { line-height: 1.3; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .site-header { padding: 12px 16px; gap: 12px; }
  .trust > div { padding-right: 12px; }
}
@media (max-width: 720px) {
  main { padding-top: 28px; }
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* правки v2 */
.wrap { width: min(1180px, 100% - 40px); }
.mood { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 34px 0 6px; }
.hero { align-items: start; }
.site-header > .row { margin-left: auto; }
.nav + .row { margin-left: auto; }
.site-header .burger { margin-left: 0 !important; }
.hero h1 { padding-top: 8px; }
@media (min-width: 1041px) { .site-header > .row { margin-left: auto; } }

/* ===== v3: главная по примерам (заголовок, крупный тест, цветная полоса, подборки) ===== */
.masthead { text-align: center; padding: clamp(24px, 6vw, 72px) 0 clamp(36px, 6vw, 64px); display: grid; justify-items: center; gap: 22px; }
.masthead h1 { font-size: clamp(2.8rem, 8.5vw, 6.6rem); line-height: .98; letter-spacing: -.045em; font-weight: 800; max-width: 11em; margin: 0; padding: 0; }
.masthead .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink); max-width: 34em; margin: 0; }
.masthead-cta { justify-content: center; } .masthead .small { margin: 0; }

.tag { display: inline-flex; width: fit-content; background: var(--soft); color: var(--ink); font-size: .82rem; font-weight: 500; padding: 6px 14px; border-radius: 999px; }
.tag-text { color: var(--brand-d); font-weight: 600; }

.feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; color: var(--ink); text-decoration: none; margin-bottom: 72px; }
.feature:hover { text-decoration: none; }
.feature .thumb { aspect-ratio: 4 / 3; border-radius: 16px; margin: 0; }
.feature-body { display: grid; gap: 16px; justify-items: start; }
.feature-body h2 { margin: 0; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -.03em; }
.feature-body p { margin: 0; font-size: 1.08rem; }
.feature:hover h2 { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }

.band { background: var(--brand); color: #fff; border-radius: 28px; padding: clamp(24px, 4vw, 44px); margin-bottom: 72px; overflow: hidden; }
.band-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; }
.band-head h2 { margin: 0; color: #fff; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .22); color: #fff; font-size: 1.3rem; cursor: pointer; transition: background-color .15s; }
.round:hover { background: rgba(255, 255, 255, .38); }
.band-scroll { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(clamp(24px, 4vw, 44px) * -1); padding: 0 clamp(24px, 4vw, 44px); }
.band-scroll::-webkit-scrollbar { display: none; }
.mini { flex: 0 0 min(320px, 78vw); scroll-snap-align: start; background: #fff; color: var(--ink); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 12px; min-height: 230px; }
.mini:hover { text-decoration: none; }
.mini:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.mini-top { display: flex; justify-content: space-between; gap: 10px; font-size: .84rem; color: var(--muted); }
.mini h3 { margin: 0; font-size: 1.12rem; line-height: 1.3; font-weight: 600; }
.mini p { margin: 0; font-size: .9rem; color: var(--muted); }

.mood { padding: 0 0 8px; margin-bottom: 72px; }
.cat { margin-bottom: 72px; }
.cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); margin-bottom: 32px; }
.cat-head h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.035em; }
.cat-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.cat-main { display: grid; gap: 12px; color: var(--ink); } .cat-main:hover { text-decoration: none; }
.cat-main .thumb { aspect-ratio: 4 / 3; border-radius: 12px; margin: 0; }
.cat-main h3 { margin: 6px 0 0; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -.025em; }
.cat-main p { margin: 0; }
.cat-main:hover h3, .cat-item:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.cat-list { display: grid; }
.cat-item { display: grid; gap: 12px; justify-items: start; padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); color: var(--ink); } .cat-item:last-child { border-bottom: 0; }
.cat-item:hover { text-decoration: none; }
.cat-item h3 { margin: 0; font-size: 1.3rem; line-height: 1.25; font-weight: 500; letter-spacing: -.015em; }

.premium-band { margin-top: 0; }
.premium-band h2 { max-width: 14em; }

@media (max-width: 960px) {
  .feature, .cat-body { grid-template-columns: 1fr; }
}

/* таблица «бесплатно / премиум» */
.cmp-table { table-layout: fixed; }
.cmp-table th.cmp-name { font-weight: 500; color: var(--ink); font-size: .95rem; text-align: left; }
.cmp-table td:not(:first-child), .cmp-table thead th:not(:first-child) { width: 22%; text-align: center; }
.cmp-table thead th { color: var(--ink); font-weight: 700; font-size: .9rem; }
.cmp-table .cmp-prem { background: var(--soft); }
.cmp-table thead th.cmp-prem { color: var(--brand); box-shadow: inset 0 2px 0 var(--brand); }
.cmp-yes { font-weight: 700; color: var(--brand); }
.cmp-no { color: var(--faint, #8b88a6); }
.cmp-val { font-weight: 600; }
@media (max-width: 640px) { .cmp-table td:not(:first-child), .cmp-table thead th:not(:first-child) { width: 27%; font-size: .85rem; } .cmp-table th.cmp-name { font-size: .88rem; } }
