body.qms-portal {
  display: block;
  background: #07111f;
  color: #e8eef8;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
body.qms-portal a { color: inherit; text-decoration: none; }
.pp {
  --pad: clamp(20px, 5vw, 72px);
  --line: rgba(191, 219, 254, 0.16);
  --muted: #93a4c3;
  --navy: #9db4ff;
}
.pp-nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px var(--pad);
  background: rgba(7, 17, 31, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.pp-brand { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pp-brand strong { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.pp-brand span { font-size: 12px; color: var(--muted); }
.pp-nav-links { display: flex; gap: 18px; flex-wrap: wrap; margin-inline-start: auto; align-items: center; }
.pp-nav-links a { font-size: 14px; font-weight: 600; color: var(--muted); }
.pp-nav-links a:hover { color: #fff; }
.pp-nav .lang-switch { margin-inline-start: 0; }
.pp-nav .lang-switch button {
  min-height: 36px; min-width: auto; padding: 0 12px;
  background: transparent; color: #dbe7ff; border: 1px solid var(--line);
}
.pp-nav .lang-switch button.active { background: #fff; color: #07111f; border-color: #fff; }
.pp-signin {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 700;
}
.pp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 40px;
  align-items: center;
  padding: 56px var(--pad) 64px;
  min-height: calc(100svh - 72px);
}
.pp-kicker {
  margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: #8fb0ff;
}
.pp-hero h1 {
  margin: 0 0 16px; color: #fff;
  font-size: clamp(36px, 5.6vw, 64px); line-height: 1.05; letter-spacing: -.03em; font-weight: 650;
  max-width: 14ch;
}
.pp-hero .lead { margin: 0; max-width: 38em; color: #c5d2ea; font-size: 18px; }
.pp-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 32px; }
.pp-stats b { display: block; font-size: 28px; color: #fff; line-height: 1.1; }
.pp-stats span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pp-request { grid-template-columns: 1fr 1fr auto; }
.pp-request .status, .pp-request button { grid-column: 1 / -1; justify-self: start; }
.pp-actions .btn {
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
}
.pp-actions .primary { background: #fff; color: #07111f; }
.pp-actions .soft { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.pp-board {
  background: radial-gradient(800px 400px at 50% -20%, #2563eb 0%, #122048 45%, #07111f 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  min-height: 320px;
}
.pp-board header { display: flex; justify-content: space-between; color: #bfdbfe; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.pp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pp-col { background: rgba(255,255,255,.08); border-radius: 14px; padding: 14px; }
.pp-col b { display: block; font-size: 13px; color: #dbe7ff; margin-bottom: 8px; }
.pp-token { font-size: 42px; font-weight: 800; letter-spacing: 2px; color: #fff; line-height: 1; }
.pp-wait { margin: 10px 0 0; color: #9db4ff; font-size: 13px; }
.pp-section { padding: 8px var(--pad) 72px; }
.pp-section h2 { margin: 0 0 10px; color: #fff; font-size: clamp(24px, 3vw, 34px); }
.pp-section .intro { margin: 0 0 28px; color: var(--muted); max-width: 46em; }
.pp-catalog { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pp-card em {
  display: inline-block; margin-bottom: 10px; padding: 2px 8px; border-radius: 999px;
  font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: #16325c; color: #9db4ff;
}
.pp-card em[data-i18n="ppNext"] { background: #2a2416; color: #e8c37a; }
.pp-more { display: inline-block; margin-top: 12px; color: #fff; font-weight: 700; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.35); }
@media (max-width: 900px) {
  .pp-catalog { grid-template-columns: 1fr; }
}
.pp-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
}
.pp-card h3 { margin: 0 0 8px; color: #fff; font-size: 18px; }
.pp-card p { margin: 0; color: var(--muted); }
.pp-schools { display: grid; gap: 12px; margin: 0 0 28px; }
.pp-school {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
}
.pp-school b { display: block; color: #fff; font-size: 17px; }
.pp-school span { color: var(--muted); font-size: 13px; }
.pp-school .row { margin: 0; justify-content: flex-end; }
.pp-school .btn { min-height: 40px; padding: 0 14px; border-radius: 8px; font-size: 13px; }
.pp-school .primary { background: #2563eb; color: #fff; }
.pp-school .soft { background: transparent; color: #dbe7ff; border: 1px solid var(--line); }
.pp-empty { color: var(--muted); margin: 0 0 24px; }
.pp-code {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 16px; padding: 22px;
}
.pp-code label { margin: 0; color: #dbe7ff; }
.pp-code input {
  background: #07111f; color: #fff; border-color: #334155; min-height: 48px;
}
.pp-code .primary { min-height: 48px; border-radius: 10px; background: #2563eb; color: #fff; }
.pp-code .status { grid-column: 1 / -1; margin: 0; }
.pp-contact a { color: #fff; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.35); }
.pp-foot {
  padding: 28px var(--pad) 40px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
@media (max-width: 900px) {
  .pp-hero, .pp-grid, .pp-school, .pp-code { grid-template-columns: 1fr; }
  .pp-nav-links { width: 100%; margin: 0; }
  .pp-hero { min-height: 0; padding-top: 36px; }
}
body.qms-auth h1 { color: #fff; }
body.qms-auth .lead { color: #c5d2ea; }
body.qms-auth .brand { color: #9db4ff; }
body.qms-auth .topbar .home { background: #fff; color: #07111f; }
body.qms-auth a { color: #dbe7ff; }
