:root {
  --bg: #ffffff; --fg: #0a0a0a; --muted: #6a6a66; --line: #e4e4df; --card: #f5f5f2; --card2: #ececE7;
  --accent: #c8ff2e; --accent-fg: #0a0a0a; --danger: #e5484d; --ok: #16a34a; --warn: #d97706;
  --radius: 14px; --shadow: 0 8px 30px rgba(0, 0, 0, .08);
  --font: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0a0a0a; --fg: #f4f4f1; --muted: #9a9a94; --line: #242422; --card: #141413; --card2: #1d1d1b;
  --shadow: 0 8px 30px rgba(0, 0, 0, .5); color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; transition: background .2s, color .2s; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 7vw, 4.6rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; } h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
.container { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2rem); margin-inline: auto; }
section.block { padding: clamp(2.5rem, 7vw, 5rem) 0; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.hl { background: var(--accent); color: var(--accent-fg); padding: 0 .25em; border-radius: 6px; }
[hidden] { display: none !important; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 1rem; height: 64px; }
.logo { font-weight: 900; font-size: 1.35rem; letter-spacing: -.04em; text-decoration: none; display: flex; align-items: center; gap: .45rem; }
.logo-img { height: 40px; width: auto; }
.site-footer .logo-img { height: 52px; }
.logo-img.alt, [data-theme="light"] .logo-img:not(.alt) { display: none; }
[data-theme="light"] .logo-img.alt { display: block; }
.logo i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); display: inline-block; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.nav-links { display: flex; gap: .2rem; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; padding: .45rem .8rem; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--muted); }
.nav-links a:hover { color: var(--fg); background: var(--card); }
.nav-links a.active { color: var(--accent-fg); background: var(--accent); }
.nav-tools { display: flex; gap: .4rem; align-items: center; }
.icon-btn { background: none; border: 1px solid var(--line); color: var(--fg); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: inline-grid; place-items: center; flex: none; }
.icon-btn:hover { background: var(--card); }
.icon-btn.burger { display: none; }
@media (max-width: 860px) {
  .icon-btn.burger { display: inline-grid; }
  .nav-links { position: fixed; inset: 64px 0 auto 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 1rem; border-bottom: 1px solid var(--line); display: none; margin: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem 1rem; font-size: 1.05rem; }
  .nav-tools { margin-left: auto; }
}

/* buttons / forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1.5px solid var(--fg); background: transparent; color: var(--fg); padding: .7rem 1.25rem; border-radius: 999px; font: 700 .95rem var(--font); cursor: pointer; text-decoration: none; transition: transform .1s, background .15s, opacity .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn.dark { background: var(--fg); color: var(--bg); }
.btn.ghost { border-color: var(--line); } .btn.ghost:hover { background: var(--card); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.sm { padding: .4rem .85rem; font-size: .83rem; }
.btn.block { width: 100%; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field label, .field > label { font-weight: 600; font-size: .85rem; }
.field small { font-size: .78rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=url], input[type=tel], select, textarea {
  width: 100%; padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--fg); font: inherit; font-size: .95rem; }
input[type=color] { width: 60px; height: 42px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); padding: 3px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { resize: vertical; }
.check { display: flex; gap: .55rem; align-items: center; cursor: pointer; font-weight: 600; font-size: .92rem; }
.check input { width: 18px; height: 18px; accent-color: var(--fg); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-grid .full, .form-grid .field:has(textarea), .form-grid .field:has(.imgfield) { grid-column: 1 / -1; }
.form-h { grid-column: 1 / -1; margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); text-transform: uppercase; font-size: .8rem; letter-spacing: .12em; color: var(--muted); }
.form-h:first-child { border: 0; padding: 0; margin: 0; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.repeater { display: flex; flex-direction: column; gap: .6rem; margin-bottom: .6rem; }
.rep-row { display: flex; gap: .5rem; align-items: flex-start; background: var(--card); padding: .7rem; border-radius: 12px; border: 1px dashed var(--line); }
.rep-fields { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; min-width: 0; }
.rep-fields .field:has(textarea), .rep-fields .field:has(.imgfield) { grid-column: 1 / -1; }
.rep-ctl { display: flex; flex-direction: column; gap: .25rem; } .rep-ctl .icon-btn { width: 28px; height: 28px; font-size: .75rem; }
.imgfield { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.imgprev { width: 110px; height: 74px; border-radius: 10px; background: var(--card2); overflow: hidden; display: grid; place-items: center; font-size: .72rem; color: var(--muted); flex: none; }
.imgprev img { width: 100%; height: 100%; object-fit: cover; }
.imgctl { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; flex: 1; min-width: 200px; }
.imgctl input[type=text] { flex: 1 1 200px; }

/* cards & layout */
.card { background: var(--card); border-radius: var(--radius); padding: 1.4rem; border: 1px solid var(--line); }
.grid { display: grid; gap: 1.2rem; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.badge { display: inline-block; padding: .18rem .65rem; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--card2); }
.badge.ok { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.badge.warn { background: color-mix(in srgb, var(--warn) 22%, transparent); color: var(--warn); }
.badge.bad { background: color-mix(in srgb, var(--danger) 20%, transparent); color: var(--danger); }
.badge.accent { background: var(--accent); color: var(--accent-fg); }
.page-head { padding: clamp(2rem, 6vw, 4rem) 0 1rem; }
.page-head p { color: var(--muted); max-width: 60ch; font-size: 1.1rem; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--radius); }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 1rem; }
.alert { padding: .9rem 1.1rem; border-radius: 12px; background: var(--card2); font-size: .92rem; }
.alert.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); } .alert.warn { background: color-mix(in srgb, var(--warn) 18%, transparent); } .alert.bad { background: color-mix(in srgb, var(--danger) 16%, transparent); }

