@import url("/static/fonts.css");

/* Дизайн-система ЭТЕРА Сибирь v1.0 */
:root {
  --navy: #16294D; --navy-d: #10203F; --navy-m: #1E355F;
  --blue: #5B8FC9; --blue-l: #7BA6D6; --blue-xl: #A9C6E8;
  --gold: #C19A5B; --gold-l: #D2B27E;
  --lav: #E8EAF0; --plate: #F4F5F8; --line: #E1E4EE;
  --text: #16294D; --muted: #5A6785; --white: #FFFFFF;
  --ok: #2F7D5B; --warn: #B7791F; --err: #B23A3A;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--lav); color: var(--text);
  font: 400 16px/1.6 "Manrope", system-ui, sans-serif;
}
h1, h2, h3 { font-family: "Montserrat", sans-serif; color: var(--navy); margin: 0 0 12px; }
h1 { font-weight: 300; font-size: 30px; line-height: 1.2; }
h2 { font-weight: 400; font-size: 22px; line-height: 1.3; }
h3 { font-weight: 600; font-size: 17px; }
p { margin: 0 0 12px; }
a { color: var(--blue); }
.eyebrow { font: 500 12px/1 "Montserrat", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.accent { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 19px; color: var(--navy-m); }

.wrap { max-width: 640px; margin: 0 auto; padding: 20px 16px 120px; }
.simple { padding-top: 48px; }

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 70%, var(--blue-xl) 100%);
  color: #fff; border-radius: 20px; padding: 24px 20px; margin-bottom: 16px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px;
  border: 1.5px solid rgba(255,255,255,.35); border-radius: 50%;
}
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--gold-l); }
.logo { font: 400 20px/1 "Montserrat", sans-serif; letter-spacing: .04em; margin-bottom: 14px; }
.logo b { color: var(--gold-l); font-weight: 400; }
.logo small { display: block; font-size: 10px; letter-spacing: .3em; color: var(--blue-xl); margin-top: 4px; font-weight: 500; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 12px; }
.plate { background: var(--plate); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; }

.progress { display: flex; gap: 6px; margin: 4px 0 18px; }
.progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.progress span.on { background: var(--blue); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 50px; padding: 12px 18px; border-radius: 10px; border: 1.5px solid var(--navy);
  background: var(--navy); color: #fff; font: 600 16px/1.2 "Manrope", sans-serif; cursor: pointer; text-decoration: none;
}
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn + .btn { margin-top: 10px; }
.btn.sm { min-height: 36px; width: auto; padding: 6px 12px; font-size: 14px; }
.actions { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--lav) 70%, rgba(232,234,240,0)); }
.actions .inner { max-width: 640px; margin: 0 auto; }

