@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/nunito-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Caveat;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/caveat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Caveat;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/caveat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Font licenses: "/assets/fonts/Nunito-OFL.txt" and "/assets/fonts/Caveat-OFL.txt". */

/* B5 and M3 use the same components. The inner content and tinted sections have different edges. */
body:has(.c5-header) {
  background: var(--c5-bg);
  color: var(--c5-ink);
}

.c5-header, .c5-footer {
  box-sizing: border-box;
  width: var(--c5-shell-width);
  max-width: none;
  margin-inline: auto;
  font: 400 16px/1.6 var(--c5-font);
  color: var(--c5-ink);
}

.c5-header *, .c5-footer * { box-sizing: border-box; }
.c5-header button, .c5-footer button { font: inherit; cursor: pointer; }
.c5-header a, .c5-footer a { color: inherit; text-decoration: none; }

.site-header.c5-header {
  position: relative;
  top: auto;
  z-index: 25;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  width: var(--c5-shell-width);
  padding: 23px 0;
  margin-block: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.c5-header::before { content: none; }
.c5-header .c5-brand {
  justify-self: start;
  display: flex;
  align-items: center;
  min-height: 0;
  min-width: 0;
  gap: 10px;
  font: 800 17px/1.2 var(--c5-font);
  letter-spacing: -.025em;
  white-space: nowrap;
}
.c5-brand img { width: 38px; height: 38px; flex: none; object-fit: contain; border-radius: 12px; }

.c5-nav {
  grid-area: 1 / 2;
  position: relative;
  z-index: 15;
  justify-self: center;
  display: flex;
  align-items: center;
  padding: 5px;
  gap: 2px;
  border: 1px solid var(--c5-line);
  border-radius: 999px;
  background: var(--c5-panel);
}
.c5-nav-group { position: relative; }
.c5-nav-group summary, .c5-nav-home {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 999px;
  white-space: nowrap;
  font: 750 15px/1.3 var(--c5-font);
  cursor: pointer;
}
.c5-nav-group summary::-webkit-details-marker { display: none; }
.c5-nav-group summary svg { display: block; flex: 0 0 14px; color: var(--c5-green); transition: transform .18s ease; }
.c5-nav-group[open] summary svg { transform: rotate(180deg); }
.c5-nav-group[open] summary, .c5-header a:hover, .c5-nav-group summary:hover { color: var(--c5-green); }
.c5-nav-group[open] summary, .c5-nav-home:hover, .c5-nav-group summary:hover, .c5-nav-drop a:hover { background: var(--c5-soft); }
.c5-nav-drop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: grid;
  gap: 2px;
  z-index: 50;
  min-width: 260px;
  padding: 9px;
  background: var(--c5-panel);
  border: 1px solid var(--c5-line);
  border-radius: 18px;
  box-shadow: 0 16px 40px #26391f20;
}
.c5-nav-group:last-child .c5-nav-drop { right: 0; left: auto; }
.c5-nav-drop a { padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 650; line-height: 1.4; }

.c5-header-actions { grid-area: 1 / 3; display: flex; align-items: center; justify-self: end; gap: 10px; }
.c5-header .c5-theme, .c5-header .c5-menu-toggle {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex: none;
  padding: 0;
  color: var(--c5-green);
  border: 1px solid var(--c5-line);
  border-radius: 50%;
  background: var(--c5-panel);
}
.c5-menu { display: none; }
.c5-menu-toggle { list-style: none; cursor: pointer; }
.c5-menu-toggle::-webkit-details-marker { display: none; }
.c5-theme span, .c5-menu-toggle span { grid-area: 1/1; display: grid; place-items: center; }
.c5-theme svg { width: 18px; height: 18px; }
.c5-theme span:last-child, .c5-menu-toggle span:last-child { visibility: hidden; }
.c5-theme[aria-pressed=true] span:last-child, .c5-menu[open] > summary span:last-child { visibility: visible; }
.c5-theme[aria-pressed=true] span:first-child, .c5-menu[open] > summary span:first-child { visibility: hidden; }
.c5-header .c5-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid var(--c5-line);
  border-radius: 999px;
  color: var(--c5-ink);
  background: var(--c5-panel);
  font: 800 14px/1.6 var(--c5-font);
  white-space: nowrap;
}
.c5-login svg { width: 16px; height: 16px; color: var(--c5-green); }