/* hero */
.hero { padding: clamp(2.5rem, 8vw, 6rem) 0 2rem; position: relative; overflow: hidden; }
.hero h1 { white-space: pre-line; max-width: 14ch; }
.hero p.lead { font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: var(--muted); max-width: 48ch; margin: 1.2rem 0 2rem; }
.hero::after { content: ""; position: absolute; right: -8vw; top: 10%; width: min(46vw, 460px); aspect-ratio: 1; border-radius: 50%; background: var(--accent); opacity: .9; z-index: -1; filter: blur(.3px); }
@media (max-width: 700px) { .hero::after { width: 60vw; right: -22vw; top: 4%; opacity: .55; } }
.bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; counter-reset: b; }
.bullets li { counter-increment: b; display: flex; gap: 1rem; align-items: baseline; font-size: 1.12rem; font-weight: 600; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.bullets li::before { content: "0" counter(b); font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .9rem; }
.offer h3 { font-size: 1.4rem; } .offer { transition: transform .2s; } .offer:hover { transform: translateY(-4px); }
.offer .num { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; font-weight: 800; margin-bottom: 1rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; text-align: center; }
.stat b { display: block; font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 900; letter-spacing: -.04em; }
.band { background: var(--fg); color: var(--bg); } .band .muted, .band .stat span { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.cta { background: var(--accent); color: var(--accent-fg); border-radius: 28px; padding: clamp(2rem, 6vw, 4rem); text-align: center; }
.cta .btn { border-color: var(--accent-fg); color: var(--accent-fg); } .cta .btn.dark { background: var(--accent-fg); color: var(--accent); }

/* slideshow */
.slides { position: relative; border-radius: 24px; overflow: hidden; background: var(--card2); aspect-ratio: 16 / 8; }
@media (max-width: 700px) { .slides { aspect-ratio: 4 / 3; } }
.slides .track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.6, 0, .2, 1); }
.slides figure { margin: 0; min-width: 100%; height: 100%; position: relative; }
.slides img { width: 100%; height: 100%; object-fit: cover; }
.slides figcaption { position: absolute; left: 1rem; bottom: 1rem; background: rgba(0, 0, 0, .6); color: #fff; padding: .35rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 600; backdrop-filter: blur(6px); }
.slides .dots { position: absolute; bottom: 1rem; right: 1rem; display: flex; gap: .4rem; }
.slides .dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .5); cursor: pointer; padding: 0; }
.slides .dots button.on { background: var(--accent); width: 24px; border-radius: 9px; }
.slides .arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, .45); color: #fff; border: 0; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.slides .arrow.prev { left: .8rem; } .slides .arrow.next { right: .8rem; }

