:root {
  --red: #c8102e;
  --red-deep: #8b1524;
  --red-ink: #6e101c;
  --header: #8a1422;
  --anthracite: #3d4a54;
  --ink: #1c2126;
  --muted: #66707a;
  --line: #d5dde3;
  --paper: #e7eef2;
  --card: #ffffff;
  --banner: #e35a00;
  --navy: #1b365d;
  --ok: #1f7a4d;
  --warn: #b45309;
  --bad: #b42318;
  --shadow: 0 10px 30px rgba(28, 33, 38, .08);
  --radius: 10px;
  --max: 1380px;
  --header-h: 64px;
  --sans: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.nav-extra { display: none; }
.nav-shade { display: none; }

/* Header — Figma maroon bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 45;
  background: var(--header);
  color: #fff;
  box-shadow: 0 2px 0 rgba(0,0,0,.08);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 2px;
}
.brand-text { display: none; }
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .01em;
  padding: 8px 10px;
  white-space: nowrap;
  border-radius: 6px;
}
.nav a:hover, .nav a.is-on { background: rgba(255,255,255,.12); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.search-mini {
  display: none;
  align-items: center;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 4px 10px 4px 12px;
}
.search-mini input {
  border: 0;
  background: transparent;
  color: #fff;
  width: 140px;
  outline: none;
}
.search-mini input::placeholder { color: rgba(255,255,255,.7); }
.search-mini button {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.btn-ghost {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 10px;
  white-space: nowrap;
}
.btn-ghost:hover { text-decoration: underline; }
.btn-login {
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .04em;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  white-space: nowrap;
}
.btn-login:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: transform .3s ease, top .3s ease, background .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Catalog */
.catalog { padding: 8px 0 56px; }
.catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--muted);
  font-weight: 700;
}
.catalog-head h1 { font-size: 28px; letter-spacing: -.03em; }
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
  box-shadow: 0 10px 28px rgba(28, 33, 38, .06);
  border: 1px solid rgba(213, 221, 227, .7);
}
.card:hover { box-shadow: 0 18px 40px rgba(28, 33, 38, .12); }
.card-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #cfd8de;
}
.card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(20, 16, 18, .28));
  pointer-events: none;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.ribbon {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  background: var(--banner);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 6px 10px;
  border-radius: 999px;
  max-width: calc(100% - 24px);
  line-height: 1.2;
  box-shadow: 0 6px 16px rgba(227, 90, 0, .28);
}
.card-body {
  padding: 14px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.card-cat {
  font-size: 11px;
  letter-spacing: .12em;
  color: #8b949c;
  font-weight: 800;
}
.card-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2.5em;
}
.card-date {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2.8em;
}
.card-date.is-mute { font-style: italic; font-weight: 550; }
.card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 12.5px;
  color: var(--anthracite);
  font-weight: 700;
}
.card-stats span { display: inline-flex; align-items: center; gap: 5px; }
.card-stats svg { flex-shrink: 0; opacity: .7; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 16px 16px;
  padding: 10px 12px;
  background: #f6f8fa;
  border-radius: 12px;
}
.card-price { font-size: 15px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.card-go {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: .02em;
}
.card-go::after {
  content: "→";
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.card:hover .card-go::after { transform: translateX(4px); }

.empty {
  grid-column: 1 / -1;
  background: #fff;
  padding: 48px 24px;
  text-align: center;
  border-radius: var(--radius);
  color: var(--muted);
}

/* Course detail */
.course-page { padding: 18px 0 80px; }
.course-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 16px;
}
.course-crumb a:hover { color: var(--red); }
.course-crumb span:last-child { color: var(--ink); }
.course-hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}
.course-hero-media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: #d8e0e6;
  box-shadow: 0 22px 50px rgba(28, 33, 38, .14);
}
.course-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(20, 10, 12, .28));
  pointer-events: none;
}
.course-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.course-hero-copy { min-width: 0; }
.course-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.course-chips span {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--red-ink);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .04em;
  padding: 6px 11px;
  border-radius: 999px;
}
.course-chips .is-mute { color: var(--muted); }
.course-title {
  color: var(--red);
  font-size: clamp(28px, 3.4vw, 46px);
  letter-spacing: -.04em;
  line-height: 1.05;
  font-weight: 800;
}
.course-lede {
  margin-top: 14px;
  color: #3a4249;
  font-size: 16.5px;
  line-height: 1.65;
  max-width: 46ch;
}
.course-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.course-pills span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.78);
  border: 1px solid #e4ebf0;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: #2b333a;
}
.course-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.c-ico { width: 18px; height: 18px; flex-shrink: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 800;
  padding: 12px 22px;
  letter-spacing: .04em;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-ink); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-line { background: #fff; border: 1px solid var(--line); }
.btn-line:hover { border-color: var(--anthracite); }
.btn-sm { padding: 8px 12px; font-size: 13px; letter-spacing: 0; }
.course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .72fr);
  gap: 26px;
  align-items: start;
}
.course-main { display: grid; gap: 16px; }
.course-block, .pay-card, .side-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px 26px;
  box-shadow: 0 14px 36px rgba(28, 33, 38, .06);
}
.course-block h2, .pay-card h2 {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.course-block p { color: #2f373e; line-height: 1.7; }
.course-block p + p { margin-top: 12px; }
.course-note {
  margin-top: 16px;
  padding: 14px 16px;
  background: #f7f2f3;
  border-radius: 12px;
  color: #4a3034;
  font-size: 14.5px;
}
.pay-card-head p { color: var(--muted); font-size: 14.5px; max-width: 62ch; }
.pay-iban {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #8a1422, #c8102e 70%);
  color: #fff;
}
.pay-iban span {
  display: block;
  font-size: 11px;
  letter-spacing: .12em;
  opacity: .78;
  font-weight: 750;
}
.pay-iban strong {
  display: block;
  margin-top: 4px;
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: .06em;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.pay-iban .btn { background: #fff; color: var(--red-ink); box-shadow: none; }
.pay-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin: 16px 0 0;
}
.pay-meta div { min-width: 0; }
.pay-meta dt {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  font-weight: 750;
  text-transform: uppercase;
}
.pay-meta dd { margin: 4px 0 0; font-weight: 750; overflow-wrap: anywhere; }
.panel {
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 1px 0 rgba(28,33,38,.04);
}
.lead { color: var(--ink); font-size: 15.5px; }
.lead p + p { margin-top: 12px; }
.iban-box {
  margin-top: 18px;
  background: #f7fafc;
  border: 1px dashed #c5d0d8;
  border-radius: 10px;
  padding: 16px;
  font-size: 14px;
}
.iban-box dt { color: var(--muted); font-size: 11px; letter-spacing: .08em; font-weight: 700; margin-top: 10px; }
.iban-box dt:first-child { margin-top: 0; }
.iban-box dd { margin: 2px 0 0; font-weight: 700; }
.iban-copy {
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: .04em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.acc { display: grid; gap: 10px; }
.acc details {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8eef2;
}
.acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.01em;
  padding: 16px 18px;
}
.acc summary span { display: inline-flex; align-items: center; gap: 10px; }
.acc summary .c-ico:last-child { color: var(--red); transition: transform .3s ease; }
.acc details[open] summary .c-ico:last-child { transform: rotate(45deg); }
.acc summary::-webkit-details-marker { display: none; }
.acc details[open] { border-color: #ead4d7; box-shadow: 0 10px 28px rgba(138, 20, 34, .06); }
.acc .acc-body { padding: 0 18px 18px 48px; white-space: pre-wrap; color: #3a4249; line-height: 1.65; }
.course-aside { position: sticky; top: calc(var(--header-h) + 16px); }
.side-card { padding: 22px; }
.side-price span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.side-price strong {
  display: block;
  margin-top: 4px;
  color: var(--red);
  font-size: 34px;
  letter-spacing: -.04em;
  line-height: 1;
}
.side-cap { margin: 16px 0 18px; }
.side-cap-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  margin-bottom: 8px;
}
.side-bar {
  height: 6px;
  background: #edf1f4;
  border-radius: 99px;
  overflow: hidden;
}
.side-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red-deep), var(--red));
  border-radius: inherit;
}
.side-cap small { display: block; margin-top: 7px; color: var(--muted); font-size: 12.5px; }
.side-cta { width: 100%; }
.side-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid #eef2f5;
  display: grid;
  gap: 11px;
}
.side-list li {
  display: grid;
  grid-template-columns: 20px 76px 1fr;
  gap: 8px;
  align-items: start;
  font-size: 13.5px;
}
.side-list .c-ico { color: var(--red); margin-top: 1px; }
.side-list span { color: var(--muted); }
.side-list strong { font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.course-dock { display: none; }
.kv { display: grid; gap: 8px; font-size: 14px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #eef2f5; padding-bottom: 8px; }
.kv strong { font-weight: 800; text-align: right; overflow-wrap: anywhere; }

/* Forms */
.page { padding: 10px 0 64px; }
.page-title { color: var(--red); font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.page-sub { color: var(--muted); margin-bottom: 22px; max-width: 64ch; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field-label {
  color: var(--red);
  font-weight: 800;
  letter-spacing: .06em;
  font-size: 13px;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #d3dbe1;
  background: #fff;
  border-radius: 8px;
  padding: 11px 12px;
  outline: none;
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,16,46,.12);
}
.check { display: flex; gap: 10px; align-items: start; font-size: 14px; }
.check input { margin-top: 3px; }
.alert {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-weight: 600;
}
.alert-ok { background: #e8f6ee; color: #14532d; }
.alert-bad { background: #fdecea; color: #7a1c16; }
.alert-warn { background: #fff7ed; color: #7c2d12; }

.success-banner {
  background: var(--red);
  color: #fff;
  padding: 22px 24px;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* Generic content */
.prose { background: #fff; padding: 28px; border-radius: 12px; max-width: 80ch; }
.prose h2 { margin: 22px 0 8px; font-size: 20px; }
.prose p, .prose li { color: #2c343b; }
.prose ul, .prose ol { padding-left: 20px; }
.news-list { display: grid; gap: 12px; }
.news-item {
  background: #fff;
  padding: 16px 18px;
  border-radius: 10px;
  display: grid;
  gap: 6px;
}
.news-item time { color: var(--muted); font-size: 12px; font-weight: 700; }

.faq details { background: #fff; border-radius: 10px; padding: 14px 16px; margin-bottom: 8px; }
.faq summary { font-weight: 800; cursor: pointer; color: var(--red-ink); }

/* Footer */
.site-footer {
  background: var(--anthracite);
  color: #e8eef2;
  padding: 36px 0 18px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand { display: flex; gap: 12px; align-items: start; }
.footer-brand img { width: 56px; height: 56px; background: #fff; border-radius: 50%; padding: 3px; }
.footer-brand p { color: #c5ced4; font-size: 13px; margin-top: 6px; }
.site-footer h3 { font-size: 13px; letter-spacing: .1em; margin-bottom: 10px; }
.site-footer a { color: #e8eef2; display: block; padding: 3px 0; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.copy { padding-top: 14px; font-size: 12px; color: #b7c0c6; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Admin */
.login-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f1ee;
  padding: 24px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}
.login-box {
  width: min(400px, 100%);
  text-align: center;
  flex: 0 0 auto;
  margin: 0;
}
.login-box img {
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
  box-shadow: 0 8px 20px rgba(60, 50, 48, .08);
}
.login-kicker {
  font-size: 11px;
  letter-spacing: .14em;
  color: #8a7f7a;
  font-weight: 700;
  margin-bottom: 4px;
}
.login-box h1 {
  font-size: 22px;
  margin-bottom: 22px;
  color: #3f3a38;
  font-weight: 800;
  letter-spacing: -.03em;
}
.login-field {
  display: grid;
  gap: 6px;
  text-align: left;
  margin-bottom: 12px;
}
.login-field span {
  font-size: 12px;
  font-weight: 700;
  color: #6d6561;
  letter-spacing: .02em;
}
.login-box input,
.login-field input {
  width: 100%;
  border: 1px solid #e4ddd8;
  background: #faf8f6;
  color: #2f2b29;
  border-radius: 14px;
  padding: 13px 15px;
  margin-bottom: 0;
}
.login-box input::placeholder,
.login-field input::placeholder { color: #a39b96; }
.login-submit {
  width: 100%;
  margin-top: 10px;
  background: #7a4a4e !important;
  color: #fff !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 22px rgba(122, 74, 78, .18);
  letter-spacing: .06em;
}
.login-back {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 650;
  color: #8a7f7a;
  transition: color .3s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}
.login-back:hover {
  color: #5c4f4c;
  transform: translateY(-1px);
}

.admin { min-height: 100vh; display: grid; grid-template-rows: 56px 1fr; }
.admin-top {
  background: var(--header);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.admin-top a.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.admin-top img { width: 36px; height: 36px; background: #fff; border-radius: 50%; }
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 56px); }
.admin-nav { background: #fff; border-right: 1px solid var(--line); padding: 14px 10px; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  font-weight: 650;
  font-size: 14px;
  color: var(--anthracite);
}
.admin-nav a:hover, .admin-nav a.is-on { background: #fdecee; color: var(--red-ink); }
.admin-main { padding: 22px; }
.admin-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.admin-h h1 { font-size: 22px; letter-spacing: -.03em; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { background: #fff; border-radius: 10px; padding: 14px 16px; }
.stat b { display: block; font-size: 26px; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: 13px; font-weight: 650; }
.table-wrap { background: #fff; border-radius: 12px; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; border-bottom: 1px solid #eef2f5; text-align: left; vertical-align: middle; }
th { font-size: 11px; letter-spacing: .08em; color: var(--muted); background: #f8fafb; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.badge.ok { background: #e7f6ee; color: #166534; }
.badge.warn { background: #fff4e5; color: #9a3412; }
.badge.bad { background: #fee4e2; color: #991b1b; }
.badge.mute { background: #eef2f5; color: #4b5563; }
.row-actions { display: flex; gap: 6px; }
.ico {
  width: 32px; height: 32px; display: inline-grid; place-items: center;
  border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer;
}
.ico:hover { border-color: var(--red); color: var(--red); }
.ico.danger:hover { background: #fdecee; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filters input, .filters select { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; }
.pager { display: flex; gap: 6px; margin-top: 14px; }
.pager-i { background: #fff; border-radius: 8px; padding: 6px 10px; font-weight: 700; }
.pager-i.is-on { background: var(--red); color: #fff; }
.sortable { display: grid; gap: 8px; }
.sort-item {
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sort-item b { flex: 1; }
.sort-item { flex-wrap: wrap; }
.sort-item .course-row { flex: 1; min-width: 220px; }
.note-list { display: grid; gap: 8px; }
.note { background: #f7fafc; border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.doc-preview { max-width: 420px; border-radius: 8px; border: 1px solid var(--line); }

@media (min-width: 721px) {
  .header-actions .search-mini { display: flex; }
  .nav .search-mini { display: none; }
}
@media (min-width: 900px) {
  .brand-text { display: block; font-size: 11px; line-height: 1.15; font-weight: 800; max-width: 110px; }
}

.help { color: var(--muted); font-size: 12.5px; font-weight: 550; line-height: 1.45; }
.hint-box {
  background: #f4f8fb;
  border-left: 3px solid var(--red);
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: #3d4a54;
  margin-bottom: 14px;
}
.steps { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.step {
  border: 0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.step.is-on { background: var(--red); color: #fff; }
.step-pane { display: none; }
.step-pane.is-on { display: block; }
.task-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.task {
  display: block;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 0 rgba(28,33,38,.04);
}
.task:hover { box-shadow: var(--shadow); }
.task em { font-style: normal; font-size: 28px; font-weight: 800; letter-spacing: -.04em; color: var(--red); }
.task strong { display: block; margin: 4px 0 4px; }
.task span { color: var(--muted); font-size: 13px; }
.course-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; }
.course-row img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; background: #eef2f5; }
.course-manage { align-items: flex-start; }
.course-manage > img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.course-manage-main { flex: 1; min-width: 220px; }
.date-inline { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.date-inline input[type="date"], .date-inline input[type="text"] {
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: #fff;
}
.date-inline input[type="text"] { min-width: 180px; flex: 1; }
.switch-form { margin: 0; }
.switch {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; background: transparent; cursor: pointer; font-weight: 800; color: var(--anthracite);
}
.switch-ui {
  width: 46px; height: 26px; border-radius: 99px; background: #c5cdd3; position: relative;
  transition: background .3s ease;
}
.switch-ui::after {
  content: ""; width: 20px; height: 20px; background: #fff; border-radius: 50%;
  position: absolute; top: 3px; left: 3px; transition: left .3s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.switch.is-on .switch-ui { background: #3d7a56; }
.switch.is-on .switch-ui::after { left: 23px; }
.switch.is-on .switch-lab { color: #2f6b48; }
.receipt-desk { display: grid; gap: 16px; }
.receipt-card { display: grid; grid-template-columns: 280px 1fr; gap: 16px; background: #fff; border-radius: 12px; padding: 14px; }
.receipt-card img, .receipt-card iframe { width: 100%; max-height: 320px; object-fit: contain; background: #f4f6f8; border-radius: 8px; }
.consent-box { background: #f8fafb; border-radius: 10px; padding: 12px; margin: 12px 0; }
.consent-title { font-weight: 800; color: var(--red); letter-spacing: .06em; font-size: 13px; margin-bottom: 10px; }
.field label em { font-style: normal; font-weight: 650; color: var(--muted); letter-spacing: 0; font-size: 12px; }
.form-field-card { flex-direction: column; align-items: stretch; gap: 8px; }
.form-field-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.form-field-label { flex: 1; min-width: 160px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-weight: 800; }
.form-field-type { color: var(--muted); font-weight: 700; }
.form-field-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form-field-extra input { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; }
@media (max-width: 720px) {
  .form-field-extra { grid-template-columns: 1fr; }
}
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  background: #1c2126;
  color: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}
.cookie-bar[hidden] {
  display: none !important;
}
.cookie-bar p { margin: 0; font-size: 13px; line-height: 1.45; max-width: 80ch; }
.cookie-bar a { color: #fff; text-decoration: underline; display: inline; padding: 0; }
@media (max-width: 900px) {
  .task-grid, .receipt-card { grid-template-columns: 1fr; }
  .cookie-bar { flex-direction: column; align-items: stretch; }
}
.cms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cms-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px 16px 16px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  min-height: 148px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cms-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cms-card em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--red);
  font-weight: 800;
}
.cms-card strong { font-size: 17px; letter-spacing: -.02em; }
.cms-card span { color: #66707a; font-size: 13.5px; line-height: 1.45; }
.cms-where {
  background: #f4f7f9;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: #5c656d;
  margin-bottom: 14px;
}
.role-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.role-card { background: #fff; border-radius: 10px; padding: 14px; border: 1px solid var(--line); }
.role-card b { display: block; margin-bottom: 6px; }
.role-card span { color: #66707a; font-size: 13.5px; line-height: 1.45; }
@media (max-width: 900px) {
  .cms-grid, .role-cards { grid-template-columns: 1fr; }
}

@media (max-width: 1200px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cms-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .course-layout, .form-grid, .footer-grid, .admin-shell, .course-hero { grid-template-columns: 1fr; }
  .course-hero { gap: 18px; }
  .course-hero-media { aspect-ratio: 16 / 10; }
  .pay-meta { grid-template-columns: 1fr; }
  .admin-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px;
  }
  .admin-nav a { flex: 0 0 auto; white-space: nowrap; }
  .admin-main { padding: 16px 14px 28px; }
  .admin-h { flex-wrap: wrap; align-items: flex-start; }
  .header-actions .search-mini input { width: 110px; }
}

@media (max-width: 720px) {
  .wrap { width: min(var(--max), calc(100% - 24px)); }
  .header-inner { width: min(var(--max), calc(100% - 20px)); }
  .site-header { padding-top: env(safe-area-inset-top, 0px); }
  .nav-toggle { display: grid; place-items: center; }
  .header-actions { display: none; }
  .nav-extra {
    display: block;
    margin-top: 6px;
    text-align: center;
    background: rgba(255,255,255,.12);
  }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 46;
    background: var(--header);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 12px 16px;
    overflow: visible;
    box-shadow: 0 16px 28px rgba(28, 33, 38, .18);
  }
  body.nav-open .nav { display: flex; }
  body.nav-open { overflow: hidden; }
  .nav-shade {
    display: none;
    position: fixed;
    inset: 0;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    background: rgba(28, 33, 38, .38);
    z-index: 44;
  }
  body.nav-open .nav-shade { display: block; }
  .nav .search-mini {
    display: flex;
    margin: 6px 0 8px;
    width: 100%;
  }
  .nav .search-mini input { width: 100%; }
  .nav-toggle.is-open span { background: transparent; }
  .nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .course-hero-actions .btn { flex: 1; }
  .pay-iban { flex-direction: column; align-items: stretch; }
  .course-dock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    margin: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-top: 1px solid #e8eef2;
    box-shadow: 0 -10px 28px rgba(28,33,38,.08);
  }
  .course-page { padding-bottom: 96px; }
  .course-dock small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .course-dock strong { color: var(--red); font-size: 18px; }
  .copy { flex-direction: column; }
  .prose { padding: 18px 16px; }
  .panel { padding: 16px; }
  .filters input, .filters select { width: 100%; }
  .date-inline input[type="text"], .date-inline input[type="date"] { width: 100%; min-width: 0; }
  .admin-top { flex-wrap: wrap; gap: 6px 12px; padding: 8px 12px; min-height: 56px; height: auto; }
  .admin-top > div { font-size: 12px; }
  table { min-width: 620px; }
  .cookie-bar {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .login-page { padding: 16px; }
  .login-box { padding: 26px 18px 22px; }
}

@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .stats, .cms-grid, .role-cards { grid-template-columns: 1fr; }
  .card-title { font-size: 17px; }
  .course-title { font-size: 24px; }
  .success-banner { padding: 16px; font-size: 14px; }
}

@media (hover: none) {
  .card:hover { transform: none; }
  .panel:hover { transform: none; }
  .course-hero:hover .course-hero-media img { transform: none; }
}

.img-preview {
  aspect-ratio: 16 / 11;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f5;
  margin: 8px 0 10px;
  max-width: 420px;
}
.img-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.img-preview-logo {
  aspect-ratio: 1;
  width: 96px;
  background: #fff;
  border: 1px solid var(--line);
}
.img-preview-logo img { object-fit: contain; padding: 8px; }
.about-photo {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  margin: 8px 0 22px;
  background: #dfe6eb;
  max-width: 920px;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.brand img, .footer-brand img, .admin-top img, .login-box img {
  object-fit: contain;
  object-position: center;
}
.course-manage > img, .course-row img {
  object-fit: cover;
  object-position: center;
}
.about { padding-bottom: 0; }
.about-hero {
  padding: 12px 0 36px;
}
.about-lead {
  max-width: 62ch;
  font-size: 18px;
  line-height: 1.55;
  color: #3d4a54;
  margin: 8px 0 20px;
}
.about-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
  max-width: 720px;
}
.about-stat {
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 10px 24px rgba(28, 33, 38, .06);
}
.about-stat b {
  display: block;
  font-size: 28px;
  letter-spacing: -.04em;
  color: var(--red);
}
.about-stat span { color: var(--muted); font-size: 13px; font-weight: 700; }
.about-block { padding: 8px 0 36px; }
.about-h { font-size: clamp(22px, 3vw, 30px); letter-spacing: -.03em; margin-bottom: 18px; }
.about-split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 20px;
  align-items: start;
}
.about-copy, .about-mission, .about-axis, .about-doc, .about-person {
  background: #fff;
  border-radius: 18px;
  padding: 22px 22px 20px;
  box-shadow: 0 10px 28px rgba(28, 33, 38, .05);
}
.about-copy h2, .about-axis h3, .about-doc h3 {
  letter-spacing: -.03em;
  margin-bottom: 10px;
}
.about-copy p, .about-mission p, .about-axis p, .about-doc p {
  color: #3d4a54;
  line-height: 1.6;
}
.about-mission {
  background: linear-gradient(180deg, #8a1422, #6e101c);
  color: #fff;
  box-shadow: 0 16px 32px rgba(110, 16, 28, .22);
}
.about-mission .eyebrow { color: rgba(255,255,255,.7); margin-bottom: 8px; }
.about-mission p { color: #f7ecee; }
.about-axes, .about-docs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.about-docs { grid-template-columns: repeat(3, 1fr); }
.about-axis em {
  display: block;
  font-style: normal;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--red);
  font-weight: 800;
  margin-bottom: 8px;
}
.about-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.about-steps li {
  background: #fff;
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: 0 10px 28px rgba(28, 33, 38, .05);
}
.about-steps span {
  display: block;
  font-weight: 800;
  color: var(--red);
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.about-steps p { color: #3d4a54; font-size: 14.5px; line-height: 1.5; }
.about-note {
  margin-top: 16px;
  background: #fff;
  border-left: 3px solid var(--red);
  border-radius: 0 12px 12px 0;
  padding: 14px 16px;
  color: #3d4a54;
  line-height: 1.55;
}
.about-team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.about-person { min-height: 110px; }
.about-person b { display: block; letter-spacing: -.02em; margin-bottom: 6px; }
.about-person span { color: var(--muted); font-size: 13.5px; font-weight: 650; }
.about-more { max-width: none; }
.about-cta {
  background: linear-gradient(180deg, #3a4650, var(--anthracite));
  color: #e8eef2;
  padding: 36px 0;
  margin-top: 8px;
}
.about-cta .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.about-cta h2 { letter-spacing: -.03em; margin-bottom: 8px; }
.about-cta p { color: #c5ced4; }
.about-cta .btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }

@media (max-width: 980px) {
  .about-split, .about-docs, .about-steps, .about-team { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .about-stats, .about-split, .about-axes, .about-docs, .about-steps, .about-team { grid-template-columns: 1fr; }
  .about-lead { font-size: 16px; }
  .about-cta .btn { width: 100%; }
}
