:root {
  --bs-body-font-family: "Noto Sans Armenian", sans-serif;
  --header: #355c8c;
  --ink: #1a1a1a;
  --link: #004d99;
  --muted: #454545;
  --line: #bfbfbf;
  --panel: #f5f5f5;
  --content: 1168px;
}

@font-face {
  font-family: "Noto Sans Armenian";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/NotoSansArmenian-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Noto Sans Armenian";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/NotoSansArmenian-SemiBold.ttf") format("truetype");
}

@font-face {
  font-family: "Noto Sans Armenian";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/NotoSansArmenian-Bold.ttf") format("truetype");
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Noto Sans Armenian", sans-serif;
  font-size: 16px;
  line-height: 24px;
}

#layout-body {
  flex: 1 0 auto;
}

a {
  color: var(--link);
}

.site-header {
  height: 90px;
  background: var(--header);
  color: #fff;
}

.site-header-inner {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(var(--content), calc(100% - 32px));
  height: 90px;
  margin: 0 auto;
  padding: 17px 0;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.site-emblem-link {
  display: flex;
  flex: 0 0 auto;
  line-height: 0;
}

.site-emblem-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.site-emblem {
  width: 60px;
  height: 56px;
  object-fit: contain;
}

.site-brand-divider {
  width: 1px;
  height: 56px;
  flex: 0 0 auto;
  background: #fff;
}

.site-brand-title {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  white-space: pre-line;
}

.lang-switch {
  position: relative;
  margin-left: auto;
  flex: 0 0 auto;
  z-index: 20;
}

.lang-switch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.lang-switch-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.lang-switch-current {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lang-switch-chevron {
  display: block;
  transition: transform 0.15s linear;
}

.lang-switch.is-open .lang-switch-chevron {
  transform: rotate(180deg);
}

.lang-switch-menu[hidden] {
  display: none;
}

.lang-switch-toggle .lang-flag {
  display: none;
}

.lang-switch-toggle .lang-flag.is-current {
  display: block;
}

.lang-flag {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.lang-switch-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  padding: 8px 16px;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: left;
}

.lang-switch-menu button:hover,
.lang-switch-menu button:focus-visible {
  background: #f5f5f5;
}

.lang-switch-menu button span {
  flex: 1 1 auto;
}

.lang-switch-check {
  display: none;
  flex: 0 0 auto;
  color: var(--ink);
}

.lang-switch-menu button.is-selected .lang-switch-check {
  display: block;
}

.page {
  box-sizing: border-box;
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 64px;
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-title {
  max-width: 1080px;
  margin: 0;
  color: var(--ink);
  font-size: 40px;
  font-weight: 700;
  line-height: 64px;
}

.toc {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.intro-lead {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0 0 0 4px;
  list-style: none;
}

.link-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 25px;
}

.link-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ink);
}

.link-list a,
.doc-url,
.card-mail {
  color: var(--link);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-decoration: underline;
  text-underline-offset: 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 48px;
}

.block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.block-title {
  margin: 0;
  color: #000;
  font-size: 30px;
  font-weight: 600;
  line-height: 40px;
  scroll-margin-top: 16px;
}

.dn,
.docs-group,
.contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prose {
  margin: 0;
  color: #000;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.dn-box {
  box-sizing: border-box;
  width: 847px;
  max-width: 100%;
  margin: 0;
  padding: 24px;
  background: var(--panel);
  color: #000;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  white-space: pre-line;
}

.measure {
  width: 847px;
  max-width: 100%;
}

.tables {
  display: flex;
  flex-direction: column;
}

.cert-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #747474;
  table-layout: fixed;
}

.tables .cert-table + .cert-table {
  margin-top: -1px;
}

.cert-table th,
.cert-table td {
  width: 50%;
  padding: 16px;
  border: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.cert-table th {
  height: 56px;
  background: var(--panel);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.cert-cell {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
}

.cert-cell a,
.cert-cell .sha,
.cert-cell .issued,
.cert-cell .hash,
.cert-cell .blank {
  display: block;
}

.cert-cell a {
  color: var(--link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0;
}

.sha {
  font-weight: 600;
}

.hash {
  overflow-wrap: anywhere;
}

.docs {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.doc-list {
  display: flex;
  flex-direction: column;
}

.doc-row {
  display: flex;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
  min-height: 56px;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid #a3a2a2;
}

.doc-name {
  flex: 0 0 136px;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.doc-url {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.doc-url span {
  overflow-wrap: anywhere;
}

.doc-download {
  display: flex;
  margin-left: auto;
  line-height: 0;
}

.contacts {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  padding: 16px 24px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  background: #fff;
}

.card address {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  white-space: pre-line;
}

.site-footer {
  box-sizing: border-box;
  min-height: 170px;
  padding: 40px 0;
  border-top: 1px solid #c1c0c0;
  background: var(--panel);
}

.site-footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(var(--content), calc(100% - 32px));
  min-height: 90px;
  margin: 0 auto;
}

.footer-meta {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.footer-links,
.footer-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
}

.footer-links a,
.footer-copy a {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-decoration: underline;
  text-underline-offset: 0;
}

.footer-links a {
  color: var(--muted);
}

.footer-copy a {
  color: var(--ink);
}

.footer-mark {
  width: 90px;
  height: 90px;
  flex: 0 0 auto;
  object-fit: contain;
}

.footer-emblem {
  width: 96px;
  height: 90px;
  flex: 0 0 auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .page-title {
    font-size: 32px;
    line-height: 44px;
  }

  .site-footer-inner {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-header-inner {
    height: auto;
  }

  .site-header-inner {
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 12px 0;
  }

  .site-brand {
    flex: 1 1 auto;
    gap: 10px;
    min-width: 0;
  }

  .lang-switch {
    flex: 0 0 auto;
    width: auto;
    margin-left: 0;
    padding-top: 0;
  }

  .site-emblem {
    width: 40px;
    height: 38px;
  }

  .site-brand-divider {
    height: 38px;
  }

  .site-brand-title {
    font-size: 14px;
    line-height: 20px;
  }

  .lang-switch-toggle {
    gap: 6px;
    font-size: 14px;
  }

  .page {
    padding: 28px 0 40px;
  }

  .page-title {
    font-size: 22px;
    line-height: 30px;
  }

  .block-title {
    font-size: 22px;
    line-height: 30px;
  }

  .stack {
    gap: 32px;
    margin-top: 32px;
  }

  .link-list li {
    align-items: flex-start;
  }

  .link-list li::before {
    margin-top: 9px;
  }

  .doc-row {
    align-items: flex-start;
  }

  .doc-name {
    flex-basis: 64px;
  }

  .doc-url {
    flex: 1 1 0;
  }

  .doc-download {
    align-self: center;
  }

  .site-footer {
    min-height: 0;
    padding: 24px 0;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-height: 0;
  }

  .footer-meta {
    align-self: stretch;
  }

  .footer-emblem {
    width: 72px;
    height: 68px;
  }
}
