/* КликМост — оформление */
:root {
  --bg: #f4f6f5; --surface: #ffffff; --ink: #14201e; --muted: #64716e; --line: #e2e8e6;
  --brand: #0f766e; --brand-d: #0b5a54; --brand-soft: #e3f2ef; --accent: #f59e0b; --accent-soft: #fff4dc;
  --ok: #15803d; --ok-soft: #e4f5e9; --bad: #b42318; --bad-soft: #fde8e6; --warn: #b45309; --warn-soft: #fff1d6; --info: #1d4ed8; --info-soft: #e5edff;
  --r: 12px; --shadow: 0 1px 2px rgba(16,32,30,.06), 0 4px 16px rgba(16,32,30,.05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.02rem; }
p { margin: 0 0 .8em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.2em 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.content { padding-top: 24px; padding-bottom: 48px; min-height: calc(100vh - 140px); }

/* шапка */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topin { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fbbf24; font-weight: 900; }
.logo.sm .mark { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav > a { color: var(--ink); padding: 8px 11px; border-radius: 8px; font-weight: 500; }
.nav > a:hover { background: var(--bg); text-decoration: none; }
.nav > a.adm { color: var(--warn); }
.navr { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.bal { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; color: var(--ink); padding: 4px 10px; border-radius: 8px; background: var(--brand-soft); }
.bal small { color: var(--muted); font-size: .75rem; }
.bal:hover { text-decoration: none; }
.burger { display: none; margin-left: auto; font-size: 1.5rem; cursor: pointer; padding: 4px 8px; }

/* кнопки и формы */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--brand); background: var(--brand); color: #fff; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--brand-d); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.danger { background: var(--surface); color: var(--bad); border-color: #f2b8b2; }
.btn.danger:hover { background: var(--bad-soft); }
.btn.sm { padding: 6px 12px; font-size: .88rem; border-radius: 8px; }
.btn.lg { padding: 13px 24px; font-size: 1.02rem; }
.btn.block { width: 100%; }
button.link { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 0; }
button.link:hover { color: var(--ink); text-decoration: underline; }
.inline { display: inline; }
.form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .9rem; }
label small { font-weight: 400; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
input, select, textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #cfd8d5; border-radius: 9px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand); }
input[type=checkbox] { width: auto; }
textarea { resize: vertical; }
.sm-input { width: 90px; padding: 6px 8px; }
input.copied { outline: 2px solid var(--ok); }
.calc { background: var(--accent-soft); padding: 10px 14px; border-radius: 9px; font-size: .92rem; }

/* раскладка */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card.narrow { max-width: 640px; }
.card.center, .center { text-align: center; }
.hl-card { border-color: var(--accent); background: var(--accent-soft); }
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.head h1, .head h2 { margin: 0; }
.row { display: flex; align-items: center; } .gap { gap: 10px; } .wrapb { flex-wrap: wrap; margin-bottom: 18px; }
.grow { flex: 1; min-width: 160px; }
.stack { display: flex; flex-direction: column; gap: 6px; min-width: 200px; }
.grid2, .grid3, .grid4 { display: grid; gap: 16px; margin-bottom: 18px; }
.grid2 { grid-template-columns: repeat(2, 1fr); } .grid3 { grid-template-columns: repeat(3, 1fr); } .grid4 { grid-template-columns: repeat(4, 1fr); }
.grid2.tight, .grid3.tight { margin-bottom: 0; gap: 12px; }
.grid2 > .card, .grid3 > .card { margin-bottom: 0; }

.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 3px; }
.kpi span { color: var(--muted); font-size: .85rem; }
.kpi b { font-size: 1.45rem; letter-spacing: -.02em; }
.kpi small { color: var(--muted); font-size: .8rem; }
.kpi a { font-size: .85rem; font-weight: 600; }
.kpi.main { background: var(--brand); border-color: var(--brand); color: #fff; }
.kpi.main span, .kpi.main small { color: #c9ece6; } .kpi.main a { color: #fde68a; }
.kpi.alert { border-color: var(--accent); background: var(--accent-soft); }
.kpi.inline { flex-direction: row; align-items: baseline; gap: 10px; padding: 10px 14px; }
.kpi.inline b { font-size: 1.1rem; }
.grid4.small .kpi b, .grid2.small .kpi b { font-size: 1.15rem; }
.card .grid4, .card .grid2 { margin-top: 6px; }

.tile { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; color: var(--ink); transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--brand); text-decoration: none; transform: translateY(-1px); }
.tile h3 { color: var(--brand); } .tile p { color: var(--muted); margin: 0; font-size: .92rem; }

/* списки заданий */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chips a { padding: 6px 13px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: .88rem; }
.chips a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips a:hover { text-decoration: none; border-color: var(--ink); }
.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; color: var(--ink); }
a.item:hover { border-color: var(--brand); text-decoration: none; }
.item h3 { margin: 2px 0; font-size: 1rem; }
.cat { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); font-weight: 700; }
.price { font-weight: 800; color: var(--ok); white-space: nowrap; font-size: 1.05rem; }
.price.big { font-size: 1.6rem; }
.li { display: flex; gap: 12px; justify-content: space-between; padding: 8px 0; border-top: 1px solid rgba(0,0,0,.06); color: var(--ink); }
.li span:first-child { flex: 1; }
.pre { white-space: pre-wrap; word-break: break-word; background: var(--bg); border-radius: 9px; padding: 12px 14px; margin-bottom: 12px; }
.note { background: var(--brand-soft); border-radius: 9px; padding: 12px 14px; margin-bottom: 14px; }
.report { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.report .head { margin-bottom: 8px; }

/* таблицы */
.tbl { overflow-x: auto; }
.tbl.card { padding: 6px 0; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
td.clip { max-width: 360px; white-space: pre-wrap; word-break: break-word; }
tr.banned td { opacity: .55; }
.plus { color: var(--ok); font-weight: 600; } .minus { color: var(--ink); }
.nowrap { white-space: nowrap; } .block { display: block; } .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85em; }
.muted { color: var(--muted); } .small { font-size: .88rem; }
.bad-t { color: var(--bad); } .warn-t { color: var(--warn); }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; border: 1px dashed var(--line); border-radius: var(--r); background: var(--surface); }

.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.info { background: var(--info-soft); color: var(--info); }
.badge.muted { background: #eef1f0; color: var(--muted); }

.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-weight: 500; }
.flash.ok { background: var(--ok-soft); color: #14532d; } .flash.bad { background: var(--bad-soft); color: #7a1a12; }
.flash.warn { background: var(--warn-soft); color: #7c3a06; } .flash.info { background: var(--info-soft); color: #1e3a8a; }

.subnav { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.subnav a { padding: 9px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; }
.subnav a.on { color: var(--ink); border-color: var(--brand); }
.subnav a:hover { text-decoration: none; color: var(--ink); }

.auth { max-width: 440px; margin: 20px auto; }

/* главная */
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding: 32px 0 44px; }
.eyebrow { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.hero h1 { font-size: 2.5rem; letter-spacing: -.03em; }
.hl { background: linear-gradient(transparent 62%, #fde68a 62%); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 560px; margin-bottom: 24px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.stat b { display: block; font-size: 1.5rem; letter-spacing: -.02em; color: var(--brand); }
.stat span { color: var(--muted); font-size: .88rem; }
.num { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 12px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; background: var(--ink); color: #e8efed; border-radius: 18px; padding: 32px; margin-top: 10px; }
.split h2 { color: #fff; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 6px 0 6px 26px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: #fbbf24; font-weight: 800; }
.prose ul { padding-left: 20px; } .prose h3 { margin-top: 1.3em; }

.foot { border-top: 1px solid var(--line); padding: 18px 0; color: var(--muted); font-size: .88rem; background: var(--surface); }

/* серфинг */
body.surfpage { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.surfbar { display: flex; align-items: center; gap: 16px; padding: 8px 16px; background: var(--ink); color: #fff; flex-wrap: wrap; }
.surfbar .logo { color: #fff; }
.sinfo { display: flex; flex-direction: column; flex: 1; min-width: 160px; line-height: 1.3; }
.sinfo a { color: #9fd8cf; font-size: .85rem; }
.timer { font-size: 1.5rem; font-weight: 800; color: #fbbf24; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.timer small { font-size: .7rem; color: #fca5a5; font-weight: 500; }
.captcha { display: flex; align-items: center; gap: 8px; }
.captcha .digit { font-size: 1.3rem; color: #fbbf24; }
.captcha .btn { min-width: 40px; }
.surfbar .price { color: #86efac; }
.surfframe { flex: 1; width: 100%; border: 0; background: #fff; }
[hidden] { display: none !important; }
body.surfpage main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
body.surfpage .flash { margin: 8px 16px; }

@media (max-width: 900px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .grid3 { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; gap: 24px; } .hero h1 { font-size: 1.9rem; }
  .split { grid-template-columns: 1fr; padding: 24px; }
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--surface); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  #navt:checked ~ .nav { display: flex; }
  .navr { margin: 8px 0 0; justify-content: space-between; }
  .bal { align-items: flex-start; }
}
@media (max-width: 560px) {
  .grid2, .grid4 { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .item { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 1.4rem; }
  th, td { padding: 8px 10px; }
}

/* уровни, бонус, фильтры, посещения */
.levelbar { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; margin-bottom: 16px; color: var(--ink); }
.levelbar:hover { text-decoration: none; border-color: var(--brand); }
.levelbar .lv { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.levelbar .lv b { color: var(--brand); font-size: 1.05rem; }
.levelbar .lv span { color: var(--muted); font-size: .88rem; }
.bar { height: 8px; background: var(--brand-soft); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 99px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.filters select { width: auto; }
.steps { text-align: left; max-width: 460px; margin: 0 auto 18px; line-height: 1.8; }
.center-row { justify-content: center; }
tr.cur td { background: var(--brand-soft); }
label.check.small { font-size: .85rem; }
.bar i.w0 { width: 0%; }
.bar i.w5 { width: 5%; }
.bar i.w10 { width: 10%; }
.bar i.w15 { width: 15%; }
.bar i.w20 { width: 20%; }
.bar i.w25 { width: 25%; }
.bar i.w30 { width: 30%; }
.bar i.w35 { width: 35%; }
.bar i.w40 { width: 40%; }
.bar i.w45 { width: 45%; }
.bar i.w50 { width: 50%; }
.bar i.w55 { width: 55%; }
.bar i.w60 { width: 60%; }
.bar i.w65 { width: 65%; }
.bar i.w70 { width: 70%; }
.bar i.w75 { width: 75%; }
.bar i.w80 { width: 80%; }
.bar i.w85 { width: 85%; }
.bar i.w90 { width: 90%; }
.bar i.w95 { width: 95%; }
.bar i.w100 { width: 100%; }
