/* Static copy of snm-code.ru (Protostar-like layout). No JavaScript. */

:root {
  --text: #333333;
  --muted: #999999;
  --link: #696969;
  --link-hover: #002b41;
  --accent: #696969;
  --page: #e3e3e3;
  --card: #ffffff;
  --line: rgba(0, 0, 0, 0.075);
  --border: rgba(0, 0, 0, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 20px;
  border-top: 3px solid var(--accent);
  background: var(--page);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 18px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 12px 0;
  color: inherit;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  word-wrap: break-word;
}

h2 {
  font-size: 22px;
  line-height: 24px;
}

h3 {
  font-size: 18px;
  line-height: 20px;
}

p {
  margin: 0 0 9px;
}

ul,
ol {
  margin: 0 0 9px;
  padding-left: 40px;
}

li {
  line-height: 18px;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.body .container {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}

.header {
  margin-bottom: 10px;
}

.brand {
  display: block;
}

.brand img {
  display: block;
  width: 100%;
}

.navigation {
  margin-bottom: 10px;
  padding: 5px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.nav-toggle-label {
  display: none;
  width: 46px;
  margin: 2px 0;
  padding: 7px 10px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background: linear-gradient(#ffffff, #e6e6e6);
  cursor: pointer;
}

.nav-toggle-label span {
  display: block;
  height: 2px;
  margin: 3px 0;
  background: #777777;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 5px;
  color: var(--link);
  line-height: 14px;
}

.nav a:hover,
.nav a:focus-visible {
  background: #eeeeee;
  color: var(--link);
  text-decoration: none;
}

.nav .active a,
.nav .active a:hover,
.nav .active a:focus-visible {
  background: var(--accent);
  color: #ffffff;
}

.article {
  margin-bottom: 18px;
}

.item-title {
  margin: 12px 0 9px;
}

.item-title a {
  color: var(--link);
}

.article-info {
  margin: 0 0 18px;
  color: var(--muted);
}

.article-info dt {
  font-weight: 400;
}

.article-info dd {
  margin: 0;
}

.icon-calendar {
  display: inline-block;
  width: 13px;
  height: 12px;
  margin-right: 4px;
  border: 1px solid #999999;
  border-radius: 2px;
  background:
    linear-gradient(#999999, #999999) top / 100% 3px no-repeat,
    linear-gradient(#999999, #999999) center 4px / 100% 1px no-repeat;
  vertical-align: -1px;
}

.lead-copy {
  margin-bottom: 18px;
}

.breadcrumb {
  margin: 10px 0;
  padding: 8px 15px;
  list-style: none;
  background: #f5f5f5;
  border-radius: 4px;
}

.breadcrumb li {
  display: inline;
  color: #515151;
}

.breadcrumb .divider {
  padding: 0 5px;
  color: #cccccc;
}

.breadcrumb .active {
  color: #999999;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.pager .next {
  margin-left: auto;
}

.contact-block h3 {
  margin-top: 0;
}

.contact-lines {
  margin: 0;
}

.contact-lines div {
  margin-bottom: 8px;
}

.contact-lines dt {
  font-weight: 700;
}

.contact-lines dd {
  margin: 0 0 8px;
}

.product-block {
  margin-bottom: 12px;
}

.product-block h3,
.product-block h2 {
  margin-bottom: 6px;
}

hr.soft {
  margin: 8px 0 12px;
  border: 0;
  border-top: 1px solid #eeeeee;
}

.footer .container {
  padding: 0 4px;
}

.footer hr {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid #cccccc;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.footer p {
  margin: 0 0 8px;
}

.to-top {
  margin: 0;
  text-align: right;
}

.lang-switch {
  margin: 0;
}

.lang-switch a {
  padding: 0 2px;
}

.lang-switch a[aria-current="true"] {
  color: #333333;
  font-weight: 700;
  text-decoration: none;
  cursor: default;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767px) {
  body {
    padding: 10px;
  }

  .nav-toggle-label {
    display: inline-block;
  }

  .nav {
    display: none;
    flex-direction: column;
    margin-top: 8px;
  }

  .nav-toggle:checked ~ .nav {
    display: flex;
  }

  .nav a {
    padding: 10px 12px;
  }

  .footer-row {
    flex-direction: column;
  }

  .to-top {
    text-align: left;
  }

  ul,
  ol {
    padding-left: 22px;
  }
}
