/* Курс АІ-генерації — Apple-style design system */
:root {
  --bg: #f5f5f7;
  --bg-elev: #ffffff;
  --bg-soft: #fbfbfd;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: rgba(0, 0, 0, .08);
  --glass: rgba(255, 255, 255, .72);
  --shadow: 0 2px 6px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.07);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.06), 0 30px 80px rgba(0,0,0,.12);
  --accent: #6e3cff;
  --accent-2: #ff3d8b;
  --accent-3: #ff8a00;
  --grad: linear-gradient(120deg, #6e3cff 0%, #c13cff 35%, #ff3d8b 65%, #ff8a00 100%);
  --ok: #1fae5b;
  --warn: #ff9f0a;
  --bad: #ff3b30;
  --blue: #0071e3;
  --r: 22px;
  --r-sm: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --bg-elev: #1c1c1e; --bg-soft: #111113; --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #86868b;
    --line: rgba(255,255,255,.1); --glass: rgba(22,22,24,.72);
    --shadow: 0 2px 6px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.5); --shadow-lg: 0 30px 80px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-elev: #1c1c1e; --bg-soft: #111113; --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #86868b;
  --line: rgba(255,255,255,.1); --glass: rgba(22,22,24,.72);
  --shadow: 0 2px 6px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.5); --shadow-lg: 0 30px 80px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -.012em; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif; letter-spacing: -.028em; margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video, iframe { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: rgba(110, 60, 255, .22); }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.center { text-align: center; }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: 56px;
  background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 14px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: grid; place-items: center;
  color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 4px 14px rgba(193, 60, 255, .35);
}
.nav-links { display: flex; gap: 22px; margin-left: 18px; }
.nav-links a { color: var(--text-2); font-size: 14px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--text); color: var(--bg); font-weight: 600; font-size: 16px; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .2s, background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.lg { height: 54px; padding: 0 30px; font-size: 18px; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn.grad { background: var(--grad); background-size: 160% 100%; color: #fff; box-shadow: 0 8px 26px rgba(193, 60, 255, .35); animation: gradShift 6s ease infinite; }
.btn.grad:hover { box-shadow: 0 12px 34px rgba(255, 61, 139, .42); }
.btn.blue { background: var(--blue); color: #fff; }
.btn.ghost { background: transparent; color: var(--blue); }
.btn.soft { background: rgba(127,127,127,.12); color: var(--text); }
.btn.ok { background: var(--ok); color: #fff; }
.btn.bad { background: rgba(255,59,48,.12); color: var(--bad); }
.btn.tg { background: #2aabee; color: #fff; box-shadow: 0 8px 24px rgba(42,171,238,.35); }
@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 70px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--bg-elev); box-shadow: var(--shadow); font-size: 14px; font-weight: 600; color: var(--text-2);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(31,174,91,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(31,174,91,0); } }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.03; margin: 20px 0 18px; font-weight: 800; }
.hero p.lead { font-size: clamp(19px, 2.2vw, 24px); color: var(--text-2); margin: 0 0 30px; max-width: 560px; line-height: 1.35; }
.price-chip { display: inline-flex; align-items: baseline; gap: 8px; font-weight: 700; font-size: 20px; }
.price-chip s { color: var(--text-3); font-weight: 500; font-size: 16px; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; z-index: -1; pointer-events: none; }
.blob.b1 { width: 460px; height: 460px; background: #b28cff; top: -120px; right: -80px; animation: drift 14s ease-in-out infinite; }
.blob.b2 { width: 380px; height: 380px; background: #ff8fc0; bottom: -160px; left: -120px; animation: drift 18s ease-in-out infinite reverse; }
.blob.b3 { width: 300px; height: 300px; background: #ffc27a; top: 40%; right: 30%; opacity: .3; animation: drift 22s ease-in-out infinite; }
@keyframes drift { 50% { transform: translate(40px, 30px) scale(1.08); } }

/* hero visual: phone + floating cards */
.stage { position: relative; height: 520px; display: grid; place-items: center; }
@media (max-width: 880px) { .stage { height: 460px; } }
.phone {
  width: 250px; height: 500px; border-radius: 44px; background: #0b0b0f; padding: 12px; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a2a30;
  position: relative; animation: float 7s ease-in-out infinite;
}
.phone-screen { width: 100%; height: 100%; border-radius: 33px; overflow: hidden; position: relative; background: linear-gradient(160deg, #3b1d8f, #c2185b 60%, #ff8a00); }
.phone-notch { position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 90px; height: 26px; background: #000; border-radius: 20px; z-index: 3; }
.phone-scene { position: absolute; inset: 0; display: grid; place-items: center; font-size: 110px; animation: bob 3s ease-in-out infinite; }
.phone-ui { position: absolute; left: 16px; right: 16px; top: 52px; color: #fff; z-index: 2; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.phone-ui .t { font-weight: 700; font-size: 15px; }
.phone-ui .s { font-size: 12px; opacity: .8; }
.phone-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.3); margin-top: 10px; overflow: hidden; }
.phone-bar i { display: block; height: 100%; width: 40%; background: #fff; animation: play 6s linear infinite; }
@keyframes play { from { width: 0; } to { width: 100%; } }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1deg); } }
@keyframes bob { 50% { transform: translateY(-10px) scale(1.04); } }
.fcard {
  position: absolute; background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow); font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.fcard .big { font-size: 22px; }
.fcard small { display: block; font-weight: 500; color: var(--text-2); font-size: 12px; }
.fcard.c1 { top: 60px; left: 0; animation: float 6s ease-in-out infinite .5s; }
.fcard.c2 { top: 200px; right: -10px; animation: float 8s ease-in-out infinite 1s; }
.fcard.c3 { bottom: 60px; left: 10px; animation: float 7s ease-in-out infinite 1.6s; }
@media (max-width: 480px) { .fcard.c1 { left: -6px; } .fcard.c2 { right: -6px; } }

/* ---------- sections ---------- */
section.block { padding: 80px 0; }
.sec-title { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; line-height: 1.06; text-align: center; margin-bottom: 14px; }
.sec-sub { text-align: center; color: var(--text-2); font-size: 20px; max-width: 640px; margin: 0 auto 48px; }

.card {
  background: var(--bg-elev); border-radius: var(--r); box-shadow: var(--shadow); padding: 26px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .g3, .g2 { grid-template-columns: 1fr; } }

.step-n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; margin-bottom: 16px; background: rgba(110,60,255,.1); }
.card h3 { font-size: 22px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--text-2); }

/* host */
.host { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
@media (max-width: 880px) { .host { grid-template-columns: 1fr; text-align: center; } .host .avatar-xl { margin: 0 auto; } }
.avatar-xl { width: 260px; height: 260px; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.avatar-xl img { width: 100%; height: 100%; object-fit: cover; }
.avatar-xl::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 6px rgba(255,255,255,.4); }
.stats { display: flex; gap: 28px; margin-top: 24px; flex-wrap: wrap; }
@media (max-width: 880px) { .stats { justify-content: center; } }
.stat b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.stat span { color: var(--text-2); font-size: 14px; }

/* program cards */
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.day {
  position: relative; border-radius: var(--r); padding: 22px; min-height: 190px; color: #fff; overflow: hidden; cursor: default;
  box-shadow: var(--shadow); transition: transform .45s var(--ease), box-shadow .45s var(--ease); isolation: isolate;
  display: flex; flex-direction: column;
}
.day::before { content: ""; position: absolute; inset: 0; background: var(--g); z-index: -2; }
.day::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.25), transparent 60%); }
.day:hover { transform: translateY(-5px) scale(1.01); box-shadow: var(--shadow-lg); }
.day .num { font-size: 13px; font-weight: 700; opacity: .85; text-transform: uppercase; letter-spacing: .06em; }
.day .emo { font-size: 44px; margin: 10px 0 auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.2)); transition: transform .5s var(--ease); }
.day:hover .emo { transform: scale(1.15) rotate(-6deg); }
.day h4 { font-size: 20px; line-height: 1.15; margin-top: 14px; }
.day p { margin: 6px 0 0; font-size: 14px; opacity: .88; line-height: 1.35; }
.c-violet { --g: linear-gradient(140deg, #6e3cff, #a855f7); }
.c-pink { --g: linear-gradient(140deg, #ff3d8b, #ff7eb3); }
.c-orange { --g: linear-gradient(140deg, #ff6a00, #ffb347); }
.c-blue { --g: linear-gradient(140deg, #0071e3, #40c4ff); }
.c-green { --g: linear-gradient(140deg, #0f9d58, #5be08f); }
.c-red { --g: linear-gradient(140deg, #ff2d55, #ff7a59); }
.c-gold { --g: linear-gradient(140deg, #b8860b, #ffd36b 55%, #ff9f0a); }
.c-teal { --g: linear-gradient(140deg, #009688, #4dd0e1); }
.c-dark { --g: linear-gradient(140deg, #1d1d1f, #48484a); }

/* cabinet day cards */
.day.locked { filter: saturate(.25) brightness(.95); }
.day.locked .emo { opacity: .6; }
.day.clickable { cursor: pointer; }
.day .badge { position: absolute; top: 16px; right: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; background: rgba(255,255,255,.24); color: #fff; backdrop-filter: blur(10px);
}
.chip.solid { background: rgba(127,127,127,.12); color: var(--text); backdrop-filter: none; }
.chip.ok { background: rgba(31,174,91,.14); color: var(--ok); }
.chip.warn { background: rgba(255,159,10,.16); color: #c77700; }
.chip.bad { background: rgba(255,59,48,.12); color: var(--bad); }
.chip.info { background: rgba(0,113,227,.12); color: var(--blue); }
.day .chip.ok, .day .chip.warn, .day .chip.bad, .day .chip.info { background: rgba(255,255,255,.92); }
.countdown { font-variant-numeric: tabular-nums; }

/* cabinet header */
.hello { display: flex; align-items: center; gap: 22px; padding: 40px 0 28px; flex-wrap: wrap; }
.hello h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; }
.ring { width: 96px; height: 96px; position: relative; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .lbl { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.ring .lbl small { display: block; font-size: 11px; color: var(--text-2); font-weight: 600; margin-top: -4px; text-align: center; }
.next-card { display: flex; align-items: center; gap: 16px; padding: 18px 22px; margin-bottom: 26px; }
.next-card .ic { font-size: 30px; }

/* avatars */
.ava {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 24px;
  background: var(--g, var(--grad)); box-shadow: 0 4px 12px rgba(0,0,0,.12), inset 0 0 0 2px rgba(255,255,255,.35); overflow: hidden; line-height: 1;
}
.ava img { width: 100%; height: 100%; object-fit: cover; }
.ava.lg { width: 84px; height: 84px; font-size: 46px; }
.ava.xl { width: 120px; height: 120px; font-size: 66px; }
.ava-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 18px 0; }
@media (max-width: 480px) { .ava-grid { grid-template-columns: repeat(4, 1fr); } }
.ava-pick { border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; border-radius: 50%; transition: transform .3s var(--ease); }
.ava-pick .ava { width: 100%; height: auto; aspect-ratio: 1; font-size: clamp(26px, 6vw, 36px); }
.ava-pick:hover { transform: scale(1.08); }
.ava-pick.on .ava { box-shadow: 0 0 0 3px var(--bg-elev), 0 0 0 6px var(--accent); }

/* forms */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.input, textarea.input, select.input {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-soft); outline: none; transition: border-color .2s, box-shadow .2s; font-size: 16px;
}
textarea.input { min-height: 120px; resize: vertical; line-height: 1.45; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(110,60,255,.15); }
.drop {
  border: 2px dashed var(--line); border-radius: 16px; padding: 22px; text-align: center; color: var(--text-2); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(110,60,255,.05); }
.filelist { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.filelist li { display: flex; gap: 10px; align-items: center; font-size: 14px; padding: 8px 12px; background: var(--bg-soft); border-radius: 10px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 46px; height: 28px; border-radius: 999px; background: rgba(127,127,127,.3); position: relative; transition: background .25s; cursor: pointer; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { transform: translateX(18px); }

/* lesson */
.lesson-hero { color: #fff; border-radius: 0 0 34px 34px; padding: 34px 0 40px; position: relative; overflow: hidden; isolation: isolate; }
.lesson-hero::before { content: ""; position: absolute; inset: 0; background: var(--g); z-index: -2; }
.lesson-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 120% at 100% 0%, rgba(255,255,255,.28), transparent 60%); }
.lesson-hero .emo { font-size: 64px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.25)); }
.lesson-hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; margin: 10px 0 6px; line-height: 1.05; }
.lesson-hero p { margin: 0; font-size: 19px; opacity: .9; }
.back { display: inline-flex; align-items: center; gap: 6px; color: #fff; opacity: .9; font-weight: 600; margin-bottom: 18px; }
.back:hover { opacity: 1; text-decoration: none; }
.video { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; aspect-ratio: 16/9; margin: -24px 0 30px; position: relative; }
.video iframe, .video video { width: 100%; height: 100%; border: 0; }
.prose { font-size: 18px; line-height: 1.6; }
.prose h2 { font-size: 30px; margin: 30px 0 12px; }
.prose h3 { font-size: 22px; margin: 26px 0 10px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose blockquote { margin: 18px 0; padding: 14px 18px; border-radius: 14px; background: rgba(255,159,10,.12); border-left: 4px solid var(--warn); }
.prose code { background: rgba(127,127,127,.14); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prompt {
  position: relative; margin: 16px 0; border-radius: 16px; background: #15151a; color: #e9e6ff; padding: 18px 18px 16px; box-shadow: var(--shadow);
  font: 15px/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word;
}
.prompt::before { content: "✨ Промт"; display: block; font: 600 12px/1 -apple-system, system-ui, sans-serif; color: #b9a6ff; margin-bottom: 10px; letter-spacing: .04em; text-transform: uppercase; }
.prompt .copy { position: absolute; top: 10px; right: 10px; height: 30px; padding: 0 12px; border-radius: 999px; border: 0; background: rgba(255,255,255,.12); color: #fff; font: 600 13px -apple-system, system-ui, sans-serif; cursor: pointer; }
.prompt .copy:hover { background: rgba(255,255,255,.22); }
.mat { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--text); transition: transform .3s var(--ease); }
.mat:hover { text-decoration: none; transform: translateX(4px); }
.mat .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(110,60,255,.12); font-size: 20px; }
.hw { border: 1px solid var(--line); }
.sub { padding: 16px; border-radius: 16px; background: var(--bg-soft); margin-top: 12px; }
.sub .fb { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg-elev); border-left: 4px solid var(--accent); }

/* modal */
.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; padding: 16px; animation: fade .3s var(--ease); }
.modal { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; background: var(--bg-elev); border-radius: 28px; padding: 30px; box-shadow: var(--shadow-lg); animation: pop .45s var(--ease); }
.modal h2 { font-size: 28px; margin-bottom: 6px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.96); } }

/* pay */
.pay { max-width: 520px; margin: 40px auto; text-align: center; padding: 38px 30px; position: relative; overflow: hidden; }
.pay .price { font-size: 64px; font-weight: 800; letter-spacing: -.04em; margin: 8px 0 0; }
.pay .price small { font-size: 26px; }
.pay ul { text-align: left; list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.pay li { display: flex; gap: 12px; align-items: flex-start; }
.pay li b { flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(31,174,91,.15); color: var(--ok); display: grid; place-items: center; font-size: 14px; }
.mono-mark { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--text-3); margin-top: 14px; }

/* certificate */
.cert-wrap { padding: 30px 0 60px; }
.cert {
  position: relative; aspect-ratio: 1.414; max-width: 980px; margin: 0 auto; background: #fffdf8; color: #1d1d1f; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6% 8%;
}
.cert::before { content: ""; position: absolute; inset: 14px; border-radius: 12px; border: 2px solid transparent; background: var(--grad) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.cert .seal { width: 13%; aspect-ratio: 1; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: clamp(22px, 4vw, 44px); box-shadow: 0 10px 30px rgba(193,60,255,.35); margin-bottom: 3%; }
.cert .kicker { font-size: clamp(10px, 1.4vw, 14px); letter-spacing: .3em; text-transform: uppercase; color: #6e6e73; font-weight: 700; }
.cert .who { font-size: clamp(26px, 5.4vw, 60px); font-weight: 800; letter-spacing: -.03em; margin: 2% 0; line-height: 1.05; }
.cert .what { font-size: clamp(12px, 1.9vw, 20px); color: #48484a; max-width: 80%; }
.cert .foot { display: flex; justify-content: space-between; width: 84%; margin-top: 5%; font-size: clamp(9px, 1.3vw, 14px); color: #6e6e73; text-align: left; }
.cert .foot b { display: block; color: #1d1d1f; font-size: 1.15em; }
.cert .sig { font-family: "Segoe Script", "Snell Roundhand", cursive; font-size: 1.8em; color: #1d1d1f; }
@media print {
  @page { size: A4 landscape; margin: 0; }
  body { background: #fff; }
  .nav, .no-print, footer { display: none !important; }
  .cert-wrap { padding: 0; }
  .cert { box-shadow: none; border-radius: 0; max-width: none; width: 100vw; height: 100vh; aspect-ratio: auto; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .wrap { padding: 0; max-width: none; }
}

/* faq */
details.faq { background: var(--bg-elev); border-radius: 18px; padding: 0 22px; box-shadow: var(--shadow); margin-bottom: 12px; }
details.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--text-3); transition: transform .3s var(--ease); }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin: 0 0 20px; color: var(--text-2); }

footer { padding: 40px 0 60px; color: var(--text-3); font-size: 13px; border-top: 1px solid var(--line); margin-top: 40px; }
footer .socials { display: flex; gap: 10px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 0; z-index: 200; background: rgba(29,29,31,.92); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; box-shadow: var(--shadow-lg); animation: toastIn .4s var(--ease); max-width: calc(100vw - 32px); text-align: center; }
.toast.err { background: rgba(255,59,48,.95); }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px); } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.view { animation: viewIn .55s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(127,127,127,.25); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 80px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 60px 20px; color: var(--text-2); }
.empty .big { font-size: 56px; margin-bottom: 10px; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; }

/* ---------- admin ---------- */
.adm { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 56px); }
@media (max-width: 860px) { .adm { grid-template-columns: 1fr; } }
.side { border-right: 1px solid var(--line); padding: 20px 12px; position: sticky; top: 56px; height: calc(100vh - 56px); background: var(--bg-soft); }
@media (max-width: 860px) { .side { position: static; height: auto; display: flex; gap: 6px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; } }
.side a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; color: var(--text); font-weight: 500; font-size: 15px; white-space: nowrap; }
.side a:hover { background: rgba(127,127,127,.1); text-decoration: none; }
.side a.on { background: var(--bg-elev); box-shadow: var(--shadow); font-weight: 650; }
.side a .cnt { margin-left: auto; background: var(--bad); color: #fff; border-radius: 999px; font-size: 12px; padding: 1px 8px; font-weight: 700; }
.main { padding: 28px clamp(16px, 3vw, 36px) 80px; min-width: 0; }
.main h1 { font-size: 34px; font-weight: 800; margin-bottom: 20px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 26px; }
.kpi { padding: 20px; }
.kpi b { display: block; font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.kpi span { color: var(--text-2); font-size: 14px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.t th { text-align: left; color: var(--text-2); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; padding: 10px; border-bottom: 1px solid var(--line); }
table.t td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
.tbl-wrap { overflow-x: auto; }
.lesson-row { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 16px; cursor: pointer; transition: background .2s; }
.lesson-row:hover { background: rgba(127,127,127,.07); }
.lesson-row .mini { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: var(--g); flex: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.step-card { border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-bottom: 14px; background: var(--bg-elev); }
.step-card .head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.tg-bubble { background: #effdde; color: #000; border-radius: 16px 16px 16px 4px; padding: 10px 14px; white-space: pre-wrap; font-size: 15px; max-width: 420px; box-shadow: 0 1px 1px rgba(0,0,0,.1); }
:root[data-theme="dark"] .tg-bubble { background: #2b5278; color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tg-bubble { background: #2b5278; color: #fff; } }
.tg-btn { display: block; max-width: 420px; text-align: center; margin-top: 4px; padding: 8px; border-radius: 10px; background: rgba(127,127,127,.18); font-size: 14px; font-weight: 600; }
.seg { display: inline-flex; background: rgba(127,127,127,.12); border-radius: 12px; padding: 3px; gap: 2px; margin-bottom: 18px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text-2); }
.seg button.on { background: var(--bg-elev); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.login-box { max-width: 400px; margin: 10vh auto; }
