:root {
        --p: #14275c;
        --pd: #0d1b42;
        --pl: #2f57a8;
        --pp: #e9eefa;
        --ppp: #f4f7fd;
        --acc: #3a64bf;
        --acc2: #88a8e0;
        --ylw: #f7b500;
        --ora: #f2a307;
        --grn: #10b981;
        --txt: #0f0e1a;
        --sub: #52525b;
        --bdr: #e4e4e7;
        --ig: linear-gradient(135deg, #3a64bf 0%, #14275c 100%);
      }
      * { margin: 0; padding: 0; box-sizing: border-box; }
      html { scroll-behavior: smooth; }
      body {
        font-family: "Outfit", sans-serif;
        color: var(--txt);
        background: #fff;
        overflow-x: hidden;
        font-size: 15px;
        line-height: 1.5;
      }
      h1, h2, h3, h4 {
        font-family: "Bricolage Grotesque", sans-serif;
        line-height: 1.15;
        letter-spacing: -0.03em;
      }
      a { color: inherit; }
      .eyebrow {
        display: inline-flex; align-items: center; gap: 8px;
        font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
        text-transform: uppercase; color: var(--p); margin-bottom: 14px;
      }
      .eyebrow::before { display: none; }
      .grad {
        background: linear-gradient(100deg, #3a64bf, #14275c);
        -webkit-background-clip: text; background-clip: text;
        -webkit-text-fill-color: transparent; color: transparent;
      }

      /* NAV */
      nav {
        position: fixed; top: 0; left: 0; right: 0; z-index: 300; height: 62px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--bdr); transition: box-shadow 0.3s;
      }
      nav.sc { box-shadow: 0 4px 28px rgba(20, 39, 92, 0.09); }
      .nw { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; height: 100%; }
      .logo { display: flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; margin-right: 36px; }
      .logo-sq { width: 34px; height: 34px; background: var(--p); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
      .logo-sq svg { stroke: #fff; }
      .logo-name { font-family: "Bricolage Grotesque", sans-serif; font-size: 1rem; font-weight: 700; color: var(--txt); letter-spacing: -0.03em; }
      .logo-name em { color: var(--p); font-style: normal; }
      .nl { display: flex; align-items: center; gap: 4px; list-style: none; }
      .nl a { font-size: 0.82rem; font-weight: 500; color: var(--sub); text-decoration: none; padding: 6px 12px; border-radius: 7px; transition: color 0.2s, background 0.2s; white-space: nowrap; }
      .nl a:hover, .nl a.on { color: var(--p); background: var(--ppp); }
      .nr { display: flex; align-items: center; gap: 10px; margin-left: auto; }
      .n-btn { background: var(--p); color: #fff; padding: 8px 18px; border-radius: 8px; font-size: 0.82rem; font-weight: 600; text-decoration: none; transition: background 0.2s, transform 0.15s; white-space: nowrap; }
      .n-btn:hover { background: var(--pd); transform: translateY(-1px); }
      .hbg { display: none; flex-direction: column; gap: 4.5px; cursor: pointer; padding: 5px; background: none; border: none; }
      .hbg span { width: 22px; height: 1.8px; background: var(--txt); border-radius: 2px; transition: all 0.3s; }
      .hbg.op span:nth-child(1) { transform: translateY(6.3px) rotate(45deg); }
      .hbg.op span:nth-child(2) { opacity: 0; }
      .hbg.op span:nth-child(3) { transform: translateY(-6.3px) rotate(-45deg); }
      .mm { display: none; position: fixed; top: 62px; left: 0; right: 0; background: #fff; z-index: 299; padding: 18px; flex-direction: column; gap: 2px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1); transform: translateY(-10px); opacity: 0; pointer-events: none; transition: all 0.3s; }
      .mm.op { transform: translateY(0); opacity: 1; pointer-events: all; }
      .mm a { font-size: 0.95rem; font-weight: 500; color: var(--txt); text-decoration: none; padding: 12px 14px; border-radius: 9px; display: block; }
      .mm a:hover { background: var(--ppp); color: var(--p); }

      /* HEADER */
      .cr-hero {
        padding: 108px 24px 44px;
        background: linear-gradient(125deg, #ffffff 0%, #f1f4fc 60%, #e6ecfa 100%);
        position: relative; overflow: hidden;
      }
      .cr-hero::before {
        content: ""; position: absolute; top: -160px; right: -120px; width: 460px; height: 460px;
        background: radial-gradient(circle, rgba(58, 100, 191, 0.12) 0%, transparent 70%); border-radius: 50%;
      }
      .cr-head { max-width: 680px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
      .cr-head .eyebrow { justify-content: center; }
      .cr-head h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 500; line-height: 1.1; margin-bottom: 12px; }
      .cr-head p { font-size: 0.98rem; color: var(--sub); line-height: 1.7; }

      /* COURSES GRID */
      .cr-section { padding: 50px 24px 80px; }
      .cg { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
      .cc {
        display: flex; flex-direction: column;
        text-decoration: none; color: inherit;
        background: #fff; border: 1px solid var(--bdr); border-radius: 20px; overflow: hidden;
        box-shadow: 0 10px 30px rgba(20, 39, 92, 0.06);
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
      }
      .cc:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(20, 39, 92, 0.14); border-color: rgba(20, 39, 92, 0.18); }
      .cc-img { position: relative; aspect-ratio: 1.9; background: var(--ig); overflow: hidden; }
      .cc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
      .cc-badge {
        position: absolute; top: 14px; left: 14px; z-index: 2;
        font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
        color: var(--p); background: rgba(255, 255, 255, 0.92); padding: 5px 11px; border-radius: 100px;
      }
      .cc-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
      .cc-title { font-size: 1.18rem; font-weight: 600; margin-bottom: 8px; }
      .cc-desc { font-size: 0.9rem; color: var(--sub); line-height: 1.65; margin-bottom: 16px; }
      .cc-facts { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
      .cc-fact { display: flex; align-items: center; gap: 9px; font-size: 0.84rem; color: var(--txt); }
      .cc-fact svg { stroke: var(--p); flex-shrink: 0; }
      .cc-fact b { font-weight: 600; }
      .cc-fact span { color: var(--sub); }
      .cc-progs { font-size: 0.8rem; color: var(--sub); background: var(--ppp); border-radius: 10px; padding: 10px 13px; margin-bottom: 18px; line-height: 1.5; }
      .cc-progs b { color: var(--p); font-weight: 600; }
      .cc-link {
        margin-top: auto; align-self: flex-start;
        display: inline-flex; align-items: center; gap: 7px;
        font-size: 0.85rem; font-weight: 600; color: var(--p); text-decoration: none;
        padding: 9px 16px; border-radius: 9px; border: 1.5px solid var(--bdr); transition: 0.2s;
      }
      .cc-link:hover { border-color: var(--p); background: var(--p); color: #fff; }
      .cc-link:hover svg { stroke: #fff; }
      .cc-link svg { stroke: var(--p); transition: stroke 0.2s; }

      .rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
      .rv.vi { opacity: 1; transform: translateY(0); }

      @media (max-width: 1100px) {
        .cg { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
      }
      @media (max-width: 980px) {
        .nl { display: none; }
        .hbg { display: flex; }
        .mm { display: flex; }
      }
      @media (max-width: 720px) {
        .cg {
          display: flex;
          flex-wrap: nowrap;
          overflow-x: auto;
          gap: 18px;
          padding: 6px 0 16px;
          scroll-snap-type: x mandatory;
          -webkit-overflow-scrolling: touch;
          scrollbar-width: none;
          -ms-overflow-style: none;
        }
        .cg::-webkit-scrollbar { display: none; }
        .cg > .cc {
          flex: 0 0 80%;
          scroll-snap-align: start;
        }
      }
