:root {
  --bg: #030918;
  --bg-2: #071328;
  --ink: #eef7ff;
  --muted: #93a9c7;
  --cyan: #00d2ff;
  --blue: #0066ff;
  --blue-2: #3b82ff;
  --line: rgba(0, 210, 255, 0.22);
  --glass: rgba(8, 22, 48, 0.62);
  --glass-2: rgba(12, 28, 58, 0.78);
  --danger: #ff5d73;
  --ok: #2ee6a6;
  --warn: #ffc857;
  --shadow: 0 24px 60px rgba(0, 8, 30, 0.45);
  --radius: 22px;
  --header: 84px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Sora", "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; }
[x-cloak] { display: none !important; }

.bg-space {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(0, 102, 255, 0.28), transparent 60%),
    radial-gradient(700px 480px at -10% 20%, rgba(0, 210, 255, 0.16), transparent 55%),
    radial-gradient(800px 500px at 70% 110%, rgba(0, 80, 180, 0.25), transparent 50%),
    linear-gradient(180deg, #04101f 0%, #030918 40%, #020712 100%);
}
.bg-space::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 180, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 180, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 75%);
}
#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.16), transparent 68%);
  mix-blend-mode: screen;
  transition: opacity .3s;
}

.home-flow { display: flex; flex-direction: column; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.wrap-wide { width: min(1240px, calc(100% - 28px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 0 0;
}
.nav-shell {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 16px;
  border-radius: 999px;
  background: rgba(6, 16, 36, 0.55);
  border: 1px solid rgba(140, 200, 255, 0.16);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}
.site-header.is-scrolled .nav-shell {
  background: rgba(4, 12, 28, 0.82);
  border-color: rgba(0, 210, 255, 0.28);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: max-content; }
.brand img { width: 42px; height: 42px; filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.55)); }
.brand-name { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; font-size: 16px; }
.brand-name span { color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #d5e6f8;
  font-size: 14px;
  font-weight: 600;
}
.nav-links a:hover, .nav-links a.active { color: white; background: rgba(0, 210, 255, 0.1); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(0, 210, 255, 0.06);
}
.burger span { display: block; width: 18px; height: 2px; margin: 4px auto; background: white; border-radius: 2px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-neon {
  color: white;
  background: linear-gradient(180deg, #1a8bff 0%, #0057ea 100%);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-neon:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 210, 255, 0.35), 0 0 0 4px rgba(0, 210, 255, 0.12); }
.btn-ghost {
  color: white;
  background: rgba(8, 20, 40, 0.35);
  border: 1px solid rgba(180, 220, 255, 0.24);
}
.btn-ghost:hover { border-color: var(--cyan); background: rgba(0, 210, 255, 0.08); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }

.hero { position: relative; padding: 54px 0 20px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 30px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--cyan);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(0, 210, 255, 0.06);
}
.kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.03em; margin: 0; }
.hero h1 { font-size: clamp(38px, 5vw, 64px); font-weight: 800; margin: 16px 0 14px; }
.hero h1 em { font-style: normal; color: transparent; background: linear-gradient(90deg, #fff, #8ae9ff 40%, #6aa6ff); -webkit-background-clip: text; background-clip: text; }
.lede { color: var(--muted); font-size: 17px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

.hero-visual { position: relative; min-height: 460px; }
.holo {
  position: absolute; inset: 30px 10px 40px;
  display: grid; place-items: center;
}
.holo-ring {
  width: min(380px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 210, 255, 0.2), transparent 42%),
    radial-gradient(circle at 50% 60%, rgba(0, 102, 255, 0.25), transparent 55%);
  filter: drop-shadow(0 30px 40px rgba(0, 140, 255, 0.25));
}
.platform {
  position: absolute; bottom: 18%; width: 70%; height: 28px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 210, 255, 0.7), transparent 70%);
  filter: blur(2px);
}
.brain {
  width: 210px; position: relative; z-index: 2;
  filter: drop-shadow(0 0 18px rgba(0, 210, 255, 0.8));
  animation: floaty 5s ease-in-out infinite;
}
.float-card {
  position: absolute; z-index: 3;
  width: 150px; padding: 12px;
  border-radius: 16px;
  background: rgba(6, 18, 40, 0.72);
  border: 1px solid rgba(0, 210, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), inset 0 0 20px rgba(0, 210, 255, 0.05);
  backdrop-filter: blur(10px);
  animation: floaty 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 12px; margin-bottom: 6px; }
.float-card small { color: var(--muted); font-size: 11px; }
.fc-1 { top: 18%; left: 0; animation-delay: -1s; }
.fc-2 { top: 8%; right: 0; width: 130px; animation-delay: -2.4s; }
.fc-3 { bottom: 18%; right: 4%; animation-delay: -3s; }
.code-line { height: 6px; border-radius: 6px; margin: 5px 0; background: linear-gradient(90deg, #00d2ff, transparent); opacity: .8; }
.code-line:nth-child(2) { width: 80%; } .code-line:nth-child(3) { width: 62%; background: linear-gradient(90deg, #6aa6ff, transparent); }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 48px; }
.bars span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #00d2ff, #0066ff); }
.bars span:nth-child(1){height:40%} .bars span:nth-child(2){height:70%} .bars span:nth-child(3){height:50%} .bars span:nth-child(4){height:90%}
.pie {
  width: 54px; height: 54px; border-radius: 50%; margin: 4px auto 0;
  background: conic-gradient(#00d2ff 0 42%, #0066ff 42% 75%, #7c5cff 75% 100%);
  box-shadow: 0 0 16px rgba(0, 210, 255, .5);
}

.stats-wrap { padding: 10px 0 20px; }
.stats-bar {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(7, 18, 40, 0.72);
  border: 1px solid rgba(150, 190, 230, 0.16);
  border-radius: 22px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.stat { padding: 22px 10px; text-align: center; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px;
  background: linear-gradient(transparent, rgba(180, 210, 255, .35), transparent);
}
.stat b { display: block; font-family: var(--display); font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.04em; }
.stat span { color: var(--muted); font-size: 14px; }

.section { padding: 64px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(28px, 3vw, 40px); }
.section-head p { color: var(--muted); margin: 8px 0 0; max-width: 520px; }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(16, 36, 70, 0.72), rgba(7, 18, 40, 0.78));
  border: 1px solid rgba(120, 190, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.tilt-card { transform-style: preserve-3d; transition: border-color .25s, box-shadow .25s, transform .08s linear; }
.tilt-card .card-glow {
  position: absolute; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 210, 255, .35), transparent 70%);
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%);
}
.tilt-card:hover {
  border-color: rgba(0, 210, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(0, 210, 255, .25), 0 22px 50px rgba(0, 90, 200, .28), inset 0 0 30px rgba(0, 210, 255, .06);
}
.course-card { padding: 22px 20px 18px; min-height: 250px; display: flex; flex-direction: column; }
.icon-badge {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(0, 210, 255, .35), rgba(0, 102, 255, .12));
  border: 1px solid rgba(0, 210, 255, .35);
  color: #d9f6ff;
  box-shadow: 0 0 18px rgba(0, 210, 255, .2);
  margin-bottom: 16px;
}
.icon-badge svg { width: 26px; height: 26px; }
.course-card h3 { font-size: 20px; margin-bottom: 8px; }
.course-card p { color: var(--muted); font-size: 14px; margin: 0 0 16px; flex: 1; }
.card-link { color: var(--cyan); font-weight: 700; font-size: 14px; }

.marquee-block { padding-top: 10px; }
.split-head { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 14px; }
.split-head h2 { font-size: 28px; }
.arrows { display: flex; gap: 8px; }
.arrows button, .icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(0, 20, 40, .45); color: white;
}
.marquee {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(130, 180, 230, .14);
  background: rgba(5, 16, 36, .45);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 14px; width: max-content; padding: 16px; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-pill {
  min-width: 170px; height: 74px; padding: 0 18px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 16px;
  background: rgba(10, 24, 48, .8);
  border: 1px solid rgba(0, 210, 255, .18);
  font-weight: 800; letter-spacing: -0.03em;
  box-shadow: inset 0 0 20px rgba(0, 210, 255, .04);
}
.logo-pill img { height: 36px; width: auto; max-width: 120px; object-fit: contain; }
.logo-pill span { font-size: 15px; }

.stories { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: center; }
.story-card { padding: 22px; min-height: 240px; display: grid; grid-template-columns: 92px 1fr; gap: 16px; }
.story-card .avatar, .avatar {
  width: 92px; height: 92px; border-radius: 20px; object-fit: cover;
  border: 1px solid rgba(0, 210, 255, .35);
  box-shadow: 0 0 20px rgba(0, 210, 255, .2);
}
.avatar-fallback {
  display: grid; place-items: center;
  background: linear-gradient(160deg, #0b3b66, #06203f);
  font-family: var(--display); font-weight: 800; font-size: 28px; color: #bff4ff;
}
.story-card h3 { font-size: 20px; }
.chip { display: inline-flex; margin-top: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 210, 255, .1); color: #9be8ff; font-size: 12px; font-weight: 700; }
.story-card q { display: block; margin-top: 12px; color: #d5e4f5; font-style: normal; }
.company { margin-top: 10px; color: var(--cyan); font-weight: 800; }

.home-panels { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.panel { padding: 22px; }
.panel h3 { font-size: 22px; margin-bottom: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filters button, .chip-btn {
  border: 1px solid rgba(140, 190, 255, .2);
  background: rgba(4, 16, 36, .45);
  color: #d7e7f8;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 13px;
}
.filters button.active, .chip-btn.active { background: linear-gradient(180deg, #1484ff, #0054e6); border-color: transparent; box-shadow: 0 6px 18px rgba(0, 102, 255, .35); }
.mini-courses { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-course {
  text-align: left; padding: 12px; border-radius: 16px;
  border: 1px solid rgba(130, 180, 230, .16);
  background: rgba(3, 12, 28, .35);
}
.mini-course.active { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(0, 210, 255, .3); }
.mini-course b { display: block; }
.mini-course span { color: var(--muted); font-size: 12px; }
.media-frame {
  margin-top: 14px; border-radius: 16px; min-height: 150px;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 210, 255, .2), transparent 55%),
    linear-gradient(160deg, #0a2344, #061226);
  border: 1px solid rgba(0, 210, 255, .2);
}
.play {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 0 24px rgba(0, 210, 255, .35);
}
.acc { border-top: 1px solid rgba(140, 190, 255, .12); }
.acc button {
  width: 100%; text-align: left; background: transparent; border: 0;
  padding: 12px 0; display: flex; justify-content: space-between; gap: 12px; font-weight: 700;
}
.acc p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.plus { color: var(--cyan); }

.map-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; }
.map-card { padding: 12px; min-height: 380px; }
.leaflet-map {
  width: 100%;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 210, 255, .2);
  background: #071428;
  z-index: 1;
}
.map-frame { width: 100%; height: 240px; border: 0; border-radius: 16px; }
.la-pin span {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #00d2ff;
  border: 2px solid #041226;
  box-shadow: 0 0 0 6px rgba(0, 210, 255, .28), 0 0 16px #00d2ff;
}
.leaflet-container { background: #071428; font: inherit; }
.leaflet-popup-content-wrapper {
  background: rgba(7, 18, 40, .96);
  color: #e8f4ff;
  border-radius: 14px;
  border: 1px solid rgba(0, 210, 255, .35);
}
.leaflet-popup-tip { background: rgba(7, 18, 40, .96); }
.branch-list { display: grid; gap: 12px; }
.branch-card { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px; text-align: left; width: 100%; color: inherit; }
.branch-photo {
  border-radius: 14px; min-height: 84px;
  background:
    linear-gradient(160deg, rgba(0, 210, 255, .25), rgba(0, 40, 80, .2)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='100'%3E%3Crect fill='%23071a33' width='160' height='100'/%3E%3Cpath d='M0 70 L30 48 L55 64 L90 36 L160 78 V100 H0Z' fill='%230b3058'/%3E%3Crect x='20' y='40' width='36' height='30' fill='%23124a7a'/%3E%3C/svg%3E") center/cover;
}
.branch-photo img { width: 100%; height: 84px; object-fit: cover; border-radius: 14px; }
.branch-card h3 { font-size: 18px; }
.branch-card p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.partner-wall { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: stretch; }
.logo-row { display: flex; gap: 12px; flex-wrap: wrap; }
.result-box { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.result-box strong { font-family: var(--display); font-size: 56px; letter-spacing: -0.05em; color: var(--cyan); }
.result-box + .result-box, .result-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: #c9daee; font-weight: 700; }
.field input, .field select, .field textarea, .input, .select, .textarea {
  width: 100%;
  background: rgba(3, 12, 28, .65);
  border: 1px solid rgba(140, 190, 255, .18);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
}
.field textarea, .textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus, .select:focus, .textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, .15);
}
.form-note { min-height: 22px; font-size: 14px; margin-top: 8px; }
.form-note.ok { color: var(--ok); }
.form-note.err { color: var(--danger); }
.hp { position: absolute; left: -9999px; opacity: 0; }

.page-hero { padding: 48px 0 10px; }
.page-hero h1 { font-size: clamp(34px, 4vw, 52px); }
.page-hero p { color: var(--muted); max-width: 640px; }

.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.catalog-card { padding: 18px; display: flex; flex-direction: column; min-height: 280px; }
.price { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 12px; }
.price b { font-size: 20px; }

.course-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; align-items: start; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.meta-pill { padding: 8px 12px; border-radius: 12px; background: rgba(0, 210, 255, .08); border: 1px solid var(--line); font-size: 13px; }
.skill-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.skill { padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.prose { color: #d5e4f5; }
.prose p { margin: 0 0 12px; }
.teacher-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.06); }
.teacher-row .avatar { width: 52px; height: 52px; border-radius: 14px; font-size: 16px; }

.people-grid, .branch-grid, .grad-grid, .partner-grid { display: grid; gap: 16px; }
.people-grid { grid-template-columns: repeat(3, 1fr); }
.person, .grad, .partner-card, .info-card { padding: 18px; }
.person-top { display: flex; gap: 14px; align-items: center; }
.person .avatar { width: 74px; height: 74px; border-radius: 18px; font-size: 22px; }
.socials { display: flex; gap: 8px; margin-top: 12px; }
.socials a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-size: 12px; font-weight: 800; color: var(--cyan); }
.grad-grid { grid-template-columns: repeat(2, 1fr); }
.grad { display: grid; grid-template-columns: 86px 1fr; gap: 14px; }
.partner-grid { grid-template-columns: repeat(4, 1fr); }
.partner-card { min-height: 140px; display: grid; place-items: center; text-align: center; }
.partner-card strong { font-size: 18px; }

.modal-back {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(1, 6, 16, .72);
  display: grid; place-items: center;
  padding: 20px;
}
.modal {
  width: min(560px, 100%);
  padding: 22px;
  border-radius: 24px;
  background: rgba(7, 18, 40, .92);
  border: 1px solid rgba(0, 210, 255, .3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.modal h3 { font-size: 26px; margin-bottom: 8px; }
.modal p { color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.site-footer { margin-top: 40px; border-top: 1px solid rgba(120, 180, 255, .12); background: rgba(2, 8, 20, .7); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 24px; padding: 42px 0 24px; }
.site-footer h4 { margin-bottom: 12px; font-size: 16px; }
.site-footer a, .site-footer p { color: var(--muted); display: block; margin: 6px 0; font-size: 14px; }
.site-footer a:hover { color: white; }
.copy { border-top: 1px solid rgba(255,255,255,.06); padding: 14px 0 22px; color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 10px; }

.ai-dock { position: fixed; right: 18px; bottom: 18px; z-index: 50; }
.ai-panel {
  width: min(340px, calc(100vw - 32px));
  margin-bottom: 10px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(6, 16, 36, .92);
  border: 1px solid rgba(0, 210, 255, .3);
  box-shadow: var(--shadow);
}
.ai-log { max-height: 240px; overflow: auto; display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.bubble { padding: 8px 10px; border-radius: 12px; font-size: 13px; }
.bubble.bot { background: rgba(0, 210, 255, .1); }
.bubble.me { background: rgba(0, 102, 255, .25); align-self: flex-end; }
.ai-form { display: flex; gap: 6px; }
.ai-form input { flex: 1; }
.ai-launch {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
  border: 0; border-radius: 999px; padding: 10px 14px;
  background: linear-gradient(180deg, #1a8bff, #0057ea);
  box-shadow: 0 10px 24px rgba(0, 102, 255, .4);
  font-weight: 800;
}

.flash { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; }
.flash-ok { background: rgba(46, 230, 166, .12); color: #b9ffe4; border: 1px solid rgba(46, 230, 166, .3); }
.flash-error { background: rgba(255, 93, 115, .12); color: #ffd0d6; border: 1px solid rgba(255, 93, 115, .35); }
.empty { padding: 28px; text-align: center; color: var(--muted); }

.reveal { animation: rise .7s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 50% { transform: translateY(-10px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 1020px) {
  .hero-grid, .stories, .home-panels, .map-layout, .partner-wall, .contact-grid, .course-layout, .footer-grid { grid-template-columns: 1fr; }
  .card-grid, .catalog, .people-grid { grid-template-columns: 1fr 1fr; }
  .partner-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { min-height: 380px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; left: 16px; right: 16px; top: 78px;
    background: rgba(5, 14, 32, .96); border: 1px solid var(--line); border-radius: 20px; padding: 10px;
    backdrop-filter: blur(16px);
  }
  .burger { display: inline-block; }
  .nav-shell { border-radius: 22px; }
  .hide-sm { display: none; }
}
@media (max-width: 680px) {
  .card-grid, .catalog, .people-grid, .grad-grid, .partner-grid, .stats-bar, .form-grid, .story-card, .branch-card, .mini-courses { grid-template-columns: 1fr; }
  .stat + .stat::before { display: none; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: 34px; }
  .copy { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
