/* Ограничение высоты лого */
.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;
}

/* Фиолетовые кнопки */
.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);
}
