* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  zoom: 1.2;
}

body {
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  background: #ffffff;
  color: #222222;
}

.header {
  width: 100%;
}

.topbar-wrap {
  width: 100%;
  border-bottom: 1px solid #dcdcdc;
}

.topbar {
  max-width: 980px;
  margin: 0 auto;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.user-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  text-decoration: none;
}

.user-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu {
  display: flex;
  list-style: none;
}

.menu a {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 18px;
  color: #333333;
  background: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 3px solid transparent;
}

.menu a.active {
  background: #a2151a;
  color: #ffffff;
  font-weight: 700;
}

.menu a:hover {
  background: #a2151a;
  color: #ffffff;
  font-weight: 700;
}

.menu a.community-nav {
  gap: 8px;
}

.community-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #333333;
}

.menu a.community-nav.active .community-icon,
.menu a.community-nav:hover .community-icon {
  color: #ffffff;
}

.topbar-spacer {
  width: 34px;
  height: 34px;
}

.subbar-wrap {
  width: 100%;
  border-bottom: 1px solid #dcdcdc;
}

.subbar {
  max-width: 980px;
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-link img {
  width: 82px;
  height: auto;
  display: block;
}

.language-switch {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-family: Arial, Helvetica, sans-serif;
}

.lang {
  color: #1d1d1d;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 6px;
  font-weight: 500;
}

.lang + .lang {
  border-left: 1px solid #a5a5a5;
  margin-left: 8px;
  padding-left: 10px;
}

.lang.active {
  color: #a2151a;
  border-bottom-color: #a2151a;
  font-weight: 700;
}

.hidden {
  display: none;
}

.verification {
  width: 100%;
  background: #ffffff;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 44px 10px 20px;
}

.verification h1,
.verification h2 {
  font-size: 46px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-accent {
  width: 6px;
  height: 46px;
  background: #a2151a;
  display: inline-block;
}

.verification-intro {
  max-width: 940px;
  font-size: 14px;
  line-height: 1.38;
  font-weight: 400;
  margin-bottom: 32px;
  color: #212121;
}

.verification.i18n-de .verify-heading-en,
.verification.i18n-de .verify-intro-en {
  display: none;
}

.verification.i18n-en .verify-heading-de,
.verification.i18n-en .verify-intro-de {
  display: none;
}

.verification h1 .verify-heading {
  flex: 1;
  min-width: 0;
}

.certificate-label {
  font-size: 74px;
  line-height: 1.1;
  font-weight: 500;
  color: #161a28;
  margin-left: 44px;
  margin-bottom: 44px;
}

.certificate-meta {
  margin-left: 44px;
  margin-bottom: 4.2em;
}

.certificate-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2330;
  margin-bottom: 8px;
}

.certificate-level {
  font-size: 16px;
  color: #30343f;
}

.certificate-level em {
  font-style: italic;
}

.cert-grid {
  margin: 0 0 26px 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 18px;
}

.cert-field {
  padding-bottom: 2px;
}

.cert-value {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 3px;
  padding-bottom: 2px;
  border-bottom: 1px solid #5e5e5e;
}

.cert-value-regular {
  font-weight: 400;
}

.cert-label {
  font-size: 12px;
  color: #30343f;
}

.score-block {
  margin: 16px 0 0 44px;
  max-width: 940px;
}

.score-head,
.score-item {
  display: grid;
  grid-template-columns: 1fr 500px;
  align-items: end;
  column-gap: 10px;
}

.score-head {
  margin-bottom: 22px;
}

.score-item {
  margin-bottom: 26px;
}

.score-item + .score-head {
  margin-top: 14px;
}

.score-head p {
  font-size: 16px;
  font-weight: 700;
}

.score-item p {
  font-size: 15px;
  color: #2d3342;
}

.score-head p:first-child,
.score-item p:first-child {
  white-space: nowrap;
}

.line-number {
  border-bottom: 1px solid #3e3e3e;
  min-width: 54px;
  display: inline-block;
  text-align: center;
  padding-bottom: 1px;
  vertical-align: bottom;
}

.total {
  margin-top: 18px;
  margin-bottom: 4em;
}

.score-head.total + .score-head {
  margin-bottom: 4em;
}

.grade .line-number {
  min-width: 120px;
}

.footer {
  margin-top: 3px;
}

.score-item.footer:first-of-type {
  margin-top: 28px;
}

.score-item.footer .line-number {
  font-weight: 700;
}

.score-item.footer .line-number:not(.multiline) {
  min-width: 140px;
  text-align: right;
}

.line-number.multiline {
  min-width: 120px;
  text-align: left;
  line-height: 1.35;
}

.campus {
  width: 100%;
  background: #ffffff;
  padding: 20px 10px 34px;
}

.campus-box {
  max-width: 500px;
  margin: 0 auto;
}

.campus-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 26px;
}

