/* Общий стиль страниц покупки и оферты — те же цвета и шрифт, что на главной (index.html) */
:root {
  --bg: #070b14; --bg2: #0b1120; --card: #101828; --card2: #141e31; --line: #1e2a40;
  --text: #e3e9f6; --muted: #8e9bb6; --accent: #4da6ff; --accent-d: #1f5fae; --amber: #ffa126;
  --ok: #7bd88f; --radius: 14px;
  --font: "Bahnschrift", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

header.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); background: rgba(7,11,20,.85); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; letter-spacing: .04em; }
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--accent); }
nav.menu { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
nav.menu a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav.menu a:hover, nav.menu a[aria-current] { color: var(--text); }
@media (max-width: 640px) { nav.menu { display: none; } }

main { padding: 36px 0 56px; }
h1 { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.2; margin: 0 0 10px; }
h2 { font-size: 24px; margin: 38px 0 12px; }
h3 { font-size: 19px; margin: 22px 0 8px; }
p, li { color: #c9d3e6; }
.lead { color: var(--muted); font-size: 19px; margin: 0 0 26px; }
.muted { color: var(--muted); font-size: 15px; }
.card { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.grid2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: start; }
@media (max-width: 800px) { .grid2 { grid-template-columns: 1fr; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 10px;
  font: 600 18px var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-main { background: linear-gradient(180deg, #5bb2ff, var(--accent-d)); color: #fff; box-shadow: 0 6px 22px rgba(77,166,255,.25); }
.btn-main:hover { filter: brightness(1.08); }
.btn[disabled], .btn.off { background: transparent; color: var(--muted); border-color: var(--line); cursor: not-allowed; box-shadow: none; }

.price { font-size: 46px; font-weight: 700; line-height: 1.1; margin: 6px 0 2px; }
.price small { font-size: 18px; color: var(--muted); font-weight: 400; }
ul.check { list-style: none; padding: 0; margin: 14px 0 20px; }
ul.check li { padding-left: 28px; position: relative; margin: 6px 0; }
ul.check li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 700; }
ol.steps { padding-left: 22px; }
ol.steps li { margin: 8px 0; }
.note { border-left: 3px solid var(--amber); background: rgba(255,161,38,.07); padding: 12px 16px; border-radius: 0 10px 10px 0; color: #e8d8bf; font-size: 15px; }

table.req { width: 100%; border-collapse: collapse; font-size: 16px; }
table.req th, table.req td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.req th { color: var(--muted); font-weight: 400; width: 38%; }

/* оферта */
.doc { counter-reset: sec; }
.doc h2 { counter-increment: sec; }
.doc h2::before { content: counter(sec) ". "; color: var(--accent); }
.doc p { margin: 8px 0; }
.doc .num { color: var(--muted); margin-right: 6px; }
.toc { columns: 2; column-gap: 28px; padding-left: 20px; font-size: 15px; }
@media (max-width: 640px) { .toc { columns: 1; } }

footer { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--muted); font-size: 14px; }
footer .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; } }
footer b { color: var(--text); }
footer p { margin: 4px 0; color: var(--muted); }

/* форма оплаты (buy.html → /apps/pay.php) */
form.pay { display: grid; gap: 10px; margin-top: 8px; }
form.pay label { color: var(--muted); font-size: 14px; }
form.pay input[type=email], form.pay input[name=key] { width: 100%; font: 16px var(--font); color: var(--text); background: var(--bg2);
  border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; }
form.pay input:focus { outline: none; border-color: var(--accent); }
form.pay input[name=key] { font-family: Consolas, monospace; letter-spacing: .04em; margin-top: 6px; }
form.pay details summary { cursor: pointer; color: var(--accent); font-size: 15px; }
form.pay details label { display: block; margin-top: 6px; }
form.pay .agree { display: flex; gap: 8px; align-items: baseline; color: var(--text); font-size: 15px; }
form.pay fieldset.methods { border: 0; padding: 0; margin: 2px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
form.pay fieldset.methods legend { color: var(--muted); font-size: 14px; padding: 0; margin-bottom: 6px; }
form.pay label.method { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg2); cursor: pointer; color: var(--text); }
form.pay label.method:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
form.pay label.method input { margin-top: 4px; accent-color: var(--accent); }
form.pay label.method b { display: block; font-size: 16px; }
form.pay label.method small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
@media (max-width: 1100px) { form.pay fieldset.methods { grid-template-columns: 1fr; } }
