:root {
  --bg: #0b1020;
  --bg-soft: #121a31;
  --surface: rgba(255,255,255,0.06);
  --surface-strong: rgba(255,255,255,0.1);
  --card: #ffffff;
  --text: #e8edf8;
  --text-muted: #a8b3cf;
  --heading: #ffffff;
  --line: rgba(255,255,255,0.08);
  --accent: #5ea0ff;
  --accent-2: #8e6cff;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(94,160,255,0.16), transparent 28%),
    radial-gradient(circle at top left, rgba(142,108,255,0.14), transparent 22%),
    linear-gradient(180deg, #08101f, #0c1224 35%, #0f1730 100%);
  color: var(--text);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(8, 13, 27, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 76px; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .85rem; font-weight: 700; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 12px; background: rgba(255,255,255,0.04);
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-text { color: var(--heading); }
nav { display: flex; flex-wrap: wrap; gap: 1.2rem; color: var(--text-muted); }
nav a:hover { color: white; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--heading);
}

.hero { padding: 5.5rem 0 4rem; }
.hero-grid {
  display: grid; grid-template-columns: 1.5fr .9fr; gap: 2rem; align-items: center;
}
.eyebrow {
  display: inline-block; margin: 0 0 .8rem; color: #8fb7ff;
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700;
}
h1, h2, h3 { color: var(--heading); margin: 0 0 1rem; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); line-height: 1.06; }
.hero h1 { white-space: nowrap; }
h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); }
h3 { font-size: 1.1rem; }
.lead {
  font-size: 1.1rem; line-height: 1.8; max-width: 62ch; color: var(--text-muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .95rem 1.25rem; border-radius: 999px; font-weight: 700;
  border: 1px solid transparent; transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; }
.btn-secondary { background: rgba(255,255,255,0.04); border-color: var(--line); }

.hero-card, .info-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
  border-radius: 24px; padding: 1.4rem; box-shadow: var(--shadow);
}
.stat + .stat { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.stat-value { display: block; font-size: 1.2rem; font-weight: 800; color: white; }
.stat-label { display: block; margin-top: .3rem; color: var(--text-muted); line-height: 1.6; }

.section { padding: 4.5rem 0; }
.section-alt { background: rgba(255,255,255,0.03); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-heading { margin-bottom: 1.8rem; }
.section-heading p:last-child { color: var(--text-muted); max-width: 60ch; }
.cards.three {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.card, .cert-card {
  background: var(--card); color: #182033; border-radius: 22px;
  padding: 1.35rem; box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.card h3 { color: #121a31; }
.card p, .cert-card p { color: #51607f; line-height: 1.65; }
.card a.inline-link { color: #315dbe; text-decoration: underline; font-weight: 700; }
.card a.inline-link:hover { color: #224997; }

.about-grid {
  display: grid; grid-template-columns: 1.2fr .85fr; gap: 1.2rem; align-items: start;
}
.info-panel ul { margin: 0; padding-left: 1.2rem; color: var(--text-muted); line-height: 1.9; }
.info-panel h3 { margin-bottom: .75rem; }

.cert-group + .cert-group { margin-top: 2rem; }
.cert-group-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-bottom: 1rem; flex-wrap: wrap;
}
.logo-badge {
  display: inline-flex; align-items: center; gap: .9rem; color: white; font-weight: 700;
  padding: .75rem 1rem; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid var(--line);
}
.logo-badge img { width: 34px; height: 34px; }
.cert-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.cert-grid.compact { grid-template-columns: repeat(2, 1fr); }
.cert-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .9rem; }
.cert-top img { width: 42px; height: 42px; }
.cert-code {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .35rem .7rem; border-radius: 999px; background: #edf3ff; color: #315dbe; font-size: .8rem; font-weight: 800;
}
.cert-card h3 { color: #121a31; min-height: 3.1rem; }
.cert-card.expert-cert { background: #e3e7ee; }
.cert-card time, .cert-card.simple time {
  display: inline-block; margin-top: .8rem; font-size: .85rem; font-weight: 700; color: #6a7894;
}
.cert-card.simple { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.cert-card.simple h3 { min-height: auto; margin: 0; }
.cert-simple-main {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
}
.cert-mini-badge {
  height: 22px;
  width: auto;
  border-radius: 5px;
  flex: 0 0 auto;
}
.cert-card.simple .cert-simple-main h3 {
  white-space: normal;
}
.cert-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cert-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(0,0,0,.22);
}

.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.site-footer { padding: 1.6rem 0 2.5rem; }
.footer-inner {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--text-muted); font-size: .95rem;
}

@media (max-width: 960px) {
  .hero-grid, .about-grid, .cards.three, .cert-grid, .cert-grid.compact { grid-template-columns: 1fr; }
  .cta, .cert-group-head { align-items: flex-start; }
}

@media (max-width: 720px) {
  .hero { padding-top: 4rem; }
  .nav { position: relative; }
  .nav-toggle { display: inline-flex; }
  nav {
    display: none;
    position: absolute;
    top: calc(100% + .55rem);
    right: 0;
    left: 0;
    z-index: 30;
    flex-direction: column;
    gap: .25rem;
    padding: .5rem;
    background: rgba(8, 13, 27, 0.96);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }
  .site-header.menu-open nav { display: flex; }
  nav a {
    display: block;
    padding: .7rem .8rem;
    border-radius: 10px;
  }
  nav a:hover { background: rgba(255,255,255,0.08); }
  h1 { font-size: 2.5rem; }
  .hero h1 { white-space: normal; }
  .container { width: min(1120px, calc(100% - 1.25rem)); }
}