/* gallery */
.gallery { columns: 3 260px; column-gap: 1rem; }
.gallery figure { margin: 0 0 1rem; break-inside: avoid; border-radius: 16px; overflow: hidden; cursor: zoom-in; position: relative; background: var(--card2); }
.gallery img { width: 100%; transition: transform .4s; } .gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 1.2rem .9rem .7rem; color: #fff; font-size: .85rem; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); opacity: 0; transition: opacity .2s; }
.gallery figure:hover figcaption { opacity: 1; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .92); }
.lightbox .lb { height: 100%; display: grid; place-items: center; padding: 1rem; position: relative; }
.lightbox img { max-height: 86vh; max-width: 94vw; border-radius: 12px; }
.lightbox .cap { position: absolute; bottom: 1.2rem; left: 0; right: 0; text-align: center; color: #fff; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .15); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.lightbox .x { top: 1rem; right: 1rem; } .lightbox .p { left: 1rem; } .lightbox .n { right: 1rem; }

/* articles */
.acard { text-decoration: none; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.acard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.acard .img { aspect-ratio: 16 / 9; background: var(--card2); overflow: hidden; } .acard img { width: 100%; height: 100%; object-fit: cover; }
.acard .body { padding: 1.2rem; } .acard h3 { margin-bottom: .4rem; }
.article h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
.article .cover, .article .blk-img { border-radius: 20px; width: 100%; margin: 1.5rem 0; max-height: 520px; object-fit: cover; }
.article .blk { margin: 2rem 0; font-size: 1.1rem; } .article .blk h2 { font-size: 1.6rem; }

/* trainers */
.trainer { display: flex; gap: 1.2rem; align-items: center; }
.trainer img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; flex: none; background: var(--card2); }
.cert-list h4 { margin: 1.2rem 0 .3rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.cert-list ul { margin: 0; padding-left: 1.1rem; } .cert-list li { margin: .25rem 0; }
.focus-list { font-size: clamp(1.15rem, 2.8vw, 1.6rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.focus-list p { padding: 1rem 0; border-bottom: 1px solid var(--line); margin: 0; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 3rem 0 2rem; background: var(--card); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; } .site-footer li { margin: .35rem 0; }
.site-footer a { text-decoration: none; } .site-footer a:hover { text-decoration: underline; }
.copy { margin-top: 2rem; font-size: .82rem; color: var(--muted); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: .8rem 1rem; white-space: nowrap; }
td { padding: .75rem 1rem; border-top: 1px solid var(--line); vertical-align: middle; }
tr:hover td { background: color-mix(in srgb, var(--fg) 3%, transparent); }
td.actions { white-space: nowrap; text-align: right; }
.thumb { width: 54px; height: 38px; object-fit: cover; border-radius: 6px; background: var(--card2); }

/* modal */
dialog.modal { border: 0; border-radius: 22px; padding: 0; width: min(560px, calc(100vw - 1.5rem)); max-height: 92vh; background: var(--bg); color: var(--fg); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); overflow: hidden; }
dialog.modal.wide { width: min(860px, calc(100vw - 1.5rem)); }
dialog.modal[open] { display: flex; flex-direction: column; animation: pop .18s ease-out; }
dialog.modal::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); gap: 1rem; }
.modal-head h3 { margin: 0; }
.modal-body { padding: 1.4rem; overflow-y: auto; flex: 1; }
.modal-foot { padding: 1rem 1.4rem; border-top: 1px solid var(--line); display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; background: var(--card); }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: .45rem 1rem; margin: 0 0 1rem; } .kv dt { color: var(--muted); font-size: .85rem; } .kv dd { margin: 0; font-weight: 600; }

