/* Ограничение высоты лого */
.g-root .pc-desktop-navigation__wrapper .pc-logo__icon {
    max-height: 30px;
    margin-right: 50px;
}

/* Нумерация требований */
.yfm .requirements {
    counter-reset: section;
}
.yfm .requirements h2 {
    counter-increment: section;
}
.yfm .requirements h2::before {
    content: counter(section) ". ";
}
.yfm .requirements ol>li::marker {
    content: counter(section) "." counter(hier-list-item) ". " !important;
}
.yfm .requirements ol>li>ol>li::marker {
    content: counter(section) "." counter(hier-list-item) "." counter(sub-hier-list-item) ". " !important;
}
.yfm .requirements ol>li>ol>li>ol>li::marker {
    content: counter(section) "." counter(hier-list-item) "." counter(sub-hier-list-item) "." counter(sub-sub-hier-list-item) ". " !important;
}

/* Ширина таблиц */
.yfm .table-50 table tr td:nth-child(1) {
    width: 50%;
}
.yfm .table-25 table tr td:nth-child(1) {
    width: 25%;
}

.yfm .table-2с25 table tr td:nth-child(2) {
    width: 25%;
}

/* Размеры видео в таблицах */
.yfm table iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9 !important;
}

/* Без серой заливки строк в таблице, но с шапкой */
.dc-doc-page .yfm .striped-none table tr:nth-child(2n) {
    background: var(--g-color-base-background);
}
.yfm .striped-none table tr:first-child td, .yfm .striped-none table tr:first-child th  {
    background-color: var(--g-color-base-generic);
}
.yfm .striped-none table th, .yfm table td {
    border: 1px solid var(--g-color-line-generic);
}

/* Фиолетовые кнопки */
.button {
    border: none;
    outline: none;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
    font-family: var(--yc-text-body-font-family);
    padding: 12px 30px;
    border-radius: 10px;
    color: white;
    background-color: #5641FF;
    margin-top: 20px;
}
.button:hover {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    background: #4A33FF;
}
.button:active {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    background: #4A33FF;
}

/* Кат-кнопка */
.yfm .cut-button>.yfm-cut>.yfm-cut-title:before {
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDI1NSwgMjU1LCAyNTUsIDAuNykiIGQ9Im0zIDYgNSA1IDUtNSIvPjwvc3ZnPg==) !important;
    left: 20px;
}
.yfm .cut-button>.yfm-cut>.yfm-cut-title {
    display:inline-block;
    position: relative;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-family: var(--g-text-body-font-family);
    padding: 12px 30px 12px 45px;
    border-radius: 10px;
    color: white;
    background-color: #5641FF;
    margin-top: 10px;
}
.yfm .cut-button>.yfm-cut>.yfm-cut-title:hover {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    background: #4A33FF;
}
.yfm .cut-button>.yfm-cut>.yfm-cut-title:active {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    background: #4A33FF;
}

/* Правка отступов у табов */
.yfm .yfm-tab-panel:last-child {
    margin-bottom: -15px !important;
}
.yfm .yfm-tab-panel:last-child.active {
    margin-bottom: 0 !important;
}

/* Пустой абзац, который нужен для починки отступов между табами и заголовком */
.yfm p.empty {
    height: 0;
    margin: 0;
}

/* Отступы в списках */
.yfm li>p:first-child {
    margin-block: 0 !important;
}
.yfm ol li>ol, .yfm ol li>ul, .yfm ul li>ol, .yfm ul li>ul {
    margin-bottom: 15px !important;
    margin-top: 15px !important;
}
.yfm .yfm-tab-panel ol:last-child, .yfm .yfm-tab-panel ul:last-child {
    margin-bottom: 15px;
}
.yfm li>p:first-child+.yfm-cut, .yfm li>p:first-child+.yfm-tabs, .yfm li>p:first-child+table {
    margin-top: 15px;
}

/* Отображение разных картинок для десктопа и телефона в зависимости от ширины экрана */
@media screen and (max-width: 768px) {
    .yfm .container-desktop {
        display: none !important;
    }
}

@media screen and (min-width: 769px) {
    .yfm .container-mobile {
        display: none !important;
    }
}

