/* Slotik — бронирование рекламы. Светлая тема, акцент кобальт-фиолетовый, «билетные» карточки. */
:root {
  --bg: #F3F4F7;
  --surface: #FFFFFF;
  --ink: #15161C;
  --ink-2: #4A4E5E;
  --muted: #5A5E6E;
  --line: #DADCE5;
  --line-2: #ECEDF2;
  --accent: #4B3BF0;
  --accent-ink: #3326C4;
  --accent-soft: #E6E3FF;
  --ok: #17603C;
  --ok-soft: #DDF3E6;
  --warn: #8A3410;
  --warn-soft: #FFE6D9;
  --danger: #A11A2B;
  --danger-soft: #FCE1E4;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 18px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 16px/1.55 var(--body);
}
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(26px, 4vw, 40px); }
h2 { font-size: clamp(20px, 2.6vw, 26px); }
h3 { font-size: 18px; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.nums { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }

/* Шапка */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.logo span { font: 700 21px var(--display); letter-spacing: -0.03em; }
.nav { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; font-weight: 700; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent); }

main { padding-block: 28px 64px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: 14px; border: 1.5px solid transparent; font: 800 15px var(--body); cursor: pointer; text-decoration: none;
  background: var(--accent); color: #fff; white-space: nowrap; }
.btn:hover { background: var(--accent-ink); color: #fff; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn.dark { background: var(--ink); }
.btn.dark:hover { background: #000; }
.btn.danger { background: var(--surface); color: var(--danger); border-color: #EDB9C0; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn.wide { width: 100%; min-height: 54px; font-size: 16px; }
.btn[disabled] { background: #D9DBE4; color: var(--muted); cursor: not-allowed; border-color: transparent; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }

/* Карточки */
.card { background: var(--surface); border-radius: var(--radius); padding: 20px; }
.card.pad-lg { padding: 28px; }
.card.outline { background: transparent; border: 1.5px solid var(--line); }
.card h3 + * { margin-top: 10px; }

.notice { border-radius: 14px; padding: 12px 16px; font-weight: 600; }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.err { background: var(--danger-soft); color: var(--danger); }
.notice.info { background: var(--accent-soft); color: var(--accent-ink); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 800;
  background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.danger { background: var(--danger-soft); color: var(--danger); }
.chip.muted { background: var(--line-2); color: var(--ink-2); }
.chip.info { background: #E3EEFF; color: #1D4C9A; }
.chip.accent { background: var(--accent); color: #fff; }

.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Лента */
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: end; margin-bottom: 28px; }
.hero p { font-size: 18px; color: var(--ink-2); max-width: 36em; margin-top: 12px; }
.hero .card { background: var(--ink); color: #fff; }
.hero .card p { color: #C9C6E8; font-size: 15px; margin-top: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; }
.filters a.chip { text-decoration: none; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); padding: 7px 14px; font-size: 14px; }
.filters a.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters select, .filters input { min-height: 40px; border-radius: 11px; border: 1.5px solid var(--line); padding: 0 12px; font: 600 14px var(--body); background: var(--surface); color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.bcard { background: var(--surface); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 14px;
  text-decoration: none; color: var(--ink); border: 1.5px solid transparent; transition: border-color .15s, transform .15s; }
.bcard:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.bcard .who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.bcard .name { font-weight: 800; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcard .nums3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.stat { background: var(--bg); border-radius: 12px; padding: 8px 10px; min-width: 0; }
.stat b { display: block; font-size: 16px; font-weight: 800; }
.stat span { font-size: 12px; color: var(--muted); }
.bcard .foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-top: 2px dashed var(--line); padding-top: 12px; margin-top: auto; }

.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center;
  font: 700 17px var(--display); flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 84px; height: 84px; font-size: 26px; }

/* Страница блогера */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.side { position: sticky; top: 84px; }
.formats { display: flex; flex-direction: column; gap: 10px; }
.format { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; }
.format input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.format:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.price-split { font-size: 13px; color: var(--muted); }
.locked { position: relative; }
.locked .blur { filter: blur(6px); user-select: none; pointer-events: none; }
.locked .over { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; }

/* Календарь */
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.cal-head, .cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal-head span { text-align: center; font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .05em; }
.cal label, .cal .d, .cal button { height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font: 700 14px var(--body); border: 0; padding: 0; position: relative; }
.cal .free { background: var(--bg); color: var(--ink); cursor: pointer; }
.cal .free:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.cal .busy { color: #8C8FA0; text-decoration: line-through; }
.cal .blocked { color: #8C8FA0; background: repeating-linear-gradient(135deg, transparent 0 5px, var(--line-2) 5px 7px); }
.cal .unavailable { color: #B9BCCB; }
.cal input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cal label:has(input:checked) { background: var(--accent); color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-right: 6px; }

/* Формы */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 13px; font-weight: 500; }
input[type=text], input[type=number], input[type=url], input[type=tel], input:not([type]), textarea, select {
  width: 100%; min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line); padding: 10px 12px;
  font: 500 15px var(--body); color: var(--ink); background: var(--surface); }
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=file] { font: 500 14px var(--body); max-width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* Бронь-билет */
.ticket { background: var(--surface); border-radius: 22px; overflow: hidden; }
.ticket .head { background: var(--accent); color: #fff; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ticket .head b { font: 700 18px var(--display); }
.ticket .body { padding: 18px 20px; }
.perf { position: relative; height: 22px; }
.perf::before, .perf::after { content: ""; position: absolute; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.perf::before { left: -11px; } .perf::after { right: -11px; }
.perf i { position: absolute; left: 20px; right: 20px; top: 10px; border-top: 2px dashed var(--line); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.kv div span { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kv div b { font-weight: 800; overflow-wrap: anywhere; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; }
.big { font: 700 24px var(--display); }

.steps { display: flex; flex-direction: column; gap: 12px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; margin-top: 5px; border: 2px solid #B9BCCB; background: var(--surface); }
.step.done .dot { background: var(--ok); border-color: var(--ok); }
.step.now .dot { border: 4px solid var(--accent); }
.step.done b, .step.now b { color: var(--ink); }
.step b { color: var(--ink-2); font-weight: 700; }

.copybox { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.copybox pre { flex: 1 1 240px; min-width: 0; margin: 0; background: var(--bg); border-radius: 12px; padding: 12px 14px;
  font: 500 14px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }

video { width: 100%; max-height: 70vh; border-radius: 14px; background: #000; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; padding: 10px 12px; }
td { padding: 12px; border-top: 1px solid var(--line-2); vertical-align: top; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a { text-decoration: none; padding: 9px 14px; border-radius: 11px; font-weight: 700; color: var(--ink); background: var(--surface); }
.tabs a.on { background: var(--ink); color: #fff; }

.doc { max-width: 760px; }
.doc h2 { margin-top: 28px; font-size: 20px; }
.doc p, .doc li { color: var(--ink-2); margin-top: 10px; }
.doc ol, .doc ul { padding-left: 22px; }

footer { border-top: 1px solid var(--line); padding-block: 24px 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 860px) {
  .hero, .layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
}
@media (max-width: 520px) {
  .two { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 16px; }
  .card.pad-lg { padding: 20px; }
  .top .nav { gap: 4px 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