.campus-logo {
  width: 90px;
  height: auto;
}

.campus-langs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.campus-lang {
  color: #b0171b;
  text-decoration: none;
  letter-spacing: 0.2px;
}

.campus-lang.active {
  font-weight: 700;
}

.campus-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 46px;
  margin-bottom: 26px;
}

.campus-user-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
}

.campus-user-icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: #31363b;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.campus-warning {
  border: 2px solid #d32a3f;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.campus-warning h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.campus-warning p {
  font-size: 13px;
  line-height: 1.35;
  color: #343434;
}

.campus-form input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #9ea3a8;
  padding: 8px 10px;
  font-size: 13px;
  margin-bottom: 12px;
}

.campus-form input::placeholder {
  color: #8d9093;
}

.campus-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  margin-bottom: 22px;
}

.stay-logged-in {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.stay-logged-in input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.forgot-link {
  color: #b0171b;
  text-decoration: none;
  font-size: 13px;
}

.login-btn {
  display: block;
  margin: 0 auto;
  width: 220px;
  min-height: 48px;
  border: none;
  background: #b80f10;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.register-text {
  text-align: center;
  margin-top: 20px;
  color: #9fa2a5;
  font-size: 13px;
}

.register-text a {
  color: #b0171b;
  text-decoration: none;
}

.training {
  min-height: 100vh;
  background: #ffffff;
  padding: 10px 0 0 0;
}

.training-logo-link {
  display: inline-flex;
  margin-left: 10px;
  text-decoration: none;
}

.training-logo-link img {
  width: 132px;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  html {
    zoom: 1;
  }

  body {
    overflow-x: hidden;
  }

  .topbar {
    flex-wrap: nowrap;
    align-items: center;
    padding: 8px 8px;
    gap: 8px;
  }

  .menu {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    gap: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .menu::-webkit-scrollbar {
    height: 4px;
  }

  .menu a {
    flex-shrink: 0;
    height: 42px;
    padding: 0 12px;
    font-size: 12px;
  }

  .topbar-spacer {
    flex-shrink: 0;
  }

  .subbar {
    min-height: 64px;
    padding: 8px 12px;
  }

  .logo-link img {
    width: 72px;
  }

  .lang {
    font-size: 13px;
  }

  .container {
    padding: 28px 14px 20px;
  }

  .verification h1,
  .verification h2 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    margin-bottom: 20px;
    align-items: flex-start;
  }

  .title-accent {
    height: 32px;
    margin-top: 2px;
  }

  .verification-intro {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .certificate-label {
    font-size: clamp(2rem, 12vw, 3rem);
    margin-left: 0;
    margin-bottom: 28px;
    word-break: break-word;
  }

  .certificate-meta {
    margin-left: 0;
    margin-bottom: 2.5em;
  }

  .cert-grid {
    margin-left: 0;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .score-block {
    margin-left: 0;
    max-width: 100%;
    padding-right: 0;
  }

  .score-head,
  .score-item {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
    row-gap: 0;
    align-items: end;
    margin-bottom: 18px;
  }

  .score-head p:first-child,
  .score-item p:first-child {
    white-space: normal;
    word-break: break-word;
    hyphens: auto;
    min-width: 0;
    padding-right: 4px;
  }

  .score-head p:last-child,
  .score-item:not(.footer) p:last-child {
    justify-self: end;
    text-align: right;
    white-space: nowrap;
  }

  .score-item.footer p:last-child {
    justify-self: end;
    text-align: right;
    white-space: normal;
    max-width: 56%;
  }

  .score-head p,
  .score-item p {
    font-size: 14px;
  }

  .line-number {
    text-align: center;
    min-width: 48px;
    width: auto;
    max-width: none;
  }

  .score-item.footer .line-number:not(.multiline) {
    width: auto;
    max-width: none;
    text-align: right;
    min-width: 120px;
  }

  .total {
    margin-top: 12px;
    margin-bottom: 2.5em;
  }

  .score-head.total + .score-head {
    margin-bottom: 2.5em;
  }

  .score-item.footer:first-of-type {
    margin-top: 18px;
  }

  .grade .line-number {
    text-align: center;
    min-width: 100px;
    width: auto;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .menu a {
    padding: 0 10px;
    font-size: 11px;
    height: 40px;
  }

  .community-icon {
    width: 14px;
    height: 14px;
  }
}
