    :root {
      --dark: #111a2b;
      --green: #39d6a5;
      --ink: #1c2639;
      --muted: #657187;
      --paper: #f6f8fb;
      --line: #e4e9f0;
      font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    }

    * { box-sizing: border-box; }
    body { margin: 0; color: var(--ink); background: var(--paper); }
    button, input, select, textarea { font: inherit; }
    .wrap { width: min(1120px, calc(100% - 32px)); margin: auto; }
    header { position: sticky; top: 0; z-index: 3; color: white; background: #111a2bf2; backdrop-filter: blur(12px); }
    .nav { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
    .brand { display: flex; align-items: center; gap: 10px; font-weight: 850; }
    .brand-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--dark); background: var(--green); }
    .nav-actions { display: flex; align-items: center; gap: 10px; }
    .button { border: 0; border-radius: 10px; padding: 11px 15px; font-weight: 750; cursor: pointer; }
    .primary { color: #10251e; background: var(--green); }
    .secondary { color: white; background: #ffffff19; border: 1px solid #ffffff3b; }
    .dark-button { color: white; background: var(--dark); }
    .small { padding: 8px 11px; font-size: .88rem; }
    .hero { overflow: hidden; color: white; background: radial-gradient(ellipse at 75% 45%, #24604f, transparent 38%), var(--dark); }
    .hero-grid { min-height: 500px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 35px; padding-top: 40px; padding-bottom: 40px; }
    .eyebrow { color: #9af0d2; font-size: .8rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
    h1 { margin: 12px 0; font-size: clamp(2.6rem, 5vw, 4.5rem); line-height: 1.04; letter-spacing: -.05em; }
    h1 span { color: var(--green); }
    .hero p { max-width: 560px; color: #d3dce8; line-height: 1.7; }
    .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
    .stage { position: relative; display: grid; place-items: center; min-height: 390px; perspective: 900px; }
    .stage img { width: min(80%, 420px); height: 320px; object-fit: cover; border: 1px solid #ffffff55; border-radius: 22px; box-shadow: 0 35px 70px #0008; transform: rotateY(-12deg) rotateX(5deg); animation: float 6s ease-in-out infinite; }
    .float-card { position: absolute; right: 0; bottom: 28px; max-width: 225px; padding: 16px; border: 1px solid #ffffff39; border-radius: 14px; background: #17243be8; box-shadow: 0 20px 50px #0005; animation: float 5s ease-in-out infinite reverse; }
    @keyframes float { 50% { translate: 0 -9px; } }
    section { padding: 55px 0; }
    h2 { margin: 0 0 8px; color: var(--dark); font-size: clamp(1.7rem, 3vw, 2.4rem); }
    .muted { color: var(--muted); line-height: 1.6; }
    .filters { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; margin: 22px 0; }
    input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); }
    textarea { min-height: 100px; resize: vertical; }
    .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
    .course { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 8px 22px #17243b0a; }
    .course img { display: block; width: 100%; height: 150px; object-fit: cover; background: #e8edf0; }
    .course-body { padding: 16px; }
    .tags { display: flex; flex-wrap: wrap; gap: 7px; color: #176f55; font-size: .79rem; font-weight: 800; }
    .course h3 { margin: 10px 0 5px; }
    .course p { color: var(--muted); font-size: .92rem; line-height: 1.5; }
    .course-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .price { color: var(--dark); font-size: 1.05rem; font-weight: 850; }
    .admin { display: none; background: #eef4f1; }
    .admin.visible { display: block; }
    .panel { margin: 18px 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: white; }
    .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    label { display: grid; gap: 6px; color: #344055; font-size: .9rem; font-weight: 700; }
    .full { grid-column: 1 / -1; }
    .form-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
    .admin-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .admin-item:last-child { border-bottom: 0; }
    .error { color: #a33232; }
    .success { color: #147253; }
    dialog { width: min(680px, calc(100% - 25px)); max-height: 85vh; overflow: auto; border: 0; border-radius: 16px; padding: 24px; box-shadow: 0 25px 80px #0005; }
    dialog::backdrop { background: #101829c9; }
    .detail-block { margin-top: 18px; }
    .detail-block h3 { margin-bottom: 5px; color: #176f55; }
    .detail-text { white-space: pre-wrap; line-height: 1.65; }
    .assistant-panel { margin-top: 24px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #f7fbf9; }
    .assistant-panel h3 { margin: 0 0 6px; color: #176f55; }
    .assistant-log { display: grid; gap: 10px; max-height: 300px; overflow: auto; margin: 14px 0; }
    .assistant-message { padding: 11px 13px; border-radius: 10px; white-space: pre-wrap; line-height: 1.55; }
    .assistant-message.user { margin-left: 12%; background: #e4f6ef; }
    .assistant-message.ai { margin-right: 12%; background: white; border: 1px solid var(--line); }
    .assistant-form { display: grid; gap: 10px; }
    .assistant-form textarea { min-height: 74px; }
    footer { padding: 24px 0; color: var(--muted); background: white; border-top: 1px solid var(--line); font-size: .9rem; }

    @media (max-width: 760px) {
      .hero-grid { grid-template-columns: 1fr; padding-top: 50px; }
      .stage { min-height: 310px; }
      .stage img { height: 245px; }
      .grid { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 540px) {
      .wrap { width: calc(100% - 24px); }
      .nav { min-height: 60px; }
      .brand { font-size: .9rem; }
      .grid, .filters, .form-grid { grid-template-columns: 1fr; }
      .full { grid-column: auto; }
      .admin-item { align-items: flex-start; flex-direction: column; }
      section { padding: 42px 0; }
      .stage { min-height: 280px; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
    }
