html,
body,
div,
form,
pre,
span,
tr,
th,
td,
img {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/media/themes/opensans-light.woff) format('woff')
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/media/themes/opensans-regular.woff) format('woff')
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/media/themes/opensans-bold.woff) format('woff')
}
@font-face {
	font-family: 'CascadiaCode-Regular';
	src: url('fonts/cascadiacode-regular.eot'); /* IE 9 Compatibility Mode */
	src: url('fonts/cascadiacode-regular.eot?#iefix') format('embedded-opentype'), /* IE < 9 */
		url('fonts/cascadiacode-regular.woff2') format('woff2'), /* Super Modern Browsers */
		url('fonts/cascadiacode-regular.woff') format('woff'), /* Firefox >= 3.6, any other modern browser */
		url('fonts/cascadiacode-regular.ttf') format('truetype'), /* Safari, Android, iOS */
		url('fonts/cascadiacode-regular.svg#cascadiacode-regular') format('svg'); /* Chrome < 4, Legacy iOS */
}
@font-face {
    font-family: 'TT Norms Pro';
    src: local('TT Norms Pro Regular'), local('TT-Norms-Pro-Regular'),
        url('fonts/TTNormsPro-Regular.woff2') format('woff2'),
        url('fonts/TTNormsPro-Regular.woff') format('woff'),
        url('fonts/TTNormsPro-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
  }
@font-face {
    font-family: 'Yandex Sans Display';
    src: local('Yandex Sans Display Regular'), local('YandexSansDisplay-Regular'),
        url('fonts/YandexSansDisplay-Regular.woff2') format('woff2'),
        url('fonts/YandexSansDisplay-Regular.woff') format('woff'),
        url('fonts/YandexSansDisplay-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
  }
body {
  margin: 1em;
  background-color: #fff;
  color: #555;
  font-family: 'Yandex Sans Display', 'TT Norms Pro', 'Open Sans', Helvetica, sans-serif;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.5
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #111;
  font-weight: 400;
}

h1 {
  font-size: 2.9em;
  font-weight: 300;
}

h2 {
  font-size: 1.6em;
  font-weight: 300;
}

hr {
  margin: 2em 0;
  height: 1px;
  background: #ddd;
  border: 0;
}

strong {
  font-weight: 700;
}

code {
  font-size: 1.1em;
}

a {
  color: #f80;
  text-decoration: none;
}

a:hover {
  color: #f80;
  text-decoration: none;
}

.content h1 a:hover {
  text-decoration: none
}

.content img {
  max-width: 100%;
  height: auto;
}

.content form {
  margin: 1em 0;
}

.content table {
  border-spacing: 0;
  border-collapse: collapse;
}

.content th {
  text-align: left;
  padding: .3em;
  border-bottom: 1px solid #ddd;
}

.content td {
  text-align: left;
  padding: .3em;
  border-top: 1px solid #ddd;
}

blockquote {
  margin: 1em 0;
  padding: 0.5em 1em;
  color: #555; /* Цвет текста */
  font-style: italic; /* Курсив */
  border-top-right-radius: 10px;
}
.content blockquote {
  background-color: #fafafa;
  margin-left: 0;
  padding-left: 1em;
  border-left: .5em solid #0a0;
}

.content blockquote blockquote {
  margin-left: -1.5em;
  border-left: .5em solid #fb0;
}

.content blockquote blockquote blockquote {
  border-color: #d00;
}

.content code,
pre {
  font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 90%;
}

.content code {
  padding: .15em .4em;
  margin: 0;
  background-color: #f7f7f7;
  border-radius: 3px;
}

.content pre>code {
  padding: 0;
  margin: 0;
  white-space: pre;
  background: transparent;
  border: 0;
  font-size: inherit;
}

.content pre {
  padding: 1em;
  overflow: auto;
  line-height: 1.45;
  background-color: #f7f7f7;
  border-radius: 3px;
}

.content .flexible {
  position: relative;
  padding-top: 0;
  padding-bottom: 56.25%;
}

.content .flexible iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.content .stretchable ul {
  margin: 0 -.5em;
  padding: 0;
  list-style: none;
  text-align: center;
}

.content .stretchable li {
  margin: 0;
  padding: 1em 0;
  display: inline-block;
  text-align: center;
  vertical-align: top;
}

.content .stretchable a {
  color: #717171;
  text-decoration: none;
}

.content .toc {
  margin: 0;
  padding: 0;
  list-style: none;
}

.content .previousnext .previous {
  margin-right: 1em;
}

.content .pagination .previous {
  margin-right: 1em;
}

.content .pagination {
  margin: 1em 0;
}

.content .left {
  float: left;
  margin: 0 1em 0 0;
}

.content .center {
  display: block;
  margin: 0 auto;
}

.content .right {
  float: right;
  margin: 0 0 0 1em;
}

.content .rounded {
  border-radius: 4px;
}
.content .link {
  max-width: auto;
padding: 8px 0;
  padding: 10px 0;
  background-color: #f7f7f7;
  color: inherit;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid #eee;
}
.fancy-link {
  background-color: #fafafa;
  position: relative;          /* чтобы позиционировать псевдоэлемент относительно ссылки */
  text-decoration: none;       /* убираем стандартное подчёркивание */
  color: #333;
}

.fancy-link::after {
  content: "";                 /* обязательно для псевдоэлемента */
  position: absolute;
  bottom: 0;                   /* прижать к низу текста */
  left: 0;
  width: 0%;                   /* изначально линии нет */
  height: 2px;
  background-color: #007bff;
  transition: width 0.3s ease; /* плавное появление */
}

.fancy-link:hover::after {
  width: 100%;                 /* при наведении линия растягивается на всю ширину */
}
.touch-link {
  position: relative;
  display: inline-block;     /* чтобы работал padding у псевдоэлемента */
  padding: 12px 16px;
  margin: 1px;
  background: #f9f9f9;
  border-radius: 6px;
  text-decoration: none;
  color: #f80;
}

/* Псевдоэлемент растягивается и перекрывает область вокруг текста */
.touch-link::before {
  content: "";
  position: absolute;
  inset: -6px;                /* выходит за границы ссылки на 12px со всех сторон */
  z-index: -1;                 /* чтобы не перекрывать текст */
}
.touch-link {
  width: auto;
}
/* Нестандартные формы для уникальной компоновки */
.shape-image {
  float: left;
  shape-outside: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.z-image {
    float: left;
    width: 70px;
    height: auto;
    margin: 4px 20px 12px 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(31, 78, 103, 0.14);
}
.z-icon {
  float: left;
  margin-right: 10px 10px 10px 0;
  width: 32px;
  background: round;
  border-radius: 8px;
}

details {
  padding: 8px;
  background-color: #fafafa;
  color: inherit;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid #eee;
}
details > summary {
  border-bottom: none;
}
summary::marker {
  content: "▶";
  color: #0a0;
}
.header {
  margin: 3px 0;
}

.header .sitename {
  display: block;
  float: left
}

.header .sitename h1 {
  margin: 0;
  font-size: 1.4em;
  font-weight: bold;
}

.header .sitename h1 a {
  color: #555;
  text-decoration: none;
}

.header .sitename h1 a:hover {
  color: #f80;
  text-decoration: underline;
}

.header .sitename h2 {
  margin-top: 0;
  color: #717171;
  font-size: 1em;
  font-weight: 400;
}

.navigation {
  display: block;
  float: right;
}

.navigation {
  margin-top: -.2em;
  line-height: 2;
}

.navigation a {
  color: #555;
  padding: 0 .3em;
  display: inline-block
}

.navigation a:hover {
  color: #f80;
  text-decoration: underline
}

.navigation ul {
  margin: 0 -.3em;
  padding: 0;
  list-style: none
}

.navigation li a.active {
  color: #f80
}

.navigation li {
  display: inline
}

.navigation-banner {
  clear: both
}
/* ===== FOOTER ===== */
.footer {
  background-color: #fffffa;
  margin: 2em 0;
  border-top: 1px dashed #dadada;
}

.footer .siteinfo a {
  color: #555
}

.footer .siteinfo a:hover {
  color: #f80;
  text-decoration: underline
}

.footer .siteinfo a.language img {
  vertical-align: middle;
  margin-top: -5px;
  margin-right: .75em
}

.footer .siteinfo-left {
  float: left
}

.footer .siteinfo-right {
  float: right
}

.footer .siteinfo-banner {
  clear: both
}

.with-sidebar .main {
  margin-right: 17em
}

.with-sidebar .sidebar {
  float: right;
  width: 16em;
  margin-top: 3.9em;
  padding: 2px;
  overflow: hidden;
  font-size: .9em
}

.with-sidebar .sidebar .search-form input {
  width: 100%;
  box-sizing: border-box
}

.with-sidebar .content:after {
  content: "";
  display: table;
  clear: both
}

.form-control {
  margin: 0;
  padding: 2px 4px;
  display: inline-block;
  min-width: 7em;
  background-color: #fff;
  color: #555;
  background-image: linear-gradient(to bottom, #fff, #fff);
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: .9em;
  font-family: inherit;
  font-weight: 400;
  line-height: normal
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9em;
}

th, td {
  padding: 12px; /* пространство внутри ячейки */
  border: 1px solid #ddd; /* граница */
}

th {
  background-color: #f2f2f2; /* фон заголовка */
  font-weight: bold; /* жирность шрифта */
}

tr:hover {
  background-color: #f5f5f5; /* цвет строки при наведении */
}

/* ===== КНОПКА (BUTTON)===== */
.btn {
  min-width: 100px;
  font-family: inherit;
  appearance: none;
  border: 0;
  border-radius: 5px;
  background: #4676d7;
  color: #fff;
  padding: 8px 16px;
  font-size: 1rem;
  cursor: pointer;
}

.btn:hover {
  background: #1d49aa;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px #cbd6ee;
}
.header .sitename-logo {
  display: inline-block;
  background-image: url(cool.png);
  background-size: cover;
  width: 28px;
  height: 28px;
  margin: 0 8px 4px 0;
  vertical-align: middle
}

.content,
.navigation,
.footer {
  font-size: 1.1em
}

.content h1 a,
.content h2 a {
  color: #111
}

.content .avatar {
  border-radius: 10px;
  width: 150px;
  height: 150px;
  float: right;
  margin-left: 1em
}

.content .main .wikipages ul,
.content .main .wikitags ul {
  column-width: 19em;
  padding: 0;
  list-style: none
}

.content .main .wikipages .tag-new:after {
  content: "New";
  background-color: #fb4;
  color: #fff;
  border: 1px solid #fb4;
  border-radius: 10px
}

.content .main .wikipages .tag-new:after {
  margin: 0 .8em;
  padding: 0 8px;
  font-size: .8em;
  font-weight: 400
}

.layout-search .search-form {
  position: relative
}

.layout-search .search-text {
  font-size: 1em;
  font-family: inherit;
  font-weight: inherit
}

.layout-search .search-text {
  padding: 5px;
  border: 1px solid #bbb;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box
}

.layout-search .search-text {
  background-color: #fff;
  background-image: linear-gradient(to bottom, #fff, #fff)
}

.layout-search .search-button {
  position: absolute;
  top: 0;
  right: 0
}

.layout-search .search-button {
  font-family: inherit;
  font-size: .9em;
  font-weight: inherit
}

.layout-search .search-button {
  margin: 3px;
  padding: .3em;
  border: none;
  background-color: transparent
}

.contact-name input,
.contact-email input,
.contact-message textarea {
  width: 24em
}

.survey-table1 th,
.survey-table2 th {
  border: none;
  padding: 0
}

.survey-table1 td,
.survey-table2 td {
  border: none;
  padding: 0
}

.survey-table1 td:first-child {
  width: 40em;
  padding-right: 10em
}

.survey-table2 td {
  padding-left: 1em;
  width: 25em
}

.survey-grade {
  border: medium solid #f80;
  border-radius: 4px;
  margin: 0 -.5em;
  padding: .5em
}

.survey-warn {
  background-color: #f80;
  color: #fff;
  border-radius: 4px;
  padding: 2px 10px
}

.page {
  margin: 0 auto;
  max-width: 1000px
}

@media screen and (min-width:62em) {
  body {
    width: 60em;
    margin: 1em auto;
  }

  .page {
    margin: 0;
    max-width: none;
  }
}
.sitename {
  margin: 2em 0;
  border-bottom: 1px dashed #dadada;
  width: 100%;
}

@media screen and (max-width:32em) {
  body {
    margin: .5em;
    font-size: .9em
  }

  .content h1 {
    font-size: 1.6em
  }

  .content h2 {
    font-size: 1.4em
  }

  .header .sitename-logo {
    width: 28px;
    height: 28px;
  }

  .footer .siteinfo-left,
  .footer .siteinfo-right {
    float: none;
    text-align: center
  }

  .with-sidebar .main {
    margin-right: 0
  }

  .with-sidebar .sidebar {
    display: none
  }
}

@media print {
  .page {
    border: none !important
  }
}
/* ============ CONTEXT AD BLOCK (адаптивный) ============ */
.context-ad-block {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 15px 20px;
    background: #f8faff;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.context-ad-block:hover {
    border-color: #c5d6ff;
    background-color: #f4f6ff;
}

.context-ad-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    text-align: left;
    width: 100%;
    cursor: pointer;
    font: inherit;
    color: inherit;
    display: block;
}

.context-ad-title {
    font-weight: bold;
    font-size: 15px;
    color: #f80;
    margin-bottom: 4px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.context-ad-desc {
    font-weight: 300;
    font-size: 14px;
    color: #555;
    margin-top: 4px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    line-height: 1.4;
}

.context-ad-empty {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Мобильная адаптация */
@media (max-width: 767px) {
    .context-ad-block {
        padding: 12px 16px;
    }
    .context-ad-title {
        font-size: 14px;
    }
    .context-ad-desc {
        font-size: 13px;
    }
}