.site-footer.c5-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 20px 27px;
  margin-block: 28px 23px;
  border: 1px solid var(--c5-line);
  border-radius: 18px;
  background: var(--c5-surface);
  color: var(--c5-muted);
  text-align: left;
  box-shadow: none;
}
.c5-footer-docs { display: flex; flex-wrap: wrap; gap: 12px 27px; margin-bottom: 15px; font-size: 13px; font-weight: 650; line-height: 1.5; }
.c5-footer a { display: inline; min-height: 0; color: inherit; text-underline-offset: 4px; }
.c5-footer a:hover, .c5-footer [data-cookie-open], .c5-footer-contact a { text-decoration: underline; }
.c5-footer-contact { color: var(--c5-green); margin-bottom: 8px; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.c5-footer p { margin: 0; color: inherit; font: 400 12px/1.5 var(--c5-font); }
.c5-footer .c5-footer-company { margin-bottom: 4px; }
.c5-header :focus-visible, .c5-footer :focus-visible { outline: 3px solid var(--c5-green); outline-offset: 2px; }
.quiz-running .c5-footer { display: none; }

@media (min-width: 1024px) and (max-width: 1190px) {
  .site-header.c5-header { gap: 10px; }
  .c5-header .c5-brand { font-size: 14px; }
  .c5-nav-group summary, .c5-nav-home { font-size: 13px; padding: 9px; }
}

@media (max-width: 1023px) {
  .site-header.c5-header { display: flex; flex-wrap: nowrap; gap: 10px; padding: 14px 0; }
  .c5-menu { display: block; }
  .c5-header .c5-brand { gap: 8px; font-size: 17px; line-height: 1.15; white-space: normal; }
  .c5-brand img { width: 36px; height: 36px; border-radius: 11px; }
  .c5-header-actions { margin-left: auto; gap: 7px; flex: none; }
  .c5-header .c5-theme, .c5-header .c5-menu-toggle { width: 44px; height: 44px; display: grid; }
  .c5-menu[open] > summary { background: var(--c5-soft); }
  .c5-header .c5-login { min-height: 44px; font-size: 14px; padding: 10px 13px; gap: 5px; }
  .c5-login svg { display: none; }
  .c5-header .c5-nav {
    order: 3;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    padding: 9px;
    border-radius: 20px;
    box-shadow: 0 15px 35px #26391f25;
    background: var(--c5-panel);
  }
  .c5-header .c5-nav {
    position: absolute;
    top: calc(100% - 3px);
    right: 0;
    width: min(380px, 100%);
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .c5-header:not(:has(.c5-menu[open])) .c5-nav { display: none; }
  .c5-nav-home, .c5-nav-group summary { width: 100%; justify-content: space-between; padding: 13px 15px; min-height: 46px; font-size: 16px; border-radius: 12px; }
  .c5-nav-drop { position: static; min-width: 0; width: 100%; box-shadow: none; padding: 3px 8px 6px 15px; margin-top: 2px; border: 0; background: var(--c5-surface); border-radius: 12px; }
  .c5-nav-drop a { min-height: 44px; display: flex; align-items: center; }
  .site-footer.c5-footer { padding: 20px 16px; margin-bottom: 16px; }
  .c5-footer-docs { font-size: 12px; margin-bottom: 12px; }
  .c5-footer p { font-size: 11px; }
}

@media (max-width: 760px) {
  .site-header.c5-header { padding: 10px 0; gap: 6px; }
  .c5-header .c5-brand { font-size: 13px; gap: 7px; }
  .c5-header-actions { gap: 5px; }
  .c5-brand img { width: 34px; height: 34px; }
  .c5-header .c5-theme, .c5-header .c5-menu-toggle { width: 42px; height: 42px; }
  .c5-header .c5-login { min-height: 42px; padding: 8px 10px; font-size: 13px; }
  .c5-header .c5-nav { width: 100%; }
  .c5-nav-drop { max-width: 240px; }
}
@media (max-width: 600px) { .c5-footer-docs { gap: 12px 21px; } }
@media (max-width: 360px) {
  .c5-header .c5-brand { font-size: 12px; }
  .c5-header-actions { gap: 4px; }
  .c5-header .c5-theme, .c5-header .c5-menu-toggle { width: 40px; height: 40px; }
  .c5-header .c5-login { padding: 8px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .c5-nav-group summary svg { transition: none; }
}

/* The live homepage keeps its existing interactive blocks until their individual C5 stages. */
main.c5-home { width: 100%; max-width: none; }
.c5-home > section, .c5-home > figure { width: var(--c5-shell-width); margin-inline: auto; }
.c5-home .c5-section > .c5-container > .block { border-top: 0; }
.quiz-running .c5-home > .c5-section { display: none; }

/* Reading layout shared by the published documents and company details. */
@media screen {
  body:has(.c5-header) main.doc.document {
    box-sizing: border-box;
    width: var(--c5-shell-width);
    max-width: 900px;
    margin: 12px auto 40px;
    padding: clamp(18px, 4vw, 56px);
    border: 1px solid var(--c5-line);
    border-radius: 26px;
    background: var(--c5-panel);
    color: var(--c5-ink);
    font-family: var(--c5-font);
    overflow-wrap: anywhere;
  }
  main.doc.document h1 { font-size: clamp(29px, 3.5vw, 48px); line-height: 1.12; }
  main.doc.document p { max-width: 72ch; }
}
