.container { box-sizing: border-box; max-width: 1235px; margin: 0 auto; position: relative; @media screen and (max-width: 1255px) { width: 100%; padding: 0 10px; } } .brand { position: relative; text-decoration: none; } .rules-list { font-size: 15px; line-height: 22px; color: var(--primary-text-color); counter-reset: list-counter; li { position: relative; border-bottom: 1px solid var(--ui-base-color-lighten-8); padding: 1em 1.75em; padding-inline-start: 3em; font-weight: 500; counter-increment: list-counter; &::before { content: counter(list-counter); position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%); background: var(--highlight-text-color); color: var(--ui-base-color); border-radius: 50%; width: 4ch; height: 4ch; font-weight: 500; display: flex; justify-content: center; align-items: center; } &:last-child { border-bottom: 0; } } }