.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-weight: 600; margin-bottom: 6px; }
input[type=text], input[type=tel], input[type=email], input[type=date], input[type=number], textarea, select {
  width: 100%; font: 400 16px/1.4 "Manrope", sans-serif; color: var(--text);
  background: var(--plate); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(91,143,201,.2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 9px 14px; font: 500 15px/1 "Manrope", sans-serif; color: var(--navy); cursor: pointer; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.scale .chip { padding: 10px 0; text-align: center; border-radius: 8px; }

.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }

.mentor { display: flex; gap: 14px; align-items: center; cursor: pointer; }
.mentor img, .ph { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; background: var(--lav); }
.ph { display: flex; align-items: center; justify-content: center; font: 500 22px "Montserrat"; color: var(--blue); border: 1.5px solid var(--blue-xl); }
.mentor .meta { font-size: 14px; color: var(--muted); }
.tag { display: inline-block; font: 500 12px/1 "Montserrat"; letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; background: var(--plate); color: var(--navy); margin: 0 6px 6px 0; border: 1px solid var(--line); }
.tag.gold { color: var(--gold); border-color: var(--gold-l); background: #fff; }
.full { opacity: .55; }
.big-photo { width: 100%; max-height: 360px; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }
dl.props { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; margin: 0 0 12px; font-size: 15px; }
dl.props dt { color: var(--muted); }
dl.props dd { margin: 0; }
ul.ticks { list-style: none; padding: 0; margin: 0 0 8px; }
ul.ticks li { padding-left: 26px; position: relative; margin-bottom: 6px; }
ul.ticks li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 10px; height: 10px; border: 1.75px solid var(--gold); border-radius: 50%; }

.video { position: relative; padding-top: 56.25%; border-radius: 14px; overflow: hidden; background: var(--navy); margin-bottom: 14px; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.error { background: #FBEDED; color: var(--err); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; font-size: 15px; }
.note { font-size: 13px; color: var(--muted); }
.center { text-align: center; }
.ring { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--gold); margin: 8px auto 16px; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin 1s linear infinite; margin: 80px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
footer.legal { font-size: 12px; color: var(--muted); margin-top: 24px; }
footer.legal a { color: var(--muted); }

/* ---------- админ-панель ---------- */
.admin .wrap { max-width: 1200px; padding-bottom: 40px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 4px; }
.tabs button { flex: none; border: 1px solid var(--line); background: var(--white); color: var(--navy); border-radius: 10px; padding: 9px 14px; font: 600 14px "Manrope"; cursor: pointer; }
.tabs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.kpi b { display: block; font: 400 28px/1.1 "Montserrat"; color: var(--navy); }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi.gold b { color: var(--gold); }
.tbl-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; }
table.tbl { border-collapse: collapse; width: 100%; font-size: 14px; }
table.tbl th { text-align: left; background: var(--navy); color: #fff; font-weight: 600; padding: 10px; white-space: nowrap; position: sticky; top: 0; }
table.tbl td { padding: 9px 10px; border-top: 1px solid var(--line); vertical-align: top; }
table.tbl tr:hover td { background: var(--plate); }
table.tbl td.wrap-text { min-width: 220px; max-width: 360px; white-space: pre-wrap; }
.st { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.st.draft { background: #EEF0F5; color: var(--muted); }
.st.registered { background: #E6EEF8; color: var(--navy); }
.st.joined { background: #E3F0FB; color: #2B6CB0; }
.st.paid { background: #E4F3EC; color: var(--ok); }
.st.removed, .st.cancelled { background: #FBEDED; color: var(--err); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filters select, .filters input { width: auto; min-width: 160px; padding: 9px 12px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } dl.props { grid-template-columns: 1fr; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 50; font-size: 14px; }
.modal-bg { position: fixed; inset: 0; background: rgba(16,32,63,.45); display: flex; align-items: flex-start; justify-content: center; z-index: 40; overflow-y: auto; padding: 24px 12px; }
.modal { background: var(--white); border-radius: 18px; padding: 20px; width: 100%; max-width: 620px; }
.bar { height: 8px; border-radius: 8px; background: var(--lav); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--blue); }
.mt8 { margin-top: 8px; } .mt14 { margin-top: 14px; }
.btn.sm.mt8 { display: inline-flex; }
.bar i.w0{width:0%} .bar i.w10{width:10%} .bar i.w20{width:20%} .bar i.w30{width:30%} .bar i.w40{width:40%} .bar i.w50{width:50%} .bar i.w60{width:60%} .bar i.w70{width:70%} .bar i.w80{width:80%} .bar i.w90{width:90%} .bar i.w100{width:100%}
tr.clickable, tr[data-row] { cursor: pointer; }

::placeholder { color: #A3ABC0; opacity: 1; font-style: italic; }

.copyrow { display: flex; gap: 8px; align-items: center; }
.copyrow input { flex: 1; font-size: 13px; padding: 9px 10px; }
.copyrow .btn { flex: none; }

.qr-img { width: 100%; max-width: 320px; image-rendering: pixelated; margin: 12px auto; display: block; border-radius: 12px; background: #fff; }
.chip.att { padding: 6px 8px; font-size: 13px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
