
  :root {
    --primary:        #0ea5e9;
    --primary-dark:   #0284c7;
    --primary-deep:   #1d4ed8;
    /* legacy aliases */
    --red:        var(--primary);
    --red-dark:   var(--primary-dark);
    --red-deep:   var(--primary-deep);
    --teal:       #06b6d4;
    --blue-deep:  #0f4fa8;
    --text:       #102033;
    --muted:      #64748b;
    --line:       #dbeafe;
    --bg:         #f4f9ff;
    --card:       #ffffff;
    --footer-bg:  #0f2747;
    --shadow:     0 1px 2px rgba(15,23,42,.04), 0 6px 18px rgba(14,116,144,.08);
    --shadow-lg:  0 4px 12px rgba(15,23,42,.06), 0 18px 50px rgba(14,116,144,.16);
  }
  *, *::before, *::after { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: 'Inter', -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
  ::selection { background: rgba(14,165,233,.24); }
  a { color: var(--red); text-decoration: none; }
  a:hover { color: var(--red-dark); }
  button { font-family: inherit; cursor: pointer; }

  /* ── Header (two-tier) ──────────────────────────────────────── */
  header.site {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 4px 24px rgba(15,23,42,.05);
  }
  /* Tier 1: logo + auth */
  .header-top { border-bottom: 1px solid var(--line); }
  .header-top-inner {
    max-width: 1500px; margin: 0 auto;
    padding: 14px 36px;
    display: flex; align-items: center; gap: 20px;
  }
  .logo {
    display: inline-flex; align-items: center;
    text-decoration: none; flex-shrink: 0;
  }
  .logo img { height: 48px; width: auto; display: block; }

  .auth {
    margin-left: auto;
    display: inline-flex; align-items: center; gap: 4px;
    flex-shrink: 0;
  }
  /* Tier 2: navigation bar */
  .header-nav {
    background: linear-gradient(180deg, #fbfdff 0%, #f3f9ff 100%);
  }
  .header-nav-inner {
    max-width: 1500px; margin: 0 auto;
    padding: 0 36px;
  }
  nav.main {
    display: flex; align-items: stretch; justify-content: center;
    flex-wrap: wrap; gap: 2px;
  }
  nav.main a {
    color: #475569; font-weight: 700; font-size: 13px;
    text-transform: uppercase; letter-spacing: .04em;
    padding: 16px 18px;
    position: relative;
    transition: color .18s, background .18s;
    white-space: nowrap;
    display: inline-flex; align-items: center;
  }
  nav.main a::after {
    content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, var(--primary), var(--primary-deep));
    transform: scaleX(0); transform-origin: center;
    transition: transform .2s ease;
  }
  nav.main a:hover { color: var(--primary-deep); background: rgba(14,165,233,.06); }
  nav.main a:hover::after { transform: scaleX(1); }
  nav.main a.active {
    color: var(--primary-deep);
    background: rgba(14,165,233,.09);
  }
  nav.main a.active::after { transform: scaleX(1); }

  /* Mobile burger */
  .burger {
    display: none;
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    padding: 8px; color: var(--text);
    transition: border-color .18s, color .18s, box-shadow .18s;
    box-shadow: 0 2px 8px rgba(15,23,42,.04);
  }
  .burger:hover { border-color: var(--primary); color: var(--primary); box-shadow: 0 4px 12px rgba(14,165,233,.12); }
  .burger svg { width: 24px; height: 24px; }

  @media (max-width: 1240px) {
    .header-nav-inner { padding: 0 20px; }
    nav.main { display: none; flex-direction: column; align-items: stretch; gap: 0; }
    nav.main.open { display: flex; padding: 8px 0; }
    nav.main a { padding: 13px 16px; font-size: 13px; }
    nav.main a::after { left: 16px; right: auto; width: 3px; top: 13px; bottom: 13px; height: auto; border-radius: 3px; }
    nav.main a:hover::after, nav.main a.active::after { transform: scaleY(1); }
    nav.main a::after { transform: scaleY(0); transform-origin: center; }
    .burger { display: inline-flex; }
  }

  /* ── Phones ─────────────────────────────────────────────────────
     Fixes two things reported on mobile:
       1. the header row (254px logo + Log in/Register + burger) did not fit a
          375px screen — it overflowed ~187px, so the page scrolled sideways and
          the menu button ended up off the right edge, which is why the menu
          looked like it had "moved right";
       2. the menu button belongs on the LEFT, like the rest of the site.
     flex-wrap is the safety net: if the row still cannot fit it wraps instead
     of pushing the whole page wider. */
  @media (max-width: 760px) {
    .header-top-inner {
      padding: 10px 14px;
      gap: 8px;
      flex-wrap: wrap;
    }
    .burger {
      order: -1;               /* first in the row = left edge */
      padding: 7px;
    }
    .burger svg { width: 20px; height: 20px; }
    .logo { order: 0; }
    .logo img { height: 30px; }
    .auth { order: 1; margin-left: auto; gap: 6px; }
    .auth .btn {
      padding: 8px 12px;
      font-size: 12.5px;
      border-radius: 8px;
    }
    .header-nav-inner { padding: 0; }
    nav.main.open { padding: 6px 0; }
  }
  @media (max-width: 400px) {
    .logo img { height: 26px; }
    .auth .btn { padding: 7px 9px; font-size: 11.5px; }
  }
  .btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 11px 22px; border-radius: 10px;
    font-weight: 700; font-size: 14px;
    border: 0; cursor: pointer; text-decoration: none;
    transition: transform .15s, box-shadow .2s, background .2s, color .2s;
    white-space: nowrap;
  }
  .btn:active { transform: translateY(1px); }
  .btn-login {
    background: #fff; color: #475569;
    border: 1.5px solid var(--line);
  }
  .btn-login:hover {
    color: var(--primary-deep);
    border-color: var(--primary);
  }
  .btn-register {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(14,165,233,.34);
  }
  .btn-register:hover {
    color: #fff;
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    box-shadow: 0 8px 22px rgba(14,165,233,.42);
    transform: translateY(-1px);
  }

  /* Shared back button */
  .top-nav {
    display: flex; align-items: center; gap: 16px;
    flex-wrap: wrap; margin-bottom: 16px;
  }
  .top-nav .breadcrumbs { margin: 0; }
  .btn-back {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; border-radius: 10px;
    background: #fff; border: 1.5px solid var(--line);
    color: var(--text); font-weight: 700; font-size: 13.5px;
    text-decoration: none; cursor: pointer;
    transition: all .18s; font-family: inherit;
  }
  .btn-back:hover {
    border-color: var(--primary);
    color: var(--primary-deep);
    transform: translateX(-3px);
    box-shadow: 0 6px 16px rgba(14,165,233,.14);
  }
  .btn-back svg { width: 14px; height: 14px; transition: transform .18s; flex-shrink: 0; }
  .btn-back:hover svg { transform: translateX(-2px); }

  /* ── Page wrap ──────────────────────────────────────────────── */
  main.page {
    max-width: 1400px; margin: 0 auto;
    padding: 40px 32px 60px;
  }
  /* phones: the side gutters were a fifth of the screen — give that width to the content */
  @media (max-width: 600px) {
    main.page { padding: 20px 14px 56px; }
  }

  /* ── Footer ─────────────────────────────────────────────────── */
  footer.site {
    background: var(--footer-bg);
    color: #cbd5e1;
    padding: 48px 24px 28px;
    margin-top: 60px;
  }
  footer.site .inner {
    max-width: 1400px; margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
  }
  @media (max-width: 880px) {
    footer.site .inner { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 540px) {
    footer.site .inner { grid-template-columns: 1fr; }
  }
  footer.site h4 {
    color: #fff; font-size: 13px; margin: 0 0 14px;
    text-transform: uppercase; letter-spacing: .08em;
  }
  footer.site a { color: #cbd5e1; text-decoration: none; transition: color .2s; }
  footer.site a:hover { color: #fff; }
  footer.site ul { margin: 0; padding: 0; list-style: none; }
  footer.site li { margin-bottom: 8px; font-size: 13.5px; }
  footer.site .brand-block { font-size: 13.5px; line-height: 1.7; }
  footer.site .brand-block .accent {
    color: #fff; font-weight: 700; display: block; margin-bottom: 6px;
  }
  /* Social buttons */
  .social-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
  .social-btns a {
    width: 38px; height: 38px; border-radius: 10px;
    display: grid; place-items: center;
    color: #fff;
    transition: transform .18s, box-shadow .2s, filter .2s;
  }
  .social-btns a svg { width: 18px; height: 18px; }
  .social-btns a:hover { transform: translateY(-3px); filter: brightness(1.1); }
  .social-btns a.tg { background: #229ED9; box-shadow: 0 6px 14px rgba(34,158,217,.35); }
  .social-btns a.wa { background: #25D366; box-shadow: 0 6px 14px rgba(37,211,102,.35); }
  .social-btns a.ig { background: linear-gradient(135deg,#F58529,#DD2A7B,#8134AF); box-shadow: 0 6px 14px rgba(221,42,123,.35); }
  .social-btns a.wc { background: #07C160; box-shadow: 0 6px 14px rgba(7,193,96,.35); }
  .social-btns a.sk { background: #00AFF0; box-shadow: 0 6px 14px rgba(0,175,240,.35); }
  .social-btns a.ms { background: #6264A7; box-shadow: 0 6px 14px rgba(98,100,167,.35); }
  .footer-contact { margin-top: 14px; font-size: 13.5px; line-height: 1.8; }
  .footer-contact a { color: #fff; font-weight: 600; }
  .legal {
    max-width: 1400px; margin: 36px auto 0;
    padding-top: 22px; border-top: 1px solid rgba(255,255,255,.10);
    font-size: 12.5px; color: #94a3b8;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  }
  .legal a { color: #94a3b8; }
  .legal a:hover { color: #fff; }

  /* ── Helpers ────────────────────────────────────────────────── */
  .container { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
  .card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 28px;
  }
  .h-experience {
    color: var(--red-deep);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin: 40px 0 18px;
    letter-spacing: -.02em;
  }
  @media (max-width: 600px) {
    .h-experience { font-size: 32px; }
  }
  .breadcrumbs {
    color: var(--muted); font-size: 13px; margin-bottom: 14px;
  }
  .breadcrumbs a { color: var(--muted); }
  .breadcrumbs a:hover { color: var(--red); }
  .breadcrumbs span { margin: 0 8px; }
