/*
 * ФТМО -- базовые стили (normalize + типографика, таблицы, помощники).
 * Перенесены без изменений из прежнего bootstrap.css 3.x (кастомная сборка сайта), без сетки:
 * сетку теперь даёт bootstrap-grid.css 5.3.3, размеры контейнера и поля остались прежними.
 */
html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
section,
summary {
  display: block;
  
}
audio,
canvas,
progress,
video {
  display: inline-block;
  vertical-align: baseline;
  
}
audio:not([controls]) {
  display: none;
  height: 0;
  
}
[hidden],
template {
  display: none;
  
}
a {
  background-color: transparent;
  
}
a:active,
a:hover {
  outline: 0;
  
}
abbr[title] {
  border-bottom: 1px dotted;
  
}
b,
strong {
  font-weight: bold;
  
}
dfn {
  font-style: italic;
  
}
h1 {
  font-size: 2em;
  margin: 0.67em 0;
  
}
mark {
  background: #ff0;
  color: #000;
  
}
small {
  font-size: 80%;
  
}
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
  
}
sup {
  top: -0.5em;
  
}
sub {
  bottom: -0.25em;
  
}
img {
  border: 0;
  
}
svg:not(:root) {
  overflow: hidden;
  
}
figure {
  margin: 1em 40px;
  
}
hr {
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
  
}
pre {
  overflow: auto;
  
}
code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
  
}
button,
input,
optgroup,
select,
textarea {
  color: inherit;
  font: inherit;
  margin: 0;
  
}
button {
  overflow: visible;
  
}
button,
select {
  text-transform: none;
  
}
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
  
}
button[disabled],
html input[disabled] {
  cursor: default;
  
}
button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
  
}
input {
  line-height: normal;
  
}
input[type="checkbox"],
input[type="radio"] {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0;
  
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
  
}
input[type="search"] {
  -webkit-appearance: textfield;
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  
}
fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
  
}
legend {
  border: 0;
  padding: 0;
  
}
textarea {
  overflow: auto;
  
}
optgroup {
  font-weight: bold;
  
}
table {
  border-collapse: collapse;
  border-spacing: 0;
  
}
td,
th {
  padding: 0;
  
}
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  
}
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  
}
html {
  font-size: 10px;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  
}
input,
button,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  
}
a {
  color: #428bca;
  text-decoration: none;
  
}
a:hover,
a:focus {
  color: #2a6496;
  text-decoration: underline;
  
}
a:focus {
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
  
}
figure {
  margin: 0;
  
}
img {
  vertical-align: middle;
  
}
.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
  
}
hr {
  margin-top: 20px;
  margin-bottom: 20px;
  border: 0;
  border-top: 1px solid #eeeeee;
  
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  
}
.sr-only-focusable:active,
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  
}
[role="button"] {
  cursor: pointer;
  
}
table {
  background-color: transparent;
  
}
caption {
  padding-top: 8px;
  padding-bottom: 8px;
  color: #999999;
  text-align: left;
  
}
th {
  text-align: left;
  
}
.table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
  
}
.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
  padding: 8px;
  line-height: 1.42857143;
  border-top: 1px solid #dddddd;
  
}
.table > thead > tr > th {
  vertical-align: bottom;
  border-bottom: 2px solid #dddddd;
  
}
.table > caption + thead > tr:first-child > th,
.table > colgroup + thead > tr:first-child > th,
.table > thead:first-child > tr:first-child > th,
.table > caption + thead > tr:first-child > td,
.table > colgroup + thead > tr:first-child > td,
.table > thead:first-child > tr:first-child > td {
  border-top: 0;
  
}
.table > tbody + tbody {
  border-top: 2px solid #dddddd;
  
}
.table .table {
  background-color: #ffffff;
  
}
.table-condensed > thead > tr > th,
.table-condensed > tbody > tr > th,
.table-condensed > tfoot > tr > th,
.table-condensed > thead > tr > td,
.table-condensed > tbody > tr > td,
.table-condensed > tfoot > tr > td {
  padding: 5px;
  
}
.table-bordered {
  border: 1px solid #dddddd;
  
}
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > td {
  border: 1px solid #dddddd;
  
}
.table-bordered > thead > tr > th,
.table-bordered > thead > tr > td {
  border-bottom-width: 2px;
  
}
.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #f9f9f9;
  
}
.table-hover > tbody > tr:hover {
  background-color: #f5f5f5;
  
}
.table > thead > tr > td.active,
.table > tbody > tr > td.active,
.table > tfoot > tr > td.active,
.table > thead > tr > th.active,
.table > tbody > tr > th.active,
.table > tfoot > tr > th.active,
.table > thead > tr.active > td,
.table > tbody > tr.active > td,
.table > tfoot > tr.active > td,
.table > thead > tr.active > th,
.table > tbody > tr.active > th,
.table > tfoot > tr.active > th {
  background-color: #f5f5f5;
  
}
.table-hover > tbody > tr > td.active:hover,
.table-hover > tbody > tr > th.active:hover,
.table-hover > tbody > tr.active:hover > td,
.table-hover > tbody > tr:hover > .active,
.table-hover > tbody > tr.active:hover > th {
  background-color: #e8e8e8;
  
}
.table > thead > tr > td.success,
.table > tbody > tr > td.success,
.table > tfoot > tr > td.success,
.table > thead > tr > th.success,
.table > tbody > tr > th.success,
.table > tfoot > tr > th.success,
.table > thead > tr.success > td,
.table > tbody > tr.success > td,
.table > tfoot > tr.success > td,
.table > thead > tr.success > th,
.table > tbody > tr.success > th,
.table > tfoot > tr.success > th {
  background-color: #dff0d8;
  
}
.table-hover > tbody > tr > td.success:hover,
.table-hover > tbody > tr > th.success:hover,
.table-hover > tbody > tr.success:hover > td,
.table-hover > tbody > tr:hover > .success,
.table-hover > tbody > tr.success:hover > th {
  background-color: #d0e9c6;
  
}
.table > thead > tr > td.info,
.table > tbody > tr > td.info,
.table > tfoot > tr > td.info,
.table > thead > tr > th.info,
.table > tbody > tr > th.info,
.table > tfoot > tr > th.info,
.table > thead > tr.info > td,
.table > tbody > tr.info > td,
.table > tfoot > tr.info > td,
.table > thead > tr.info > th,
.table > tbody > tr.info > th,
.table > tfoot > tr.info > th {
  background-color: #d9edf7;
  
}
.table-hover > tbody > tr > td.info:hover,
.table-hover > tbody > tr > th.info:hover,
.table-hover > tbody > tr.info:hover > td,
.table-hover > tbody > tr:hover > .info,
.table-hover > tbody > tr.info:hover > th {
  background-color: #c4e3f3;
  
}
.table > thead > tr > td.warning,
.table > tbody > tr > td.warning,
.table > tfoot > tr > td.warning,
.table > thead > tr > th.warning,
.table > tbody > tr > th.warning,
.table > tfoot > tr > th.warning,
.table > thead > tr.warning > td,
.table > tbody > tr.warning > td,
.table > tfoot > tr.warning > td,
.table > thead > tr.warning > th,
.table > tbody > tr.warning > th,
.table > tfoot > tr.warning > th {
  background-color: #fcf8e3;
  
}
.table-hover > tbody > tr > td.warning:hover,
.table-hover > tbody > tr > th.warning:hover,
.table-hover > tbody > tr.warning:hover > td,
.table-hover > tbody > tr:hover > .warning,
.table-hover > tbody > tr.warning:hover > th {
  background-color: #faf2cc;
  
}
.table > thead > tr > td.danger,
.table > tbody > tr > td.danger,
.table > tfoot > tr > td.danger,
.table > thead > tr > th.danger,
.table > tbody > tr > th.danger,
.table > tfoot > tr > th.danger,
.table > thead > tr.danger > td,
.table > tbody > tr.danger > td,
.table > tfoot > tr.danger > td,
.table > thead > tr.danger > th,
.table > tbody > tr.danger > th,
.table > tfoot > tr.danger > th {
  background-color: #f2dede;
  
}
.table-hover > tbody > tr > td.danger:hover,
.table-hover > tbody > tr > th.danger:hover,
.table-hover > tbody > tr.danger:hover > td,
.table-hover > tbody > tr:hover > .danger,
.table-hover > tbody > tr.danger:hover > th {
  background-color: #ebcccc;
  
}
.table-responsive {
  overflow-x: auto;
  min-height: 0.01%;
  
}
@media screen and (max-width: 767px) {
.table-responsive {
  width: 100%;
  margin-bottom: 15px;
  overflow-y: hidden;
  -ms-overflow-style: -ms-autohiding-scrollbar;
  border: 1px solid #dddddd;
  
}
.table-responsive > .table {
  margin-bottom: 0;
  
}
.table-responsive > .table > thead > tr > th,
.table-responsive > .table > tbody > tr > th,
.table-responsive > .table > tfoot > tr > th,
.table-responsive > .table > thead > tr > td,
.table-responsive > .table > tbody > tr > td,
.table-responsive > .table > tfoot > tr > td {
  white-space: nowrap;
  
}
.table-responsive > .table-bordered {
  border: 0;
  
}
.table-responsive > .table-bordered > thead > tr > th:first-child,
.table-responsive > .table-bordered > tbody > tr > th:first-child,
.table-responsive > .table-bordered > tfoot > tr > th:first-child,
.table-responsive > .table-bordered > thead > tr > td:first-child,
.table-responsive > .table-bordered > tbody > tr > td:first-child,
.table-responsive > .table-bordered > tfoot > tr > td:first-child {
  border-left: 0;
  
}
.table-responsive > .table-bordered > thead > tr > th:last-child,
.table-responsive > .table-bordered > tbody > tr > th:last-child,
.table-responsive > .table-bordered > tfoot > tr > th:last-child,
.table-responsive > .table-bordered > thead > tr > td:last-child,
.table-responsive > .table-bordered > tbody > tr > td:last-child,
.table-responsive > .table-bordered > tfoot > tr > td:last-child {
  border-right: 0;
  
}
.table-responsive > .table-bordered > tbody > tr:last-child > th,
.table-responsive > .table-bordered > tfoot > tr:last-child > th,
.table-responsive > .table-bordered > tbody > tr:last-child > td,
.table-responsive > .table-bordered > tfoot > tr:last-child > td {
  border-bottom: 0;
  
}
}
.embed-responsive {
  position: relative;
  display: block;
  height: 0;
  padding: 0;
  overflow: hidden;
  
}
.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  border: 0;
  
}
.embed-responsive-16by9 {
  padding-bottom: 56.25%;
  
}
.embed-responsive-4by3 {
  padding-bottom: 75%;
  
}
.center-block {
  display: block;
  margin-left: auto;
  margin-right: auto;
  
}
.hide {
  display: none !important;
  
}
.show {
  display: block !important;
  
}
.invisible {
  visibility: hidden;
  
}
.text-hide {
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
  
}
.hidden {
  display: none !important;
  
}
.affix {
  position: fixed;
  
}
@-ms-viewport {
  width: device-width;
}

/* ---- Сетка Bootstrap 5: прежние размеры контейнера и отступов (были 750/970/1170 px, поле 30 px) ---- */
.container,
.container-fluid,
.row {
  --bs-gutter-x: 30px;
}
.container {
  max-width: none;
}
@media (min-width: 768px) {
  .container {
    width: 750px;
  }
}
@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}
@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}

/* ---- Помощники, которых нет в сборке сетки Bootstrap 5 ---- */
.img-fluid {
  display: block;
  max-width: 100%;
  height: auto;
}
.float-start {
  float: left !important;
}
.float-end {
  float: right !important;
}
.clearfix::after {
  display: block;
  clear: both;
  content: "";
}

/* ---- Строка меню: список ul.nav лежит внутри контейнера напрямую (не в колонке): в BS3 .row был блоком ---- */
.menu-row {
  margin-right: -15px;
  margin-left: -15px;
}
.menu-row::after {
  display: table;
  clear: both;
  content: " ";
}