/* Картинка у внешних ссылок */
a.external::after {
    background-color: var(--g-color-text-link);
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 0.3em;
    -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 96 96'%3E%3Cpath d='M88 48a4 4 0 0 0-4 4v28c0 2.21-1.79 4-4 4H16c-2.21 0-4-1.79-4-4V16c0-2.21 1.79-4 4-4h28a4 4 0 0 0 0-8H16C9.373 4 4 9.373 4 16v64c0 6.627 5.373 12 12 12h64c6.627 0 12-5.373 12-12V52a4 4 0 0 0-4-4'/%3E%3Cpath d='M91.996 7.958a4 4 0 0 0-.075-.742c-.023-.112-.065-.216-.097-.325-.04-.142-.074-.285-.131-.423-.05-.122-.12-.231-.182-.346s-.113-.234-.187-.344a4 4 0 0 0-.407-.499c-.032-.035-.055-.075-.089-.108-.031-.031-.067-.051-.1-.081a4 4 0 0 0-.509-.416c-.108-.072-.226-.123-.339-.184-.116-.062-.228-.133-.35-.184-.139-.058-.283-.091-.427-.132-.107-.031-.21-.073-.321-.095A4 4 0 0 0 87.999 4H64a4 4 0 0 0 0 8h14.343l-32.77 32.77a4 4 0 1 0 5.656 5.656L84 17.656V32a4 4 0 0 0 8 0V8z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 96 96'%3E%3Cpath d='M88 48a4 4 0 0 0-4 4v28c0 2.21-1.79 4-4 4H16c-2.21 0-4-1.79-4-4V16c0-2.21 1.79-4 4-4h28a4 4 0 0 0 0-8H16C9.373 4 4 9.373 4 16v64c0 6.627 5.373 12 12 12h64c6.627 0 12-5.373 12-12V52a4 4 0 0 0-4-4'/%3E%3Cpath d='M91.996 7.958a4 4 0 0 0-.075-.742c-.023-.112-.065-.216-.097-.325-.04-.142-.074-.285-.131-.423-.05-.122-.12-.231-.182-.346s-.113-.234-.187-.344a4 4 0 0 0-.407-.499c-.032-.035-.055-.075-.089-.108-.031-.031-.067-.051-.1-.081a4 4 0 0 0-.509-.416c-.108-.072-.226-.123-.339-.184-.116-.062-.228-.133-.35-.184-.139-.058-.283-.091-.427-.132-.107-.031-.21-.073-.321-.095A4 4 0 0 0 87.999 4H64a4 4 0 0 0 0 8h14.343l-32.77 32.77a4 4 0 1 0 5.656 5.656L84 17.656V32a4 4 0 0 0 8 0V8z'/%3E%3C/svg%3E");
    vertical-align: middle;
}
a.external:hover:after {
    background-color: var(--g-color-text-link-hover);
}

/* Картинка у ссылок на Телеграм */
a.telegram::after {
    background-color: var(--g-color-text-link);
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 0.3em;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M41.4193 7.30899C41.4193 7.30899 45.3046 5.79399 44.9808 9.47328C44.8729 10.9883 43.9016 16.2908 43.1461 22.0262L40.5559 39.0159C40.5559 39.0159 40.3401 41.5048 38.3974 41.9377C36.4547 42.3705 33.5408 40.4227 33.0011 39.9898C32.5694 39.6652 24.9068 34.7955 22.2086 32.4148C21.4531 31.7655 20.5897 30.4669 22.3165 28.9519L33.6487 18.1305C34.9438 16.8319 36.2389 13.8019 30.8426 17.4812L15.7331 27.7616C15.7331 27.7616 14.0063 28.8437 10.7686 27.8698L3.75342 25.7055C3.75342 25.7055 1.16321 24.0823 5.58815 22.459C16.3807 17.3729 29.6555 12.1786 41.4193 7.30899Z' fill='white'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M41.4193 7.30899C41.4193 7.30899 45.3046 5.79399 44.9808 9.47328C44.8729 10.9883 43.9016 16.2908 43.1461 22.0262L40.5559 39.0159C40.5559 39.0159 40.3401 41.5048 38.3974 41.9377C36.4547 42.3705 33.5408 40.4227 33.0011 39.9898C32.5694 39.6652 24.9068 34.7955 22.2086 32.4148C21.4531 31.7655 20.5897 30.4669 22.3165 28.9519L33.6487 18.1305C34.9438 16.8319 36.2389 13.8019 30.8426 17.4812L15.7331 27.7616C15.7331 27.7616 14.0063 28.8437 10.7686 27.8698L3.75342 25.7055C3.75342 25.7055 1.16321 24.0823 5.58815 22.459C16.3807 17.3729 29.6555 12.1786 41.4193 7.30899Z' fill='white'/%3E%3C/svg%3E");
    vertical-align: middle;
}
a.telegram:hover:after {
    background-color: var(--g-color-text-link-hover);
}

/* Временный фикс крестика в уведомлениях ДокДиректора */
.dc-note__xmark {
    position: absolute !important;
}