/* toasts */
#toasts { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: .5rem; align-items: center; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--fg); color: var(--bg); padding: .75rem 1.2rem; border-radius: 14px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow); animation: pop .2s; transition: opacity .3s; }
.toast.error { background: var(--danger); color: #fff; } .toast.out { opacity: 0; }

/* calendar */
.cal-bar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.cal-bar h2 { margin: 0 auto 0 .4rem; font-size: 1.5rem; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 1px; }
.cal-dow { background: var(--card); text-align: center; padding: .5rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.cal-day { background: var(--bg); min-height: 112px; padding: .35rem; display: flex; flex-direction: column; gap: .25rem; }
.cal-day.other { background: var(--card); opacity: .55; } .cal-day.today .dn { background: var(--accent); color: var(--accent-fg); }
.dn { font-size: .78rem; font-weight: 700; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.chip { display: block; width: 100%; text-align: left; border: 0; background: var(--card2); color: var(--fg); border-left: 3px solid var(--fg); border-radius: 6px; padding: .25rem .4rem; font: inherit; font-size: .72rem; line-height: 1.25; cursor: pointer; overflow: hidden; }
.chip:hover { background: var(--card); outline: 1px solid var(--fg); }
.chip b { display: block; font-size: .74rem; } .chip.mine { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 30%, var(--card2)); }
.chip.full { opacity: .55; } .chip.past { opacity: .4; } .chip.cancelled { text-decoration: line-through; opacity: .35; }
.agenda { display: none; }
@media (max-width: 760px) {
  .cal-grid { display: none; } .agenda { display: block; }
  .ag-day { display: flex; gap: .9rem; padding: .9rem 0; border-top: 1px solid var(--line); } .ag-day > .d { width: 52px; flex: none; text-align: center; } .ag-day .d b { display: block; font-size: 1.5rem; line-height: 1; } .ag-day .d span { font-size: .7rem; text-transform: uppercase; color: var(--muted); }
  .ag-day .list { flex: 1; display: grid; gap: .45rem; } .ag-day .chip { padding: .6rem .7rem; font-size: .85rem; border-radius: 10px; } .ag-day .chip b { font-size: .92rem; }
}
.meter { height: 6px; background: var(--card2); border-radius: 6px; overflow: hidden; } .meter i { display: block; height: 100%; background: var(--fg); border-radius: 6px; }
.meter.full i { background: var(--danger); }
.course-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.course-card .img { aspect-ratio: 16 / 7; background: var(--card2); } .course-card .img img { width: 100%; height: 100%; object-fit: cover; }
.course-card .body { padding: 1.2rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.slot-pick { display: grid; gap: .5rem; } .slot { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; } .slot:has(input:checked) { border-color: var(--fg); background: var(--card); } .slot.disabled { opacity: .45; cursor: not-allowed; } .slot input { accent-color: var(--fg); width: 18px; height: 18px; } .slot .grow { flex: 1; }
.qr-box { display: grid; grid-template-columns: 200px 1fr; gap: 1.2rem; align-items: center; }
@media (max-width: 520px) { .qr-box { grid-template-columns: 1fr; justify-items: center; text-align: center; } .qr-box dl { text-align: left; } }
svg.qr { width: 200px; height: 200px; border-radius: 12px; border: 6px solid #fff; background: #fff; }
.tabs { display: flex; gap: .3rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: 1rem; scrollbar-width: none; } .tabs a, .tabs button { flex: none; }

/* profile */
.credit-big { font-size: 3.4rem; font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.profile-hero { background: var(--fg); color: var(--bg); border-radius: 24px; padding: clamp(1.4rem, 4vw, 2.4rem); display: grid; gap: 1.5rem; grid-template-columns: 1fr auto; align-items: center; }
.profile-hero .muted { color: color-mix(in srgb, var(--bg) 60%, transparent); }
@media (max-width: 600px) { .profile-hero { grid-template-columns: 1fr; } }
.pkg { display: flex; flex-direction: column; gap: .5rem; } .pkg .price { font-size: 2.2rem; font-weight: 900; letter-spacing: -.04em; }

/* admin */
.admin { display: grid; grid-template-columns: 230px 1fr; gap: 2rem; padding: 2rem 0 3rem; align-items: start; }
.admin-nav { position: sticky; top: 80px; display: flex; flex-direction: column; gap: .15rem; }
.admin-nav a { text-decoration: none; padding: .6rem .9rem; border-radius: 10px; font-weight: 600; font-size: .92rem; color: var(--muted); display: flex; justify-content: space-between; gap: .5rem; }
.admin-nav a:hover { background: var(--card); color: var(--fg); } .admin-nav a.active { background: var(--fg); color: var(--bg); }
.admin-nav .grp { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 1rem .9rem .3rem; }
.pill { background: var(--accent); color: var(--accent-fg); border-radius: 999px; padding: 0 .5rem; font-size: .72rem; font-weight: 800; }
@media (max-width: 860px) { .admin { grid-template-columns: 1fr; gap: 1rem; } .admin-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: .4rem; } .admin-nav a { white-space: nowrap; flex: none; } .admin-nav .grp { display: none; } }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; } .admin-head h2 { margin: 0; font-size: 1.7rem; }
.kpi { display: flex; flex-direction: column; gap: .2rem; } .kpi b { font-size: 2.2rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; } .kpi span { color: var(--muted); font-size: .85rem; }
.ph-help { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0 1rem; } .ph-help code { background: var(--card2); padding: .12rem .5rem; border-radius: 6px; font-size: .78rem; cursor: pointer; }
.mailprev { white-space: pre-wrap; background: var(--card); padding: 1rem; border-radius: 12px; font-size: .9rem; }
.filter-bar { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; } .filter-bar input, .filter-bar select { width: auto; flex: 1 1 180px; max-width: 320px; }
.login-box { max-width: 420px; margin: 4rem auto; }
.map { width: 100%; height: 340px; border: 0; border-radius: var(--radius); filter: grayscale(.4); } [data-theme="dark"] .map { filter: grayscale(.6) invert(.92) hue-rotate(180deg) contrast(.9); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; } @media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* in-app route loading */
.page-loading { display: grid; place-items: center; min-height: 50vh; }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--fg); animation: vzspin .8s linear infinite; }
@keyframes vzspin { to { transform: rotate(360deg); } }
